co-mono/packages/coding-agent/src
Mario Zechner 7c553acd1e Add hooks system with pi.send() for external message injection
- Hook discovery from ~/.pi/agent/hooks/, .pi/hooks/, --hook flag
- Events: session_start, session_switch, agent_start/end, turn_start/end, tool_call, tool_result, branch
- tool_call can block execution, tool_result can modify results
- pi.send(text, attachments?) to inject messages from external sources
- UI primitives: ctx.ui.select/confirm/input/notify
- Context: ctx.exec(), ctx.cwd, ctx.sessionFile, ctx.hasUI
- Docs shipped with npm package and binary builds
- System prompt references docs folder
2025-12-10 00:50:30 +01:00
..
cli Add hooks system with pi.send() for external message injection 2025-12-10 00:50:30 +01:00
core Add hooks system with pi.send() for external message injection 2025-12-10 00:50:30 +01:00
modes Add hooks system with pi.send() for external message injection 2025-12-10 00:50:30 +01:00
utils Move config.ts from utils/ to src/ 2025-12-09 01:28:06 +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 Add hooks system with pi.send() for external message injection 2025-12-10 00:50:30 +01:00
index.ts Add hooks system with pi.send() for external message injection 2025-12-10 00:50:30 +01:00
main.ts Add hooks system with pi.send() for external message injection 2025-12-10 00:50:30 +01:00