Usage

dispatch [command | flag]

Running dispatch with no arguments launches the interactive TUI.

Commands

Command / FlagDescription
open <id>Resume a session by ID, alias, or short prefix. Flags: --last, --print, --stdin, --mode, --repo, --branch, --folder, --current, --agent, --model, --yolo.
new [dir]Start a new session from the CLI, with --mode/--agent/--model/--yolo overrides.
search [query]Non-interactive session search with --json, --table, --ids, --deep, and filters.
statsSession totals and breakdowns by repository, branch, folder, and host, with --json, --csv, --calendar, --top.
export <id>Export a session as Markdown, JSON, or HTML, with --redact, --stdout, and batch by --repo/--branch/--query.
info <id>Print a concise summary of one session.
compare <a> <b>Compare two sessions side by side, with --json.
tagsList all tags with per-tag session counts, with --json, --csv, or --markdown.
tag <id>Add, remove, or set tags on a session (--add, --remove, --set, --json).
notesGet, set, or clear a session's local notes.
viewsList named views with --json or --csv, and switch the active view.
aliasesList all session aliases.
alias listList all session aliases, with --json for scripting.
watchMonitor attention state across sessions (--once, --json, --interval).
pruneReport and remove stale config entries (--apply, --json).
configRead and set preferences (list, get, set, unset, edit, path).
doctorPrint setup diagnostics, with --json.
completion <shell>Generate a completion script (bash, zsh, fish, powershell).
manGenerate a roff man page.
updateCheck GitHub Releases for a newer version and upgrade in-place.
versionPrint the version number and exit.
helpShow usage information and exit.

Flags

Command / FlagDescription
-h, --helpShow usage information and exit.
-v, --versionPrint the version number and exit.
--demoLaunch with a demo database of synthetic sessions.
--clear-cacheReset all configuration to defaults.
--reindexRebuild the session store index via Copilot CLI.

Environment Variables

Command / FlagDescription
DISPATCH_DBPath to a custom session store database.
DISPATCH_SESSION_STATEPath to a custom session state directory.
DISPATCH_CONFIGPath to a custom config file (overrides the default location).
DISPATCH_LOGPath to a log file. Enables debug logging when set.
DISPATCH_NO_UPDATE_CHECKSkip the background release check when set to 1, true, yes, or on.

Examples

# Launch the TUI
dispatch

# Resume the most recent session
dispatch open --last

# Search sessions in table form
dispatch search auth --table

# Print stats as JSON
dispatch stats --json

# Check for updates
dispatch update

# Try with demo data
dispatch --demo

# Use a custom database
DISPATCH_DB=~/my-sessions.db dispatch