Commands
Auto-activating workflows that respond to natural phrases. Say
/audit to audit systems,
/push to ship to production.
Turn any project into a well-organized, self-documenting, continuously improving codebase.
v2.1.0
A framework grounded in field-tested codebase maintenance rules—using systematic, AI-assisted workflows to keep software high quality and shippable.
Auto-activating workflows that respond to natural phrases. Say
/audit to audit systems,
/push to ship to production.
Self-updating documentation that tracks project health. Security, performance, accessibility, and code quality audits that stay current.
Four focused AI agents cover code review (quality, security, performance, accessibility), cleanup, farm audits, and idea management. Each has a defined role and tool set.
Everything Farmwork does is a slash command. Type / to see
them all - nothing fires on its own, and each one does exactly one thing.
/audit
Refresh FARMHOUSE.md metrics and age the Idea Garden -
wilting at 45 days, composted at 60. Run it at the start of a session.
/inspect
Everything /audit does, plus the code-reviewer agent
across quality, security, performance and accessibility, plus a dry
run of lint, test and build. Reports only - changes nothing.
/add-idea
Plant a new idea in GARDEN.md, dated so it can age
/new-ideas
Generate 10 ideas from GARDEN + COMPOST context, plant the keepers
/compost
Retire an idea to COMPOST.md - with a reason, so it stays retired
/plan-idea
Graduate an idea into a real plan in _PLANS/
/push
Clean, run the quality gates, commit, push, refresh metrics
Two files and three directories. Everything Farmwork adds to a repo lives in one of them - nothing is hidden in config.
your-project/
├── CLAUDE.md # Lean instructions, points at the commands
├── AGENTS.md # Same, for Codex / Gemini / anything else
├── .claude/
│ ├── commands/ # The seven workflows
│ │ ├── audit.md # /audit
│ │ ├── inspect.md # /inspect
│ │ ├── add-idea.md # /add-idea
│ │ ├── new-ideas.md # /new-ideas
│ │ ├── compost.md # /compost
│ │ ├── plan-idea.md # /plan-idea
│ │ └── push.md # /push
│ └── agents/ # Four subagents the commands call
│ ├── the-farmer.md # Metrics + FARMHOUSE.md
│ ├── code-reviewer.md # Quality, security, perf, a11y
│ ├── code-cleaner.md # Comments and console.logs
│ └── idea-gardener.md # GARDEN + COMPOST
├── _AUDIT/ # Living documents - updated, never deleted
│ ├── FARMHOUSE.md # Metrics, score, audit history
│ ├── GARDEN.md # Ideas, dated so they can age
│ └── COMPOST.md # Retired ideas, with reasons
└── _PLANS/ # One file per feature, written before code
_AUDIT/ files are updated, not replaced. They carry
audit history, so you can see how the project's health moved rather
than only where it landed.
/plan-idea writes to _PLANS/ and then stops
to ask. Planning and immediately implementing defeats the point of
having planned.
Commands are plain markdown. Claude Code reads them natively, Codex
runs them from ~/.codex/prompts/, and everything else
follows AGENTS.md.
Seven commands, each doing one thing. Type / to see them
all - nothing fires on its own, and nothing hides behind a phrase you
had to read the docs to learn.
Commands say what should happen; agents do it. Each has one role, its own tool allowlist, and a command that calls it. Subagents require Claude Code - other tools read the same agent files and do the work inline.
Counts commands, agents, tests and plans, ages the Idea Garden, and
rewrites FARMHOUSE.md with a fresh score and a history row.
/audit/inspect/push
One comprehensive pass - quality, security, performance, code smells and basic accessibility - reported inline by severity. Writes nothing.
/inspect
Strips comments and console.logs before a push, keeping
JSDoc, lint directives, and console.error,
warn and info.
/push
Owns the idea lifecycle across GARDEN.md and
COMPOST.md - planting, brainstorming, and retiring ideas
with the reason attached.
/add-idea/new-ideas/compost
Install globally via npm and use these commands to manage your Farmwork setup.
farmwork init
Interactive setup wizard. Creates all folders, agents, commands, and audit files.
-f, --force
Overwrite existing files
farmwork status
Display Farmwork status and metrics for your project.
farmwork doctor
Diagnose your Farmwork setup and check for issues.
Farmwork manages one repo. When you have a dozen, the expensive question stops being "what do I do here?" and becomes "which one has something rotting in it?" The Operator answers that in one command.
── Products ────────────────────────────────────
DoTheseTasks ████████░░ 81% main 3 uncommitted
MakeThisVSL ██████░░░░ 62% feat/hooks 2 unpushed
OpenPaw ██████████ 100% main clean
── Tools ───────────────────────────────────────
Farmwork ███████░░░ 74% main clean
FarmFactory main behind 4, no CLAUDE.md
Suggestions
1. DoTheseTasks has 3 uncommitted files — commit or stash before they rot.
2. MakeThisVSL: feat/hooks is 2 commits ahead and unpushed.
3. FarmFactory has no CLAUDE.md — run `npx farmwork init` to set it up.
Groups of farms
Every repo is a farm; farms live in groups with a title, description, and folder path. Simple enough to scan, structured enough to be useful.
Checklists over the API
Reads and writes FarmFactory checklists directly - view progress, complete items, or skip what never applied to that farm.
Installed globally
Not a per-project install. One script puts it in both Claude Code
and Codex, so /operator works the same in either.
./install.sh
Node 18+, zero dependencies
Get up and running in under a minute with the Farmwork CLI.
npm install -g farmwork
Run the interactive setup wizard in your project directory.
cd your-project
farmwork init
Check that everything is configured correctly.
farmwork doctor
farmwork status
Open Claude Code and type / to see every command.
$ claude
Claude Code
Ready to assist...
> /audit
✓ Counting commands, agents, tests, plans
✓ Tending the Idea Garden
✓ FARMHOUSE.md updated — 8.4/10
Say /add-idea to plant it in GARDEN.md. Use /new-ideas whenever you want fresh inspiration.
Say "make a plan for X", review it, then "let's implement X" as todos. Plans stay lightweight and reviewable before code gets written.
Run /audit for a quick check or /inspect for a deep inspection to keep FARMHOUSE.md current.
Claude keeps _AUDIT/ files updated automatically. Check FARMHOUSE.md anytime to track project health.
Node 18+ and an AI coding agent. That's the whole list - Farmwork has no external CLI dependencies, no issue tracker, and no service to sign up for.
Claude Code
Full support - commands and subagents both run natively
Codex
Copy .claude/commands/*.md into ~/.codex/prompts/
Anything else
Point it at AGENTS.md and it follows the same command files
node 18+
Only needed to run npx farmwork init