Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

fix(agent): share AgentContext.extra reference with Agent._extra

xf gong5b9460c3550c
diff --git a/cubepi/agent/agent.py b/cubepi/agent/agent.py
index 63eb0d6..ba512ba 100644
--- a/cubepi/agent/agent.py
+++ b/cubepi/agent/agent.py
@@ -294,7 +294,7 @@ class Agent(Generic[TMessage]):
system_prompt=self._state.system_prompt,
messages=list(self._state._messages),
tools=list(self._state._tools),
- extra=dict(self._extra),
+ extra=self._extra,
)
async def _run_with_lifecycle(self, executor: Callable) -> None: