refactor(agents): Extract and enhance 6 reviewer agents#1347
Conversation
Create dedicated agent files under .agents/agents/ for each review perspective (code-quality, security, performance, test-coverage, conventions, holistic) with detailed instructions and checklists. Update review-loop and pr-review commands to reference these agents instead of duplicating inline descriptions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Enrich each reviewer agent with research-backed best practices: - code-quality: severity levels, async/concurrency, TypeScript patterns - security: CWE references, OWASP 2025, Node.js-specific risks - performance: V8 optimization hints, event loop, flagging thresholds - test-coverage: risk-based prioritization, test design techniques, smells - conventions: semantic consistency methodology, linter-gap focus - holistic: premortem analysis, change impact tracing, contract checks Rename from review-* to reviewer-* for consistent naming and grouping. Simplify command files to reference agent names only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis PR introduces six specialized AI reviewer agent definitions (code quality, security, performance, test coverage, conventions, and holistic) and updates the review workflow documentation to reference these agents by explicit identifiers instead of generic angle-based descriptions. A pointer file is added for convenience. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
…review Enhance reviewer-code-quality with API contract violations section, generic misuse detection, confidence levels, and context-based severity. Enhance reviewer-conventions with documentation accuracy checks, export/public API consistency, and commit/PR convention adherence. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying repomix with
|
| Latest commit: |
554a589
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c5b4cf81.repomix.pages.dev |
| Branch Preview URL: | https://refactor-extract-review-agen.repomix.pages.dev |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Code ReviewClean refactoring that extracts inline reviewer agent descriptions into dedicated, reusable definition files. The new agent definitions are substantially more thorough than the original one-liners -- a clear net positive. No production code changes, so integration risk to the Repomix codebase is zero. Findings1. Ambiguous phrasing about The Null/undefined bullet says:
This reads as a warning against using Suggested rewrite:
2. Inconsistent output format across the 6 agent files (Consider standardizing) The agents define four different output styles:
Since these agents run in parallel and their findings are triaged together, inconsistent output formats make the triage step harder to parse. Consider standardizing on one format template. 3. Command files lost orchestration context (Suggestion) The command files previously gave the orchestrating agent a quick summary of each reviewer's focus area. Now they list only bare names. This slightly reduces the orchestrator's ability to anticipate and deduplicate findings during triage. Consider adding one-line annotations: - reviewer-code-quality <!-- bugs, logic errors, edge cases -->
- reviewer-security <!-- vulnerabilities, injection, secrets -->This preserves triage context without duplicating the full definitions. Details: Additional observations (no action needed)
🤖 Generated with Claude Code |
…hecks Fix misleading description in reviewer-code-quality that incorrectly warned about ?? operator instead of || operator misuse with falsy values. Add Authentication, Authorization & Session Management section to reviewer-security covering IDOR, session fixation, and access control. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Code ReviewOverall: Clean, well-structured refactoring. The extraction of reviewer agents into dedicated files with detailed, research-backed instructions is a solid improvement. No blocking issues found. FindingsNo issues found in: Security, Performance, Test Coverage — this is purely a documentation/configuration refactoring with no application code changes. Minor observations (non-blocking)1. Agent name coupling between command files and agent definitions Both command files now reference agents by bare name (e.g., 2. Asymmetry between review-loop.md and pr-review.md
3. reviewer-conventions.md references .agents/rules/ path Line 15 instructs agents to read project rules files from Positives
LGTM Reviewed with Claude Code |
Unify severity terminology across all 6 reviewer agents to use a consistent Critical/High/Medium/Low scale. Previously code-quality used Major/Minor/Nitpick, performance used lowercase backtick-formatted levels, and test-coverage mixed Improvement/Observation labels. Also standardize structure: split holistic Output Guidelines into separate Output Format and Guidelines sections, and add Guidelines section to performance reviewer. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extract inline review agent descriptions from
review-loop.mdandpr-review.mdinto dedicated, reusable agent definitions under.agents/agents/.Each reviewer agent is enriched with research-backed best practices while keeping content general (not project-specific):
Command files (
review-loop.md,pr-review.md) now reference agent names only, eliminating duplication.Checklist
npm run testnpm run lint