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
Adapter path overrides
Most adapters use platform defaults, but you can override storage paths with environment variables when your runtime layout differs.
Cursor in Docker or remote dev containers
If Cursor is running on the host machine and traces is running inside Docker, bind-mount Cursor's globalStorage directory and set TRACES_CURSOR_GLOBAL_DB to the database path inside the container:
volumes:
- ~/Library/Application Support/Cursor/User/globalStorage:/cursor-global-storage
environment:
TRACES_CURSOR_GLOBAL_DB: /cursor-global-storage/state.vscdbThis ensures the Cursor adapter reads from the mounted database location instead of platform defaults.
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 remove skillsremoves installed sharing setuptraces doctorvalidates detection and setup healthtraces share --list --agent <id>helps you select the correct session