feat: Add support for Codex - #19
Conversation
|
Now that response api is merge this is ready ! |
…re agent in existing config.
|
I updated this PR to ensure existing codex configuration is not override by the command. @thomass-dev may I ask for a review ? |
|
Cursor review Blocker: merge still hijacks the global defaultThe latest commit says existing Codex config is not fully overwritten. Other providers are kept, but every configure/launch still sets user-level:
Other issuesTOML is string-patched, not parsed. VerdictFeature direction matches Copilot’s constraints. I would not merge until you decide whether |
thomass-dev
left a comment
There was a problem hiding this comment.
Check my previous comment
Write the Skore provider to a dedicated ~/.codex/skore.config.toml profile and launch `codex --profile skore` instead of upserting root model/model_provider keys into the user's config.toml. Plain codex now keeps the user's default model; the user config file is never read, parsed or rewritten. Also: corrupt project TOML raises a RuntimeError with a 'run skore agent' hint, launch prefers the model recorded in the project provider file, all written values are TOML-escaped, the profile respects CODEX_HOME, and the dogfooding .gitignore entries are dropped. Note for testers of earlier revisions: remove the root model and model_provider keys (and the [model_providers.skore] table) that the old code wrote to ~/.codex/config.toml — this revision no longer rewrites that file. The profile mechanism requires Codex >= 0.134.
Drop the ~/.codex/skore.config.toml profile: it is still a single user-level file, so two worktrees would fight over it. The project file .codex/skore-provider.toml is now the only thing skore writes, and _launch_codex passes the provider to codex as runtime --config overrides (model_provider + model_providers.skore.*) since Codex denies model_providers in project config files. The hub key travels in the process environment and is referenced via env_http_headers, so it never appears on the command line; plain codex keeps the user's default model and ~/.codex is never read or written.
|
New design: fully project-local
codex --model <project-model> \
--config model_provider="skore" \
--config model_providers.skore.name="Skore Agent" \
--config model_providers.skore.base_url="…" \
--config model_providers.skore.wire_api="responses" \
--config 'model_providers.skore.env_http_headers={ "X-API-Key" = "SKORE_AGENT_API_KEY" }'with
|
thomass-dev
left a comment
There was a problem hiding this comment.
Could you please fix the merge-conflict?
Done! |
Add support for the codex harness
requires https://github.com/probabl-ai/skore-hub/pull/1754