Task Factory is a queue-first work orchestrator for AI coding agents, built on Pi.
Task Factory is designed around one idea: the human is the bottleneck.
Instead of juggling many half-finished agent runs, you stage work in a queue and let the system sequence the work in order. Task factory's goal is to maximize your throughput, reduce context switching, and automate the completion of the task.
You're left with creating the idea and checking the output.
Task Factory has a fairly opinionated workflow. Tasks progress through stages:
- Backlog: Tasks are staged in the backlog as an agent is run to generate a plan. You can review the plan before marking it as ready, or drag it directly to Executing if it already has acceptance criteria (skips the Ready phase).
- Ready: Once a task is ready for execution, place it in the ready queue, or let it Auto Promote from the backlog.
- Executing: Tasks are executed one at a time by default (but that number is configurable). Optional pre-planning, pre-execution, and post-execution skills run around planning/implementation, and skills are now assignable in any lane. Starter skills include
checkpoint,code-review, andupdate-docs(default post-execution order). New Task supports reusable model profiles (planning+execution model/thinking presets) for one-click model selection, including ordered planning/execution fallback model chains that auto-fail over on retryable provider instability (e.g., rate limits and 5xx errors). Default profile selection can be set from Global Settings and per-workspace Task Defaults (precedence: explicit form state → workspace default profile → global default profile → manual model defaults). Queue automation includes a provider/model-aware execution circuit breaker for repeatedrate_limit/quota/authfailures, with cooldown + manual resume. - Completed: Once in completed state, you can review the task before archiving it.
This keeps agent output aligned to your review capacity and prevents overproduction.
Task Factory runs with Pi-style YOLO mode behavior (no permission popups/approval gates). Agents can execute tools and shell commands with your local user permissions.
⚠️ Security warning: Task Factory currently has no sandbox boundary. Only run it on trusted repositories and in environments you control.
The foreman is a special agent scoped to a workspace that helps you plan tasks and can ideate with you.
The foreman can:
- Help you ideate and then break the task down that you can add to your queue.
- Generate artifacts (web pages) to help give you a visual guide, design mockups, etc.
If you need help coming up with ideas or using Task Factory, ask the Foreman.
npm install -g task-factoryRun it:
task-factorygit clone https://github.com/patleeman/task-factory.git
cd task-factory
npm installnpm run build
npm startOpen http://127.0.0.1:3000.
npm run devThis starts shared, server, and client in watch/dev mode.
task-factory --help
task-factory --version
task-factory --no-open
PORT=8080 HOST=127.0.0.1 task-factory
HOST=0.0.0.0 task-factory # Expose on your network (explicit opt-in)npm run check:deadcode
npm run check:release- Documentation index
- Getting Started
- CLI Reference
- Workflow and Queue
- System Architecture
- Runtime Flows
- State Contract
- REST API Reference
- WebSocket Event Reference
- Operations Security Posture
- Contribution Commands
- Contribution: Extensions and Skills
Provider setup supports all providers pi supports
The agent can ask you questions using a multiple choice Q&A widget. The Q&A panel now recovers reliably after returning to a workspace, and closes immediately on successful submit/abort (without waiting for follow-up realtime events).
The foreman can generate visual artifacts
Customize skills
Then run those skills before or after tasks
Attach sketches via embedded excalidraw
Tasks are archived and can be restored. Archived tasks contain all metadata including the full conversation
After tasks are completed, a summary is generated to give you a quick overview over the completed work
Track token usage and statistics on a per-task basis
Global voice dictation with a keyboard shortcut using the browser's Web Speech API
MIT











