Skip to content

feat(kairos): proactive mode — a /kairos skill and a SessionStart hook keyed on KAIROS=1 - #117

Merged
SSFSKIM merged 1 commit into
mainfrom
kairos
Sep 5, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
kairos

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Sep 5, 2026

Copy link
Copy Markdown
Owner

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 SessionStart hook makes the mode durable. A session launched with KAIROS=1 gets the skill's body injected at startup, resume, clear, compact and fork; the compact matcher 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 in CLAUDE.md say so.

Design

The hook reads the body out of skills/kairos/SKILL.md (frontmatter stripped), so /kairos and the hook inject one text from one source and cannot drift. hooks.json is 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 into run-skill-tests.sh): silent without KAIROS, silent with KAIROS=0, body injected with KAIROS=1, no frontmatter leaks, hook text byte-equals the skill body, hooks.json wires the script on startup and compact. 6/6.
  • shellcheck clean on both new scripts; scripts/lint-shell.sh baseline unchanged.

No version bump — releases are cut separately here.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant