
The primitive
The Cognitive Unit
A foundational theory of the smallest unit of intelligence that you can name, measure, price, trust and reuse, at scale.
Every codebase full of language-model calls already has the shape of a cognitive unit, but without a name, you cannot measure, share, or improve it. This book names the cognitive unit and works out what follows: open and closed decisions, purity, trust, cost, and composition into agents.
Who should read it
Builders shipping model-backed features who need checkable claims about the smallest piece of thinking.
Download PDFContents
Preface
Why This Book Exists
Introduction
Thoughtware, Agents, and Cognitive Units
Part I · The Cognitive Unit
What a Name Buys
The Cognitive Unit
The Principles
Async Functions, and How a Cognitive Unit Fails Differently
Part II · Decisions
Open and Closed Decisions
How Decisions Close
Purity and the Five Levels
The Shapes of Cognitive Units
Part III · Trust
Why You Cannot Read a Cognitive Unit
Reliability Is Not a Number
Sharing, Substitution, and Libraries
Part IV · Economics
Cost Per Decision
Tuning by Wrapping
Paying for Reliability, and Why Unit Cost Falls
Part V · Composition
Where the Cognitive Unit Ends and the Agent Begins
Composing Agents from Cognitive Units
The Library Is What Unlocks Autonomy
Inside the Call
Finding the Weak Decision, and How Systems Fail
Adopting Cognitive Units in Existing Code
The Principles, Earned
Epilogue
If the Word Survives