Context Engineering
OmniCoreAgent has three context-control layers that work together:
When agent loop context management is enabled and configured with a budget below
your model’s real context window, OmniCoreAgent acts before the provider context
limit is hit. The runtime checks context before the LLM call, not after an error.
Layer 1: Session Memory
Session memory decides what historical messages are loaded when a newagent.run() starts. This is the cross-request layer.
Layer 2: Agent Loop Context Management
Agent loop context management runs inside the ReAct loop. Before each model call,OmniCoreAgent asks the context manager whether the current messages crossed the
configured threshold. If yes, it reduces the message list before the LLM request
is sent.
What Is Preserved
Modes
Strategies
Layer 3: Tool Output Offloading
Tool offloading handles large individual tool responses. It keeps the agent from burning context on a full payload when a preview and a file reference are enough for the next reasoning step.artifacts/ area. The observation sent to
the model contains the preview and the artifact reference.