co-mono/packages/coding-agent/docs
Mario Zechner e7097d911a Custom tools with session lifecycle, examples for hooks and tools
- Custom tools: TypeScript modules that extend pi with new tools
  - Custom TUI rendering via renderCall/renderResult
  - User interaction via pi.ui (select, confirm, input, notify)
  - Session lifecycle via onSession callback for state reconstruction
  - Examples: todo.ts, question.ts, hello.ts

- Hook examples: permission-gate, git-checkpoint, protected-paths

- Session lifecycle centralized in AgentSession
  - Works across all modes (interactive, print, RPC)
  - Unified session event for hooks (replaces session_start/session_switch)

- Box component added to pi-tui

- Examples bundled in npm and binary releases

Fixes #190
2025-12-17 16:03:23 +01:00
..
compaction-new.md mom: add coding-agent dependency, update compaction docs 2025-12-11 13:04:45 +01:00
compaction-strategies.ts mom: remove dynamic timestamp from system prompt for better cache hits 2025-12-11 12:26:59 +01:00
compaction.md fix: normalize OpenAI token counting, add branch source tracking 2025-12-03 17:11:22 +01:00
custom-tools.md Custom tools with session lifecycle, examples for hooks and tools 2025-12-17 16:03:23 +01:00
gemini.md Add Mistral as AI provider 2025-12-10 20:36:19 +01:00
hooks.md Custom tools with session lifecycle, examples for hooks and tools 2025-12-17 16:03:23 +01:00
rpc.md Add tool result streaming 2025-12-16 14:53:17 +01:00
session.md Add bash mode for executing shell commands 2025-12-08 22:40:32 +01:00
skills.md coding-agent: change Pi skills to use SKILL.md convention 2025-12-12 23:23:17 +01:00
theme.md Release v0.8.0 2025-11-21 03:12:42 +01:00
truncation.md Implement tool result truncation with actionable notices (#134) 2025-12-07 01:11:31 +01:00
undercompaction.md docs: add under-compaction analysis 2025-12-06 14:53:05 +01:00