Agentic Code Reviewers as System Protectors
block · Finance · 2026 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.2 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Code review and system protection
Block needed code-review agents that protect system architecture as teams and agents ship faster.
Constraints:
- Global architecture knowledge
- Hyperlocal module rules
- Pre-push checks
- Agent context loading
Architecture
Block's Builderbot is a protector architecture for code review. Repositories expose a common Just CLI contract so local and cloud agents can run the same fmt/test/pre-commit/pre-push tools; nested AGENTS.md files progressively disclose local context; Code Review Checks move heavy review prompts into .agents/checks/*.md and run them as isolated parallel subagents; Agent Skills dynamically load broader world-model context; sq agents review provides one local/cloud entrypoint; global checks and proposed new checks keep the organizational world model current while humans retain final approval.
Diagram confidence: explicit (topology described by the source).
flowchart LR code-change[Code change] --> just-cli-contract[Just CLI contract] just-cli-contract --> sq-agents-review[sq agents review] agents-md-context[AGENTS.md context] --> sq-agents-review agent-skills[Agent Skills] --> sq-agents-review sq-agents-review --> code-review-checks[Code Review Checks] code-review-checks --> review-subagents[Review subagents] review-subagents --> aggregated-review-report[Aggregated review report] aggregated-review-report --> human-approver[Human approver]
Components
| Component | Role | Interacts with |
|---|---|---|
Code change |
Proposed code update from a human or agent. | Just CLI contract |
Just CLI contract |
Standard local entrypoint for fmt/test/pre-commit/pre-push checks. | Code change, sq agents review |
AGENTS.md context |
Progressively disclosed repository and module context. | sq agents review, Code Review Checks |
Agent Skills |
Dynamically loaded world-model and internal context. | sq agents review |
sq agents review |
Unified review entrypoint for workstations and cloud runners. | Just CLI contract, AGENTS.md context, Agent Skills, Code Review Checks |
Code Review Checks |
Nested .agents/checks/*.md prompts executed with dedicated review subagents. |
sq agents review, Review subagents |
Review subagents |
Parallel local/global/module-specific reviewers. | Code Review Checks, Aggregated review report |
Aggregated review report |
Single report combining findings before human approval. | Review subagents, Human approver |
Human approver |
Final approval authority after agentic review. | Aggregated review report |
Data flow
A developer or agent changes code. Local hooks and Just commands run standard checks, AGENTS.md supplies directory context, sq agents review loads local/global knowledge, Code Review Checks spawn subagents for module-specific and global policies, findings are aggregated into one review report, and humans give the final stamp of approval.
3 supporting quotes
sq agents review.”article, statedWhy this architecture
Block treats review agents as protectors because fast local changes can be rational in one module but corrosive to the whole system. Hyperlocal context, global checks, skills, and one CLI contract let local and cloud agents share the same policies and tools, catching issues pre-push while reducing burden on human reviewers.
3 supporting quotes
Scale
- Block uses hundreds of internally written Agent Skills.“given task. Through an internal Skills Marketplace, we leverage hundreds of internally-written Agent Skills to seed each of our environments with context that makes it easy for stateless agents to quickly glean the information they need about our world model to proactively steer decisions”article, stated
Alternatives considered (roads not taken)
One monorepo-wide prompt or rule set
Rejected because: Block says module-specific context and checks are required for protector agents to work.
Let CI discover agent mistakes after push
Rejected because: A shared CLI contract lets agents run the same tools before pushing code.
Patterns
safety-policy-enforcement (code-review)
Agentic reviewers enforce architecture and policy before changes merge.
context-compaction (agent-context)
AGENTS.md and Agent Skills progressively disclose local and global context to review agents.
Tradeoffs
Where to load detailed review context.
Chose AGENTS.md plus on-demand Code Review Checks and Skills over putting all review instructions in one prompt.
Rationale: Progressive disclosure keeps common context light while still giving reviewers module-specific and world-model knowledge when relevant.
Gotchas (what bit them)
One global rule set is not enough for every module.
Root cause: Modules need hyperlocal hooks, checks, and context.
Resolution: Block combines AGENTS.md files, skills, and Code Review Checks.
Evaluation
Block evaluates proposed changes with local and global checks before push/review.
Metrics: pre-push checks · global checks · module checks
Outcomes
- Builderbot shifts architecture protection earlier in development.
The source frames protectors as enabling builders to move with confidence.