Repository navigation
fix(agents): stop permission prompts for agent workers - #370
Merged
Merged
Conversation
Herdr starts agents without arguments, and agy defaults to request-review, so an orchestrated worker stalls on a plain read such as rg while nobody watches the pane. Set toolPermission and artifactReviewPolicy to always-proceed in the managed settings file. Compare and merge only repo-managed keys, so live machine state such as trustedWorkspaces stays local and no longer fails the drift gate. Document the per-kind launch args the agent-team skill must pass.
Claude Code prompts before every write or mutating shell command, so an agent-team worker spawned in a pane stops on a trivial edit with nobody to answer. Set permissions.defaultMode to bypassPermissions in the managed settings file, matching codex (approval_policy never) and cursor (approvalMode unrestricted).
odsod
force-pushed
the
agy-auto-approve
branch
from
October 23, 2026 05:24
8fe062a to
27ecaef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Orchestrators start workers with
herdr agent start, which passes no agentarguments. Each CLI keeps its own defaults, and those defaults stop a worker
for approval on a plain read or edit while nobody watches the pane. Herdr has
no per-kind default arguments.
This machine had already relaxed codex (
approval_policy = "never",sandbox_mode = "danger-full-access") and cursor (approvalMode: "unrestricted"). Pi does not ask before tool calls at all.agyandclaudestill asked.
The live antigravity settings file also holds machine state that cannot be
committed:
trustedWorkspaceslists local paths, andmodelfollows/model.The old drift check diffed the whole file, so every such write failed the gate
and the next resolve wiped the list.
What
antigravity/settings.json: settoolPermissionandartifactReviewPolicytoalways-proceed. This covers every launch path:Herdr panes, agy subagents, resumed sessions, and manual starts.
claude/settings.json: setpermissions.defaultModetobypassPermissions.skipDangerousModePermissionPromptwas already true.antigravity:checknow compares only keys present in the repo file, andantigravity:resolvemerges those keys into the live file. Machine statestays local and no longer fights the gate.
AGENTS.mddrift bullet and themise run apply --forcehelp.codex:checkandcodex:resolveare unchanged and still compare the wholefile.
that loads the
agent-teamskill already has these settings. The skill doesnot repeat them.
Trade-off
Both settings apply to every session, not only Herdr panes. A manual
agyorclaudesession also stops asking before it edits files or runs commands.That matches how codex and cursor were already configured here.
Verification
claude -pwrite probe before the change: the command was stopped forapproval and the file was not created. After: it runs.
agy -p "Run rg --version ..."ran the tool and printedripgrep 15.2.0.The same call is auto-denied in headless mode without the setting.
managed key fails it, and resolve restores the managed key while keeping the
extra one.
mise run antigravity:checkexits 0 on this machine while the live filekeeps its six
trustedWorkspacesentries.oxfmt --checkon the changed files,shfmt -dandshellcheck -xontasks/apply.sh.