Skip to main contentModule init
Source - AGENTS_SNIPPET
- The AGENTS.md snippet printed to stdout on
oo init. - HOOKS_JSON
- Minimal Claude Code PreToolUse hooks configuration.
- 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.