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 |