Documentation
¶
Overview ¶
Command wg reaches Workgraph over HTTP, with a personal API token.
wg login store a token
wg whoami who this credential is
wg inbox what needs me
wg ask "what changed" the chief-of-staff questions
wg work list|queue what work exists, and what it cost
wg work file <plan.json> [--project <slug>]
queue a planning job
wg work dispatch wg-abc run one bead
wg project list|show <slug>
wg tokens list
NOT wg-work, which is a different program for a different situation. Its own doc comment gives the reason: it reaches the queue over the database because it runs where the database is, so a demo or an incident does not depend on a browser. That is right for the control node and impossible on a laptop, which would need a PostgreSQL connection string — and handing that out is the opposite of what wg-p4h exists to do.
Two properties matter more than the command set (wg-p4h.6).
--json on everything, in the shape the OpenAPI document specifies rather than a second rendering. An agent parses stdout, and a pretty table that is subtly not the API's shape is a bug that only ever appears in agent transcripts.
Exit codes a script can branch on: 0 ok, 2 usage, 3 unauthenticated, 4 forbidden, 5 refused by policy, 6 rate limited, 7 conflict, 1 anything else. A skill can act on those; it cannot act on prose.