co-mono/packages/coding-agent/src/modes/interactive/components
Helmut Januschka c956a726ed feat(coding-agent): add hook API for CLI flags, shortcuts, and tool control
Hook API additions:
- pi.getTools() / pi.setTools(toolNames) - dynamically enable/disable tools
- pi.registerFlag(name, options) / pi.getFlag(name) - register custom CLI flags
- pi.registerShortcut(shortcut, options) - register keyboard shortcuts

Plan mode hook (examples/hooks/plan-mode.ts):
- /plan command or Shift+P shortcut to toggle
- --plan CLI flag to start in plan mode
- Read-only tools: read, bash, grep, find, ls
- Bash restricted to non-destructive commands (blocks rm, mv, git commit, etc.)
- Interactive prompt after each response: execute, stay, or refine
- Shows plan indicator in footer when active
- State persists across sessions
2026-01-04 18:13:28 +01:00
..
armin.ts Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00
assistant-message.ts Add thinkingText theme token, fix streaming toggle bug 2026-01-01 00:25:04 +01:00
bash-execution.ts Add shell commands without context contribution (!! prefix) 2026-01-03 04:14:35 +01:00
bordered-loader.ts Fix BorderedLoader to pass theme to DynamicBorder 2026-01-02 01:21:07 +01:00
branch-summary-message.ts Add BranchSummaryMessageComponent, unify styling with hook messages 2025-12-30 22:42:21 +01:00
compaction-summary-message.ts Add BranchSummaryMessageComponent, unify styling with hook messages 2025-12-30 22:42:21 +01:00
custom-editor.ts feat(coding-agent): add hook API for CLI flags, shortcuts, and tool control 2026-01-04 18:13:28 +01:00
diff.ts Add intra-line diff highlighting for edit tool 2025-12-18 16:49:44 +01:00
dynamic-border.ts Fix BorderedLoader to pass theme to DynamicBorder 2026-01-02 01:21:07 +01:00
footer.ts Hooks can render custom status (#385) 2026-01-01 21:35:37 +01:00
hook-editor.ts feat: use keybindings in all selectors and lists 2026-01-03 08:23:56 +01:00
hook-input.ts feat: use keybindings in all selectors and lists 2026-01-03 08:23:56 +01:00
hook-message.ts Fix nested background issue in HookMessageComponent 2025-12-30 22:42:22 +01:00
hook-selector.ts feat: use keybindings in all selectors and lists 2026-01-03 08:23:56 +01:00
model-selector.ts feat: use keybindings in all selectors and lists 2026-01-03 08:23:56 +01:00
oauth-selector.ts feat: use keybindings in all selectors and lists 2026-01-03 08:23:56 +01:00
session-selector.ts feat: use keybindings in all selectors and lists 2026-01-03 08:23:56 +01:00
settings-selector.ts feat(coding-agent): configurable double-escape action (tree vs branch) 2026-01-03 01:59:08 +01:00
show-images-selector.ts Fix image rendering artifacts and improve show-images selector 2025-12-13 23:53:28 +01:00
theme-selector.ts Reorganize file structure: core/, utils/, modes/interactive/components/, modes/interactive/theme/ 2025-12-09 00:51:33 +01:00
thinking-selector.ts feat: add xhigh thinking level support for gpt-5.2 and gpt-5.2-codex 2025-12-19 19:59:13 +01:00
tool-execution.ts Fix non-PNG images not displaying in Kitty protocol terminals 2026-01-03 16:58:57 +01:00
tree-selector.ts feat: use keybindings in all selectors and lists 2026-01-03 08:23:56 +01:00
user-message-selector.ts feat: use keybindings in all selectors and lists 2026-01-03 08:23:56 +01:00
user-message.ts Use exhaustive switch on message.role throughout coding-agent 2025-12-30 22:42:21 +01:00
visual-truncate.ts Fix bash tool visual line truncation 2025-12-22 17:01:04 +01:00