Documentation
¶
Overview ¶
Package system provides hidden subcommands that implement Claude Code hook logic as native Go binaries, replacing the shell scripts previously deployed to .claude/hooks/.
All subcommands read JSON from stdin (Claude Code hook contract), perform their logic, and exit 0. Block commands output JSON with a "decision" field.
Subcommands:
- check-context-size: Adaptive prompt counter with checkpoint messages
- check-persistence: Context file mtime watcher with persistence nudges
- check-journal: Unexported sessions + unenriched entries reminder
- block-non-path-ctx: Blocks non-PATH ctx invocations
- post-commit: Post-commit context capture nudge
- cleanup-tmp: Removes stale temp files on session end
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.