{
 "schema": "aiblocks-page/1",
 "id": "agency-engineering-code-reviewer",
 "type": "agent",
 "name": "Code reviewer agent",
 "summary": "Paste a code change and get a review of bugs, security, tests and clarity. Each point has the reason and a fix, ranked blocker, suggestion or nit.",
 "headline": "Code reviewer agent",
 "subhead": "Paste a code change and say what it is meant to do. It reviews for bugs, security holes, missing tests and unclear code. You get a ranked list where every point has the reason, the fix and what is done well.",
 "job": {
  "id": "test-and-fix-code",
  "name": "Test and fix code"
 },
 "level": "intermediate",
 "thinking": "high",
 "tested": true,
 "updated": "2026-11-03",
 "first_published": "2026-10-26",
 "inputs": [
  {
   "type": "code_change",
   "required": true,
   "label": "Code change",
   "what": "a change to the code, with what it fixes and how it was checked"
  },
  {
   "type": "question",
   "required": false,
   "label": "Question",
   "what": "the problem, decision or piece of work you want help with, and what a good outcome looks like"
  }
 ],
 "outputs": [
  {
   "type": "audit_report",
   "required": true,
   "label": "Audit report",
   "what": "findings with evidence, severity, missing inputs and next actions"
  }
 ],
 "you_give": [
  "The code change, pasted as a diff or as the changed files. Keep it to what one person could review in one sitting.",
  "What the change is meant to do, in a line or two",
  "The language and framework, such as Python with Django or TypeScript with React",
  "What to focus on, such as bugs, security, speed or tests (optional)",
  "Test results or the failing error message (optional)"
 ],
 "you_get": [
  "A summary with the main concerns and what is good",
  "Blockers, each with where it is, why it matters and a fix to try",
  "Suggestions and nits, ranked",
  "A list of missing tests for the paths that matter",
  "Questions where the intent is unclear, and next steps"
 ],
 "use_when": [
  "You wrote a change and want a second pair of eyes before a teammate sees it.",
  "You review a teammate's change and want help spotting what you might miss.",
  "You are a solo developer and have no one to review your code.",
  "Code came from a freelancer or a template and you want it checked before you use it."
 ],
 "skip_when": [
  "You want a security check only. Use the Code change security reviewer. For a full audit, use the Application security reviewer and a human reviewer.",
  "You want every new pull request reviewed on a schedule, with history and drafted comments. Use the Pull request review tracker.",
  "The code was written by an AI tool and you want it checked for typical AI mistakes. Use the AI-written code reviewer."
 ],
 "output_sample": {
  "input": [
   "The code change, pasted as a diff or changed files",
   "What the change is meant to do",
   "The language and framework",
   "What to focus on (optional)"
  ],
  "prerequisites": [
   "An AI that can read pasted text or files",
   "A way to run your own tests afterwards"
  ],
  "output": [
   {
    "name": "Summary",
    "contains": "The overall impression, the main concerns and what is done well."
   },
   {
    "name": "Blockers",
    "contains": "Points to fix before merging, each with where, why it matters, a fix and a confidence level."
   },
   {
    "name": "Suggestions",
    "contains": "Points that should be fixed, with the reason and a fix to try."
   },
   {
    "name": "Nits",
    "contains": "Optional notes on naming, style and small clean-ups."
   },
   {
    "name": "Missing tests",
    "contains": "The behavior that matters and has no test in what you pasted."
   },
   {
    "name": "Questions",
    "contains": "Places where the intent is unclear, asked instead of assumed."
   },
   {
    "name": "Not reviewed",
    "contains": "The code and settings you were not shown, and how that limits the review."
   },
   {
    "name": "Next steps",
    "contains": "The order to fix things in, and what to check after."
   }
  ]
 },
 "output_shape": "SUMMARY\n  Overall <one or two lines> | Main concerns <list> | Done well <list>\n\nBLOCKERS (fix before merging)\n  <where> | <problem> | <why it matters> | <fix to try> | <confidence: high, medium or low>\n\nSUGGESTIONS (should fix)\n  <where> | <problem> | <why> | <fix to try>\n\nNITS (optional)\n  <where> | <note>\n\nMISSING TESTS\n  <behavior that matters> | <what to test>\n\nQUESTIONS\n  <where> | <what is unclear about the intent>\n\nNOT REVIEWED\n  <what you were not shown> | <why it limits the review>\n\nNEXT STEPS\n  <step in order>",
 "how_to_use": [
  "Download the pack from this page and add it to your AI as a skill. If you cannot, paste SKILL.md into a new chat, then paste references/source-agent.md.",
  "Paste the code change. A diff is best. Add the file names, and line numbers if you have them.",
  "Say what the change should do, the language and framework, and what to focus on. Remove passwords, keys and customer data first. No code running or web access is needed.",
  "Type \"Review this change. Rank every point. Say where it is and why. Mark anything you cannot judge because you did not see the code.\"",
  "Read the blockers first. Check each one against your code. Ask for a deeper look at any you do not follow.",
  "Fix the blockers, then run your own tests. The AI has not run the code, so a review is not proof it works."
 ],
 "checks": [
  "The result addresses your actual task and cites the evidence used.",
  "Examples, role-play experience and targets are kept separate from verified results.",
  "Claims of tests, memory, tool access or completed actions match what actually happened."
 ],
 "next": [
  {
   "name": "Bug and security code reviewer",
   "url": "https://useaiblocks.com/skills/bug-and-security-code-reviewer",
   "why": "Bug and security code reviewer"
  }
 ],
 "source": {
  "by": "Michael Sitarzewski and Agency Agents contributors",
  "repo": "msitarzewski/agency-agents",
  "url": "https://github.com/msitarzewski/agency-agents/blob/b37b5bb33b78f2c1d6567d98e25ca818e3259219/engineering/engineering-code-reviewer.md",
  "licence": "MIT",
  "original_name": "Code Reviewer",
  "commit": "b37b5bb33b78f2c1d6567d98e25ca818e3259219"
 },
 "credits": [
  {
   "title": "Code Reviewer",
   "by": "Michael Sitarzewski and Agency Agents contributors",
   "url": "https://github.com/msitarzewski/agency-agents/blob/b37b5bb33b78f2c1d6567d98e25ca818e3259219/engineering/engineering-code-reviewer.md",
   "used": "Original agent profile, preserved in references/source-agent.md; AI Blocks adds setup and review instructions."
  }
 ],
 "files": [
  "LICENSE",
  "references/source-agent.md",
  "SETUP.md",
  "source.json"
 ],
 "links": {
  "page": "https://useaiblocks.com/agents/agency-engineering-code-reviewer",
  "markdown": "https://useaiblocks.com/agents/agency-engineering-code-reviewer.md",
  "json": "https://useaiblocks.com/agents/agency-engineering-code-reviewer.json",
  "instructions": "https://useaiblocks.com/skills/agency-engineering-code-reviewer/SKILL.md",
  "download": "https://useaiblocks.com/skills/agency-engineering-code-reviewer.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/agency-engineering-code-reviewer",
  "api_document": "https://useaiblocks.com/api/v1/documents/agent/agency-engineering-code-reviewer",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
