| description | Set up codeflash permissions so optimization runs automatically without prompting |
|---|---|
| argument-hint | |
| allowed-tools | Bash, Read, Write, Edit, Task, Grep, Glob, Bash(*codeflash*), Bash(git *) |
Help the user configure their project so that codeflash --subagent runs automatically without permission prompts.
-
Check if
.claude/settings.jsonexists in the project root (usegit rev-parse --show-toplevelto find it). -
If the file exists, read it and check if
Bash(*codeflash*)is already inpermissions.allow. -
If already configured, tell the user: "Codeflash is already configured to run automatically. No changes needed."
-
If not configured, add
Bash(*codeflash*)to thepermissions.allowarray in.claude/settings.json. Create the file and any necessary parent directories if they don't exist. Preserve any existing settings. -
Confirm to the user what was added and explain: "Codeflash will now run automatically in the background after commits that change code files, without prompting for permission each time."