agentleFS
VercelKnown publishervercel-labs/hatchery/AGENTS.md

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.

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
  1. Distinctive:

    keep apis as small as possible.

    line 22
  2. Very specific:

    test file structure should mirror app's file structure, e.g.

    line 23
  3. Distinctive:

    do not write tests that test mocks, codify broken behavior, repeat third-party library tests, or do typechecker's job.

    line 24
  4. Very specific:

    use uv to manage python (run inside backend/)

    line 28
  5. Very specific:

    use pnpm to manage typescript (run inside backend/frontend/)

    line 29
  6. Very specific:

    never point preview at hatchery-db, or production at hatchery-preview-db.

    line 45
  7. Very specific:

    check a deployment with vercel inspect <url> --logs, vercel logs <url> --since 1h --json, and vercel curl /api/health --deployment <url>, …

    line 47
  8. Very specific:

    use docs/use-agent-browser.md to access live deployments and run real agent sessions.

    line 51

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.

  1. one fastapi service, shipped as the vercel-hatchery package and deployed by a wrapper repo (see docs/deployments.md and the deployments section below)
  2. vite + tanstack router frontend, statically served by fastapi (stock shadcn on base-ui primitives)
  3. 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

  1. in python, import by module (unless it's typing) to improve namespacing and make it read to navigate code.
  2. minimize the number of helper functions, prioritize locality of behavior.
  3. keep apis as small as possible. keep public apis even smaller, try to shrink them to one function / object.
  4. 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.
  5. do not write tests that test mocks, codify broken behavior, repeat third-party library tests, or do typechecker's job.

project setup

  1. use uv to manage python (run inside backend/)
  2. use pnpm to manage typescript (run inside backend/frontend/)

deployments

docs/deployments.md explains the model. our instance:

  • vercel project hatchery, team vercel-internal-playground. production: https://hatchery.playground-vercel.tools (also hatchery-prod.playground-vercel.tools).
  • wrapper repo: vercel-internal-playground/hatchery-storage (internal). the project is git-connected to it; a push to its main deploys production. it is also the storage repo (HATCHERY_STORAGE_REPO).
  • databases (neon, vercel-managed): hatchery-db for production, hatchery-preview-db for preview, shared by all previews and empty at start. no neon preview branching, no development environment.
  • CRON_SECRET, HATCHERY_APP_ORIGIN are production only. HATCHERY_STORAGE_REPO is set for production and preview: agents cannot run a turn without it.

rules:

  1. this repo deploys nothing. never run vercel deploy here: it breaks the wrapper's build cache.
  2. to test a change, push the branch, then run scripts/preview.sh <branch | pr number> in a hatchery-storage checkout. --dry-run builds and tests only. if a build fails with "exceeds the maximum function size", rerun with --no-cache.
  3. to release: publish to pypi from here, bump the pin and uv lock in hatchery-storage, preview, push its main.
  4. never point preview at hatchery-db, or production at hatchery-preview-db.
  5. slack/github webhooks only reach production. do not retarget the shared github/hatchery and slack/hatchery connect triggers.
  6. check a deployment with vercel inspect <url> --logs, vercel logs <url> --since 1h --json, and vercel curl /api/health --deployment <url>, all with --scope vercel-internal-playground.

how to verify and debug

  1. use docs/use-agent-browser.md to access live deployments and run real agent sessions. production url above; previews print their url.
  2. for completed runs, inspect telemetry traces in docs/use-braintrust.md to understand exactly what happened during the run. use --profile "anbuzin's projects" --project braintrust-coffee-flame.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.