Skip to content

Allow specifying specific commands that don't need permission to run #3085

@rben01

Description

@rben01

What feature would you like to see?

In .claude/settings, users can set explicitly allows commands for Claude to run so that it doesn't need permission. e.g.

{
	"permissions": {
		"allow": [
			"Bash(mkdir:*)",
			"Bash(rg:*)",
			"Bash(npm run build:*)",
			"Bash(grep:*)",
			"Bash(npm run format:*)"
			// ...
		]
	}
}

It's great that Claude Code lets me tell it which tools it doesn't need to ask for permission to use. It would be great if Codex CLI has a similar whitelist of user-specific permissions (not necessarily with the above syntax) so that it would stop repeatedly pestering me to ask if it can run my tests.

Are you interested in implementing this feature?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsandboxIssues related to permissions or sandboxing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions