This page covers the ollim-bot-specific config location and a practical example. For the complete event list, input schemas, exit codes, and advanced patterns, see the Claude Code hooks reference.
Configuration location
Because ollim-bot usessetting_sources=["project"], hooks defined in ~/.ollim-bot/.claude/settings.json apply to the main agent session:
~/.ollim-bot/.claude/settings.json
ruff format on any file the agent edits, so formatting stays consistent without the agent having to remember.
Hooks can also be scoped narrower:
- Per-subagent — define a
hooksfield in a subagent’s.mdfrontmatter. The hooks activate when that subagent starts and are cleaned up when it finishes. - Per-skill — define a
hooksfield in a skill’sSKILL.mdfrontmatter. Active only while that skill runs.
Full reference
Claude Code hooks reference
Complete event list, input JSON schemas, exit codes, matcher syntax, and advanced hook types (prompt-based, agent-based, HTTP).
