CLI
Supported Agents
Agent compatibility matrix for the Traces CLI adapters.
Traces uses adapter modules in the CLI to read each agent's native storage format and normalize sessions into a common trace structure.
Compatibility matrix
| Agent | Identifier | Storage format |
|---|---|---|
| Claude Code | claude-code | JSONL |
| Cursor | cursor | SQLite |
| OpenCode | opencode | JSON + SQLite |
| Codex | codex | JSON |
| Gemini CLI | gemini-cli | JSON |
| Pi | pi | JSON |
| Amp | amp | JSON |
| Copilot (VS Code) | copilot | SQLite |
| Cline | cline | JSON |
How adapters work
When you run traces share, the CLI:
- Auto-detects which agent was used (or uses the
--agentflag) - Locates session data from known storage paths
- Normalizes data into typed trace messages
- Uploads the result through the API
Agent detection
The CLI detects agents by checking signature files and directories:
- Claude Code --
.claude/ - Cursor -- Cursor storage databases and project markers
- OpenCode --
.opencode/or XDG data directories - Codex --
.codex/orcodex.json - Gemini CLI --
.gemini/directories - Pi --
.pi/directories - Amp --
.amp/and XDG data directories - Copilot --
.copilot/and Copilot instructions markers - Cline --
.cline/and Cline rules files
If multiple agents are detected, the CLI prompts you to choose. Skip detection when needed:
traces share --agent claude-codeRelated commands
traces setupinstalls share skills/hooks for detected agentstraces doctorvalidates detection and setup healthtraces share --list --agent <id>helps you select the correct session