Skip to content

v2.2.0

Choose a tag to compare

@nokhodian nokhodian released this 17 Jul 14:54

monomind init now fully configures itself — no more manual follow-up commands

Fixes the 4 "unconfigured, not bugs" doctor warnings that used to require running memory configure, guidance setup, and hooks worker run manually after every init.

The real root causes, not just symptoms:

  1. Guidance Gates secrets gate was never active on any released version. settings-generator.ts wired the Write/Edit/MultiEdit PreToolUse hook to call hook-handler.cjs pre-edit — which isn't a registered dispatch command (only pre-write is; pre-edit is a different, unrelated monomind hooks pre-edit CLI subcommand). The dispatcher silently no-ops on any unrecognized subcommand, so the secrets-detection gate has never actually run for a project set up via default monomind init. Fixed the wiring; verified live.

  2. Memory Database "initialization" was shelling out to npx @monomind/cli@latest memory init — a package name that has never existed on npm (404). Every init silently failed and printed a misleading "already exists" message regardless of actual state. Replaced with a direct in-process call to the same function monomind memory init itself uses — no subprocess, no network dependency. Also fixed the identical broken package name in swarm-init and embeddings-init calls across init.ts, init-wizard.ts, and swarm.ts's status hints (the generated CLAUDE.md docs already correctly warned against this old name — the code just never got updated to match).

  3. Worker Metrics / Security Audit only ever populated at the first real Claude Code session, so running doctor right after init from a bare shell always showed them as unconfigured. init now seeds .monomind/metrics/ immediately via the same in-process worker pattern the session-start hook uses.

Verified live end-to-end: fresh init in a scratch project → doctor now shows Memory Database, Guidance Gates, and Worker Metrics all passing, and Security Audit correctly surfaces a real finding (not a placeholder) once the worker actually runs. Full CLI suite 773/774 (1 pre-existing skip) passing.

Packages published: monomind@2.2.0, @monoes/monomindcli@2.2.0