CLI

mfactory on your PATH after install.sh --global, or .factory/bin/mfactory from anywhere in a repository. A job is its id (004-dark-mode), the number in its id (004), or its issue (12 or #12).

install and init are the same command. hook exists for the Claude Code stop hook and is left out of the help list.

Install and maintain

install --tool TOOL

Install the factory into this repository. --tool is claude, cursor, or codex. Repeat it for several. Default: claude. Never overwrites factory/factory.toml or a pipe that is already there.

sync --check

Write the agent and skill files from factory/factory.toml. --check changes nothing and exits 1 if anything is out of date.

doctor --skip-checks

Check that everything a run needs is in place, including the checks on a clean copy of the base branch. --skip-checks leaves that run out.

upgrade --version --source --self --all

Upgrade the global CLI, every project in the workspace, and the checkout you are in when that checkout is installed and not listed. Leaves factory/ and .factory/jobs/ alone. --version is a tag (default latest). --source is a local copy. --self updates only the global CLI. --all upgrades only the projects in the workspace. One project failing does not stop the others.

uninstall --config --labels

Remove the factory from this repository. factory/ stays unless --config is set. --labels deletes the factory labels on GitHub.

status --all

The installed version, and whether generated files are current. --all prints one row per project in the workspace. Outside a repository, status shows the workspace.

version

Print the factory's version.

See the configuration

config show --json

The merged configuration, and which file set each value.

graph --pipe NAME --json

The pipeline in effect. --pipe prints one named pipe.

models

The model and effort of each agent, per tool.

skills

The project's skills and which agents read them.

Pipes

pipes list --json

Every pipe, its file, and its steps. pipelines is the old name of this command.

pipes show <name>

One pipe after extends, as YAML.

pipes validate

Check every file in factory/pipes/ against the schema and the graph rules.

pipes schema

Print the JSON Schema of a pipe file.

migrate layout pipes

layout moves a root factory.toml into factory/. pipes moves [steps.*] tables into factory/pipes/default.yaml.

Run jobs

The /mfactory skill uses these. You can run them yourself. The orchestrator is still what starts agents.

queue --json

What to run now. --json prints one JSON array with each issue's title, URL, dates, author and labels.

create <issue> --pipe NAME

Start a job for a labeled issue. --pipe chooses the pipe. Default: [run].pipe, or the only pipe.

file <title> --tracker github|jira

Open an issue in the queue and print its address. The issue's text is read from standard input. With two trackers it goes to the first one in [tracker] kind; --tracker chooses.

tracker show --json

With a Jira board: each step, its status and its board column, and what is wrong with them. Exits 1 when the board has a problem.

tracker suggest --json

The Jira board that works well for this pipeline, left to right, and the [tracker.jira.columns] to paste. Reads the project configuration only.

tracker sync

With a Jira board: move every unfinished job's card to its step's status. Run it after the board or [tracker.jira.columns] changed.

next <job>

Say what the orchestrator must do for a job. Runs checks, merge, and verify itself.

done <job> --reply

Read the outcome of the step an agent finished. --reply reads the agent's reply from standard input. Cursor and Codex intake need this.

answer <job> <outcome> [text...]

Reply to a step that waits for a person. The outcome is one the step allows, such as approve, changes, feedback, answer, or reject. Words can follow, or come on standard input.

close issue <job> --not-planned

Close the job's issue on GitHub, as completed or, with --not-planned, as not planned. The job is not touched. The factory never closes an issue on its own.

close job <job>

End the job as done from any step, and remove its worktree. The issue and any open pull request stay as they are.

issue list --tracker --mine --json

Your open issues, and a Jira board's cards that are not done, in or out of the queue, with their status and job. --mine keeps those assigned to you.

issue show <issue> --json

One issue: its text, comments, URL, job, and the statuses a Jira card can move to.

issue create <title> --tracker --queue

Open an issue; its text comes on standard input. It stays out of the factory's queue unless --queue, so a test issue starts no job. An issue opened through /mfactory passes --queue, unless you call it a test or say it is not for the factory.

issue comment <issue> [text...]

Post your own comment, from the words given or standard input.

issue move <issue> <status>

Move a Jira card to a status by name. Refused for a card with a running job: move <job> <step> moves the job and its card. GitHub issues have no status.

issue close <issue> --not-planned

Close any issue. One with a job is closed as close issue <job> does.

issue guide --json

The skills and instruction files to follow when managing issues, from [skills].issues and [rules].issues: every one on this machine by default, each skill with its description. The orchestrator runs it before changing an issue.

route <job>

Which agents a job uses.

checks

Run [checks].commands in the current directory.

Planner

Suggestions across the workspace queue. Nothing in a tracker or a job changes until approve or release. See how to use it.

plan summary --fresh --project NAME --json

What needs attention, what is held, the pipeline, and the last scan. --fresh prints the scan agent's start lines when tickets changed.

plan show --json

The findings and their status.

plan approve <F-n>

Carry out the action of an open finding, in the project that owns its first ticket.

plan dismiss <F-n> [reason...]

Drop a finding until one of its tickets changes.

plan release <ref>

Run a held job or issue now. ref is a job id, or an issue key such as 12, #12, or PROJ-7.

plan scan --force

Collect the queue, then say whether the scan agent should run. plan due prints scan or not due.

Telemetry

Local records of what a job did. They do not choose the next step, and a write failure does not fail the job. Nothing is sent off the machine. Prompts, transcripts, tool arguments, tool outputs, and feedback text are not stored. Unavailable usage is null, not zero. Claude cost is an estimate from the adapter price table. Cursor contributes tokens only when a transcript has a usage object, with no price, so its cost is null. Codex reports no usage.

telemetry status

Whether collection is on, how many events are on disk, and any collection errors.

telemetry events <job> --type TYPE

Print one job's events as JSONL. --type keeps one event type, such as step.completed.

telemetry validate

Report malformed lines, duplicate ids, and schema problems. Exits 1 when it finds any.

telemetry export --format jsonl|csv --type TYPE --job JOB --output FILE

Write the retained events. JSONL is the full record. CSV is the envelope plus, when --type is set, that type's fields. Repeated occurrences are collapsed. Cumulative usage must not be summed; use delta_* or the latest snapshot.

telemetry prune --dry-run

Delete events older than [telemetry] retention_days. Jobs that are not finished are kept. This is the only prune; nothing expires by itself.

Dashboard

dashboard --port --no-open

Serve the read-only dashboard for every project in the workspace. Default port 4747. Stays in the foreground until Ctrl C. The page opens on Overview, with a sidebar that collapses to icons. It comes with the global install: a project's .factory/bin/mfactory hands dashboard, start and stop to the global mfactory. The views are on the workspace page.

start dashboard

Serve the dashboard and return. Same flags as dashboard.

stop [dashboard]

Stop the background dashboard.

Workspace

mfactory workspace with no subcommand lists the projects. mfactory install adds the checkout it installs into.

workspace init

Write workspace.toml in the current directory. A file here, or FACTORY_WORKSPACE, wins over ~/.mfactory/workspace.toml.

workspace add [path]

Add this repository, or a path, to the workspace. The factory must be installed there.

workspace remove [path]

Remove this repository, or a project by its path or folder name.

workspace list

List the projects in workspace.toml.

workspace queue --concurrency N

Run each project's own factory queue. --concurrency caps new and resume rows across projects. Default: [workspace].concurrency.