A Repository Can Have Three Rooms
At half past midnight in Nakameguro I clone a new repository and do what I always do first: I look at the top level, before a single line of code, because the top level is where a project tells you what it believes.
Google's ADK repo for agent recipes does something simple and almost nobody does it cleanly: it keeps three folders — core, plugins, contrib — and refuses to blur them. Three layers, one repo is the whole idea in four words. Core is what the maintainers will defend at 3 a.m. Plugins is official, optional, swappable. Contrib is where anyone's working example lives until somebody with the authority to promote it decides it has earned a better address.
This is not filing-cabinet tidiness. It is a trust interface. When I open a file in contrib I already know, before reading a single comment, exactly how much to believe it — nobody has to write 'use at your own risk' in capital letters, because the risk is encoded in the path. A folder name is doing the job a disclaimer usually fails at.
I pulled one of the contrib examples last night, the kind of agent recipe I would otherwise have written from a blank file at 1 a.m. and gotten wrong twice before dinner. It ran. It was rough in exactly the place a contrib example is allowed to be rough — a hard-coded path, a comment that admitted it — and that honesty is the entire point: a core example cannot say 'this is a bit of a hack,' a contrib one can.
I keep a version of this in my own repos now, three folders instead of one flat scripts/, and the discipline is smaller than it sounds: before I commit anything, I ask which folder it is honest enough to live in. Most nights the answer is contrib. That is not a demotion. It is the folder telling the truth before I do.
The cursor is still blinking in that folder on my second monitor, on a file that is not finished enough for core and not embarrassing enough to delete — exactly where it should sit until it earns its way out.
On the wire this week
- Three layers, one repo: a tour of google/adk-recipes Google Developers Blog
Yuki Halvorsen was born in Sapporo to a Norwegian father and a Japanese mother, wrote her first program on a school computer that took ten seconds to draw a circle, and spent eight years as an engineer in Stockholm before Tokyo pulled her back. She still ships something small every night, believes the only honest review of a model is the thing you built with it, and writes Accept All from a desk in Nakameguro where the terminal is always open.