co-mono/packages/coding-agent/src
Mario Zechner a2515cf43f Wire context event to preprocessor for per-LLM-call execution
- Change from contextTransform (runs once at agent start) to preprocessor
- preprocessor runs before EACH LLM call inside the agent loop
- ContextEvent now uses Message[] (pi-ai format) instead of AppMessage[]
- Deep copy handled by pi-ai preprocessor, not Agent

This enables:
- Pruning rules applied on every turn (not just agent start)
- /prune during long agent loop takes effect immediately
- Compaction can use same transforms (future work)
2025-12-30 22:42:20 +01:00
..
cli feat(coding-agent): Add --session-dir flag for custom session directory 2025-12-25 20:27:41 +01:00
core Wire context event to preprocessor for per-LLM-call execution 2025-12-30 22:42:20 +01:00
modes Add immediate flag to hook commands for non-queued execution 2025-12-30 22:42:19 +01:00
utils fix: Use bash instead of sh on Unix systems 2025-12-26 23:12:57 +01:00
cli.ts Remove old implementation files (main.ts, cli.ts, tui-renderer.ts), rename new files 2025-12-09 01:21:28 +01:00
config.ts Refactor OAuth/API key handling: AuthStorage and ModelRegistry 2025-12-25 03:48:36 +01:00
index.ts Add CustomMessageEntry for hook-injected messages in LLM context 2025-12-30 22:42:18 +01:00
main.ts Add TUI rendering for CustomMessageEntry 2025-12-30 22:42:18 +01:00
migrations.ts Add automatic session migration for v0.30.0 bug 2025-12-26 03:24:49 +01:00