How Farmwork Works

One repo-native workflow for Claude, Gemini, Codex, and Cursor: ideas age naturally, plans come before code, Beads tracks tasks, Justfiles speed up commands, and deterministic gates prove quality before you ship.

Farmwork — The Agent Homestead: Midnight Harvest illustrated architecture map showing how an idea flows from AI agents over MCP through the Idea Garden, Plans, Beads task graph, Justfile runner, Living Audits, Quality & Security Gates, and the Local Farm Viewer to shipped code
Farmwork — The Agent Homestead: how an idea becomes shipped code (click for full resolution)

Native MCP Server

One stdio server (farmwork mcp) exposes 8 deterministic tools, 6 live resources, and 7 cross-agent workflow prompts — zero duplicated slash-command files.

Beads + Justfile + Markdown

Everything lives in git: Beads task graphs, a maintained Justfile, living FARMHOUSE.md & CHECKLIST.md, GARDEN.md, _PLANS/, and lazy Pillar Audits.

Live Local Viewer

Run farmwork view on a repo or parent workspace to toggle checklists, manage Beads, run Just recipes, trigger gates & security scans, and watch live SSE updates.

✓ Polyglot (Node, Rails, Python, Rust, Go, MCP)
✓ Deterministic Health & Security Scans
✓ Works With Every MCP Agent

Escape Trash Mountain

Software factories optimize for raw agent throughput. Farmwork was built for the other half of the equation: keeping real repositories healthy once agents write code faster than humans can clean it.

In late December 2025, right as coding agents crossed into multi-file autonomy, two complementary ideas emerged within days of each other. Steve Yegge began Gas Town (Dec 15–16, 2025; public Jan 1, 2026) and StrongDM later popularized the "dark software factory" (Feb 2026) — pushing multi-agent swarms to generate code at industrial scale.

Four days after Gas Town's first commit — on December 20, 2025, with farmwork.dev live on Dec 30 before Gas Town went public — Farmwork started from the opposite question: what stops AI-built projects from turning into "Trash Mountain" after the prototype works?

Even Steve's own talk (Escape from Trash Mountain) highlights the exact failure mode: unchecked speed creates prompt drift, rotting backlogs, and unmaintainable code. Farmwork isn't a 50-agent swarm daemon — it's the repo-native Homestead guardrails layer that pairs with any agent, harness, or factory (including Steve's own Beads and maintained Justfiles).

Oct 12, 2025 Beads Dec 15–16, 2025 Gas Town repo Dec 20, 2025 Farmwork created Dec 30, 2025 farmwork.dev live Jan 1, 2026 Gas Town launch Feb 2026 StrongDM Factory & FarmFactory
Escape Trash Mountain: Midnight Harvest split illustration contrasting unchecked agent churn on the left with the structured Farmwork Homestead across the Quality Gates bridge on the right
Escape Trash Mountain — high-speed agent churn vs. the Farmwork Homestead (click for full resolution)
Dimension Ad-Hoc Vibe Coding Software Factories (Gas Town / Dark Factories) Farmwork (The Homestead)
Primary Goal Fast throwaway prototypes Maximum autonomous throughput (20–50+ agents) Durable craft & zero-drift repos that outlive prototypes
Role in Stack Single chat loop Multi-agent orchestration runtime / swarm daemon Repo-native quality, planning & governance layer (works with any runtime)
State & Memory Lost when chat resets Swarm queues, mail bridges & Beads ledgers Plain git: _PLANS/, GARDEN.md, .beads/, justfile, _AUDIT/
Quality Control "Looks good to me" Automated loops (risks Trash Mountain if unchecked) Deterministic 0–10 score, lint/test/build/secrets gates & lazy Pillar Audits
Best Used For Weekend spikes & demos Parallelizing large, well-specified issue queues Every real project — standalone with 1 agent, or guarding a full factory

8 Deterministic MCP Tools

Connect Claude Code, Gemini CLI, Codex, Cursor, or Antigravity to farmwork mcp. Every tool runs deterministic Node checks directly against your repository.

Tools (8)

farmwork_status 0–10 health breakdown, pillar scores, Beads summary, Justfile recipes, tests, gates, checklists, plans & git state
farmwork_audit Tend GARDEN.md & refresh FARMHOUSE.md — or pass pillar to save lazy SECURITY / PERFORMANCE / ACCESSIBILITY / CODE_QUALITY reports
farmwork_gates Run configured lint, test, build, and built-in security secrets checks and save verified results
farmwork_beads Dependency-graph task tracking via Beads (status, ready, list, create, claim, update, close, dep, sync, init)
farmwork_just Inspect, run, or generate a maintained Justfile (list, run, init)
farmwork_checklist list, complete, pending, skip, or add standards in _AUDIT/CHECKLIST.md
farmwork_garden list, plant, or compost pre-plan ideas in GARDEN.md (lazily creates COMPOST.md)
farmwork_plan list, create (graduates linked ideas), or complete specs in _PLANS/

Resources (6) & Prompts (7)

Resources farmwork://standards, farmhouse, checklist, garden, compost, justfile
Prompts audit, inspect, security, performance, plan, new-ideas, ship

Zero Bloat. Plain Files in Git.

No hosted accounts, no duplicated agent prompt folders, no lock-in. Delete Farmwork tomorrow and every file still makes complete sense.

your-project/
├── justfile                  # Maintained recipes (`just --list`, `just check`, `just ready`)
├── .beads/                   # Git-backed Beads task & dependency graph (`bd ready`, `bd sync`)
├── .farmwork.json            # Manifest: stack, gates & last verified results
├── .mcp.json                 # Smart MCP config (`farmwork mcp` or `npx`)
├── AGENTS.md                 # Universal standards & MCP tool guide for any AI
├── CLAUDE.md                 # Lean pointer to AGENTS.md (never drifts)
├── _AUDIT/                   # Living documents — updated, never deleted
│   ├── FARMHOUSE.md          # Deterministic 0–10 health score & audit history
│   ├── CHECKLIST.md          # Stack-aware standards ([x] done, [-] skip)
│   ├── GARDEN.md             # Pre-plan ideas with natural 45d / 60d aging
│   └── (lazy on demand)      # SECURITY.md, PERFORMANCE.md, COMPOST.md
└── _PLANS/                   # Plan-before-implement feature specs

Honest Deterministic Scores

Setup & Docs (2.0), Checklists (3.0), Automated Tests (1.5), Verified Gates (2.5), and Planning & Garden Hygiene (1.0) — zero LLM guesswork.

Plans → Beads → Shipped

Graduate ideas into _PLANS/ before coding, break confirmed work into Beads (bd ready), and run just check before shipping.

Safe on Legacy Repos

Past Farmwork v1/v2 repos are never auto-modified — they open read-only in farmwork view until you explicitly run farmwork init --reinstall.

True Polyglot Detection

Auto-detects Ruby/Rails, Vite/React, Next.js, Node/TS, MCP Servers, Python, Rust, and Go — with real test file counting and stack-aware checklists.

Browse Every Farm Locally

Point farmwork view at one repo or an entire workspace folder. It reads and writes your local files straight on disk with live SSE auto-refresh and zero hosted servers.

bash
$ farmwork view ~/Work

  ❖ FARMWORK v3.2.0 · Agent-First Standards & MCP
  URL              http://127.0.0.1:4174
  Watching Folder  /Users/you/Work (live SSE)
  Farms Found      8

FarmFactory Portfolio

Dark-glass cards with Score Pips, checklist ribbons, Beads & Justfile counts, live SSE updates, and read-only protection for legacy v1/v2 repos.

Beads & Justfile Tabs

Create, claim, close, and sync Beads tasks — and run any maintained justfile recipe with 1 click and live output.

Gates & Security Scan

1-click Run Audit, Run Gates, and Security Scan catching leaked secrets, committed .env files, and vulnerable dependencies.

Garden, Plans & Reader

Plant ideas with Fresh/Wilting badges, graduate plans in _PLANS/, toggle checklists, and read every Markdown doc cleanly.

One Lightweight CLI

Initialize repos, start the MCP server, launch the Local Farm Viewer, or run deterministic checks from any terminal.

farmwork init

Detects your stack and scaffolds the v3 contract, smart .mcp.json, justfile, and .beads/.

Creates:
  • justfile + .beads/ (when bd installed)
  • .farmwork.json + smart .mcp.json
  • AGENTS.md + CLAUDE.md
  • _AUDIT/{FARMHOUSE,CHECKLIST,GARDEN}.md + _PLANS/
-f · --reinstall · --no-justfile · --no-beads Overwrite, upgrade v1/v2, or customize
farmwork mcp

Starts the stdio Model Context Protocol server for Claude Code, Gemini CLI, Codex, Cursor, or Antigravity.

Exposes:
  • 8 lean deterministic tools (incl. Beads & Just)
  • 6 live Markdown & Justfile resources
  • 7 cross-agent workflow prompts
  • Optional --cwd <path>
farmwork view [path]

Opens the live Local Farm Viewer (SSE + auto-port fallback) for one repo or a folder of projects.

Also included:
  • farmwork beads [--init] [--json]
  • farmwork just [recipe] [--init] [--json]
  • farmwork gates [--only lint,test,build,security]
  • farmwork security [--skip-deps] [--json]
  • farmwork status / audit / doctor

Up in 60 Seconds

01

Install Farmwork

bash
npm install -g farmwork
02

Initialize Your Repo

Writes justfile, .beads/, .farmwork.json, AGENTS.md, .mcp.json, and _AUDIT/.

bash
cd your-project
farmwork init
03

Connect Any MCP Agent

.mcp.json wires Claude Code & Cursor automatically — or add Farmwork globally in Gemini CLI, Codex, or Antigravity:

mcp config
{
  "mcpServers": {
    "farmwork": {
      "command": "npx",
      "args": ["-y", "farmwork", "mcp"]
    }
  }
}
04

Open Your Local Farm Viewer

bash
farmwork view ~/Work

What You Need

Node 18+ and any AI coding agent. Optionally install Beads (bd) for dependency task graphs and Just (just) for maintained command recipes.

Supported AI Agents

Claude Code Reads .mcp.json and CLAUDE.md natively
Gemini CLI / Antigravity Connects directly to farmwork mcp + reads AGENTS.md
OpenAI Codex / Cursor Connects via MCP and follows the exact same 8 deterministic tools