Skip to main content

Module namespace

Module namespace 

Source
Expand description

v0.7.0 (issue #800) — ai-memory namespace subcommand. CRUD over the per-namespace standard policy memory pointer. Closes Crack 1 from the Batman Mode acceptance review by giving operators a first-class CLI verb instead of forcing them into an MCP-stdio JSON-RPC dance just to bind a GovernancePolicy to a namespace. ai-memory namespace subcommand — operator-facing CRUD for the per-namespace standard policy memory pointer (issue #800 Crack 1).

Before this verb shipped, operators had to drop into an MCP-stdio JSON-RPC dance to call memory_namespace_set_standard / memory_namespace_get_standard / memory_namespace_clear_standard because there was no CLI surface for these tools. That friction was the single largest reason Batman Forms 2 + 6 stayed dormant on most installs (see docs/batman-active-mode.md).

Three verbs:

  • set-standard — point a namespace at a memory whose metadata.governance carries the policy. Optionally merge a --governance JSON blob into that memory in the same call.
  • get-standard — print the current standard pointer (and the typed governance policy if a standard is set).
  • clear-standard — drop the pointer for a namespace.

All three are thin wrappers around the existing MCP handlers in src/mcp/tools/namespace.rs. Output is human-friendly by default and JSON when --json is passed on the top-level CLI.

Structs§

NamespaceArgs

Enums§

NamespaceAction

Functions§

run