From fbd074fda384ebab58f8375ecd712c5993651912 Mon Sep 17 00:00:00 2001 From: Tim Pohlmann Date: Thu, 2 Jul 2026 05:44:08 +0000 Subject: [PATCH] fix: prevent generate-rules-recon subagent from recursively spawning itself The recon agent inherited every tool by default, including Agent and Skill. Its description closely mirrors the parent generate-rules skill's description, so mid-recon it would sometimes match its own task back to that skill and invoke it, which re-invokes the recon agent, recursing multiple levels deep before any real work happened. disallowedTools: Agent, Skill removes both from the recon agent's tool pool so it can no longer spawn subagents or invoke skills at all. Co-Authored-By: Claude Sonnet 5 --- agents/generate-rules-recon.md | 1 + 1 file changed, 1 insertion(+) diff --git a/agents/generate-rules-recon.md b/agents/generate-rules-recon.md index 304e290..6ff2595 100644 --- a/agents/generate-rules-recon.md +++ b/agents/generate-rules-recon.md @@ -1,6 +1,7 @@ --- name: generate-rules-recon description: Scan a codebase and produce candidate Dolphin rules that prevent drift from established patterns. +disallowedTools: Agent, Skill --- # Goal You perform codebase reconnaissance to surface candidate Dolphin static analysis rules.