Hoard things you know how to do
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Willison argues that accumulating working code examples and feeding them to coding agents as prompts is a practical, repeatable way to build new tools quickly.
Software developer Simon Willison advises engineers to hoard examples of things they have figured out how to do, saved as blog posts, notes and code repositories. When he wanted a tool that reads scanned PDFs in a browser, he gave a chatbot two of his old code snippets, one turning PDF pages into images, one reading text from images, and it combined them into a working tool. He says anyone building software can collect and reuse knowledge this way.
Willison's advice for teams adopting coding agents: build an institutional hoard of proven, working code examples, because agents perform best when asked to combine two or more examples that already work. His own tools.simonwillison.net collection began with an in-browser OCR tool built by prompting Claude 3 Opus with snippets of the Tesseract.js and PDF.js libraries. The cost is curation discipline, not tooling; the gain is faster prototyping without deep expertise in each library.
Willison describes an agentic prompting pattern: supply a coding agent with two or more verified working code samples and instruct it to combine them. His OCR tool example composes Tesseract.js (a WebAssembly build of Tesseract) for image text extraction with Mozilla's PDF.js for rendering PDF pages to images, prompted against Claude 3 Opus. He stores examples in his blog, TIL site, 1,000+ GitHub repos, an HTML tools collection, and the simonw/research repo of agent-generated reports.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Tesseract.js PDF.js Claude 3 Opus tools.simonwillison.net simonw/research
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.