Suggested tasks ("chips") follow .agents/pstack/rules/chips.md (ledger paths, token grammar, priority/via:, ownership, card limits, landing). Read it in full before the first ledger write unless a card brief already carries its rules.
Run ledger commands with node .agents/pstack/decisions-check.mjs <command>, passing --session <id> on board reads when the runtime has a session tool.
| Mode | Purpose |
|---|---|
Sweep (/chips, /chips all, /chips sync, /chips codex) |
Reconcile open tasks, settle stale/dup rows, card Ready tasks (sync skips cards; all adds ship-list, unowned tasks, chips groups; codex sets Codex handoff outside trunk). |
| Offer | Add a new task per chips.md priority and via: rules. |
| Close | Card this run's Ready offers at final hand-back (no full sweep). |
| Start | Start a card session or start <id> run. |
| Drop | Record an owner drop request. |
For read-only questions ("what's next", "is chip X worth doing"), run chips and chips stale, judge from code, and report without logging rows or cards.
Sweep
- Read board and clean up. In trunk delivery, run
node .agents/pstack/setup.mjsfrom the main checkout first. Runchips --session <id>(orchips sync) andchips stale. When a session-list tool exists, dump all sessions (including archived) as JSON in the run directory and runchips cleanup --sessions <file> --session <id>: fix unsettled friction from Archive/Keep reports, archive Archive sessions, rerunchips cleanup, and run its printedscan.mjs --remove. Under/chips all, re-read withchips all --session <id> --sessions <file>. - Apply Do-list passes in one
append --from <file>batch until only Card pass or stale-plan items remain:- Withdrawal: dismiss each named card and log
started,dismissed declined, oruncarded. - Ledger: log merges/folds, verify repro before P0/P1, and add
review-scope:on ship offers. Defer stale-plan items to step 4. - Check: inspect referenced sessions and log settled rows; leave unresolved ones started for step 6.
- Withdrawal: dismiss each named card and log
- Judge stale items in one batch:
- Fixed ->
dismissed doneciting commit(s). - Deleted target ->
dismissed superseded(verify companion repo); moved/missing path ->updatedwith real path. - Closed unmerged PR wait ->
updatedwaits. - Out-of-domain or hook-offered task owned here -> withdraw own card,
updatedwithsession: none. - Duplicate (2 shared evidence types and 1 fix removes both) ->
dismissed dup(orwaits: task:<keeper>if keeper is active). - Started task committed ->
landed. - Thin finding ->
foldedwith source finding (withdraw own card first). - Missing
review-scope:, wrongpriority:, or closed ship item ->updatedordismissed done. - Under
/chips all, runchips groupsand settle each pair (dismissed dup,apart+waits, or separate topics).
- Fixed ->
- Re-run step 2 including stale-plan items.
- Card pass (skip under
/chips sync): check dependencies, effort, and active-planwrites:collisions (waits: run:<plan>instead of carding). Offer cards in one turn perchips.md, then batch-logcarded(codex: alwaysunder/chips codex). - Report: cleanup results and kept worktrees, stale plans, rows logged, Ready (
start <id>for uncarded), started (drop <id>), waiting by blocker, fast work owed review, and commit links. Settle open questions from repo law or offer a P0/P1decidetask.
Offer
Follow chips.md for priority, via:, and token rules; put other P2/P3 side findings in ## Open work or the reply.
- Run
chips --session <id>andchips brief <id>on related open tasks. - Log
foldedon an uncarded match, offer withwaits: task:<id>if the match is started/carded, or mintchips idand offer with all tokenschips.mdrequires (pluswaits: run:<plan>on colliding active plans). - Append via
append <ledger> chip "<id> <title>" "<finding>" "<tokens>" <result>. - Defer carding to Close.
Close
At final hand-back after landing, closing the plan, and fixing friction:
- Check each task offered in this run via
chips brief <id>; batch-add missingwaits:orapartrows. - Card Ready, non-deferred, in-domain offers per
chips.md, then batch-logcarded. - Add the closing summary line from
chips.mdright above the link list.
Start
Run before editing in a card session or start <id> run. In T3 Code, launch a standalone user-picked chip via t3_thread_launch in its own worktree (workspaceStrategy), replacing Claude Desktop's start_session/detach_session; run a quick in-topic chip in-thread or via invoke_subagent (Model: "inherit").
- Run
chips brief <id>and follow its brief. - If
State:is neither Ready nor Started, report it and stop. - Log
startedwithsession: <id>and missingwrites:, then re-readchips brief <id>. Note if session effort exceeds brief effort. - Log another
startedrow before editing any unlisted path. - Finish per
chips.mdCard landing, run Close on offered tasks, and mark the worktree viascan.mjs --landed.
Drop
- Started task ->
dismissed stopped. - Card held by this session -> dismiss card; log
startedif already started, elsedismissed declinedwithcard:. - Card held by another session ->
dismissed declinedwithcard:. - No card ->
dismissed declined.