Parse Codex `jsonl` with `jq`
michaelheap.com·3w
Preview
Report Post

I recently built a GitHub extension using ChatGPT Codex, and I wanted to share the prompts that I gave to Codex to build the tool. I thought about copy/pasting it out of the VSCode UI, but figured that the data must be available somewhere. It turns out that Codex stores sessions as .jsonl files in .codex/sessions. Looking through the session files, there’s a ton of data in there around what the LLM does, but I was only interested in messages that I sent. Fortunately each user message has type: user_message.

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help