Skip to main content

Module init

Module init 

Source

Enums§

InitFormat
Output format for oo init.

Constants§

AGENTS_SNIPPET
The AGENTS.md snippet printed to stdout on oo init.
GENERIC_SETUP
The generic setup section printed on oo init --format generic.
HOOKS_JSON
Minimal Claude Code PreToolUse hooks configuration.

Functions§

find_root
Resolve the directory in which to create .claude/.
run
Run oo init with the given format.
run_generic
Generic variant: print AGENTS.md snippet + setup instructions to stdout.
run_in
Claude Code variant: create .claude/hooks.json and print the AGENTS.md snippet.