Microfactory
An AI coding factory that fits in a Claude Code session. A plugin that turns a task backlog into a continuous stream of planned and implemented changes: agents pull issues from a task manager, implement them, and push code — continuously. Inspired by AI Coding Factories.
How it works
No scripts, no containers, no daemon — the factory is a handful of markdown skills. A Claude Code session in your project claims an issue from your task manager, implements it, and pushes. Claude Code's /loop makes it repeat on an interval; the claim protocol (assign, wait, verify) makes several sessions safe to run side by side, because the task manager is the single source of truth.
flowchart TD
B["Backlog"]
S["Microfactory"]
G["Product"]
B -->|claim tasks| S
S -->|push code| G
Installation
Install the plugin in Claude Code:
/plugin marketplace add https://github.com/jaksa76/microfactory
/plugin install microfactory
Backend prerequisites: acli for Jira, gh for GitHub Issues, az with its azure-devops extension for Azure DevOps Boards, nothing for the TODO.md backend. /microfactory:init-factory checks for them and offers to install any that are missing — each install only after you approve it.
Setup
Open Claude Code in the project you want the factory to work on and run:
/microfactory:init-factory
It interviews you (backend, project, planning, branching and review policy, loop intervals), sets up the backend CLI (offering to install it if missing, with your approval), writes .microfactory/config.yaml (no secrets — safe to commit), and starts the work loop in the current session.
Running
In an already-initialized project, /microfactory:start and /microfactory:start-planning start the implementation and planning loops at the intervals from your config — no interview.
/microfactory:install-agentize installs the companion agentize plugin, whose skills assess how ready a project is for agentic coding.
The finder skills look over the project and report ranked improvement candidates — /microfactory:find-design-improvements for refactorings and architecture, /microfactory:find-testing-improvements for the test suite, /microfactory:find-library-improvements for dependencies, and /microfactory:find-ui-improvements for the interface (it runs the app and looks at it).
/microfactory:find-improvements runs all four, merges and ranks what they found, shows you the list, and creates the ones you pick as tasks in your backend — so the factory has work to do. Nothing is created until you choose. They are read-only, so you decide which findings become backlog items.
A typical setup uses two sessions in the same project:
# session 1 — implementer
/microfactory:start
# session 2 — planner (only needed if you use planning)
/microfactory:start-planning
Add more implementer sessions to scale out. You can also run a single iteration by invoking a skill directly, optionally for a specific issue:
/microfactory:implement-next MYPROJ-42
Workflow
Issue state drives everything; the board is your monitor.
- An issue starts in To Do (or as an open unassigned GitHub issue /
[ ] TODO item).
- If it needs planning (
needs-plan label, or plan_by_default: true in config), a planner session claims it, writes plans/<KEY>.md, pushes it, and transitions the issue to Awaiting Plan Review.
- A human reviews the plan and transitions the issue to Plan Approved (or the status
statuses.plan_approved names).
- An implementer session claims it and implements it, following the approved plan — or, where
auto_plan is on, writing its own plan first and treating it as approved when the issue never went through planning. It runs the tests, pushes, and transitions the issue to Done — or opens a PR and transitions to In Review when feature branches are enabled.
Every implemented diff is reviewed before it is committed. By default that review goes to a fresh agent that sees the issue, the plan and the diff but not the implementer's reasoning — an author reads its own diff as intended rather than as written. Set deep_review: false if you would rather not spend a second agent per iteration; the implementer then reviews its own diff against the same checklist.
Labels tune behavior per issue: needs-plan / skip-plan for planning, needs-branch / skip-branch for feature branches, needs-review / skip-review for the cold review (skip-* wins).