co-mono/packages/coding-agent/docs
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
..
custom-tools.md Rename /clear to /new, update hook events to before_new/new 2025-12-25 04:15:10 +01:00
extension-loading.md Update extension-loading.md with install/remove/update commands 2025-12-26 20:51:15 +01:00
hooks-v2.md Fix model selector not showing models with settings.json API keys 2025-12-24 21:23:44 +01:00
hooks.md Rename /clear to /new, update hook events to before_new/new 2025-12-25 04:15:10 +01:00
rpc.md Add before/after session events with cancellation support 2025-12-22 18:18:38 +01:00
sdk.md feat(coding-agent): Add --session-dir flag for custom session directory 2025-12-25 20:27:41 +01:00
session-tree-plan.md Add context event for non-destructive message modification before LLM calls 2025-12-30 22:42:20 +01:00
session-tree.md Add session version field and migrate-on-load strategy 2025-12-25 22:52:04 +01:00
session.md Add bash mode for executing shell commands 2025-12-08 22:40:32 +01:00
skills.md feat(coding-agent): add --skills CLI flag for filtering skills 2025-12-21 20:58:54 +01:00
theme.md Improve system prompt docs, clean up theme/skills/hooks docs, fix toolResults type 2025-12-17 21:27:28 +01:00