flake-update-20260505

FocusedReview Workflow

Run a code review with a single focus area using the appropriate specialized reviewer subagent.

Steps

  1. Determine the focus area from the user’s request:

    • “security” → reviewer-security
    • “performance” → reviewer-performance
    • “nix” → reviewer-nix
    • “general” or unspecified → reviewer
  2. Determine the review target from the user’s request:

    • Uncommitted changes: git diff + git diff --staged + untracked files
    • Branch comparison: git diff <base>..HEAD
    • Specific commit: git show <sha>
    • PR: checkout and diff against base branch
    • Folder/file snapshot: read the files directly
  3. Dispatch to the subagent using the subagent tool in single mode:

Use the subagent tool with:
  agent: "reviewer-security"  (or whichever focus)
  task: "Review the following code changes for <focus>:\n\n<diff or instructions>"
  1. Present findings from the subagent output to the user.

Example

User: "Security review of the last commit"
→ Determines focus: security → agent: reviewer-security
→ Gets diff: git show HEAD
→ Dispatches: subagent(agent="reviewer-security", task="Review commit abc123 for security issues. Run `git show HEAD` to see the changes.")
→ Presents structured findings