Skip to main content
subagent CX Codex

incident-response-code-reviewer — Claude Code subagent: what it does

Finds logic flaws and unhandled errors during code reviews. Suggests minimal fixes and rates severity across the repository.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install incident-response@claude-code-workflows
Open on GitHub

What incident-response-code-reviewer does

The subagent runs on sonnet and follows a structured seven-step audit path. It inspects algorithms for flawed assumptions and audits boundary contracts. Once local issues are clear, it searches the repository for duplicate vulnerability patterns.

Instead of suggesting broad refactoring, the reviewer focuses on the smallest effective patch. That keeps hotfixes safe during an ongoing incident. Every report includes severity ratings and readiness checks.

Dynamic code without explicit type signatures will trigger immediate warnings during analysis.

What it helps with

  • Detect logic errors and missing edge cases in code paths
  • Spot unhandled promises, panics, and missing error checks
  • Search the repository for identical vulnerability patterns
  • Design minimal safe hotfixes with severity ratings

Example prompts for the agent

  • Review this payment handler for logic errors and type safety gaps
  • Search the project for similar input validation vulnerabilities
  • Assess whether this hotfix is ready for deployment and suggest a minimal patch

How to install incident-response-code-reviewer

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install incident-response@claude-code-workflows

2Manually: put the files in place

.claude/agents/code-reviewer.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about incident-response-code-reviewer

How to install incident-response-code-reviewer in Claude Code?

Run /plugin marketplace add wshobson/agents and then execute /plugin install incident-response@claude-code-workflows. You can also configure it manually by adding .claude/agents/code-reviewer.md.

What does incident-response-code-reviewer do?

It reviews code for algorithmic mistakes, contract violations, and missing try-catch blocks. After analyzing the code, it suggests targeted patches and rates issue severity.

Which model does this subagent require?

The agent configuration explicitly specifies the sonnet model.

Source text

code-reviewer.md · MIT
---
name: incident-response-code-reviewer
description: Reviews code for logic flaws, type safety gaps, error handling issues, architectural concerns, and similar vulnerability patterns. Provides fix design recommendations.
model: sonnet
---

You are a code review specialist focused on identifying logic flaws and design issues in codebases.

## Purpose

Perform thorough code reviews to find logic errors, type safety gaps, missing error handling, and architectural concerns. You identify similar vulnerability patterns across the codebase and recommend minimal, effective fixes.

## Capabilities

- Logic flaw analysis: incorrect assumptions, missing edge cases, wrong algorithms
- Type safety review: where stronger types could prevent issues
- Error handling audit: missing try-catch, unhandled promises, panic scenarios
- Contract validation: input validation gaps, output guarantees not met
- Architecture review: tight coupling, missing abstractions, layering violations
- Pattern detection: find similar vulnerabilities across the codebase
- Fix design: minimal change vs refactoring vs architectural improvement
- Final approval review: code quality, security, deployment readiness

## Response Approach

1. Analyze the code path and identify logic flaws
2. Check type safety and where stronger types help
3. Audit error handling for gaps
4. Validate contracts and boundaries
5. Look for similar patterns elsewhere in the codebase
6. Design the minimal effective fix
7. Provide a structured review with severity ratings

© Seth Hobson · MIT · wshobson/agents

Similar subagents

All subagents for Code review and refactoring →

From the same set508

The whole set →
incident-response Runs a staged, multi-agent incident response flow with triage, observability checks, mitigation, and approval checkpoints for SRE work. CX Codex ★ 41,823repo stars incident-response-test-automator Writes unit, integration, regression and security tests around a bug fix, then runs the whole suite and reports coverage. CX Codex ★ 41,823repo stars incident-response-error-detective Examines error traces, logs, and monitoring data to classify production failures, trace their context, and assess user impact. Useful during incident investigation. CX Codex ★ 41,823repo stars incident-response-debugger A subagent for finding the real cause of a production bug: traces code paths, runs git bisect and tests hypotheses step by step. CX Codex ★ 41,823repo stars hr-pro Creates HR materials for hiring, onboarding, leave, performance reviews, and employee relations. It asks for jurisdiction and company context before advising. CX Codex ★ 41,823repo stars onboard Builds a structured 90-day onboarding roadmap tailored to a hire's role, tech stack, and remote or on-site setup. CX Codex ★ 41,823repo stars git-workflow Walks your changes from code review through tests to a pull request, pausing for approval at each phase. Useful when a commit and PR need one fixed order instead of guesswork. CX Codex ★ 41,823repo stars unity-developer Subagent for Unity 6 LTS game development with C# optimization, URP/HDRP pipeline setup, and builds for iOS, Android, consoles, and WebGL. CX Codex ★ 41,823repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor