Skip to content

Reference

Commands

Command What it does
wuwei init [dir] [--cloud] Create .wuwei/ and merge WUWEI's allow, deny and ask rules into .claude/settings.json; --cloud also copies the plugin into .claude/ for cloud sessions; --codex writes the role agents and door rules into .codex/
wuwei sent owner/repo#n <link> Record a review request posted outside the session
wuwei sync Pull, then push .wuwei/ on the wuwei/state branch
wuwei doctor Install, workspace, ledger, harness rules, and each door's strength per repository
wuwei plan [show] [<id>] The ranked plan; --json for machines; with an id, that item as JSON (promise and acceptance included)
wuwei plan add <id> "<title>" --goal G-n --repo owner/name --tier smart\|light\|standard\|full Add an item (tier smart by default, with --domain "clear\|complicated\|complex: <one line of evidence>" and --in-doubt when the promise itself may be wrong) with --value --time --risk --size (WSJF) or --reach --impact --confidence --effort (RICE) and --why, --promise, one --accept per scenario, --class expedite\|fixed-date\|standard\|intangible (the class of service; at most one open expedite item), one --after <id> per item it waits on (never one that waits on it), --host agent\|session (where its builder runs: an Agent-tool seat, the default, or its own session; gates always run as Agent-tool seats in the planner's session; any other value is refused), and --pr owner/repo#n to link a PR whose body has no WUWEI footer (a taken-over PR; the board otherwise says PR owner/repo#n not linked); an id already in the plan is updated in place, and a changed promise or acceptance clears its approval
wuwei plan add --from <file> Add the lead's candidates (.wuwei/candidates.json): a list, or {"candidates": [...]}, each with an id and a title; any other shape is refused and nothing is added
wuwei plan restore <id> Reopen a parked or dropped item
wuwei plan park\|drop\|done <id> --reason "..." Change an item's status
wuwei plan run <id> --reason "<what ran, what it showed>" Record run evidence for an operations item; refused without --reason or --job
wuwei plan run <id> --job <job file> Register a Codex companion job file; the board shows its state (running, completed with the HANDOFF path, failed, asked a question, or job state unreadable)
wuwei plan session <id> <session id> Record the builder session of an open --host session item; while the item is open the board counts it as a live builder seat and names the session, and with no PR and no event for four hours shows the row stale; refused for an item with host agent or a done, parked or dropped item
wuwei plan pass --reason "..." Record a plan pass; reopens a closed day
wuwei plan view [--html] The plan as a view: writes .wuwei/plan.html, prints a summary and the question line (--html prints the page). Beside the build hours it shows an AI estimate: open size points times this workspace's seat wall-clock per size point (builders and gates of items merged in the last 28 days), unmeasured below 5 items
wuwei status [--json] The board: what each open item lacks; past the WIP limit, an approved item with no PR shows queued
wuwei evidence owner/repo#n [--json] [--record DIR] One PR's gaps; exit 1 when there are gaps
wuwei report [--day YYYY-MM-DD] The day report
wuwei report --dora [--window 28] The DORA keys per repository
wuwei close Checkpoint: write the report for the day so far
wuwei andon owner/repo --reason "..." / --clear Pull or clear the cord on one repository
wuwei ask [<id>] "<class: question>" --option <label> ... --recommend <label> With owner-on-github in allow: post an owner question as one GitHub comment that mentions WUWEI_OWNER (the owner's login, required), on the item's open PR, else the issue the item names by a numeric id or an issue field, else one pinned workspace issue (the only place for plan: and goal met, which take no id); one-way:, trust: and owner review: go only on the item's PR and ask for an approving review at its head. It posts with the identity gh holds: point GH_CONFIG_DIR at a bot's gh config (for example a GitHub App's) so the question is the bot's comment, not yours, and your reply is not one by the login gh writes as. It records an ask.posted row with the question, and parks the item with owner: <class> <url>, which the board shows as waiting on the owner. Refused without the entry, WUWEI_OWNER, a class, labels or a recommendation among them, and from a seat
wuwei owe <thread link> "<what>" --who <name> [--within 4h \| --due <ISO>] Record a reply someone is waiting for
wuwei watch [--record "<summary>"] The last watch pass and replies owed; record a pass. With owner-on-github, it first reads the replies to each open wuwei ask question and records one as the owner's answer, like a widget answer with its URL, author and head, and restores the item, only when it is by WUWEI_OWNER (never the login gh writes as), created after the question, never edited, and exactly <label> <question id> once quoted lines (starting with >) and blank lines are dropped, so a quote reply counts; one-way:, trust: and owner review: take only the owner's approving review at the asked head. A head-bound question whose PR moved is asked again. Other replies show on the board as ignored answers with their reason; no reply text is kept. WUWEI_ANSWERER_PLAN, _GOAL (goal met) and _SCOPE (an item on an open goal) may name one more login for that class. gh's own login is read once per pass, from WUWEI_BOT_LOGIN where an App token is refused GET /user; with neither, no answer is read
wuwei status --all The board with process fit too (for the watch)
wuwei idle Exit 0 when no seat runs, no item moves (a seat, a job or CI on it) and the owner wrote nothing in a planner session for 20 minutes, with checkpoint or full close due (past the day end, no retro today); exit 2 (unknown) when only that is unmeasured, with no planner transcript readable; else exit 1 and why
wuwei watch --extend 1h\|3h --source "<where>" The owner said keep going: move the day end (WUWEI_DAY_END, else 17:00) once today. With WUWEI_DAY_END, wuwei watch also posts one notice in the last 30 minutes, reads an owner Extend answer to it, and past the end says to start no new seats. A seat is refused wuwei watch
wuwei config [key value] Show, or set one of the seven keys; setting runs in your own session only, a seat is refused
wuwei verify Check the ledger's hash chain
wuwei agents [check\|build] Check or build the role agents from the charters
wuwei --version The plugin version
wuwei hook <event> Called by the harness only

Configuration

.wuwei/config.toml has seven keys. Everything else is discovered or part of the process. Only your own session changes it and .wuwei/plan.json (wuwei config <key> <value>, the wuwei plan actions that write, an edit or a redirect); a seat reads them (wuwei plan show, wuwei plan view, wuwei config, cat) and is refused any write, so it cannot change its own gates. With auto-approve in allow, wuwei plan view also approves each waiting item on an open goal of .wuwei/goals.md, from any session.

Key Default Meaning
repos the origin of the init directory the repositories in the workspace
owner_paths [] glob patterns you review yourself when arch says Breaking: yes or security Trust: widened; an entry that starts always: ("always:infra/**") asks every time
prioritisation wsjf wsjf or rice
tracker github where issues live
telemetry true local tool-call traces
models {} your rows over the model table: "<role>[ <tier>]" = "<model> <effort>"; set with wuwei config models "builder light=opus medium"
allow [] what you allow WUWEI to let through: admin-merge lets gh pr merge <n> --admin meet the merge door, and drops the gap for a merge GitHub blocks for a reason WUWEI cannot name; every other safety gap still holds, and wuwei init stops adding the harness deny for --admin. auto-approve lets wuwei plan view and wuwei plan add approve each open item on an open goal (a heading of .wuwei/goals.md you have not ruled met) without a plan: question; each approval is a plan.approved ledger row with auto: true and the view line, which wuwei report lists, and an item on any other goal label still waits for you. It applies to every repository in the workspace; wuwei config allow <names> replaces the whole list, so name both to keep both: wuwei config allow "admin-merge, auto-approve" writes allow = ["admin-merge", "auto-approve"]. owner-on-github sends every owner question to GitHub: the question tool refuses each one and names wuwei ask, and an infrastructure command is refused (park its item as an owner-run step) instead of asking you in the session

Files

Path Holds
.wuwei/plan.json the running queue
.wuwei/goals.md the goals, the direction
.wuwei/plan.html the plan view you approve
.wuwei/standards.md rules the retro promoted, per role; a Review requests: <where> line names where reviews are asked; a Generated (<owner/repo>, <date>): <globs> line names files, off risky, owner and contract paths, whose change after a pass needs no delta review
.wuwei/verdicts/<item>/ the sentinels' verdict files
.wuwei/ledger/<clone>.jsonl the hash-chained record, one file per clone
.wuwei/.gitignore keeps the state out of working branches; it travels on wuwei/state
.wuwei/traces.jsonl local telemetry
.wuwei/days/<date>/report.md each checkpoint's report
.wuwei/retro/<date>.md the steward's retro
.wuwei/canary the workspace canary token

PR body lines

Line When
<sub>[WUWEI <version>](https://taoq-ai.github.io/wuwei/) · Item `<id>` · <title> · Goal <G-n> · Tier <tier></sub> always, last line; the older WUWEI-Item: <id> still links, with a process-fit line naming the footer
No test: <reason> a change no test can hold
Size: <reason> over about 400 changed lines
Rollback: <how to undo> full tier, or owner_paths touched
BREAKING CHANGE: <what> (and ! in the title) a major only: an incompatible change to the public API, as Breaking changes declares it; a stricter check of a rule the docs already state is a fix: (a patch) with release notes in the body
Announcement: <url> a breaking change: one http(s) URL alone on the line, without brackets, of a communication that already exists (a PR or issue comment, or a published release note or migration guide); a changelog entry written at release does not count

Verdict format

Verdict: PASS | FIX | ESCALATE
Gate: arch | quality | security | goal
Item: <plan item id>
PR: <owner/repo>#<number>   (or <owner/repo> alone before its draft PR exists)
Head: <the 40-character sha you reviewed>
Confidence: low | medium | high
Breaking: no | yes: <what breaks for which clients>   (arch only)
Trust: none | widened: <the trust path a caller can now reach>   (security only)

## Findings
- [critical|high|medium|low] <file>:<line> blocks: yes. Failure: <the concrete scenario>
- [low] <file>:<line> blocks: no. <a note>   (the <file>:<line> is optional on a note)
(or none)

A blocking finding names its <file>:<line>; a note without a place in the code leaves it out. The reviewer ends its report with Verdict file: <path>. A written verdict file is never edited: a corrected or second verdict for the same head goes to the next free <gate>-<sha7>-2.md.