Agent Memory
Hook
Hooks
What llmdoc runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
Install
> /plugin marketplace add TokenRollAI/llmdoc > /plugin install llmdoc@llmdoc-plugin
Ships with llmdoc. Installing the plugin gets these hooks.
What fires, and when
SessionStart
Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.
npx -y --package=@tokenroll/llmdoc-hook-runtime@npm:@tokenroll/llmdoc -- llmdoc hook session-start
Stop
npx -y --package=@tokenroll/llmdoc-hook-runtime@npm:@tokenroll/llmdoc -- llmdoc hook stop
PreCompact
npx -y --package=@tokenroll/llmdoc-hook-runtime@npm:@tokenroll/llmdoc -- llmdoc hook compact
In the plugin's words
How llmdoc describes its own hook set.
V3 llmdoc hooks delegated to the scoped llmdoc CLI through an npm alias that cannot be shadowed by a same-name local dependency. Missing packages are installed non-interactively; SessionStart may return plain text (delta status, configurable operating guidance, cold-start
Ships withllmdoc
Persistent engineering context that helps coding agents understand a repository without rediscovering its architecture every session. Preserve decisions, constraints, and cross-module contracts that source code does not explain cheaply.
Get the whole plugin
Stats
483
Stars
55
Forks
Active
Maintenance
TypeScript
Language
4h ago
Last commit
1y ago
Created
5h ago
Added
Repo: TokenRollAI/llmdoc

