@@ -12,14 +12,14 @@ The `import` command converts agent session transcripts into AgentV's `Message[]
1212| Provider | Command | Source |
1313| ----------| ---------| --------|
1414| Claude Code | ` agentv import claude ` | ` ~/.claude/projects/<path>/<uuid>.jsonl ` |
15-
16- Codex and Copilot importers are planned for future releases.
15+ | Codex CLI | ` agentv import codex ` | ` ~/.codex/sessions/<YYYY>/<MM>/<DD>/rollout-*.jsonl ` |
16+ | Copilot CLI | ` agentv import copilot ` | ` ~/.copilot/session-state/<uuid>/events.jsonl ` |
1717
1818## ` import claude `
1919
2020Import a Claude Code session transcript .
2121
22- ### Discover available sessions
22+ ### List available sessions
2323
2424``` bash
2525agentv import claude --list
@@ -35,12 +35,6 @@ Found 5 session(s):
3535 ed8b8c62-4414-49fb-8739-006d809c8588 3h ago -home-user-other-project
3636```
3737
38- ### Import latest session
39-
40- ``` bash
41- agentv import claude --discover latest
42- ```
43-
4438### Import a specific session
4539
4640``` bash
@@ -50,27 +44,68 @@ agentv import claude --session-id 4c4f9e4e-e6f1-490b-a1b1-9aef543ebf22
5044### Filter by project path
5145
5246``` bash
53- agentv import claude --discover latest --project-path /home/user/myproject
47+ agentv import claude --list --project-path /home/user/myproject
5448```
5549
5650### Custom output path
5751
5852``` bash
59- agentv import claude --discover latest -o transcripts/my-session.jsonl
53+ agentv import claude --session-id < uuid > -o transcripts/my-session.jsonl
6054```
6155
6256Default output: ` .agentv/transcripts/claude-<session-id-short>.jsonl `
6357
58+ ## ` import codex `
59+
60+ Import a Codex CLI session transcript .
61+
62+ ### List available sessions
63+
64+ ``` bash
65+ agentv import codex --list
66+ ```
67+
68+ ### Import a specific session
69+
70+ ``` bash
71+ agentv import codex --session-id 019d5cff-9f02-7bc3-8f98-2071ba17ef0e
72+ ```
73+
74+ ## ` import copilot `
75+
76+ Import a Copilot CLI session transcript .
77+
78+ ### List available sessions
79+
80+ ``` bash
81+ agentv import copilot --list
82+ ```
83+
84+ ### Import a specific session
85+
86+ ``` bash
87+ agentv import copilot --session-id 9ca6d90c-1d80-40d1-b805-c59ee31fc007
88+ ```
89+
6490## Options
6591
92+ All three providers share the same core flags:
93+
6694| Flag | Description |
6795| ------| -------------|
6896| ` --session-id <uuid> ` | Import a specific session by UUID |
69- | ` --discover latest ` | Import the most recent session |
70- | ` --project-path <path> ` | Filter sessions by project path |
71- | ` --output, -o <path> ` | Custom output file path |
72- | ` --projects-dir <dir> ` | Override ` ~/.claude/projects ` directory |
7397| ` --list ` | List available sessions instead of importing |
98+ | ` --output, -o <path> ` | Custom output file path |
99+
100+ Provider-specific flags:
101+
102+ | Flag | Provider | Description |
103+ | ------| ----------| -------------|
104+ | ` --project-path <path> ` | Claude | Filter sessions by project path |
105+ | ` --projects-dir <dir> ` | Claude | Override ` ~/.claude/projects ` directory |
106+ | ` --date <YYYY-MM-DD> ` | Codex | Filter sessions by date |
107+ | ` --sessions-dir <dir> ` | Codex | Override ` ~/.codex/sessions ` directory |
108+ | ` --session-state-dir <dir> ` | Copilot | Override ` ~/.copilot/session-state ` directory |
74109
75110## Output Format
76111
@@ -101,10 +136,13 @@ Token usage is aggregated from the final cumulative value per LLM request. Durat
101136Import a session , then run evaluators against it :
102137
103138``` bash
104- # 1. Import the latest Claude Code session
105- agentv import claude --discover latest
139+ # 1. List sessions and pick one
140+ agentv import claude --list
141+
142+ # 2. Import a session by ID
143+ agentv import claude --session-id 4c4f9e4e-e6f1-490b-a1b1-9aef543ebf22
106144
107- # 2 . Run evaluators against the imported transcript
145+ # 3 . Run evaluators against the imported transcript
108146agentv eval evals/my-eval.yaml --transcript .agentv/transcripts/claude-4c4f9e4e.jsonl
109147```
110148
0 commit comments