Loading...
Loading...
Worker that runs parallel external agent reviews (Codex + Gemini) on code changes. Background tasks, process-as-arrive, critical verification with debate. Returns filtered suggestions with confidence scoring.
npx skill4agent add levnikolaevich/claude-code-skills ln-513-agent-reviewerPaths: File paths (,shared/,references/) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.../ln-*
storyIdshared/references/agent_delegation_pattern.mdpython shared/agents/agent_runner.py --health-checkskill_groups{verdict: "SKIPPED", reason: "no agents available"}"Agent Health: codex-review OK, gemini-review UNAVAILABLE"get_issue(storyId)list_issues(filter: {parent: {id: storyId}, status: "Done"})docs/tasks/.agent-review/.gitignore.agent-review/.agent-review/.gitignore*!.gitignore.agent-review/{agent}/.agent-review/.gitignoreshared/agents/prompt_templates/code_review.md{story_ref}- Linear: {url}- File: {path}{task_refs}- {identifier}: {url_or_path}.agent-review/{agent}/{identifier}_codereview_prompt.mdpython shared/agents/agent_runner.py --agent codex-review --prompt-file .agent-review/codex/{identifier}_codereview_prompt.md --output-file .agent-review/codex/{identifier}_codereview_result.md --cwd {cwd}python shared/agents/agent_runner.py --agent gemini-review --prompt-file .agent-review/gemini/{identifier}_codereview_prompt.md --output-file .agent-review/gemini/{identifier}_codereview_result.md --cwd {cwd}.agent-review/{agent}/{identifier}_codereview_result.md<!-- AGENT_REVIEW_RESULT --><!-- END_AGENT_REVIEW_RESULT -->session_id.agent-review/{agent}/{identifier}_session.json{"agent": "...", "session_id": "...", "review_type": "codereview", "created_at": "..."}shared/references/agent_delegation_pattern.mdsession_id.agent-review/{agent}/{identifier}_session.json--resume-session {session_id}session_resumed: false{review_type}.agent-review/{agent}/{identifier}_codereview_challenge_{N}_prompt.md_result.md.agent-review/{agent}/{identifier}_codereview_followup_{N}_prompt.md_result.md.agent-review/{agent}/(area, issue)confidence >= 90impact_percent > 2verdict: CODE_ACCEPTABLE | SUGGESTIONS | SKIPPED
suggestions:
- area: "security | performance | architecture | correctness | best_practices"
issue: "What is wrong"
suggestion: "Specific fix"
confidence: 95
impact_percent: 15
source: "codex-review"
resolution: "accepted | accepted_after_debate | accepted_after_followup | rejected"
agent_stats:
- name: "codex-review"
duration_s: 12.4
suggestion_count: 3
accepted_count: 2
challenged_count: 1
followup_count: 1
status: "success | failed | timeout"
debate_log:
- suggestion_summary: "N+1 query in UserRepository.GetAll()"
agent: "gemini-review"
rounds:
- round: 1
claude_position: "Query uses Include() which resolves N+1"
agent_decision: "WITHDRAW"
resolution: "rejected"
final_resolution: "rejected"| Condition | Action |
|---|---|
| Both agents succeed | Aggregate verified suggestions from both |
| One agent fails | Use successful agent's verified suggestions, log failure |
| Both agents fail | Return |
| Parent skill (ln-510) | Falls back to Self-Review (native Claude) |
area=securityarea=correctness--json--output-format json.agent-review/{agent}/.agent-review/.gitignore.agent-review/.agent-review/.gitignore.agent-review/{agent}/.agent-review/{agent}/{identifier}_session.jsonshared/references/agent_delegation_pattern.mdshared/agents/prompt_templates/code_review.mdshared/agents/prompt_templates/challenge_review.mdshared/agents/agent_registry.jsonshared/agents/agent_runner.pyshared/agents/schemas/challenge_review_schema.json