standup
Daily repo hygiene — review the day’s repo state, then perform the cleanups under per-action confirmation. Fast-forward only, never destructive without a yes.
What it does
Section titled “What it does”The daily hygiene checklist, made routine and gated: fetch and offer a fast-forward pull, list
locally-merged branches and stale worktrees for individual confirm-and-delete, surface stashes,
uncommitted changes, and un-pushed commits with a suggested next step, and run a read-only,
advisory board-drift sweep comparing recent merge history against open-tasks.md. Nothing destructive
happens without an explicit per-item yes, and the task board is never auto-flipped — a drifted task
is resolved only through /ca:task done <id>.
/ca:standupTakes no arguments.
Example
Section titled “Example”> /ca:standup
Fetched. Branch is 2 commits behind origin/main, tree clean — fast-forward pull? (y/n)> yPulled 2 commits.
Locally-merged branches: fix/typo-in-readme — delete? (y/n)> yDeleted fix/typo-in-readme.
Board-drift sweep: 1 DRIFTED task (poc.docs.0001 merged but not marked [x] in open-tasks.md).Resolve with /ca:task done poc.docs.0001. The sweep never auto-flips tasks.When to reach for it
Section titled “When to reach for it”The daily cleanup pass with your yes on each destructive step. For a read-only snapshot without
acting, use /ca:status; to actually flip the drifted task, use /ca:task.
| Gate | When | Effect |
|---|---|---|
| per-action confirmation | pruning a merged branch or removing a stale worktree | each candidate is confirmed individually before it’s deleted — declining leaves it in place, and nothing is batched into one implied yes |
| fast-forward-only pull | the working tree is clean and the branch is behind upstream | a —ff-only pull is offered; a dirty tree withholds the pull and reports the dirty state instead, and a diverged branch is refused rather than merged |
Related
Section titled “Related”Source
Section titled “Source”Source — plugins/ca/commands/standup.md (v2.9.1)
---description: Daily repo hygiene — review the day's repo state, then perform the cleanups under per-action confirmation. Fast-forward only, never destructive without a yes.argument-hint: (none)---
# /ca:standup — daily hygiene
The best-practice checklist you run when you sit down to code, made routine andgated. The SessionStart briefing *reports* hygiene state read-only; this command iswhere the *actions* happen — each one confirmed individually, none taken unbidden.Arbiter gathers and proposes; you decide every mutation.
## Flow
The orchestrator reads the current repo state (reusing the briefing's read-onlycomputation — branch, ahead/behind, dirty tree, stashes, prune-candidate branches,stale worktrees) and presents it, then offers each applicable action in turn. Skipan action that has no candidates; never bundle confirmations.
1. **Fetch + fast-forward pull** — kick `git fetch`, then offer a **`--ff-only`** pull of the current branch. Eligibility is the briefing summary's `ff_pull_eligible` flag (SH-6: clean working tree AND behind upstream) — the same pure helper the SessionStart briefing computes, not a condition re-derived here. On a dirty tree the pull is withheld and the dirty state is reported instead. A diverged branch (would need a merge) is refused with a diverged-branch message — never a merge commit.2. **Prune merged local branches** — list local branches already merged on remote (the `: gone]` upstream set), excluding the current branch and the default (`main`). Delete a listed branch only after an explicit per-branch confirmation; declining leaves it in place.3. **Remove stale worktrees** — list stale/merged worktrees (branch gone-or-merged, or path missing on disk), never the main worktree. Remove one only after explicit per-item confirmation; declining leaves it intact.4. **Surface stashes / dirty / un-pushed** — list stashes, uncommitted changes, and un-pushed commits, each with a suggested next step (`/ca:commit`, `git push`, `git stash show`). Report-and-route only: never discard a stash, reset, or push.5. **Advisory board-drift sweep** — run `git log` over the recent merge window (since the last `ca`-scoped tag, or a rolling 30-day window when no tag exists) and pipe that text to `python3 "${CLAUDE_PLUGIN_ROOT}/hooks/boardsync.py" reconcile || python "${CLAUDE_PLUGIN_ROOT}/hooks/boardsync.py" reconcile`. Display the advisory drift report as-is: DRIFTED tasks (work merged but board state not `[x]`) and informational UNKNOWN ids (in the log but absent from the board). This step is read-only and best-effort — the dotted-id grep can miss a task never named in a commit. The board is never mutated here; `open-tasks.md` is never written. Any drifted task must be resolved explicitly through `/ca:task done <id>` — the only blessed board writer. State this clearly to the user; do not auto-flip.
Present a one-line summary of what was done and what was declined.
## When NOT to use
- A read-only state snapshot without acting → `/ca:status`.- Install health (interpreter, payload, hooks) → `/ca:doctor`.- Transcript hygiene to extend the session → `/ca:prune`.- Committing staged work → `/ca:commit`.
## Hard gate
- MUST pull with `--ff-only` and ONLY on a clean working tree — never a merge commit, never on a dirty tree, never a rebase.- MUST exclude the current branch and the default branch from branch pruning, and the main worktree from worktree cleanup.- MUST confirm each destructive action (branch delete, worktree remove) individually before performing it — no batched or implied yes.- MUST treat stash / dirty / un-pushed state as report-and-route only — never discard, reset, force, or push on the user's behalf.- MUST NOT write to or force-push the default branch.- MUST NOT auto-flip any board entry during the drift sweep — the sweep is advisory and read-only; resolving a drifted task is the user's decision and routes exclusively through `/ca:task done <id>`.