Repository navigation
craftkit v1.51.0
Codex loads CraftKit rules and checks verification at Stop
Codex previously installed full rules as files but loaded only a short guide into the
session. Skill and workflow routing depended on the agent choosing to read and follow them.
adapters/codex.shregisters a native Codex gateway in~/.codex/hooks.jsonwhile
preserving other hooks. Codex requires a/hooksreview and trust before it runs.SessionStartloads the full applicable rule bodies, including platform-scoped rules only
where their platform matches.UserPromptSubmitsupplies routing guidance and the
installed body of an explicitly requested$skillor leading/command.Stopcompares the working tree with its turn-start snapshot and continues a turn that
edited files but skipped the project's verification command. It preserves the baseline
across its automatic continuation and limits blocks to two. Pre-existing dirty files do
not trigger the gate.check.shexercises rule scoping, explicit command loading, pre-existing edits,
verification continuations, and idempotent hook registration. A live Codex smoke test
confirmed that skipping verification after an edit triggers the Stop continuation.
The runtime does not expose native skill activation as a stable hook event, so following a
skill's instructions remains an agent responsibility; the verification command is the
mechanically enforced part.