From bafe9f0968054c78db23e7e7f4d5dbc2ddb4a450 Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Tue, 7 Apr 2026 12:29:48 -0700 Subject: [PATCH] fix(ce-review): add recursion guard to reviewer subagent template (#527) Co-authored-by: Claude Opus 4.6 (1M context) --- .../skills/ce-review/references/subagent-template.md | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/compound-engineering/skills/ce-review/references/subagent-template.md b/plugins/compound-engineering/skills/ce-review/references/subagent-template.md index 57d10fa..bd57dfa 100644 --- a/plugins/compound-engineering/skills/ce-review/references/subagent-template.md +++ b/plugins/compound-engineering/skills/ce-review/references/subagent-template.md @@ -41,6 +41,7 @@ False-positive categories to actively suppress: - Generic "consider adding" advice without a concrete failure mode Rules: +- You are a leaf reviewer inside an already-running compound-engineering review workflow. Do not invoke compound-engineering skills or agents unless this template explicitly instructs you to. Perform your analysis directly and return findings in the required output format only. - Every finding MUST include at least one evidence item grounded in the actual code. - Set pre_existing to true ONLY for issues in unchanged code that are unrelated to this diff. If the diff makes the issue newly relevant, it is NOT pre-existing. - You are operationally read-only. You may use non-mutating inspection commands, including read-oriented `git` / `gh` commands, to gather evidence. Do not edit files, change branches, commit, push, create PRs, or otherwise mutate the checkout or repository state.