Hard Shell, Soft Center: How to Specify Work for Coding Agents
Across roughly 750 benchmark cells and 12 multi-step wave trials, pinning external boundary contracts improved delivery while prescribing internal coding choreography consistently regressed results by 5 to 12 percentage points.
When teams write specifications for coding agents, they often invert the precision required. They write paragraphs prescribing private helpers, test-fixture layouts, and inner edit-and-test loops—while leaving exact error code strings, field nullability, or boundary inequalities implicit.
Across roughly 750 Seatbelt-verified spec-gym cells and 12 multi-step wave trials, our data points to a clear principle: Hard Shell, Soft Center. Specifications should be ruthlessly exact at external and cross-step boundaries, and deliberately hands-off about internal implementation choreography.
What the Data Shows
In our trials, every measurable delivery gain came from sharper external boundary contracts or isolated wave concurrency. Conversely, every lever that prescribed how the model should work internally regressed delivery by 5 to 12 percentage points.
The clearest evidence came from five stuck benchmark scenarios (next-02, secret-store, code-01, guard-04, and init-01). Across those scenarios, fast DeepSeek, gpt-5.6-sol:high, and frontier gpt-6.2-sol:high all scored 0%. Frontier gpt-6.2-sol:high went 0/10 not from weak coding ability, but from unstated boundary contracts: exact refusal strings ('storage-unavailable' versus 'unsafe-secret-storage'), whether an absent field is null, 0, or omitted, and strict versus inclusive inequalities (> versus >=). Adding two missing contract field names to code-01 unlocked passing deliveries immediately.
No amount of model intelligence can reliably guess an arbitrary string constant that a specification omitted.
Why Prescribing the Center Backfires
External research—including studies on the Curse of Instructions, Context Rot, and ETH Zurich's evaluation of AGENTS.md files—shows that simultaneous instruction compliance decays exponentially with instruction count, while bloated context degrades accuracy and raises cost by over 20 percent.
Every sentence dictating private helper names or test pacing competes directly for attention with the external contract. In our measurements:
- Inner-loop test filtering tripled filtered test runs (17 to 52), increased slow-gate wall time by 203 percent, and cut delivery by 12.0 percentage points.
- Prescriptive UI implementation prose tripled fix attempts (0.40 to 1.20 per cell) and reduced acceptance by 5.0 percentage points.
- Prescribing internal test-fixture structure caused acceptance drops on
code-01(78% to 33%) andsecret-store(90% to 44%), whereas pure boundary checklists lifted combined Dev and Holdout delivery by 11.9 percentage points.
Parallelism and Model Economics
Hard Shells also unlock concurrency and better model economics. Disjoint file ownership and explicit seams reduced wave-parallel makespan by 40.5 percent (61.2 minutes to 36.4 minutes) with zero merge conflicts. Paired with fresh-context per-step review—which caught 92.9 percent of defects on fine diffs versus 33.3 percent on coarse diffs—reviewers evaluate the diff against the boundary contract rather than policing internal style.
With explicit boundaries, fast DeepSeek cleared well-specified backend and state steps at 85 to 100 percent delivery for $0.02 to $0.04 per step (20 to 30 times cheaper than frontier models). Routing difficulty: hard steps upfront to a frontier model actually lowered Dev delivery (38.9% to 33.3%). Investing frontier reasoning in authoring crisp Hard Shells—and reactive repair only when review flags a defect—delivers higher leverage.
Where Not to Soften
A soft center does not mean unconstrained code. Security and trust boundaries—path containment, symlink refusal, atomic 0600/0700 writes, and secret redaction—are observable invariants that belong in the Hard Shell, ideally enforced by deterministic tests rather than prose.
Pin every external contract a model cannot guess, and delete every recipe for how to write the code inside.
Join the PathGuided Closed Beta
Onboard your repositories with local-to-cloud spec execution, split-tier model routing, and commit-bound Work Tours.