Repository navigation
feat(managed): session hooks for Claude Code, Codex, Cursor and Pi - #431
Merged
Merged
Conversation
Managed apply now registers its session-start hook for exactly four agents: Claude Code, Codex CLI, Cursor and Pi. Every other agent, Gemini CLI included, is reached by the timer alone, and apply removes a FastSkill hook still registered for one of them. - Hooks are built from argv; aikit derives the shell command. - Approval notes print for a hook that is added or changed. - An agent file FastSkill can't change is a warning, not an error. - `managed hooks --system` prints TOML for Codex and says Pi has no administrator-level location; `--json` carries agent, file, format, text and present. - aikit moves to f91c37f and cli-framework to 388e97b. Implements specs/managed-session-hooks-prd.md and accepts the third amendment of ADR-0016. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Implements
specs/managed-session-hooks-prd.md(ADR-0016, third amendment): managed session-start hooks for exactly four agents, Claude Code, Codex CLI, Cursor and Pi.What changes
aikit-sdk,aikit-evals,aikit-skillopt) moves to goaikit/aikit f91c37f (feat(sdk): session hooks for Codex, Cursor and Pi goaikit/aikit#194), and cli-framework to 388e97b (chore(deps): bump aikit to f91c37f aroff/cli-framework#188), soCargo.lockholds one aikit copy.HOOKED_AGENTS = claude, codex, cursor, pi. Every other agent, Gemini CLI included, is reached by the timer alone.SessionHook::from_argv); aikit derives the shell command.config.tomlwith its ownhookstable, or a Pi extension FastSkill didn't write.managed hooks --system:requirements.toml);--jsoncarriesagent,file,format,textandpresent.systemMessagefor Claude Code and Codex,additional_contextfor Cursor, plain text for Pi.webdocs/cli-reference/managed-command.mdx,webdocs/security/managed-machines.mdxandCHANGELOG;Verified on real installs (test managed source, temporary homes)
--continueSessionStart:startup says: FastSkill: sign-in needed…under the bannercodex resume, after trusting it in/hooks↳ Hook · FastSkill: sign-in needed…-p/new,/resume; not/reloadWarning: FastSkill: sign-in needed…; silent in-psessionStartfor/clear,--resumeor--continue;PI_CODING_AGENT_DIRget no hook;Gate
cargo fmt --all --checkandcargo clippy --workspace --all-targets --all-features -- -D warnings: clean../scripts/run-tests.sh: all passed.managed.rs94.3%,managed_hooks.rs100%,hooks.rs100%.🤖 Generated with Claude Code