Skip to content

Commit 2d265e8

Browse files
committed
Add Codex comparison and modern profiler
1 parent 0f29d7f commit 2d265e8

5 files changed

Lines changed: 3018 additions & 0 deletions

File tree

docs/agent-conversation-profile.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ It is intended for local investigation of where an agent run spent time:
77
reasoning, assistant text, tool calls, tool results, and unsupported or unknown
88
records.
99

10+
`experiment/agent-conversation-profile-modern-codex.mjs` is a compatibility
11+
variant for newer Codex JSONL streams. It keeps the same CLI and output shape,
12+
but additionally recognizes Codex `agent_message`, `command_execution`,
13+
`mcp_tool_call`, `file_change`, and turn/thread lifecycle records. Use it for
14+
recent `codex exec --json` captures when the original profiler reports most of
15+
the run as `unknown` or double-counts started/completed MCP calls.
16+
1017
## Usage
1118

1219
```bash
@@ -16,6 +23,15 @@ node experiment/agent-conversation-profile.mjs \
1623
--out target/agent-profiles/run-1
1724
```
1825

26+
For newer Codex event streams:
27+
28+
```bash
29+
node experiment/agent-conversation-profile-modern-codex.mjs \
30+
--left locality-codex-events.jsonl --left-label locality \
31+
--right notion-mcp-codex-events.jsonl --right-label notion-mcp \
32+
--out target/agent-profiles/modern-codex-run-1
33+
```
34+
1935
The script accepts JSONL, JSON arrays, or JSON objects containing nested event
2036
arrays. It does not discover local Claude or Codex history files; pass explicit
2137
export paths so the run is deterministic and auditable.

0 commit comments

Comments
 (0)