fn inject_global_bundles(
claude_md: &str,
id_store: &Arc<Store>,
agent_mode: &str,
agent_block: &str,
) -> StringExpand description
Prepend Global Memory, then agent_block (the agent’s picked bundles,
format_agent_bundle_block), into the BUNDLE_SECTION_HEADING section of
a CLAUDE.md string, mirroring the injection done by
write_agent_config_files in the agent.open RPC path. If the file has
no such section, a new one is inserted before # Available Skills (or at
the end of the file).