Skip to main content

global_bundles_for_agent

Function global_bundles_for_agent 

Source
pub fn global_bundles_for_agent(
    bundles: Vec<Bundle>,
    agent_mode: &str,
) -> Vec<Bundle>
Expand description

Global Memory narrowed to what an agent of agent_mode is given: drops a system entry whose manifest entry targets other agent kinds. Workspace entries and system entries this build’s manifest doesn’t know always stay.

Every place that composes Global Memory for an agent calls this before format_global_bundle_block/global_bundle_sections — the startup file (both launch paths), the SessionStart hook and globalmemory:sections — so they stay the same block byte for byte.