Added Codex CLI agent integration, full test coverage (blocked on #281).#271
Draft
akshan-main wants to merge 1 commit intoentireio:mainfrom
Draft
Added Codex CLI agent integration, full test coverage (blocked on #281).#271akshan-main wants to merge 1 commit intoentireio:mainfrom
akshan-main wants to merge 1 commit intoentireio:mainfrom
Conversation
509e6f8 to
0f37059
Compare
Registers a codexcli agent package following the same pattern as claudecode and geminicli (self-registration via init(), full Agent interface, TranscriptAnalyzer, TranscriptChunker). Streaming JSONL parser that extracts thread ID, messages, commands, file changes, and token usage, made tolerant of unknown event types so it won't break when Codex adds new ones. entire codex exec [flags] -- <prompt> with --model and --sandbox flags. Uses the shared DetectFileChanges, FilterAndNormalizePaths, cleanPromptForCommit, and GetGitAuthor — no new abstractions.
0f37059 to
b7bdf64
Compare
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #245
Registers a codexcli agent package following the same pattern as claudecode and geminicli (self-registration via init(), full Agent interface, TranscriptAnalyzer, TranscriptChunker).
Streaming JSONL parser that extracts thread ID, messages, commands, file changes, and token usage, made tolerant of unknown event types so it won't break when Codex adds new ones.
entire codex exec [flags] -- with --model and --sandbox flags.
Uses the shared DetectFileChanges, FilterAndNormalizePaths, cleanPromptForCommit, and GetGitAuthor; no new abstractions.
codex exec --json, then creates a checkpoint throughstrategy.SaveChanges().Commands:
entire codex exec [flags] --
--model, -m — Override the Codex model (e.g., 4o)
--sandbox, -s— Sandbox policy (read-only, workspace-write, danger-full-access)
Usage examples:
entire codex exec -- "fix the failing tests"
entire codex exec -m 4o -- "refactor the auth module"
echo "add error handling" | entire codex exec -- -
There's no entire codex start, entire codex stop, entire codex resume, etc., because Codex CLI doesn't have a lifecycle hook system like Claude Code does. The wrapper command runs the full session in one shot: execute Codex, capture the JSONL, save the checkpoint.
This is what user sees in terminal:
Running: codex exec --json ... (stderr)
Codex runs silently (JSONL captured to temp file only)
Saved transcript to: ... (stderr)
Files modified (N): ... (stderr)
Checkpoint saved. (stderr)
Codex's last message/summary printed to stdout
thank you for entire and congratulations on the seed raised
would be great if this can be reviewed, any feedback is welcome @Soph @gtrrz-victor @khaong