feat: add Codex CLI integration with transcript-based memory capture#1333
Open
0xRouteAI wants to merge 1 commit intothedotmack:mainfrom
Open
feat: add Codex CLI integration with transcript-based memory capture#13330xRouteAI wants to merge 1 commit intothedotmack:mainfrom
0xRouteAI wants to merge 1 commit intothedotmack:mainfrom
Conversation
Implements transcript watcher for Codex CLI sessions, enabling persistent memory across Codex sessions using dual integration model: - MCP for reading (search tools) - Transcript watcher for writing (observation capture) Core Implementation: - Add transcript command routing to worker CLI (init/validate/watch) - Automatic watcher lifecycle management in worker service - Support both turn_aborted and task_complete session end events - Graceful shutdown with watcher cleanup Tests (52 passing, 106 assertions): - codex-schema.test.ts: Validates all 7 Codex event types (30 tests) - processor-codex-ingestion.test.ts: Real spies verify handler calls (8 tests) - worker-transcript-cli.test.ts: Verifies worker routing at line 1146 (4 tests) - worker-managed-watch.test.ts: Hermetic lifecycle tests (10 tests) Test Improvements: - All tests use isolated temp directories (hermetic) - Real spyOn mocks verify actual handler invocations - Tests verify worker-service.ts routing and lifecycle code paths - No more smoke tests (expect(true).toBe(true)) Documentation: - README.md: Setup guide with production/dev commands - platform-integration.mdx: Comprehensive integration reference - Event mapping table updated for task_complete support - Removed misleading "without MCP" language Build artifacts updated for npm distribution. Fixes based on code review: - session_end now matches both turn_aborted and task_complete - Tests verify real worker routing, not just CLI functions - Documentation consistent on dual integration model - All files tracked in git for CI/reviewers
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Summary
This PR adds Codex CLI integration to claude-mem, enabling transcript-based memory capture for Codex sessions.
Changes
Testing
Related
Implements Codex integration as outlined in the implementation plan.