Skip to main content

Module bundle

Module bundle 

Source

Structs§

ClaudeGlobalConfig
The resolved shared-provider-dir’s CLAUDE.md path + content, read-only. claude_dir is injected (not resolved internally) so this is testable against a tempdir. content: None, exists: false for a genuinely missing file (the common case — no AgentMux-spawned Claude agent on this host has one today, confirmed 2026-08-24) — real I/O errors (permission denied, etc.) still propagate as Err, not silently folded into “missing.”

Functions§

delete_memory 🔒
deletememory.
delete_system_memory 🔒
deletesystemmemory.
get_memory 🔒
getmemory.
global_memory_reach_list 🔒
globalmemory:reach_list: where each entry goes, for the pane’s switch.
global_memory_removed 🔒
globalmemory:removed: the entries taken out of Global Memory, so the pane can offer to restore them: a restore is globalmemory:revert to the version listed here.
global_memory_revert 🔒
globalmemory:revert.
global_memory_set_reach 🔒
globalmemory:set_reach: the pane’s switch. The change is the MCP tool’s (global_memory_reach_impl: same guards, same event), made by the window; the entry’s text is not touched.
global_memory_ui_diff 🔒
global_memory_ui_history 🔒
global_memory_ui_revert 🔒
Restores name + instructions from target_version_id as a NEW version (source: "revert", written_by: writer, which is armory-ui for the window), through the same atomic upsert-plus-version primitive each tier’s ordinary save uses.
list_memories 🔒
listmemories.
load_global_bundle_for_ui 🔒
Loads a Global Memory entry for Memory → Global’s history commands: it must exist, be is_global (or removed from Global Memory and not restored since, so it can be inspected and restored), and not be the blank singleton. System-tier rows are allowed (see the comment above the registrations).
read_claude_global_config 🔒
register
register_agent_bundles 🔒
getagentbundles / setagentbundles: an agent’s Bundles list, the bundles picked for it in order (Store::agent_bundle_ids). Window-scoped, like setagentcontent: the new-agent form and the Stash call these before the agent runs.
register_bundle_crud 🔒
register_global_memory_import 🔒
register_global_memory_sections 🔒
Memory → Global’s “Bring Global Memory from…” step for an isolated channel (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.6). Registered with the others below. globalmemory:sections: the Global Memory block an agent’s startup file carries, from the same store (id_store) and formatter the startup-file writers use — so memory reinjection re-delivers it byte for byte, Operator Config included (SPEC_GLOBAL_MEMORY_DELIVERY_2026_09_27.md §7 P1).
register_global_memory_ui 🔒
reorder_global_bundles 🔒
reorderglobalbrain.
requested_agent_kind 🔒
globalmemory:sections’ agent_kind, for a caller with no pane: host when absent.
resolve_shared_claude_provider_dir 🔒
The directory a spawned Claude agent’s CLAUDE_CONFIG_DIR env var points at by DEFAULT (agents not bound to an account — the common case; an agent bound to an account uses that account’s own dir, which this does not cover). Mirrors agent_open.rs’s own auth_dir resolution exactly — DataPaths::provider_auth_dir("claude"), with the identical ~/.agentmux/shared/providers/claude fallback when DataPaths::from_env() fails — so the path shown here is genuinely the one AgentMux itself uses when launching a Claude agent, not a guess. codex P1, PR #2794: the original version read ~/.claude/CLAUDE.md directly, which SPEC_PROVIDER_ISOLATION_2026_06_20.md §5b confirms is NOT what a CLAUDE_CONFIG_DIR-redirected spawned agent actually loads as its “user CLAUDE.md” — CLAUDE_CONFIG_DIR relocates Claude Code’s entire home, <CLAUDE_CONFIG_DIR>/CLAUDE.md included.
upsert_memory 🔒
upsertmemory.
upsert_system_memory 🔒
upsertsystemmemory.
version_meta 🔒
A full version as the wire’s version metadata, counted from its instructions.
version_summary_meta 🔒
A history row as the wire’s version metadata. Shared with the GlobalMemoryHistory / GlobalMemoryRevert MCP tools (app_api/global_memory.rs), so both surfaces carry the same fields.
writer_of 🔒
Who a websocket Global Memory write is recorded as: the agent when the connection registered as one, the window (armory-ui, with window_source) only when the connection is the person’s proven window, and unproven for a connection that holds the instance key and proved nothing more. A write is never recorded as the person’s unless their window made it.