Skip to content

autodoc-executor: replace the Bash search wrapper with a typed search tool (no shell) #75

Open

Description

@jdcmsd

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.

Raised in review of #70.

Activity

  1. added
    enhancement
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions