/dx-hub:dx-hub-status [ticket-id (optional)] [--json] | --cleanfrom dx-hub
Shows hub dispatch status across repos, including running, done, blocked, or failed states. Supports summary view, per-ticket details, JSON output, and cleanup of stale entries.
Ships in dx-hub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You display the status of hub dispatches across all configured repos.
Before anything else, read .ai/config.yaml. If hub.enabled is not true, STOP with:
Hub mode is not enabled. Run `/dx-hub-init` first.
<ticket-id> → detailed view for that one ticket--clean → remove state entries older than hub.state-ttl, report count--json (alone or with <ticket-id>) → machine-readable output for tools: see JSON mode below, then STOPRead from config:
hub.state-ttl — retention period for clean mode (default: 7d)repos[] — list of repos with paths (for reading spec dirs in detailed view)--json)Print the status files as one JSON array and nothing else — no table, no prose before or after, so a tool can parse stdout:
bash "${CLAUDE_SKILL_DIR}/scripts/status-json.sh" state [<ticket-id>]
(${CLAUDE_SKILL_DIR} is this skill's directory; on a host that does not substitute it, run scripts/status-json.sh from this skill's folder.) Each element is a state/<id>/status.json object as /dx-hub-dispatch wrote it — ticket, title, type, skill, engine, started, repos (<repo>: pending | running | done | blocked | failed; pending = a --no-launch dispatch not yet started), sessions (<repo>: <session id>, for the copilot engine and --no-launch) and, with --no-launch, launch (<repo>: {cwd, command}). An unreadable file becomes {"ticket": "<dir>", "error": "unreadable status.json"}. No dispatches → [] (not the "No active dispatches" message). STOP after printing.
Glob state/*/status.json to find all dispatch state files.
If no files found, print: No active dispatches found. Run /dx-hub-dispatch to start one. and STOP.
Print a summary table:
Hub Dispatch Status
───────────────────────────────────────────────────
┌──────────┬─────────────────────────┬──────────────┬──────────┐
│ Ticket │ Title │ Repo │ Status │
├──────────┼─────────────────────────┼──────────────┼──────────┤
│ 2471234 │ Add user profile page │ repo-fe │ done │
│ │ │ repo-be │ running │
│ 2471189 │ Fix auth timeout │ repo-be │ blocked │
└──────────┴─────────────────────────┴──────────────┴──────────┘
Legend: done ✓ running ⟳ pending · blocked ⚠ failed ✗
For multi-repo dispatches, show ticket and title only on the first row.
<ticket-id> argument)Find state/<ticket-id>/status.json. If not found, print: No dispatch found for ticket <ticket-id>. and STOP.
Read the status file and print:
## Dispatch: <ticket-id> — <title>
**Type:** <type>
**Skill:** <skill>
**Started:** <started timestamp>
### Repo Status
| Repo | Status |
|------|--------|
| <repo-a> | done |
| <repo-b> | running |
If any repo is blocked, add:
⚠ <repo-name> is blocked — switch to its terminal to investigate.
If any repo is done, optionally check for spec files in that repo:
ls <repo-path>/.ai/specs/<ticket-id>-*/
Report which pipeline artifacts exist (raw-story.md, explain.md, implement.md, pr.md) as a quick progress indicator.
Print:
Context file: state/<ticket-id>/context.md
--clean)hub.state-ttl — support 7d, 30d, 24h formats. Convert to seconds.state/<dir>/status.json:
started timestamprunning, delete the directory with one rm -rf state/<ticket-id> per directory, the ticket id written out literally — never state or state/ itself, no shell variable, loop or $(...) as the target (Claude Code v2.1.281+ stops on those for a permission prompt even in bypass mode, which stalls a pipeline run)runningHub State Cleaned
─────────────────
Removed: <N> dispatch dir(s) older than <hub.state-ttl>
Retained: <M> dispatch dir(s)
/dx-hub-status
Shows summary table of all dispatches with per-repo status.
/dx-hub-status 2471234
Shows detailed view with repo statuses. For completed repos, shows which spec files exist.
/dx-hub-status --json
Prints [{"ticket": "2471234", "repos": {...}, "sessions": {...}, ...}] — one array, nothing else.
/dx-hub-status --clean
Removes dispatch state directories older than hub.state-ttl (default 7 days).
Cause: No status.json files in state/.
Fix: Run /dx-hub-dispatch <ticket-id> to start a dispatch.
Cause: The repo's Claude session finished but did not update status.json (prompt instruction was not followed).
Fix: Manually edit state/<ticket-id>/status.json to set the correct status, or check the repo's spec directory for completion indicators.
hub.enabled before doing anything elsestate/ relative to hub CWDrunningWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub easingthemes/dx-aem-flow --plugin dx-hub5 skills in this plugin
/dx-discover-reposResolve which repos a work item touches (explicit directive → simple block → cross-repo table → LLM). Used by the KAI-HUB router to fan an agent out across repos; 'which repos'./dx-hub-configView and edit hub configuration — add repos, fill missing defaults, adjust terminal delay. Use to manage hub settings. Trigger on "hub config", "add repo to hub", "terminal delay"./dx-hub-dispatchDispatch a ticket to several repos — open an independent Claude Code or Copilot CLI session per repo in VS Code terminals. Use for 'hub dispatch', 'work on ticket across repos'./dx-hub-initInitialize a hub directory for multi-repo orchestration. Discovers sibling repos, merges configs, validates CLI compatibility. Use when setting up hub mode for the first time. Trigger on "init hub", "set up hub", "multi-repo setup".