Codex Capture
sivtr copy codex reads Codex rollout JSONL files from ~/.codex/sessions. By default it chooses the newest session whose cwd matches the current working directory.
This is useful when you want to reuse the last answer, input, tool output, or whole parsed session without opening the Codex transcript manually.
Defaults
Section titled “Defaults”sivtr copy codexThe default copies the last completed user plus assistant turn.
Copy a specific kind
Section titled “Copy a specific kind”sivtr copy codex outsivtr copy codex insivtr copy codex toolsivtr copy codex all| Command | Copies |
|---|---|
sivtr copy codex | Last user plus assistant turn |
sivtr copy codex out | Last assistant reply |
sivtr copy codex in | Last user message |
sivtr copy codex tool | Last tool output |
sivtr copy codex all | Whole parsed session |
Select older items
Section titled “Select older items”Selectors work the same way as command-block copy:
sivtr copy codex 2sivtr copy codex 2..4sivtr copy codex out 31 means the newest matching Codex unit, 2 means the second newest, and so on.
Filter Codex text
Section titled “Filter Codex text”sivtr copy codex tool --regex errorsivtr copy codex all --lines 1:40Use --print to inspect the copied text:
sivtr copy codex out --printPick interactively
Section titled “Pick interactively”sivtr copy codex --picksivtr copy codex out --pickThe picker shows recent units and lets you choose one or more. Press t to open the Vim-style view. In Codex views, T toggles tool content when an alternate full view is available.
Windows hotkey
Section titled “Windows hotkey”On Windows, the hotkey daemon opens the Codex picker for the project directory where it was started:
sivtr hotkey startThe default chord is alt+y. Configure it in [hotkey] or pass --chord when starting.