#584 Compact deep-review-pro agent boilerplate#599
Conversation
|
Ready to act? Review this PR in Change Stack to turn feedback into patch suggestions you can inspect and refine. 📝 WalkthroughWalkthroughThis PR implements issue ChangesShared specialist-agent contract and documentation
H/M/L agent prompts (architecture, CI, code, Python, security, TypeScript)
Pass/fail/N/A agent prompts (docs, project-checklist, QA, simplification, unit-test)
Benchmark checkpoint tracking for post-584
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.claude/agents/deep-review-architecture.md (1)
60-66: ⚡ Quick winSchema escape rule inconsistently documented across H/M/L agents.
The shared contract in SKILL.md line 236 defines an escape rule: "If a description or fix contains a literal
|, escape it as\|". However, this escape rule is mentioned in only 2 of 6 H/M/L agent prompts (deep-review-ci and deep-review-security) and omitted from the other 4 (architecture, code, python, typescript).For consistency, either include the escape rule inline in all H/M/L agents, or omit it from all agents and rely entirely on the shared contract reference.
Recommended fix for consistency
Option 1 (preferred): Include escape rule in all H/M/L agents for completeness:
-Use the shared H/M/L schema: +Use the shared H/M/L schema, escaping any literal `|` inside description or fix as `\|`:Option 2: Remove escape rule from CI and security agents, rely on shared contract:
In
.claude/agents/deep-review-ci.mdand.claude/agents/deep-review-security.md:-Use the shared H/M/L schema, escaping any literal `|` inside description or fix as `\|`: +Use the shared H/M/L schema:🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.claude/agents/deep-review-architecture.md around lines 60 - 66, The H/M/L agent prompts are inconsistent about the escape rule; update the four agents missing it (deep-review-architecture, deep-review-code, deep-review-python, deep-review-typescript) to include the exact escape rule text from SKILL.md ("If a description or fix contains a literal `|`, escape it as `\|`") so wording is identical across all H/M/L agents; ensure the escape rule appears in the same location/format as in deep-review-ci and deep-review-security and run a quick grep to verify all six agent prompts contain the exact phrase.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.claude/agents/deep-review-architecture.md:
- Around line 60-66: The H/M/L agent prompts are inconsistent about the escape
rule; update the four agents missing it (deep-review-architecture,
deep-review-code, deep-review-python, deep-review-typescript) to include the
exact escape rule text from SKILL.md ("If a description or fix contains a
literal `|`, escape it as `\|`") so wording is identical across all H/M/L
agents; ensure the escape rule appears in the same location/format as in
deep-review-ci and deep-review-security and run a quick grep to verify all six
agent prompts contain the exact phrase.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: b5f78b88-78c3-4c15-98fb-ca4a2384315f
📒 Files selected for processing (19)
.claude/agents/deep-review-architecture.md.claude/agents/deep-review-ci.md.claude/agents/deep-review-code.md.claude/agents/deep-review-docs.md.claude/agents/deep-review-project-checklist.md.claude/agents/deep-review-python.md.claude/agents/deep-review-qa.md.claude/agents/deep-review-security.md.claude/agents/deep-review-simplification.md.claude/agents/deep-review-typescript.md.claude/agents/deep-review-unit-test.md.claude/skills/deep-review-pro/SKILL.mddocs/AI_ASSISTANTS.mddocs/deep-review-pro-benchmark/README.mddocs/deep-review-pro-benchmark/reports/587-epic-token-cost-matrix.jsondocs/deep-review-pro-benchmark/reports/587-epic-token-cost-matrix.mdscripts/benchmark_deep_review_epic_matrix.pyscripts/test_benchmark_deep_review_epic_matrix.pyscripts/test_benchmark_deep_review_pro.py
Summary
/deep-review-prospecialist-agent boilerplate into.claude/skills/deep-review-pro/SKILL.md§ Shared specialist-agent contract..claude/agents/deep-review-*.mdprompt to keep a short inline safety/schema reminder plus agent-specific deltas.post-584epic benchmark checkpoint, regenerating the [epic] Reduce deep-review-pro token cost without lowering review quality #587 matrix report.Closes #584
Contributes to #587
Epic Comparable Benchmark
These rows are generated from
587-epic-token-cost-matrix.mdso this issue can be compared with every other #587 child story using the same units.Use this section for cross-ticket comparison. Story-specific tables below are retained as local evidence and may use a narrower prompt-only, output-only, dispatch-only, or rerun/cache proxy surface.
Incremental Delta: post-583 -> post-584
Cumulative Delta: original-580 -> post-584
Test plan
python3 scripts/test_benchmark_deep_review_pro.pypython3 scripts/test_benchmark_deep_review_epic_matrix.pypython3 scripts/benchmark_deep_review_epic_matrix.py --issue-section 584python3 -m coverage run -m unittest scripts.test_benchmark_deep_review_epic_matrix scripts.test_benchmark_deep_review_pro && python3 -m coverage report -m scripts/benchmark_deep_review_epic_matrix.py scripts/benchmark-deep-review-pro.py scripts/deep_review_benchmark_support.pygit diff --check origin/main...HEAD/deep-review-proon this PR reports zero findingsSummary by CodeRabbit
Release Notes
Documentation
Refactor