Skip to main content

Module init

Module init 

Source
Expand description

kaizen init — idempotent workspace setup.

Constants§

KAIZEN_CLAUDE_HOOK_CMD
Hook command string written to .claude/settings.json.
KAIZEN_CURSOR_HOOK_CMD
Hook command string written to .cursor/hooks.json.
KAIZEN_OPENCLAW_HOOK_CMD

Functions§

claude_kaizen_hook_wiring
Read-only: ~/.claude/settings.json hooks all reference kaizen (same as post-patch entry_has_kaizen_cmd).
cmd_init
Idempotent workspace setup.
cursor_kaizen_hook_wiring
Read-only: ~/.cursor/hooks.json missing, valid JSON with full kaizen wiring, or not.
detect_legacy_wiring
Returns any workspace-local files that still contain kaizen wiring (legacy from pre-global init).
init_text
Text that kaizen init would print to stdout.
openclaw_kaizen_hook_wiring
Read-only: ~/.openclaw/hooks/kaizen-events absent / wired / partial.
patch_openclaw_handlers
Write (or idempotently skip) the OpenClaw TS hook handler.