Skip to main content

Module memory_launch_cost

Module memory_launch_cost 

Source
Expand description

memory:launchcost: what an agent’s next launch delivers into its context, part by part, in estimated tokens (SPEC_MEMORY_PANE_TOKENS_2026_10_15.md §4.2). A dry run of the launch’s own composition — the same functions, nothing written — so its total is the estimate of the startup file a launch writes, plus what Claude Code’s SessionStart hook and CLI add.

Functions§

delivered_by_file 🔒
Whether AgentMux’s startup text reaches the agent by file. A user-owned file isn’t overwritten; Claude still gets the text through an @import of .claude/AGENTMUX_MEMORY.md.
file_text 🔒
The startup file a launch would write for agent.
global_bundles 🔒
launch_cost 🔒
agent’s launch cost. startup_file_on_disk is the agent’s existing startup file, if any, to tell whether AgentMux owns it; personal is the agent’s Personal Memory files (filename, content) (Claude only).
part 🔒
personal_files 🔒
Reads *.md in the agent’s Personal Memory folder, capped like every memory read.
register 🔒
startup_block 🔒
Global Memory (minus Operator Config for another agent kind), then the agent’s picked bundles in list order (SPEC_RENAME_KNOWLEDGE_TO_MEMORY_2026_10_06.md §3.6).
startup_content_map 🔒
The agent’s content by type (soul, agentmd, memory, …), with Global Memory for its kind and its picked bundles put before its own memory, as the startup file carries them. Shared by the launch (app_api::agent_open::write_agent_config_files) and memory:launchcost.
work_dir 🔒
The folder the agent launches in, as agent.open picks it.