feat(cli): add compare, watch, tag, prune, aliases, scoped resume, stats --csv, batch export#317
Merged
Merged
Conversation
…ats --csv, batch export Add eight session-management CLI commands (integrated from parallel swarm work, rebased onto current main): - dispatch compare <a> <b> side-by-side session comparison as text/JSON (#264) - dispatch export --filter batch-export filtered sessions (#265) - dispatch watch monitor session attention outside the TUI (#271) - dispatch tag add/remove/set/list session tags from the CLI (#273) - dispatch aliases list session aliases (#275) - dispatch open --current resume the most recent session scoped to the current repo/branch/folder (#276) - dispatch prune clean stale session config entries (#277) - dispatch stats --csv CSV output for stats (#279) Closes #264 Closes #265 Closes #271 Closes #273 Closes #275 Closes #276 Closes #277 Closes #279 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 524cf702-8922-4cfd-b23f-4069b734e09b
jongio
force-pushed
the
feat/swarm-cli-commands
branch
from
July 17, 2026 19:43
ab9ca4b to
cea169f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add eight session-management CLI commands, integrating parallel "swarm" work rebased onto current
main(which already has the git status feature from #316):dispatch compare <a> <b> [--json]- side-by-side session comparisondispatch export --filter ...- batch-export filtered sessionsdispatch watch [--once]- monitor session attention outside the TUIdispatch tag <id> [add/remove/set/list]- manage session tags from the CLIdispatch aliases [--json]- list session aliases with orphan detectiondispatch open --current- resume the most recent session scoped to the current repo/branch/folderdispatch prune [--apply]- clean stale session config entriesdispatch stats --csv- CSV output for statsWhy
These round out the non-interactive CLI surface so sessions can be scripted, filtered, and maintained without the TUI. Each was a tracked
ideabacklog item; this batch clears eight of them for the next release.Closes #264
Closes #265
Closes #271
Closes #273
Closes #275
Closes #276
Closes #277
Closes #279
How
The commands live in
cmd/dispatch/(compare.go,watch.go,tag.go,prune.go,aliases.go, plusstats.go/export.go/open.goextensions) and are wired throughcli.go/main.go.opengains a--currentflag that auto-detects the repo/branch from the working directory for a scoped "resume most recent".This work was developed in parallel with the git status feature and was rebased onto current
main. The overlap (open.go,keys.go, theparseOpenArgsarity, and the pre-existing test-compile fixes) was resolved in favor of keeping both features:parseOpenArgsnow returns the 8-value form for--current, andkeys.gokeeps the current bindings (the CLI commands add no TUI keybindings).Testing
go build ./cmd/dispatch/passesgo test ./...passes (full suite green, incl. race detector viamage install)go vet ./...passescompare_test.go,watch_test.go,tag_test.go,prune_test.go,aliases_test.go,stats_test.go,export_test.go,open_test.go)Quality Gates
mage installexhaustivegap intag.goScreenshots
CLI commands (no UI). Run
dispatch --helpto see the new subcommands and flags.