Run coding agents like a hospital: Db2 support in 2 days
Cockroach Labs’ label-triggered role agents planned 15 sub-issues and shipped Db2 migration for $4,172.
Prompt for your agent
Goal: Set up role-based agents with hard rules to ship a large feature safely. Setup: agents used in source: Claude; tools/MCPs stated: GitHub Actions. Steps: 1. Start from a single GitHub issue describing the ask. 2. A planning agent decomposes it into sub-issues with an explicit dependency graph. 3. Applying a label fires a GitHub workflow that loads a role-specific prompt (the agent acts as a hospital employee). 4. Encode rules in skills: no code before a plan, no plan without review. 5. Accept slower runs (even 10x) in exchange for well-tested, in-scope code. Rules: ask me before anything irreversible (sending, posting, paying, deleting); don’t invent data, results or tools I haven’t given you; tell me what you couldn’t verify. Based on: Cockroach Labs — https://www.cockroachlabs.com/blog/experiment-running-hospital-code/
Steps are from the source. Includes a “Based on” credit line.
I tried this
Tell the next builder. One anonymous answer each; click again to undo.
Agents, models and tools only what the source states
- Agents
- Claude
- Tools
- GitHub Actions
Sources & credit
- Cockroach Labs cockroachlabs.com primaryblog · 8 Oct 2026https://www.cockroachlabs.com/blog/experiment-running-hospital-code/
- rafissHacker News · 9 Oct 2026https://news.ycombinator.com/item?id=50021899