Hey everyone! I'm really impressed with Claude Code and I'm wondering if there's a way to run it in a task-based manner similar to Codex or Jules. Is there a project or method that allows this? I've been able to run everything on my macOS, but I'm concerned about security if I want to use it in YOLO mode. Any advice would be greatly appreciated!
2 Answers
You can definitely run Claude Code as tasks using specific commands. According to the official docs, you can use:
claude -p "update the README with the latest changes" --allowedTools "Bash(git diff:*)" "Bash(git log:*)" Write --disallowedTools ...
This should help you set it up for various commands. You can find more about CLI usage [here](https://docs.anthropic.com/en/docs/claude-code/cli-usage).
As of now, there doesn't seem to be a ready-made solution for that yet. I was actually hoping to create one myself since Claude Code just released its SDK this week. I think it might be worth waiting a bit since there’s an Anthropic event coming up tomorrow. They could possibly address something related to Codex, so keep an eye out!
That’s true, but remember that Codex operates in a contained environment. If it messes things up, you can just ignore those results. Plus, that helps keep your setup safe!