Skip to main content

Module init

Module init 

Source

Constants§

AGENTS_SNIPPET
The AGENTS.md snippet printed to stdout on oo init.
HOOKS_JSON
Minimal Claude Code PreToolUse hooks configuration.

Functions§

find_root
Resolve the directory in which to create .claude/.
run
Run oo init: create .claude/hooks.json and print the AGENTS.md snippet.
run_in
Inner implementation that accepts an explicit root — used by unit tests.