Module memory_bundles

Module memory_bundles 

Source
Expand description

Memory bundles — the agent’s personality and capability stack (provider, model, instructions, context files, MCP servers, skills).

Extracted from store.rs in Phase R.3 of the storage modularization plan (docs/specs/SPEC_STORE_MODULARIZATION_2026_05_27.md). The method surface is unchanged — Store::bundle_memory_* still lives on Store via this impl block; callers stay on storage::store::Memory thanks to the re-export.

Structs§

Memory
A Memory bundle — the agent’s personality and capability stack. Provider, model, instructions, and JSON-encoded arrays of context files / MCP servers / skills. Agent definitions shadow-migrate into this table during the v7 migration.

Functions§

default_json_array_string 🔒
format_global_brain_block
Format global brain bundles into the block injected into an agent’s CLAUDE.md. Each non-empty section gets a # [Workspace] <name> heading so Claude can tell injected workspace rules apart from the agent’s own config; sections are separated by a --- rule. Bundles arrive already ordered by bundle_memory_list_global (sort_order). Returns an empty string when no section has instructions.
map_memory_row 🔒