inspect_local_repo
Scans a local repository offline before opening or running it, checking hooks, scripts, dependencies and agent instruction files for hidden execution or prompt-injection traps, then returns a run verdict.
Instructions
Use before you open, install, build or run a repository already on this computer: a take-home assignment, a "fix this bug" invite, a cloned interview repo. Reads its files offline (nothing is executed, nothing is sent anywhere, symlinks are not followed) and looks for code that runs on its own: VS Code folder-open tasks, npm install hooks, dev-container commands, Makefile curl-pipe-shell, obfuscated or remote eval, base64-hidden URLs, git hooks, typosquatted or git-sourced dependencies, and instructions to turn off antivirus. It also reads the files that steer you, the agent: CLAUDE.md, AGENTS.md, .cursorrules, .windsurfrules, .mcp.json, .claude/settings.json, .zed/tasks.json, for hidden-step, exec, secret-reading and fetch-more-instructions text, hooks and unpinned or look-alike MCP servers; plus invisible Unicode Tag text, bidi (Trojan Source) characters and case-colliding paths (CVE-2024-32002). Returns a verdict (do_not_run, review_first or no_known_traps) and findings. no_known_traps is not proof it is safe. For a public GitHub repo not yet cloned, use inspect_interview_repo instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dir": "<dir>"
},
"name": "inspect_local_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Absolute path to the repository folder on this computer. |