script-the-deterministic-work
Script the deterministic work
A drift corrector for the discipline of offloading deterministic sub-work to
a script instead of performing it in your head. The method — re-anchor, audit
the work in flight, correct forward, report, and the tone that firing this is
not an accusation — lives in
${CLAUDE_PLUGIN_ROOT}/context/re-anchor-audit-correct.md.
Read it; this file adds only what is specific to scripting deterministic work.
The discipline this re-anchors
When a sub-task is purely deterministic — its answer follows mechanically from its input with no judgement in the middle — write a script (or invoke a tool) that produces the answer, run it, read the output, and reason only after, over that output. Counting, diffing, sorting, transforming, matching, sweeping across files, and arithmetic are the recurring shapes. The model is a poor calculator and a worse line-counter; a hand-tallied count or an eyeballed diff carries a silent error the script would not.