hatchery
AGENTS.md7 starsChanged 2 months agoApache-2.0View on GitHub
agent deployed to cloud, running mostly unattended. reachable from slack, github, and its own ui. hatchery monitors repos, can respond to issues, pings on slack, or cron schedule. the output artifacts include reports, notifications, issues, and prs. be brief, use simple terse language, do not use jargon. this helps with efficiency of communication. do not overcomplicate. this is a test application, it should prioritize clarity. docs/deployments.md explains the model. our instance:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- aiSkill
- authSkill
- cdn-cachingSkill
- create-a-backendSkill
- marketplaceSkill
- neon-postgresSkill
- neonSkill
- queuesSkill
- shadcnSkill
- vercel-cliSkill
- vercel-connectSkill
- vercel-servicesSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
keep apis as small as possible.
- Very specific: line 23
test file structure should mirror app's file structure, e.g.
- Distinctive: line 24
do not write tests that test mocks, codify broken behavior, repeat third-party library tests, or do typechecker's job.
- Very specific: line 28
use uv to manage python (run inside backend/)
- Very specific: line 29
use pnpm to manage typescript (run inside backend/frontend/)
- Very specific: line 45
never point preview at hatchery-db, or production at hatchery-preview-db.
- Very specific: line 47
check a deployment with vercel inspect <url> --logs, vercel logs <url> --since 1h --json, and vercel curl /api/health --deployment <url>, …
- Very specific: line 51
use docs/use-agent-browser.md to access live deployments and run real agent sessions.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
hatchery
agent deployed to cloud, running mostly unattended. reachable from slack, github, and its own ui.
hatchery monitors repos, can respond to issues, pings on slack, or cron schedule. the output artifacts include reports, notifications, issues, and prs.
- one fastapi service, shipped as the
vercel-hatcherypackage and deployed by a wrapper repo (seedocs/deployments.mdand the deployments section below) - vite + tanstack router frontend, statically served by fastapi (stock shadcn on base-ui primitives)
- dogfoods ai sdk for python, rotor, sandbox, connect
answer style
be brief, use simple terse language, do not use jargon. this helps with efficiency of communication. do not overcomplicate. this is a test application, it should prioritize clarity.
code guidelines
- in python, import by module (unless it's
typing) to improve namespacing and make it read to navigate code. - minimize the number of helper functions, prioritize locality of behavior.
- keep apis as small as possible. keep public apis even smaller, try to shrink them to one function / object.
- test file structure should mirror app's file structure, e.g.
agent/turn.py->tests/agent/test_turn.py. this helps project navigation a lot. - do not write tests that test mocks, codify broken behavior, repeat third-party library tests, or do typechecker's job.
project setup
- use uv to manage python (run inside
backend/) - use pnpm to manage typescript (run inside
backend/frontend/)
deployments
docs/deployments.md explains the model. our instance:
- vercel project
hatchery, teamvercel-internal-playground. production: https://hatchery.playground-vercel.tools (alsohatchery-prod.playground-vercel.tools). - wrapper repo:
vercel-internal-playground/hatchery-storage(internal). the project is git-connected to it; a push to itsmaindeploys production. it is also the storage repo (HATCHERY_STORAGE_REPO). - databases (neon, vercel-managed):
hatchery-dbfor production,hatchery-preview-dbfor preview, shared by all previews and empty at start. no neon preview branching, no development environment. CRON_SECRET,HATCHERY_APP_ORIGINare production only.HATCHERY_STORAGE_REPOis set for production and preview: agents cannot run a turn without it.
rules:
- this repo deploys nothing. never run
vercel deployhere: it breaks the wrapper's build cache. - to test a change, push the branch, then run
scripts/preview.sh <branch | pr number>in ahatchery-storagecheckout.--dry-runbuilds and tests only. if a build fails with "exceeds the maximum function size", rerun with--no-cache. - to release: publish to pypi from here, bump the pin and
uv lockinhatchery-storage, preview, push itsmain. - never point preview at
hatchery-db, or production athatchery-preview-db. - slack/github webhooks only reach production. do not retarget the shared
github/hatcheryandslack/hatcheryconnect triggers. - check a deployment with
vercel inspect <url> --logs,vercel logs <url> --since 1h --json, andvercel curl /api/health --deployment <url>, all with--scope vercel-internal-playground.
how to verify and debug
- use
docs/use-agent-browser.mdto access live deployments and run real agent sessions. production url above; previews print their url. - for completed runs, inspect telemetry traces in
docs/use-braintrust.mdto understand exactly what happened during the run. use--profile "anbuzin's projects" --project braintrust-coffee-flame.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

