{
  "version": 1,
  "canonical": "https://xaede.net/work/ai-code-review",
  "title": "AI Code Review",
  "description": "A command-line tool that assembles code changes, structural context and review instructions into packets for coding agents.",
  "language": "en",
  "manifest": "https://xaede.net/representations/index.json",
  "contentHtml": "<section class=\"detail-intro\"><nav class=\"page-breadcrumb\" aria-label=\"Breadcrumb\"><ol><li><a href=\"/\">Home</a></li><li><a href=\"/work\">Work</a></li><li><span aria-current=\"page\">AI Code Review</span></li></ol></nav><span class=\"eyebrow\">Open-source tool / Python</span><h1>AI Code Review</h1><p class=\"detail-deck\">Give the reviewer the system around the diff</p><p class=\"intro-copy\">A command-line tool that assembles code changes, structural context and review instructions into packets for coding agents.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/ai-code-review\" rel=\"noopener noreferrer\">View the source <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/ai-code-review/blob/main/README.md\" rel=\"noopener noreferrer\">Project documentation <span aria-hidden=\"true\">↗</span></a></div></section><figure class=\"project-image wide-image\" data-project-visual><a href=\"/media/visuals/projects--ai-code-review.webp\" class=\"visual-open\" aria-label=\"Open full-size visual: AI Code Review\"><img src=\"/media/visuals/projects--ai-code-review.webp\" width=\"1024\" height=\"1024\" alt=\"AI Code Review — project logo\"  decoding=\"async\"></a><figcaption>Original AI Code Review project mark from the public repository. · <a href=\"/media/visuals/projects--ai-code-review.webp\">View full size ↗</a> · <a href=\"https://raw.githubusercontent.com/josh-english-2k18/ai-code-review/main/logo.png\" rel=\"noopener noreferrer\">Source</a></figcaption></figure><section class=\"section detail-grid\"><aside><span class=\"eyebrow\">AREAS OF EXPLORATION</span><div class=\"tags\"><span>Developer tools</span><span>Agent workflows</span></div><p class=\"small\">MIT · Public repository</p><p class=\"small\">GitHub record: February 3, 2026</p></aside><div class=\"prose\"><section class=\"project-chapter\"><h2>A review needs more than the changed lines</h2><p>AI Code Review prepares a code change for a reviewer that needs the surrounding system as well as the diff. Its review packets combine the changed code, structural context, line references and instructions, so a coding agent has a more useful starting point for examining correctness, security, design, performance and maintainability.</p></section><section class=\"project-chapter\"><h2>Compressing context without discarding structure</h2><p>For Python, the tool extracts class and function signatures and docstrings through the AST. JavaScript and TypeScript use structural heuristics, with optional Tree-sitter parsing. Sensitive paths such as authentication and infrastructure are flagged, and the packet builder applies redaction and exclusions before producing a prompt.</p><p>Large changes can be split into bounded prompt chunks. The command-line workflows cover working-tree changes, branch comparisons, untracked files, repository structure analysis, raw context packets and a prompt for synthesizing several agents’ reviews.</p></section><section class=\"project-chapter\"><h2>A tool for the review process</h2><p>The output can be written to a file or piped into an agent CLI. A read-only mode avoids writing guide or cache files during inspection. The tool improves how review context is assembled; it does not decide whether a model’s conclusions are correct, or replace a human review of what will be shared.</p></section><h2>Implementation at a glance</h2><ul><li>Extracts Python signatures/docstrings and heuristic JS/TS structure.</li><li>Adds risk-path context, secret redaction and bounded prompt chunks.</li><li>Supports commit and working-tree review workflows for different agents.</li></ul><h2>Project status</h2><p>Context assembly and redaction assist the review workflow. They are not a security audit or a guarantee that model-generated feedback is complete.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/ai-code-review\" rel=\"noopener noreferrer\">Source on GitHub <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/ai-code-review/blob/main/README.md\" rel=\"noopener noreferrer\">Further technical detail <span aria-hidden=\"true\">↗</span></a></div></div></section>",
  "structuredData": {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Person",
        "@id": "https://xaede.net/#josh-english",
        "name": "Josh English",
        "url": "https://xaede.net/about",
        "sameAs": [
          "https://github.com/josh-english-2k18",
          "https://medium.com/@jengas",
          "https://www.linkedin.com/in/joshua-s-english",
          "https://x.com/JoshSeriesAI"
        ],
        "jobTitle": "VP of Engineering",
        "description": "Josh English is VP of Engineering at Chronicle Media and was previously CTO of Series Entertainment. His career spans more than twenty-five years of distributed systems, game technology and engineering leadership. At Google he worked as a lead engineer on large-scale services and applied ML; at Big Run Studios he led multidisciplinary technology teams across seven time zones and four countries. At Series he directed engineering, QA, DevOps and infrastructure supporting live commercial games and AI-enabled production. He also builds personal games and developer tools to investigate how emerging capabilities work in practice, and writes about engineering judgment, organisation design and product economics.",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/about#webpage"
        }
      },
      {
        "@type": "WebSite",
        "@id": "https://xaede.net/#website",
        "url": "https://xaede.net/",
        "name": "Xaede",
        "alternateName": [
          "Xaede.net",
          "Josh English — Xaede"
        ],
        "inLanguage": "en",
        "publisher": {
          "@id": "https://xaede.net/#josh-english"
        }
      },
      {
        "@type": "WebPage",
        "@id": "https://xaede.net/work/ai-code-review#webpage",
        "url": "https://xaede.net/work/ai-code-review",
        "name": "AI Code Review",
        "description": "A command-line tool that assembles code changes, structural context and review instructions into packets for coding agents.",
        "inLanguage": "en",
        "isPartOf": {
          "@id": "https://xaede.net/#website"
        },
        "about": {
          "@id": "https://xaede.net/#josh-english"
        },
        "mainEntity": {
          "@id": "https://xaede.net/work/ai-code-review#project"
        },
        "breadcrumb": {
          "@id": "https://xaede.net/work/ai-code-review#breadcrumbs"
        },
        "primaryImageOfPage": {
          "@id": "https://xaede.net/media/visuals/projects--ai-code-review.webp#image"
        }
      },
      {
        "@type": "SoftwareSourceCode",
        "@id": "https://xaede.net/work/ai-code-review#project",
        "name": "AI Code Review",
        "description": "A command-line tool that assembles code changes, structural context and review instructions into packets for coding agents.",
        "author": {
          "@id": "https://xaede.net/#josh-english"
        },
        "codeRepository": "https://github.com/josh-english-2k18/ai-code-review",
        "programmingLanguage": [
          "Python"
        ],
        "creativeWorkStatus": "Open-source tool",
        "url": "https://xaede.net/work/ai-code-review",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/work/ai-code-review#webpage"
        },
        "image": {
          "@id": "https://xaede.net/media/visuals/projects--ai-code-review.webp#image"
        }
      },
      {
        "@type": "BreadcrumbList",
        "@id": "https://xaede.net/work/ai-code-review#breadcrumbs",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://xaede.net/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Work",
            "item": "https://xaede.net/work"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "AI Code Review",
            "item": "https://xaede.net/work/ai-code-review"
          }
        ]
      },
      {
        "@type": "ImageObject",
        "@id": "https://xaede.net/media/visuals/projects--ai-code-review.webp#image",
        "url": "https://xaede.net/media/visuals/projects--ai-code-review.webp",
        "contentUrl": "https://xaede.net/media/visuals/projects--ai-code-review.webp",
        "width": 1024,
        "height": 1024,
        "caption": "Original AI Code Review project mark from the public repository."
      }
    ]
  }
}
