wiki / concepts / hoard-and-recombine
Hoard and Recombine
Machine ingest — raw context
loading…
~… tokensappend .md to any wiki URL for this view
Hoard and Recombine
A high-leverage prompting and knowledge-management pattern: hoard working code solutions, TILs, and minimal prototypes, then prompt coding agents to synthesize new systems by combining those existing examples.
save(concept) -> /concepts/<slug>.md + raw provenance
recombine(task) -> grep hoard by task keywords -> link relevant pages
The Mechanism
- Hoard running proofs: Knowing something is theoretically possible is weak; possessing a tested snippet (in a repo, TIL, or tool catalog) provides ground truth.
- Recombine via prompts: Feed two or more working snippets into an agent (e.g. PDF.js canvas renderer + Tesseract.js WebAssembly worker) and prompt the agent to combine them into a single coherent interface or tool.
- Reference codebases in
/tmp: Direct agents to clone reference repositories into/tmpto inspect architecture, schemas, and API conventions without polluting the active repository commit tree.
Why it Works
Agents excel at bridging disparate known patterns. Providing working reference code eliminates hallucinated APIs, establishes clear types and constraints, and produces working artifacts with minimal back-and-forth steering.
Failure Modes
| Symptom | Root cause | Fix |
|---|---|---|
| Hoard becomes a junk drawer | Saving without curation criteria | Only save what you know how to reuse; prune what you have not touched in months |
| Recombination never happens | Artifacts saved in inaccessible formats | Save as structured, greppable markdown with provenance |
| Duplicate knowledge drifts | Same insight saved in multiple forms | One canonical page per concept; link variants to it |
Rule of Thumb
A hoard earns its keep at recombination time: if the last three tasks pulled nothing from it, the hoard is a liability, not an asset.
Related
Evidence — verified primary sources
| simon-willison-hoard-things-you-know-how-to-do-2026 | https://simonwillison.net/guides/agentic-engineering-patterns/hoard-things-you-know-how-to-do/ | ingested 2026-08-22 sha256:485b18d29f13… |
| simon-willison-adding-a-new-content-type-2026 | https://simonwillison.net/guides/agentic-engineering-patterns/adding-a-new-content-type/ | ingested 2026-08-22 sha256:24736c484a27… |
Graph context