quarantine_repo_traps
Inspect an untrusted repository clone for coding-agent configuration traps and active Git hooks, then optionally move detected files to quarantine to disarm prompt-injection risks.
Instructions
Inspect or disarm Priority-1 coding-agent configuration traps (.agents/, .claude/, .cursor/, AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules, .windsurfrules) and active .git/hooks/* inside an untrusted local repository clone.
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": {
"repo_dir": "<repo_dir>"
},
"name": "quarantine_repo_traps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | When true, list detected trap paths without moving any files. | |
| repo_dir | Yes | Path to the cloned untrusted repository directory. |