Hooks
What optim-plans runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
$ npx -y skills add Optim-Agent/optim-plans --agent claude-codeShips with optim-plans. 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.
- Runs optim_plans_hook.py.
PreToolUse
- Runs optim_plans_hook.py.
Where it lives
- hooks/optim_plans_hook.pyGitHub
Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.
Human-in-the-loop planning plugin for Claude and Codex: turn ideas into reviewed Markdown plans, record decisions, enforce explicit execution gates, and provide tested controller primitives for safer agent workflows.

