Rule-File Code Review Gates
Run deterministic policy checks on everything your agent produces: rule files reviewing plans, diffs, and evidence before anything merges.
The Route
0/4 verifiedWrite the initial rule set
Codify the review comments you keep repeating.
Build the evaluation engine
Fast, deterministic, and readable verdicts.
Wire the gates into the loop
Catch at plan time when cheap; enforce at diff time when final.
Institute the incident-to-rule ritual
The gate compounds when every escape becomes a rule.
Context Pack
Paste this first. It briefs the AI on requirements, constraints, and the Definition of Done before your first build prompt.
Paste this into your AI builder first. It teaches the AI what you want before you give it the build prompt.
Related routes
More Harness Engineering flows that share ground with this one.
Pair Every Prompt Rule with a Code Backstop
Prompts guide, code enforces: inventory your agent's soft rules, back each critical one with an independent deterministic check, and define the allow/ask/deny escalation.
+1 more steps to Done
Best forproduction-grade builds with strict verification
Assemble Tool Prompts Dynamically per Environment
Stop shipping one static mega-prompt: generate tool prompts from environment conditions, inject blocks only when features are on, and dedupe config to save tokens.
+1 more steps to Done
Best forproduction-grade builds with strict verification
Cost Control: Model Routing and Effort Tiers
Route work to the cheapest model that can do it and match reasoning effort to task difficulty - with quality guardrails.
+1 more steps to Done
Best forproduction-grade builds with strict verification