TokenDanceCode
Updated 2026-06-18

CLI Reference

Conversation and execution

tokendance                              # Start interactive session
tokendance run "summarize this repo"    # One-shot, non-interactive
CommandWhat it does
tokendanceLaunch the full interactive terminal with slash commands and context management
tokendance run "<prompt>"Submit a single prompt and get the result — ideal for scripts and automation

Diagnostics and config

tokendance doctor --json               # Check API keys, permissions, status
tokendance config validate --json      # Validate configuration files
CommandWhat it does
tokendance doctorDiagnose environment health: API key presence, permission config, system compatibility
tokendance config validateValidate format and values of config files under ~/.config/tokendance/
tokendance config pathPrint the full path to the active config file

Sessions and transcripts

tokendance sessions                      # List past sessions
tokendance transcript search "needle"    # Search conversation history
tokendance resume <session-id>           # Resume a saved session
CommandWhat it does
tokendance sessionsList all past conversation sessions with summaries
tokendance transcript search "<query>"Search all JSONL transcripts for a keyword
tokendance transcript export <id>Export the full conversation record for a session
tokendance resume <id>Resume an unfinished session with its previous context intact
tokendance contextInspect current session context usage
tokendance compactCompact context to free token space

Workflow commands

CommandWhat it does
tokendance diffShow changes in the working directory since last commit
tokendance reviewRun a code review on the current diff
tokendance quality "<cmd>"Run a quality check command and collect results
tokendance tasksManage the task list for the current session
tokendance todoManage to-do items for the current session
tokendance toolsList available tools and their permission status
tokendance worktreeManage isolated Git workspaces
tokendance agentsManage sub-agent configuration and status
tokendance memoryManage persistent cross-session memory

All commands support --json output for consumption by AgentHub, scripts, and diagnostic panels.

Edit this page on GitHub