Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Jan 27, 2026

Updates the CodexOptions passed to the Codex() constructor in the SDK to support a config property that is a map of configuration data that will be transformed into --config flags passed to the invocation of codex.

Therefore, something like this:

const codex = new Codex({
  config: {
    show_raw_agent_reasoning: true,
    sandbox_workspace_write: { network_access: true },
  },
});

would result in the following args being added to the invocation of codex:

--config show_raw_agent_reasoning=true --config sandbox_workspace_write.network_access=true

@@ -1,7 +1,24 @@
export type CodexConfigValue =
Copy link
Contributor

@lopopolo-openai lopopolo-openai Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to provide a fully typed config interface and zod schema, including narrow enums of the permitted string literals in specific config positions. Can we push the model to do this?

For example, TypeScript can natively represent that sandbox has a fixed set of valid string literals values. Let's do that!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally with tests to ensure it matches the real config format!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not something we have the bandwidth to take on right now.

@bolinfest bolinfest requested a review from pakrym-oai January 27, 2026 18:15
@bolinfest bolinfest marked this pull request as ready for review January 27, 2026 18:22
@bolinfest bolinfest enabled auto-merge (squash) January 27, 2026 18:35
@bolinfest bolinfest disabled auto-merge January 27, 2026 18:47
@bolinfest bolinfest merged commit 894923e into main Jan 27, 2026
77 of 79 checks passed
@bolinfest bolinfest deleted the pr10003 branch January 27, 2026 18:47
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants