Repository navigation
Conversation
…k keyed on KAIROS=1 The skill flips a running session into proactive mode: take the next reasonable step without waiting for a go, stop only at a genuine fork. Hand-invoked only (disable-model-invocation). The hook makes the mode durable: a session launched with KAIROS=1 gets the skill's body at startup and again after every compaction, which is where a skill-only flip fades. The trigger is per-session environment rather than a machine-wide flag, because dispatched workers are sessions too. The hook prints the body from the skill file itself, so the two cannot drift; a test pins that and the hooks.json wiring. hooks/ returns with this one purpose; the upstream bootstrap it used to hold stays torn out.
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
/kairos— proactive mode. A hand-invoked skill (disable-model-invocation: true) whose body tells the session to take the next reasonable step without waiting for a go, and to stop only at a genuine fork: a load-bearing or taste-heavy decision, an irreversible action, or something only the human can unblock.A
SessionStarthook makes the mode durable. A session launched withKAIROS=1gets the skill's body injected atstartup,resume,clear,compactandfork; thecompactmatcher is the point — a skill-only flip lives in the transcript and may not survive summarization. Every other session gets nothing. The trigger is the per-session environment, deliberately not a machine-wide flag file: dispatched workers are sessions too, and a file would switch all of them.hooks/returns to the plugin with this single purpose. The upstream bootstrap that used to live there (injecting a skill index that no longer existed) stays torn out; the repo-map row and the upstream-triage note inCLAUDE.mdsay so.Design
The hook reads the body out of
skills/kairos/SKILL.md(frontmatter stripped), so/kairosand the hook inject one text from one source and cannot drift.hooks.jsonis auto-discovered by Claude Code when the plugin is enabled — no manifest change.Tests
tests/claude-code/test-kairos-hook.sh(hermetic, sub-second, wired intorun-skill-tests.sh): silent withoutKAIROS, silent withKAIROS=0, body injected withKAIROS=1, no frontmatter leaks, hook text byte-equals the skill body,hooks.jsonwires the script onstartupandcompact. 6/6.scripts/lint-shell.shbaseline unchanged.No version bump — releases are cut separately here.