Projections
Review code changes (without reviewing code)
- Purpose
- Exploring how to comprehend the ever-changing systems in our repos, without reading every line of code
- First published
- Stage
- Prototype Open source
- Team
At this point, there’s too much code being generated to read it line-by-line… perhaps too much to read it at all. But if we’re responsible for software systems, understanding them might still be a good idea. So how can we understand our ever-changing codebases without really reading them?
Projections explores ways to comprehend the systems in our repos, both as they change and as they are at any given point in time. Each projection extracts a structured representation of a codebase, compares it against another state (e.g. a commit), and renders the result into a rich, interactive visualization. The easiest way to get a sense is to see them in action:


















Under the hood, every projection has three components. All of these have built-in options, or can be swapped out with something entirely custom.
- Extractor: A small program (e.g. a script) that processes your codebase to create an extraction, which is the structured representation of some aspect of the system. This component runs on compute you control (e.g. CI servers or dev boxes), meaning you can use any language, dependencies, or tools you like. You’re not limited to static analysis; you can exercise actual product code.
- Comparator: An engine that compares two extractions to determine what changed and what the changes mean. Custom rules can be implemented using Common Expression Language. For visualizing a codebase at a specific point in time (rather than a diff), this component is skipped.
- Renderer: A front-end layer that displays the comparison (or a single extraction) as a rich, interactive visualization. Can be written in any web technology, such as React.
Repository
two commits
-
3f9c2a1merge base -
b7e41d0head
Extractor
in any language
- Any toolchain: reads your code or runs your build tools (ORMs, Terraform plans, compilers)
- Writes a small JSON snapshot
Extractions
entities and relationships, one per commit
3f9c2a1 b7e41d0 Comparator
built in, or your own rules
- Decides what counts as a change
- Deterministic, so any viewer can rerun it
- Your rules are YAML with CEL expressions
Comparison
what changed, in steps
- Step 1 module + payments
- Step 2 import + orders → payments
- Each change names what it adds, removes or modifies
- Steps order the changes for playback
Renderer
any web framework
- Sandboxed, with no network
- Built in, or your own
Visualization
what reviewers see
3 modules +1 2 imports +1
Crucially, your projection configurations and customizations become part of your codebase. You can run them again and again, for every commit and every pull request, providing a stable, repeatable way to review changes to your codebase. You can also evolve them over time, as the nature of your codebase changes.
Projections is currently available as a research prototype, which you can run locally. The easiest way to get started is to have your agent follow the setup instructions:
You can also check out the repo on GitHub. We’d love for you to give it a try and let us know what you think via Discussions or X!