feat(cli): add Codex profile-based endpoint launch (codex -p <profile>)#2
Draft
sousuke0422 wants to merge 3 commits into
Draft
feat(cli): add Codex profile-based endpoint launch (codex -p <profile>)#2sousuke0422 wants to merge 3 commits into
sousuke0422 wants to merge 3 commits into
Conversation
Add a `profile` field to cli.agents.<id>; when set, cli_adapter launches `codex -p <profile>` using a native Codex config.toml profile instead of `codex --model`. Agents can then target any OpenAI-compatible endpoint (opencode-go, Sakana Fugu) via [profiles.*]/[model_providers.*] without a custom wrapper or `-c` injection, sidestepping the opencode TUI pane-size failure mode. - _cli_adapter_validate_codex_profile: validate profile name + TOML pre-launch - _cli_adapter_python: make project venv optional (worktree/CI without .venv) - templates/codex_profiles/: keyless config.toml templates (env_key only) + README; Fugu marked finance-excluded - tests/unit/test_cli_adapter.bats: profile resolution + validation coverage Non-regression: agents without a profile keep the existing `codex --model` path. claude/messages branch intentionally out of scope. Assisted-by: multi-agent-shogun-aki-tweak
The template is the general opencode-go provider profile; the -flash suffix over-specified it to a single model. Rename file and profile name to `opencode-go` for clarity (model id stays deepseek-v4-flash as the default). Updates README example and bats coverage to match. Assisted-by: multi-agent-shogun-aki-tweak
sousuke0422
force-pushed
the
feat/cli-endpoint-profiles
branch
from
June 23, 2026 17:23
541534f to
17b8fcd
Compare
Assisted-by: multi-agent-shogun-aki-tweak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
profilefield to cli.agents.; when set, cli_adapter launchescodex -p <profile>using a native Codex config.toml profile instead ofcodex --model. Agents can then target any OpenAI-compatible endpoint (opencode-go, Sakana Fugu) via [profiles.]/[model_providers.] without a custom wrapper or-cinjection, sidestepping the opencode TUI pane-size failure mode.Non-regression: agents without a profile keep the existing
codex --modelpath. claude/messages branch intentionally out of scope.Assisted-by: multi-agent-shogun-aki-tweak