Skip to content

Add JSONL filter for codex output#13

Merged
juhgiyo merged 1 commit intomainfrom
claude/jsonl-filter
Mar 17, 2026
Merged

Add JSONL filter for codex output#13
juhgiyo merged 1 commit intomainfrom
claude/jsonl-filter

Conversation

@juhgiyo
Copy link
Copy Markdown
Contributor

@juhgiyo juhgiyo commented Mar 17, 2026

Summary

  • Adds filter subcommand that reads Codex JSONL from stdin, extracts only agent_message text
  • Build command now pipes codex exec --json through the filter via sh -c
  • Session output shows clean agent messages instead of raw JSONL events

Test plan

  • All 14 tests pass including new TestCmdFilter
  • Run a session via strawpot-codex and verify output contains only agent messages

🤖 Generated with Claude Code

Adds a `filter` subcommand that reads Codex JSONL from stdin and
emits only the text from agent_message events. The build command
now pipes codex exec --json through this filter so session output
contains only the agent's final messages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@juhgiyo juhgiyo merged commit 159e5b1 into main Mar 17, 2026
1 check passed
@juhgiyo juhgiyo deleted the claude/jsonl-filter branch March 17, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant