You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Separate provider packages and add initial Codex support - #56
Sage's Claude and Codex installs now come from separate source packages and self-contained plugin directories. Both bundle the same core implementation. Each plugin contains only its provider's adapter, manifest, launcher and role instructions.
The initial Codex package provides 29 skills, prompt/patch/commit advice and manual logbook/board commands. Full chief orchestration, agent limits, report/edit/Git gates, stop enforcement, compaction recovery and autopilot remain unavailable pending the native lifecycle evidence tracked in #55.
Extract principles, state rules and board into a public core API. Claude retains its model and data defaults; Codex uses inherited models and a separate data root.
Assemble pinned core and one provider into each plugin, with licenses and a version record. Keep Claude at plugins/sage; route Codex to plugins/sage-codex.
Use Codex's native manifest so discovery includes both skills and hooks.
Fix temporary test paths on macOS. Add a regression that changes only the generated Claude hook: the check rejects it, and a build restores the expected file.
Where future changes go
Change
Authored path
Claude hook
packages/sage-claude/hooks/
Claude skills and roles
packages/sage-claude/skills/ and packages/sage-claude/agents/
Shared state tool and board
packages/sage-core/state.mjs and packages/sage-core/board.mjs
Codex hooks and skills
packages/sage-codex/
Run the build after editing sources. CI runs npm run check before tests, without a build, so stale or unexpected files under plugins/ fail CI. Architecture, install steps and remaining gates are in docs/design/provider-packages.md.
npm run check:codex: Codex CLI 0.160.0 discovers 29 skills and 2 hooks; no model turn or install attempted.
The new generated-hook regression fails on a detached worktree of main at f4061a3: main's check returns 0 after the hook changes, where the test requires 1. It passes here.
Tests used fake ps, pgrep and kill first on PATH. The full macOS run used the direct Command Line Tools Git binary to avoid the xcrun cache in test temporary folders, and allowed the suite's loopback HTTPS server. No real GitHub merge or push runs in tests.
Installed package check
Codex CLI 0.160.0 installed and enabled Sage 0.1.0 from this pinned revision. The installed package created a separate Codex logbook, advanced a task through its states, and rendered the board. Read-only hooks/list reports both advice hooks enabled with trustStatus: untrusted; native advice delivery is not claimed until the user reviews and trusts their current definitions. An independent Codex code review found no actionable issue at 7d0bfc8; this does not replace Sage's required review cycles.
Limits
Installation and manual logbook commands are verified. Model-session hook delivery remains unverified. The earlier session probe stalled even with hooks disabled. Full Codex orchestration remains unavailable. A marketplace installer may still fetch the full source repository; separate distribution repositories or archives would isolate downloaded bytes.
From the sage (Claude): main moved under this PR, and git does not show it as a conflict.
This branch's base is dec200c. Since then, PR #54 merged into main (f4061a3). It changed plugins/sage/hooks/sage-hook.mjs, scripts/sage-hook.test.mjs, README.md and plugins/sage/skills/sage-help/SKILL.md.
This PR makes packages/sage-claude/ the source and builds plugins/sage/ from it. Its packages/sage-claude/hooks/sage-hook.mjs is the pre-#54 hook (no MODE_WORD, the old SAGE_ON). git merge-tree reports no conflict, because this PR does not edit plugins/sage/hooks/sage-hook.mjs itself. After a merge, the next npm run build would copy the old package hook over main's hook and undo #54.
Add a check that fails when a built file under plugins/sage/ differs from what the build makes from packages/, so the next PR that edits the old path fails CI instead of being undone.
The owner chose to merge this PR before the open hook tasks. The codex issues #57, #58, #62, #69 and #70 and the claude issues wait for it, so this PR is next. When it leaves draft with the four points above, the sage runs its review cycles and merges it, then updates every open issue to the new edit paths.
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
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.
Sage's Claude and Codex installs now come from separate source packages and self-contained plugin directories. Both bundle the same core implementation. Each plugin contains only its provider's adapter, manifest, launcher and role instructions.
The initial Codex package provides 29 skills, prompt/patch/commit advice and manual logbook/board commands. Full chief orchestration, agent limits, report/edit/Git gates, stop enforcement, compaction recovery and autopilot remain unavailable pending the native lifecycle evidence tracked in #55.
plugins/sage; route Codex toplugins/sage-codex.f4061a3(PRs Hook: an agent never merges; the merge and push rules apply to every command tool; config refuses a second = (T56, cut to G75) #33 and Hook: the on phrase may have words after it, and a missed phrase gets a note (T194) #54). Preserve the mode fixes in the authored Claude hook and help skill, with the matching tests.Where future changes go
packages/sage-claude/hooks/packages/sage-claude/skills/andpackages/sage-claude/agents/packages/sage-core/state.mjsandpackages/sage-core/board.mjspackages/sage-codex/Run the build after editing sources. CI runs
npm run checkbefore tests, without a build, so stale or unexpected files underplugins/fail CI. Architecture, install steps and remaining gates are indocs/design/provider-packages.md.Verification
On macOS, at
7d0bfc8:npm run build: built 102 files.npm run check: all checks pass.npm test: tests 460; pass 460; fail 0; cancelled 0; skipped 0.node --test scripts/providers.test.mjs scripts/sage-hook.test.mjs: tests 151; pass 151; fail 0.npm run check:codex: Codex CLI 0.160.0 discovers 29 skills and 2 hooks; no model turn or install attempted.f4061a3: main's check returns 0 after the hook changes, where the test requires 1. It passes here.Tests used fake
ps,pgrepandkillfirst on PATH. The full macOS run used the direct Command Line Tools Git binary to avoid the xcrun cache in test temporary folders, and allowed the suite's loopback HTTPS server. No real GitHub merge or push runs in tests.Installed package check
Codex CLI 0.160.0 installed and enabled Sage 0.1.0 from this pinned revision. The installed package created a separate Codex logbook, advanced a task through its states, and rendered the board. Read-only
hooks/listreports both advice hooks enabled withtrustStatus: untrusted; native advice delivery is not claimed until the user reviews and trusts their current definitions. An independent Codex code review found no actionable issue at7d0bfc8; this does not replace Sage's required review cycles.Limits
Installation and manual logbook commands are verified. Model-session hook delivery remains unverified. The earlier session probe stalled even with hooks disabled. Full Codex orchestration remains unavailable. A marketplace installer may still fetch the full source repository; separate distribution repositories or archives would isolate downloaded bytes.