moo-tasks
Enables Codeium agents to orchestrate tasks and goals with dependency tracking, human-in-the-loop blocking, and proof-of-work verification.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@moo-tasksplan tasks for integrating Stripe payments with acceptance criteria"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š® Moo Tasks
Agentic Task Orchestration & Management Engine built for AI coding agents (Claude Code, Cursor, Windsurf, Antigravity, Copilot) and human-in-the-loop pair programming.
Quick Start ⢠Agent Setup ⢠Agent Protocol ⢠Architecture ⢠MCP Tools
š Why Moo Tasks?
Standard AI coding agents often suffer from:
Scope Drift: Wandering away from original user intent into endless low-value refactorings.
Over-Planning: Generating 40 shallow tasks without executing any of them.
Looping / Thrashing: Attempting the same failed fix repeatedly without stopping.
Unverifiable Work: Claiming code is complete without running tests or producing evidence.
Re-Debating Decisions: Re-arguing settled architectural choices on every context reset.
Moo Tasks solves this by providing a local SQLite engine (WAL mode), a rich real-time Web UI, and a Model Context Protocol (MCP) server that enforces strict enterprise invariants at runtime.
Related MCP server: pith
⨠Key Capabilities & Feature Matrix
šÆ 1. Goals & Scope Control
Verbatim Human Prompts: Sits above tasks, preserving the exact original user request.
Goal Coverage & Loose Ends: Live metrics on task completion percentage and lingering open tasks.
Quality Metrics: Per goal: share of acceptance criteria met, tasks with deviations, verify pass rate, share of work linked to commits, cycle time, attempts and reopens.
Completion Summary: Completing a goal writes a record of what shipped, deviations, what was left open or dropped, and the decisions made along the way, plus the closer's own retrospective. Agents are prompted to close a goal after its last task.
Scope Drift Detection: Automatically identifies and flags orphan tasks with no linked goal.
Goal Open Caps: Hard cap on maximum open tasks per goal (default: 10), preventing agents from over-planning.
Cascade Operations: Atomically drop, kill, or reopen all tasks under a goal with mandatory reasons.
š 2. Task Lifecycle & DAG Dependencies
Subtask Nesting Constraint: Exactly 1 level of subtasks under a parent task.
Finite State Machine:
todo,doing,blocked-on-dependency,waiting-on-human,done,dropped.DAG Dependency Graph: Automatic cycle detection and automatic unblocking of downstream tasks.
Parent Closure Guard: Prevents closing parent tasks while any subtask remains open.
Status Undo & History: Roll back accidental state transitions from the web board, using full transition audit history.
š”ļø 3. Completion, Verification & Proof of Work
Acceptance Criteria: Mandatory criteria written in Markdown before work starts.
Per-Criterion Completion: When the criteria are a
- [ ]checklist,moo_complete_taskneeds one answer per item (criteria: [{ met, note }]). Unmet items are allowed with a note and kept as deviations, visible on the board and in the goal summary; met items are ticked.Verify Command: A human sets one per workspace (
moo verify:set "npm test"or the board's Workspace Settings). Moo runs it itself when an agent completes a task and stores the result; a failing run refuses completion unless the agent gives averifyOverridereason, which is recorded as a deviation. Agents cannot change the command over MCP.Evidence Requirement: Closing a task requires verifiable proof (commands run, stdout output, test proofs).
Two-Phase Verification: Distinguishes
agent_completedfrom humanverified_done.Rejection with Reason: Humans can reject completed work from the web board with feedback; the task returns to the queue unclaimed (
todo, orblocked-on-dependencywhile its blockers are open) and increments the reopen counter.
š 4. Human Collaboration & Blocking
Waiting-on-Human Queue: Agents pause blockers with attached questions (
clarification,approval,credential,decision).Reactive Resume: Answering a question in the web board automatically transitions the task back into the ready queue without agent restarts.
Dedicated Human Inbox: Real-time queue of everything needing human attention.
š 5. Discovered Work
Mid-Task Work Capture: Capture new work found mid-flight without relinquishing current task claim.
Must-Fix vs Deferred: Mark as
must-fix-now(inserted as blocker) ordeferred(backlog pile).Already Fixed:
alreadyFixed: truerecords a fix made along the way as done work linked to the current task, with just a title.Stale Backlog: Todo work untouched for 14 days, deferred work for 30 days, and tasks whose declared files and folders don't exist in the project are flagged on resume, in
moo_list_tasks(stale: true)and by the board's Health filter.
š¤ 6. Ownership, Concurrency & Leases
Exclusive Task Claims: 30-minute leases, renewed whenever the agent calls a tool with the task's
taskId; claims held by a dead agent process are released.Checkpoints:
moo_checkpointlogs progress and renews the lease during long-running tasks.Interrupted Work: When a session ends mid-task,
moo_session_resumelists the task under Interrupted work with its last notes (even after the lease monitor requeues it). Claiming it continues the work: the original git baseline is kept, so the earlier session's edits count, and it is not a new attempt.Commit Links:
moo install gitadds git hooks that appendMoo-Task: <id>trailers to commits carrying a task's files and record each commit on its tasks.Agent Concurrency Limits: Cap simultaneous tasks held per agent (default: 1).
File Touch Conflict Warnings: Declared files are checked for overlaps against other active claims.
š 7. Stall & Thrash Detection
Attempt Counter: Incremented on each claim/attempt.
Auto-Escalation: After $N$ attempts (default: 3), automatically pauses task to
waiting-on-humaninstead of endless looping.Time-in-State Tracking: Audits time spent in
doingand detects repeated reopens.
šļø 8. Settled Architectural Decisions (ADR)
Project-Level Record: Preserves choices and rationales that outlive tasks.
Pre-Planning Consultation: Agents read settled decisions before planning.
Supersede Support: Cleanly update and link superseded decisions with mandatory reasons.
š Quick Start & Installation
Requires Node.js 22 or newer. SQLite ships as a prebuilt binary, so no compiler is needed.
Option A: Install Globally (Recommended for moo command)
Install moo-tasks globally to access the short moo command anywhere:
npm install -g moo-tasks
# or: pnpm add -g moo-tasks | bun add -g moo-tasksOnce installed, you can use moo directly:
moo init # Register this repo as a workspace & write agent rule files
moo install claude # Configure an agent's MCP server (add --hooks for Claude Code)
moo start # Launch real-time Web UI (http://127.0.0.1:4242)
moo ws # List registered global workspaces
moo status # Show Where-Did-I-Leave-Off context
moo search <query> # Full-text SQLite searchOther commands: moo list, moo next, moo run <prompt>, moo import <file>, moo export, moo ws:add|ws:rename|ws:remote|ws:remove. Run moo --help for details.
š” Note on
moovsnpx:
Bare
moo <command>works when installed globally vianpm install -g moo-tasks.If running without global installation, use
npx moo-tasks <command>(do not usenpx moo, asmooon npm registry is an unrelated package).If
moo: command not foundappears after global install, ensure npm's global bin directory is in your$PATH:export PATH="$(npm prefix -g)/bin:$PATH"
Option B: On-Demand via npx moo-tasks
Run directly without global installation:
1. Initialize Workspace & Agent Protocols
Run in your project root:
npx moo-tasks initThis:
Registers the project as a workspace in the global SQLite database (
~/.moo/tasks.db, WAL mode; override withMOO_HOMEorMOO_DB_PATH).Writes (or refreshes) a managed Moo protocol block in
AGENTS.md,CLAUDE.md(which imports@AGENTS.md),.cursor/rules/moo-tasks.mdc, and.windsurf/rules/moo-tasks.md. Text outside the block is left untouched; legacy.cursorrules/.windsurfrulesare refreshed only if they already exist.
2. Web Board
The MCP server starts the web board automatically in the background, so once an agent is connected it is available at http://localhost:4242 (one board is shared by every agent on the machine). Set MOO_NO_UI=1 to disable auto-start, or MOO_PORT to change the port.
To run it manually:
npx moo-tasks startTo access the Web UI from another device or tablet on your local network (LAN):
npx moo-tasks start --lan
# Automatically logs: http://192.168.x.x:4242/š Agent & MCP Setup
One-Command Multi-Agent Installer
# Configure all detected agent IDEs at once:
npx moo-tasks install all
# Or configure specific clients:
npx moo-tasks install claude # Updates ~/.claude.json
npx moo-tasks install cursor # Generates .cursor/mcp.json
npx moo-tasks install windsurf # Updates ~/.codeium/windsurf/mcp_config.json
npx moo-tasks install antigravity # Generates .gemini/settings.json
npx moo-tasks install codex # Prints a generic MCP config snippetClaude Code Hooks (optional)
npx moo-tasks install claude --hooks # project: .claude/settings.json
npx moo-tasks install claude --hooks --scope user # user: ~/.claude/settings.jsonThis adds SessionStart, PreToolUse, PostToolUse and Stop hooks that run moo hook <session-start|pre-edit|post-edit|stop>:
session-start injects the Where-Did-I-Leave-Off context; after a compaction or resume it re-injects this session's task in full, with its recent notes.
pre-edit blocks
Edit/Write/MultiEdit/NotebookEditon files inside the workspace when this session holds no claimed task in the workspace.post-edit renews the claim's lease.
stop asks once for a
moo_checkpointwhen this session's task has changes git can see and no note for 15 minutes (MOO_CHECKPOINT_MINUTES), so the next session can pick up where this one stopped.
Re-running the installer replaces earlier Moo hooks and leaves other hooks alone. Projects that never ran moo init are ignored; set MOO_HOOKS=off to disable the hooks temporarily.
Git Hooks (optional)
moo install git # or add --git-hooks to any installInstalls prepare-commit-msg and post-commit hooks (honouring core.hooksPath). Commits get a Moo-Task: <id> trailer for each in-progress or recently completed task whose files are staged, and the commit hash is recorded on those tasks. Existing hooks from other tools are never overwritten; the installer prints the line to add instead. A Moo failure never blocks a commit.
Verify Command (recommended)
moo verify:set "npm test" --timeout 600 # show with `moo verify:set`, clear with --clear
moo verify # run it now, as completion doesManual Configuration
{
"mcpServers": {
"moo-tasks": {
"command": "npx",
"args": ["-y", "moo-tasks", "mcp"]
}
}
}š¤ Mandatory Agent Protocol
moo init writes this protocol into AGENTS.md (and the other agent rule files):
1. SESSION RESUME ā moo_session_resume() at session start
2. CLAIM FIRST ā Before the first edit, hold a claimed task:
moo_quick_start(title, acceptanceCriteria, description, declaredFiles) for new work,
or moo_get_next_task(claim: true) for planned work.
Small change already done? moo_log_work(title, evidence).
3. LARGER WORK ā moo_create_goal(title, verbatimPrompt, description), then
moo_create_task(goalId, tasks: [...]) with criteria, declaredFiles, dependsOnTaskIds
4. WHILE WORKING ā moo_checkpoint (what is done / next; renews the 30-min lease),
moo_capture_discovered_work (alreadyFixed for fixes made along the way),
moo_ask_human, moo_log_attempt_failure, moo_record_decision
5. FINISH ā moo_complete_task(taskId, evidence: { testProof or outputSnippet, commandsRun },
criteria: [{ met, note }]) ā one answer per "- [ ]" item; the verify command runs
6. CLOSE GOAL ā after its last task: moo_update_goal(goalId, status: 'completed', summary)Reading, searching and read-only commands never need a task. Parallel sub-agents each pass their own agentId.
š ļø MCP Tool Reference
Tool Name | Purpose |
| Anchor a request as a goal: verbatim prompt plus Markdown PRD (caps open tasks, default 10) |
| Goal spec, progress metrics and open tasks; |
| Edit a goal; |
| List this workspace's goals |
| Create one task, or many via |
| ā” Create and claim a task in one call; |
| Record small, already-finished work as a completed task in one call |
| Edit task fields and dependencies ( |
| Full task with dependencies, subtasks and notes |
| Filterable task summaries in this workspace; |
| Highest-priority unblocked todo task; |
| Claim a task exclusively (30-min lease, renewed on any tool call with its |
| ā” Add a note to a task (progress, finding); renews your lease if you hold it |
| Give up your claim: back to the queue, or to |
| Complete your claimed task with evidence and one |
| Record a failed attempt; repeated failures escalate to a human |
| Drop one or several tasks with a reason |
| Reopen one or several tasks |
| Pause a task on a question for the user (clarification, approval, credential, decision) |
| Record work found mid-task: |
| Record an architectural decision; |
| This workspace's decisions ( |
| Where you left off: your task with its recent notes, interrupted work, the goal in focus, goals ready to close, stale backlog, decisions, stall warnings |
| Before editing: who holds the files now, plus past tasks, decisions and notes about them |
| Full-text search over tasks and decisions in this workspace |
Board-only actions: verifying completed work, answering human questions, rejecting a completed task, undoing a status change, and deleting a workspace are done by humans in the web board, not by agents.
Read-only tools carry the MCP readOnlyHint annotation, so clients can approve and run them in parallel. Responses are compact by design: task views omit git baselines, session ids and bookkeeping timestamps.
Older tool names from earlier releases (e.g.
moo_create_tasks_batch,moo_heartbeat_task,moo_handoff_task,moo_add_task_note) are still accepted as hidden aliases for compatibility, but are no longer listed.
šļø Architecture & Clean Code
src/
āāā domain/ # Pure Enterprise Domain Rules & Invariants
ā āāā types.ts # Domain interfaces & value types
ā āāā errors.ts # Domain-specific typed error classes
ā āāā dependency.ts # DAG cycle detector & unblocked evaluator
ā āāā conflict.ts # File touch overlap conflict detector
ā āāā similarity.ts # Duplicate task similarity detector
ā
āāā infrastructure/ # Persistence & External Integrations
ā āāā db/database.ts # SQLite manager (WAL mode, busy timeout)
ā āāā db/migrations.ts # Schema DDL and versioning
ā āāā git/git-context.ts # Git branch, commit, dirty status extractor
ā āāā web/web-ui.ts # Web board auto-start (shared, one per machine)
ā āāā repositories/ # SQLite Repository Implementations
ā
āāā services/ # Application Services (Use Cases)
ā āāā goal-service.ts # Goal lifecycle & cap enforcement
ā āāā task-lifecycle-service.ts # State machine, ready queue, undo
ā āāā claim-service.ts # Exclusive claims, leases, dead-agent timeout
ā āāā verification-service.ts# Proof of work & two-phase verification
ā āāā human-collab-service.ts# Human Q&A queue & reactive resume
ā āāā discovered-work-service.ts # Mid-flight discovered work
ā āāā decision-service.ts # ADR logs & supersede linking
ā āāā duplicate-merge-service.ts # Idempotency & task merging
ā āāā session-service.ts # Where-did-I-leave-off session resume
ā āāā housekeeping-service.ts# Archiving & multi-format export
ā āāā markdown-import-service.ts # PRD / checklist import into goals & tasks
ā āāā search-service.ts # FTS5 full-text search
ā āāā workspace-service.ts # Global workspace registry
ā āāā index.ts # Dependency Injection Container
ā
āāā mcp/ # Model Context Protocol Stdio Server
āāā server/ # Fastify HTTP + Server-Sent Events (SSE) Engine
āāā cli/ # CLI Commands (init, install, hook, start, mcp, ws, status, ...)
āāā ui/ # Vanilla JS + Tailwind + Lucide Icons Web UIš¤ Contributing
Contributions are welcome! Please check out CONTRIBUTING.md for development setup, testing, and PR guidelines.
š License
This project is licensed under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Nifty's MCP server ā exposes tasks, projects, messages, and files as tools for AI agents.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Work management where AI agents are first-class members: tasks, projects, memory over hosted MCP
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceServer-enforced workflow discipline for AI agents. An MCP server providing persistent work items, dependency graphs, quality gates, and actor attribution. Schemas define what agents must produce ā the server blocks the call if they don't. Works with any MCP-compatible client.207MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for task management that enables AI agents to read, create, update tasks, and track work sessions, allowing agents and humans to collaborate on the same task board.3 npm9MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage hierarchical tasks, track progress, handle dependencies, and coordinate work through an MCP server.44 npm15GPL 3.0
- FlicenseNot gradedqualityBmaintenanceA minimal MCP server for file-based task management and multi-agent team orchestration, enabling creation, completion, and reassignment of tasks across teams.-