Command reference
Launch agents, attach to sessions, replay recordings, and move traces between machines.
Launch and record
tracce claude [args...]
tracce codex [args...]
tracce exec -- <command> [args...]The launched command owns the first terminal. Open the dashboard in a second terminal.
Attach to a running agent
tracce attach
tracce attach <pid>
tracce attach --agent codex
tracce attach --agent claudeWithout a PID, tracce discovers running agents and opens a picker when more than one is available.
View and replay
tracce view
tracce view --latest
tracce view <session-id-prefix>
tracce listtracce view always opens the session picker. --latest skips the picker and opens the newest session.
Export and import
tracce export <session-id-prefix>
tracce export --latest -o run.tracce.tgz
tracce import run.tracce.tgzAn export is a self-contained compressed session. After importing, replay it with tracce view <id>.
Repair permissions
If an interrupted trace leaves session files with unexpected ownership:
tracce fix-permsTwo-terminal workflow
Claude Code and Codex are terminal-first interfaces, so the live dashboard always runs in a separate terminal from the traced agent.