PRODUCT.ENGINEER
ManifestoThe RolePlaybookLoops
All loops
BuildingManual

Harness Tightener

After agent run, review for drift from spec. Tighten constraints and re-run until output matches intent.

Compatible tools:Claude CodeCursor
Start the "Harness Tightener" loop.

- Goal: Agent output matches the spec exactly — no drift, no hallucinated features, no skipped requirements.
- Max iterations: 6
- Between iterations run: `diff <(cat SPEC.md | grep "^- \[") <(cat OUTPUT_CHECKLIST.md)`
- Exit when: every spec requirement is met in the output and no unspecified additions exist.

Steps:
1. Run the agent on the target task with current constraints
2. Compare agent output against the spec — check for: missing requirements, added features not in spec, deviations from conventions
3. For each drift instance, identify which constraint was missing or too vague
4. Add or tighten the constraint in the agent's instruction set (CLAUDE.md, system prompt, or task description)
5. Remove the drifted output and re-run the agent with tightened constraints
6. Repeat until agent output is spec-conformant

Self-pacing instructions: After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when exit condition passes or max iterations reached. Give a short status update each pass.

How it works

Harness Tightener

matchdriftRun agent on taskCompare to specOutput matches?Find missing ruleAdd constraintSpec-conformant
product.engineer

Owning the whole loop, from idea to impact.

Learn

  • Blog
  • Manifesto
  • Authors
  • RSS Feed

Tools

  • Loops
  • Playbook
  • Discovery
  • Cloud Maturity
  • 5 Whys

Opportunities

  • Jobs
  • Hot Jobs
  • Companies
  • The Role
© 2026 product.engineer
||