Repository navigation
Add Codex Desktop transcript harvesting - #48
Closed
Kostarev Kirill (Kirchberg) wants to merge 1 commit into
Closed
Kostarev Kirill (Kirchberg) wants to merge 1 commit into
Kostarev Kirill (Kirchberg) wants to merge 1 commit into
Conversation
Contributor
Author
|
@microsoft-github-policy-service agree |
Zisu Huang (Huangzisu)
pushed a commit
that referenced
this pull request
Jun 15, 2026
Add Codex Desktop transcript harvesting
Contributor
|
Merged manually after rebasing onto main (post #49 merge). All conflicts resolved — kept main's expanded plugin docs, integrated PR's |
Yifan Yang (Yif-Yang)
added a commit
to Yif-Yang/SkillOpt
that referenced
this pull request
Jun 15, 2026
…g branch Pulls microsoft/main after the merged community PRs: OpenClaw plugin shell (microsoft#59), Codex Desktop transcript harvesting + skill-first integration (microsoft#48/microsoft#49), shared-default reflect refactor (microsoft#44), and benchmark-guide doc fixes (microsoft#43). Conflict resolution: shared plugin/docs/engine files (README, plugins/codex/*, backend.py, docs/sleep/*) taken from upstream — upstream already contains my pushed plugin (86bad36) plus the community additions, so this loses nothing of mine. .gitignore unioned. Codex prompt files removed to follow upstream's skill-first design. My local-only work (blog/, docs/sleep experiments, v2 research harnesses) is untouched; engine fixes (sample_id dream diversity, guarded imports, retry) preserved. 104/104 tests pass. Co-Authored-By: Claude Opus 4 <[email protected]>
This was referenced Jun 17, 2026
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 native Codex Desktop transcript harvesting to SkillOpt-Sleep
Previously, the Codex integration could use Codex as the replay/optimization backend, but the sleep-cycle harvester still depended on Claude Code-style transcripts. This meant Codex Desktop users did not have a direct path for mining their real archived sessions
This change adds a Codex Desktop source that reads
~/.codex/archived_sessions, normalizes user/assistant turns intoSessionDigestrecords, and avoids copying developer/system context, tool arguments, or raw tool outputsChanges
skillopt_sleep.harvest_codexfor Codex Desktop archived session JSONL files--source claude|codex|auto--codex-homefor non-default Codex home directoriesrun,dry-run, andharvestthrough the selected transcript source--source codexexamplesNotes
--source codexcontrols where past sessions are harvested from--backend codexstill controls whether Codex is used as the replay/optimization backend and may spend the user's Codex budgetRelated to #45, but does not fully resolve the broader Codex plugin UX feedback around deprecated custom prompts and skill-first setup
Verification
python -m pytest testsruff check --no-cache skillopt_sleep/harvest_codex.py skillopt_sleep/harvest_sources.py skillopt_sleep/__main__.py skillopt_sleep/config.py skillopt_sleep/cycle.py skillopt_sleep/types.py skillopt_sleep/memory.py tests/test_sleep_engine.pypython -m skillopt_sleep dry-run --project /Users/kirchberg/Yoshi --source codex --codex-home /Users/kirchberg/.codex --backend mock --lookback-hours 8760 --json