SessionStart
01Hook Claude Code
One of 4 in hooks.json
Runs when a session starts, executing session-start.mjs via node. From ooples/token-optimizer-mcp.
91.5% fewer tokens on tool output on Headroom's own benchmark, where Headroom removes 61.4%. Separately, the same SWE-bench tasks resolved at 0.71x the cost of plain Claude Code. Plus memory across sessions and subscription quota pacing. Claude Code, Codex, Copilot, Gemini and 12 more. Local, MIT.
Hook Claude Code
One of 4 in hooks.json
Runs when a session starts, executing session-start.mjs via node. From ooples/token-optimizer-mcp.
Hook Claude Code
One of 4 in hooks.json
Runs on the BeforeTool event for read_file, search_file_content, glob, replace, write_file and run_shell_command tool calls, executing pre-tool.mjs via node. From ooples/token-optimizer-mcp.
Hook Claude Code
One of 4 in hooks.json
Runs on the AfterTool event for replace, write_file and run_shell_command tool calls, executing post-tool.mjs via node. From ooples/token-optimizer-mcp.
Hook Claude Code
One of 4 in hooks.json
Runs on the AfterAgent event, executing stop.mjs via node. From ooples/token-optimizer-mcp.
At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: