You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
autodoc-executor: replace the Bash search wrapper with a typed search tool (no shell) #75
The autodoc executor gives Claude a narrow tool set: --tools Bash,Read,Write, with Bash allowlisted only for Bash(autodoc-search:*). Bash still means a shell, though. Claude Code also auto-approves some read-only commands (such as cd, grep and jq) inside the working directory, whatever the allowlist says, so Bash is broader than the allowlist suggests: it isn't limited to autodoc-search. The search token sits in a file under $RUNNER_TEMP and is never in Claude's environment.
bedrock-harness-executor.yml already moved to typed, read-only tools with no shell for the same threat model.
Proposal: expose search as an MCP tool, a small stdio server started by the executor that holds the token. Then drop Bash from --tools, leaving the search tool, Read, and Write (ideally scoped to the report path with a Write(<path>) rule). This brings autodoc in line with the harness executor and removes the auto-approval question entirely.
Needs a retest of the core dry runs (including the injection fixture) and a new tag.
Activity