2026-02-18 14:23:16 -06:00
export const type = "codex_local" ;
export const label = "Codex (local)" ;
2026-03-03 12:41:50 -06:00
export const DEFAULT_CODEX_LOCAL_MODEL = "gpt-5.3-codex" ;
export const DEFAULT_CODEX_LOCAL_BYPASS_APPROVALS_AND_SANDBOX = true ;
2026-02-18 14:23:16 -06:00
export const models = [
2026-03-05 16:13:29 -08:00
{ id : "gpt-5.4" , label : "gpt-5.4" } ,
2026-03-03 12:41:50 -06:00
{ id : DEFAULT_CODEX_LOCAL_MODEL , label : DEFAULT_CODEX_LOCAL_MODEL } ,
2026-02-20 10:32:07 -06:00
{ id : "gpt-5.3-codex-spark" , label : "gpt-5.3-codex-spark" } ,
2026-02-19 14:39:37 -06:00
{ id : "gpt-5" , label : "gpt-5" } ,
2026-02-18 14:23:16 -06:00
{ id : "o3" , label : "o3" } ,
2026-02-20 10:32:07 -06:00
{ id : "o4-mini" , label : "o4-mini" } ,
{ id : "gpt-5-mini" , label : "gpt-5-mini" } ,
{ id : "gpt-5-nano" , label : "gpt-5-nano" } ,
{ id : "o3-mini" , label : "o3-mini" } ,
2026-02-18 14:23:16 -06:00
{ id : "codex-mini-latest" , label : "Codex Mini" } ,
] ;
2026-02-19 13:02:53 -06:00
export const agentConfigurationDoc = ` # codex_local agent configuration
Adapter : codex_local
Core fields :
2026-03-03 12:29:32 -06:00
- cwd ( string , optional ) : default absolute working directory fallback for the agent process ( created if missing when possible )
2026-02-26 16:34:29 -06:00
- instructionsFilePath ( string , optional ) : absolute path to a markdown instructions file prepended to stdin prompt at runtime
2026-02-19 13:02:53 -06:00
- model ( string , optional ) : Codex model id
2026-02-20 10:32:07 -06:00
- modelReasoningEffort ( string , optional ) : reasoning effort override ( minimal | low | medium | high ) passed via - c model_reasoning_effort = . . .
2026-02-19 13:02:53 -06:00
- promptTemplate ( string , optional ) : run prompt template
- search ( boolean , optional ) : run codex with -- search
- dangerouslyBypassApprovalsAndSandbox ( boolean , optional ) : run with bypass flag
- command ( string , optional ) : defaults to "codex"
- extraArgs ( string [ ] , optional ) : additional CLI args
- env ( object , optional ) : KEY = VALUE environment variables
2026-03-10 10:58:38 -05:00
- workspaceStrategy ( object , optional ) : execution workspace strategy ; currently supports { type : "git_worktree" , baseRef ? , branchTemplate ? , worktreeParentDir ? }
- workspaceRuntime ( object , optional ) : workspace runtime service intents ; local host - managed services are realized before Codex starts and exposed back via context / env
2026-02-19 13:02:53 -06:00
Operational fields :
- timeoutSec ( number , optional ) : run timeout in seconds
- graceSec ( number , optional ) : SIGTERM grace period in seconds
2026-02-19 14:39:37 -06:00
Notes :
- Prompts are piped via stdin ( Codex receives "-" prompt argument ) .
2026-03-23 16:55:10 -05:00
- If instructionsFilePath is configured , Paperclip prepends that file ' s contents to the stdin prompt on every run .
- Codex exec automatically applies repo - scoped AGENTS . md instructions from the active workspace . Paperclip cannot suppress that discovery in exec mode , so repo AGENTS . md files may still apply even when you only configured an explicit instructionsFilePath .
2026-03-19 07:15:36 -05:00
- Paperclip injects desired local skills into the active workspace 's ".agents/skills" directory at execution time so Codex can discover "$paperclip" and related skills without coupling them to the user' s login home .
2026-03-20 14:44:27 -05:00
- Unless explicitly overridden in adapter config , Paperclip runs Codex with a per - company managed CODEX_HOME under the active Paperclip instance and seeds auth / config from the shared Codex home ( the CODEX_HOME env var , when set , or ~ / . c o d e x ) .
2026-02-20 10:32:07 -06:00
- Some model / tool combinations reject certain effort levels ( for example minimal with web search enabled ) .
2026-03-10 10:58:38 -05:00
- When Paperclip realizes a workspace / runtime for a run , it injects PAPERCLIP_WORKSPACE_ * and PAPERCLIP_RUNTIME_ * env vars for agent - side tooling .
2026-02-19 13:02:53 -06:00
` ;