co-mono/packages/agent/src
Mario Zechner 77fe3f1a13 Add context event for non-destructive message modification before LLM calls
- Add contextTransform option to Agent (runs before messageTransformer)
- Deep copy messages before passing to contextTransform (modifications are ephemeral)
- Add ContextEvent and ContextEventResult types
- Add emitContext() to HookRunner (chains multiple handlers)
- Wire up in sdk.ts when creating Agent with hooks

Enables dynamic context pruning: hooks can modify messages sent to LLM
without changing session data. See discussion #330.
2025-12-30 22:42:20 +01:00
..
transports Remove emitLastMessage from continue(), use prompt(AppMessage) instead 2025-12-30 22:42:19 +01:00
agent.ts Add context event for non-destructive message modification before LLM calls 2025-12-30 22:42:20 +01:00
index.ts Agent package + coding agent WIP, refactored web-ui prompts 2025-10-17 11:47:01 +02:00
types.ts feat: add xhigh thinking level support for gpt-5.2 and gpt-5.2-codex 2025-12-19 19:59:13 +01:00