Skip to content

init-*

Three variants of ingrain init-*, one per harness, each registering the ingrain hook entry point inside the harness’s own configuration.

CommandHarness
ingrain init-claudeClaude Code
ingrain init-cursorCursor
ingrain init-speckitspec-kit — registers the after_plan hook in selected repos.
Terminal window
ingrain init-claude

Writes the Claude Code hook configuration to your Claude settings so the agent invokes ingrain hook --harness=claude at the right lifecycle points. Run once per machine.

Terminal window
ingrain init-cursor

Same idea, configured for Cursor’s hook format.

Terminal window
ingrain init-speckit

Interactive — discovers spec-kit repos in your workspace and lets you pick which ones to register the after_plan hook into. Re-run any time you add a new repo you want covered.

ingrain uninstall removes the hooks from every harness in one pass, along with the binary and PATH entry.

To remove a single harness’s hook while keeping the others (and the CLI) installed, edit the harness’s hook configuration by hand:

  • Claude Code: your Claude Code settings.json (PreToolUse entries referencing ingrain hook).
  • Cursor: the Cursor hooks file.
  • spec-kit: the after_plan hook entry in each repo where you registered it.