Back to Vault
Harness Engineering
Tier 2

Harness Engineering: from CC to AI coding

View on GitHub Fetched 2026-07-02 5 related flows

Summary

A full book on harness engineering ('from Claude Code source code to AI coding') with Chinese and English editions in book/ and book-en/. The single best conceptual source in this corpus: chapters on prompt assembly, tool design, context management, verification loops, and sub-agent patterns.

Key Takeaways

  • The harness - not the model - is where coding-agent quality is won
  • Chapters map 1:1 to buildable subsystems: prompts, tools, context, verification
  • Verification loops are treated as non-negotiable, not optional polish

Reliability Note

Community-authored book derived from unofficial source analyses; concepts are sound but not Anthropic-endorsed.

Flows informed by this source

5
Flows category icon
Harness Engineering

Verification Loops: Never Trust an Unrun Edit

Wire verification into your agent so every edit is checked by machines - syntax, tests, behavior - before it counts as done.

01Verify at the write boundary
02Add the post-change verify step
03Gate completion on evidence

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-100 minutesIntermediate
Flows category icon
Agent Architecture

Error Recovery and Retry Policy for the Agent Loop

Design the retry, backoff, and give-up behavior that separates production agents from demos that loop forever.

01Build the error taxonomy
02Implement retries and corrective feedback
03Add the loop breaker

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-90 minutesIntermediate
Flows category icon
Harness Engineering

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.

01Profile spend by call class
02Build the routing table and wire it
03Add escalation on failure

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-120 minutesAdvanced
Flows category icon
Agent Architecture

From CLI Harness to Product

Grow a working agent loop into a product: sessions, config, resumability, and the packaging polish the successful terminal agents share.

01Implement persistent sessions
02Build true resume
03Layer the configuration system

+2 more steps to Done

Best forbuilders who have shipped a basic app before

5 steps90-150 minutesIntermediate
Flows category icon
Agent Architecture

Assemble a System Prompt Like the Pros

Structure your agent's system prompt the way leading harnesses do: layered sections, dynamic context, and enforceable rules.

01Decompose the current prompt
02Build the section-based assembler
03Pair rules with enforcement

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-90 minutesIntermediate

Made with Emergent