-
Notifications
You must be signed in to change notification settings - Fork 6.3k
core: add a feature to disable the shell tool #6481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| Default, | ||
| Local, | ||
| UnifiedExec, | ||
| Disabled, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe include a flavor of the PR body as a docstring here (this is accurate, right?):
| Disabled, | |
| /// Do not include a shell tool by default. Useful when using Codex | |
| /// with tools provided exclusively provided by MCP servers. Often used | |
| /// with `--config base_instructions=CUSTOM_INSTRUCTIONS` | |
| /// to customize agent behavior. | |
| Disabled, |
| id: Feature::ShellTool, | ||
| key: "shell_tool", | ||
| stage: Stage::Stable, | ||
| default_enabled: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we flip the sense of this so this is default_enabled: false like everything else? Feature::UserProvidedShellTool or something like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modeled this after view_image_tool above.
--disable shell_tooldisables the built-in shell tool. This is useful for MCP-only operation.