{"_id":"@atharva-again/pi-resume-codex","_rev":"3-c4a83dc943ef6d67cc5a626ca55ab016","name":"@atharva-again/pi-resume-codex","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@atharva-again/pi-resume-codex","version":"0.1.0","keywords":["pi-package","pi-extension","codex","coding-agent"],"author":{"name":"Atharva Verma"},"license":"MIT","_id":"@atharva-again/pi-resume-codex@0.1.0","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"homepage":"https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-codex#readme","bugs":{"url":"https://github.com/atharva-again/pi/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"d694a69cb75bac9e57c31d2801c4d1b1d5b77bb1","tarball":"https://registry.npmjs.org/@atharva-again/pi-resume-codex/-/pi-resume-codex-0.1.0.tgz","fileCount":4,"integrity":"sha512-wiTFxS0twkzLcZczs7YeZeZrKsF/0dV9Tw24Zj617ElQsMvpYHRtt3mR4cKiOBejEh0qNlZ98KJM0dRedNw5QA==","signatures":[{"sig":"MEUCIQDBzQ0r7r2drBn9bOctk5LLnG4m5ervcG6FQ9Nz+onARwIgSms+oduwodbFKzAKopon8Siy0i+LvTm/+rPCdHULUcs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39495},"type":"module","engines":{"node":">=22.19.0"},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"repository":{"url":"git+https://github.com/atharva-again/pi.git","type":"git","directory":"packages/coding-agent/examples/extensions/resume-codex"},"_npmVersion":"11.13.0","description":"Pi extension for safely resuming Codex sessions","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@earendil-works/pi-tui":"*","@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-resume-codex_0.1.0_1784227243400_0.8059708935725478","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@atharva-again/pi-resume-codex","version":"0.1.1","keywords":["pi-package","pi-extension","codex","coding-agent"],"author":{"name":"Atharva Verma"},"license":"MIT","_id":"@atharva-again/pi-resume-codex@0.1.1","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"homepage":"https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-codex#readme","bugs":{"url":"https://github.com/atharva-again/pi/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"fef1cc3ef086655318d8ef5eeff58a6ccfa5cb33","tarball":"https://registry.npmjs.org/@atharva-again/pi-resume-codex/-/pi-resume-codex-0.1.1.tgz","fileCount":4,"integrity":"sha512-IexNrqvZq09MLijMKO1ZWcMHYpIdRPTUm5YlmfDRGEAyMCL/3waXFNNUqqd5VNuHPk4zaS7p2iRxQEqlV2MVyA==","signatures":[{"sig":"MEQCIHmnMsBqA8Cz072CFhTowPo/EWPMuA8ovoootus0CfxvAiBRuBfUR3Zq1S+qLwpHAXTuxeV2OqNeSJw+Fsfi2B+qSw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39646},"type":"module","engines":{"node":">=22.19.0"},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"repository":{"url":"git+https://github.com/atharva-again/pi.git","type":"git","directory":"packages/coding-agent/examples/extensions/resume-codex"},"_npmVersion":"11.13.0","description":"Pi extension for safely resuming Codex sessions","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@earendil-works/pi-tui":"*","@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-resume-codex_0.1.1_1784229767586_0.17722008931530997","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@atharva-again/pi-resume-codex","version":"0.1.2","description":"Pi extension for safely resuming Codex sessions","author":{"name":"Atharva Verma"},"type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/atharva-again/pi.git","directory":"packages/coding-agent/examples/extensions/resume-codex"},"homepage":"https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-codex#readme","bugs":{"url":"https://github.com/atharva-again/pi/issues"},"keywords":["pi-package","pi-extension","codex","coding-agent"],"pi":{"extensions":["./index.ts"]},"engines":{"node":">=22.19.0"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*","@earendil-works/pi-tui":"*"},"publishConfig":{"access":"public"},"gitHead":"9553809432ab81c3d3689fe19a3945c2dafa74f6","_id":"@atharva-again/pi-resume-codex@0.1.2","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-AZZeIsG9OBSM1CjVsJGq53StPGsI2QGJSUN3flZ3JCAQ81oD3mIkWiGMpmcWLpPOZbEeyZQIsbNtvK5OKp2gXQ==","shasum":"758e1329f2e06deba734af6a40c5d7e8b89157ae","tarball":"https://registry.npmjs.org/@atharva-again/pi-resume-codex/-/pi-resume-codex-0.1.2.tgz","fileCount":4,"unpackedSize":41821,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDadTBWSFtdbAnVEd4orgYFM5o+z60achujOv3wjy7UkgIhAI4RbmIKej4aJWx8nf0ANeLx83JCkNbtoxy0ckP3UPdf"}]},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"directories":{},"maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-resume-codex_0.1.2_1784310743413_0.5007812825224247"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-16T18:40:43.294Z","modified":"2026-07-17T17:52:23.711Z","0.1.0":"2026-07-16T18:40:43.539Z","0.1.1":"2026-07-16T19:22:47.716Z","0.1.2":"2026-07-17T17:52:23.550Z"},"bugs":{"url":"https://github.com/atharva-again/pi/issues"},"author":{"name":"Atharva Verma"},"license":"MIT","homepage":"https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-codex#readme","keywords":["pi-package","pi-extension","codex","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/atharva-again/pi.git","directory":"packages/coding-agent/examples/extensions/resume-codex"},"description":"Pi extension for safely resuming Codex sessions","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"readme":"# @atharva-again/pi-resume-codex\n\nContinue a Codex conversation in Pi without copying context by hand.\n\n`/resume-codex` imports a local Codex CLI, desktop, or IDE session as native Pi history while keeping foreign reasoning, tool activity, attachments, and unfinished output out of the model context.\n\n## Demo\n\n<img width=\"723\" height=\"455\" alt=\"pi-codex-resume\" src=\"https://github.com/user-attachments/assets/138e6911-4204-4b0b-a78f-d7efc6ef9668\" />\n\n## Install\n\n```bash\npi install npm:@atharva-again/pi-resume-codex\n```\n\nRequirements:\n\n- Pi 0.80.7 or newer\n- A recent `codex` CLI installed globally; standard Windows npm installs are also detected when npm's global bin directory is not on `PATH`\n- An existing local Codex session\n\nThe extension has been tested with Codex CLI 0.144.5.\n\n## Use\n\nRun the command from the project whose sessions you want to browse:\n\n```text\n/resume-codex\n```\n\nThe picker starts with Codex sessions from Pi's current directory.\n\n- Press Tab to switch between **Current Directory** and **All** sessions.\n- Type to search by title, directory, source, or thread ID.\n- Select a session to import it into a new native Pi session.\n- Press Escape while discovering or reading to cancel.\n\nIf you already know the full Codex thread ID, skip the picker:\n\n```text\n/resume-codex 019f5f7c-1de1-77d1-b12f-972d618e845f\n```\n\nImporting from another directory requires confirmation. Pi keeps its current working directory rather than switching to the source directory.\n\n## Supported Codex clients\n\nCodex CLI, Codex desktop, and the Codex IDE extension share local Codex history. The picker includes interactive sessions created by these clients.\n\nRegular ChatGPT conversations are not supported. They are cloud-backed and use a separate data-export workflow.\n\n## What gets imported\n\nOnly deterministic conversation text is added to Pi's model context:\n\n- User text\n- Assistant text from completed turns\n\nThe following Codex data is deliberately excluded:\n\n- Reasoning and plans\n- Commands, tool calls, and their output\n- File changes\n- Hook and system prompts\n- Attachments and images\n- Skills and mentions\n- Subagent activity\n- Failed, interrupted, or unfinished assistant output\n\nThe result is a Pi session that appears as recent in `/resume` and can be continued with the active Pi model.\n\n## Security\n\nThe extension uses the installed Codex app-server instead of reading or modifying Codex's SQLite databases or internal rollout files directly.\n\n- Discovery and history reads use Codex's documented read APIs.\n- The app-server runs only while discovery or import is active and is terminated afterward.\n- Foreign tools and tool results are never recreated as executable Pi history.\n- Protocol output, stderr, session counts, turns, and items have defensive limits.\n\n## Local development\n\nLoad the extension directly from this directory:\n\n```bash\npi -e ./index.ts\n```\n\nSource is maintained in the [`atharva-again/pi`](https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-codex) monorepo.\n","readmeFilename":"README.md"}