Chapter 36. The Self-Improvement Platform: Memory, Dreaming, Evaluation and Evolution
In this section
- Chapter 36. The Self-Improvement Platform: Memory, Dreaming, Evaluation and EvolutionRebuild Chapter 31's learning loop on the open stack with any model, and add what Chapter 31 could not: learning that belongs to the company and survives a change of model, a learning budget, measured value, and a worker that learns when it needs no model at all.
- 36.1 Recall, and what changes on the open stackChapter 31's two loops and its promotion rule in one page, what Claude Managed Agents and OpenAI give you for learning, and what you build on the open stack.
- 36.2 Memory that survives a change of modelFive kinds of memory in Neon with pgvector, outside any model provider; experience records from every assignment; provenance on every memory; and a permission check before any model sees one.
- 36.3 Dreaming as a WorkflowReflection built as a Cloudflare Workflow on an economy model: it reads past evidence only, writes only candidates, holds no deployment credentials, treats transcripts as untrusted, and runs only when it is worth the cost.
- 36.4 Evaluation the author cannot gameAn evaluation runner built with Claude Code on Chapter 24's golden set: code checks before model judges, the author never judges alone, held-out cases hidden from dreaming, and a report that names the candidate, baseline, dataset and decision.
- 36.5 Evolution: from candidate to releaseThe states a candidate moves through, enforced in code; immutable release manifests; approval by a person; a canary; and a rollback that restores a version but never undoes a payment.
- 36.6 From reasoning to codeThe chapter's signature idea: dreaming notices a repeated activity and proposes it as a typed tool or a Workflow, Claude Code builds it, a person approves it like any code, and the worker gets cheaper as it gets better.
- 36.7 Learning on a budget, and who learns from whomLearning gets its own budget and stops when the budget, the evidence or the value runs out, but never refuses a safety fix. And the three circles of learning: one worker, one company, the profession.
- 36.8 Measuring improvementThe verified autonomy rate: the share of attempted assignments accepted with no discretionary correction, with failures kept in and mandatory approvals counted apart, read alongside accuracy, review minutes and the critical error rate.
- 36.9 When Claude Code gets it wrong, and the limitsThe four mistakes Claude Code makes most often when it builds a learning loop, the review checklist, and the honest limits of self-improvement: compounding is a hypothesis, improvement can plateau, and knowledge goes stale.
- Lab 36: A worker that learns, on any modelLab 36: rebuild Lab 31's learning loop with Claude Code on the open stack: memory in Neon, dreaming as a Workflow on an economy model, an evaluation gate that rejects one candidate and validates two, a canary and a rollback, one activity turned into a typed tool, the model switched with memory intact, and the autonomy rate measured before and after.
- Check yourselfRecall and practice for the whole chapter: the flashcards, and nine questions with outline answers.