Skip to content

feat: add reasoning_effort parameter to control thinking budget#38

Open
SaladDay wants to merge 1 commit intoGuDaStudio:mainfrom
SaladDay:feat/reasoning-effort-parameter
Open

feat: add reasoning_effort parameter to control thinking budget#38
SaladDay wants to merge 1 commit intoGuDaStudio:mainfrom
SaladDay:feat/reasoning-effort-parameter

Conversation

@SaladDay
Copy link
Contributor

@SaladDay SaladDay commented Jan 18, 2026

Summary

  • Add reasoning_effort parameter to the codex MCP tool
  • Allows dynamic control over model reasoning depth for different task complexities
  • Maps to Codex CLI: --config model_reasoning_effort="<value>"
  • Supported values: low, medium, high, xhigh
  • Defaults to None (uses config/profile default)

Changes

  • Added reasoning_effort parameter with Literal type validation in src/codexmcp/server.py
  • Added command-line argument handling to pass the value to Codex CLI

Test plan

  • Verify parameter is correctly passed to Codex CLI
  • Test with different reasoning_effort values (low, medium, high, xhigh)
  • Verify default behavior (None) doesn't add the --config flag
  • Verify invalid values are rejected by type validation

Closes #37

Add support for model_reasoning_effort parameter to the codex MCP tool,
allowing dynamic control over the reasoning depth for different task
complexities.

- Add reasoning_effort parameter with Literal type validation
- Support values: low, medium, high, xhigh
- Maps to codex CLI: --config model_reasoning_effort="<value>"
- Defaults to None (uses config/profile default)

Closes GuDaStudio#37
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.

Add support for model_reasoning_effort parameter to control thinking budget

1 participant