Skip to content

feat(cli): add Codex profile-based endpoint launch (codex -p <profile>)#2

Draft
sousuke0422 wants to merge 3 commits into
aki-tweakfrom
feat/cli-endpoint-profiles
Draft

feat(cli): add Codex profile-based endpoint launch (codex -p <profile>)#2
sousuke0422 wants to merge 3 commits into
aki-tweakfrom
feat/cli-endpoint-profiles

Conversation

@sousuke0422

Copy link
Copy Markdown
Owner

Add a profile field to cli.agents.; 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

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
sousuke0422 force-pushed the feat/cli-endpoint-profiles branch from 541534f to 17b8fcd Compare June 23, 2026 17:23
Assisted-by: multi-agent-shogun-aki-tweak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant