Add optional Codex startup routing - #92
Merged
Merged
Conversation
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 #88
What changed
Codex can use the bundled startup hook to enter Pstack for engineering work. Its native
/hookstrust and enable controls own the opt-in. Startup, resume, clear, and compaction reuse one shared routing instruction, with lightweight handling for trivial requests and explicit user overrides.Routing-only setup leaves model assignments and spending permissions untouched. Adds regression tests, a clean-session verification recipe, and package version 1.10.0.
Verification
62e855d160fc5c95e99fb4e9553162499f8630e4, version 1.10.0, installed in separate Codex and Claude Code profiles. All 213 packaged files match the candidate, excluding generated dependencies.Observed on macOS after authenticating both dedicated profiles:
/hooks, trusted it, and later disabled it using native controls. Independenthooks/listreads confirmed trusted/enabled and trusted/disabled states for the exact candidate definition.poteto-mode/SKILL.md. Native transcripts show the exact shared instruction as developer context only in enabled runs. The enabled run was stopped after the routing observation; this verifies routing, not completion of the fixture feature.$pstack:poteto-modestill caused native skill injection while the hook was disabled./clear, and/compactactions re-delivered the exact shared instruction. The transcript records a new developer message after the compaction event, independently of the pre-compaction message./hooks, and ran no provider probes or model writes. Before/after hashes of the personal model files matched; dedicated-profile model files remained absent.Skilltool withpstack:poteto-modeand received the installed skill content. A pure question invoked no skill. Real startup,/clear, and resumed/compactCLI actions each emitted the exact shared context with hook exit code 0. The routing run was stopped after the skill invocation/expansion; it verifies selection, not full fixture feature completion. Plugin listing reports the dedicated cache; live initialization reports the local marketplace source tree. Both match the exact candidate; runtime cache selection is not claimed.The updated head merges documentation-only changes from
main. Its packaged tree is byte-identical to the candidate exercised above; both dedicated installations were compared again against all 213 files. The startup-routing recipe records the reproducible checks. Native transcripts and hook events were checked independently of model self-reports.Original and updated-head CI passed (run). Copilot review was requested and returned a quota-limit notice; it provided no findings or approval.
Documentation impact
Updated
README.md,setup-pstack/SKILL.md, the shared routing instruction,UPSTREAM.md, the verification map, andCHANGELOG.md. The routing preference uses host controls; no second preference file orAGENTS.mdmandate is added.