@preapexis/honeycomb 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +443 -2
  3. package/bin/bee.js +18 -0
  4. package/package.json +66 -4
  5. package/plan/tools/tool-parity.md +61 -0
  6. package/src/commands/btw.ts +95 -0
  7. package/src/commands/claude-migrate.ts +63 -0
  8. package/src/commands/diff.ts +119 -0
  9. package/src/commands/discovery.ts +112 -0
  10. package/src/commands/doctor.ts +80 -0
  11. package/src/commands/goal/index.ts +254 -0
  12. package/src/commands/goal/report.ts +66 -0
  13. package/src/commands/goal/state.ts +74 -0
  14. package/src/commands/hooks.ts +38 -0
  15. package/src/commands/index.ts +13 -0
  16. package/src/commands/init.ts +66 -0
  17. package/src/commands/memory.ts +70 -0
  18. package/src/commands/plan.ts +36 -0
  19. package/src/commands/review-report.ts +23 -0
  20. package/src/commands/review.ts +21 -0
  21. package/src/commands/rewind-history.ts +40 -0
  22. package/src/commands/security-review.ts +138 -0
  23. package/src/commands/simplify.ts +21 -0
  24. package/src/commands/stats.ts +125 -0
  25. package/src/commands/tasks.ts +87 -0
  26. package/src/commands/verify.ts +21 -0
  27. package/src/commands/worktree.ts +138 -0
  28. package/src/config/bi.config.json +77 -0
  29. package/src/config/index.ts +47 -0
  30. package/src/config/limits.ts +12 -0
  31. package/src/config/path-rules.ts +19 -0
  32. package/src/config/project.ts +133 -0
  33. package/src/extension/ask-user.ts +52 -0
  34. package/src/extension/index.ts +4 -0
  35. package/src/extension/lsp-install.ts +95 -0
  36. package/src/extension/lsp-menu.ts +90 -0
  37. package/src/extension/permission-modes/index.ts +337 -0
  38. package/src/extension/permission-modes/mcp-resources.ts +21 -0
  39. package/src/extension/permission-modes/metadata.ts +18 -0
  40. package/src/extension/permission-modes/paths.ts +44 -0
  41. package/src/extension/permission-modes/plan-note.ts +58 -0
  42. package/src/extension/permission-modes/policy.ts +236 -0
  43. package/src/extension/permission-modes/preview.ts +104 -0
  44. package/src/extension/permission-modes/rules.ts +67 -0
  45. package/src/extension/permission-modes/shell.ts +183 -0
  46. package/src/extension/permission-modes/state.ts +6 -0
  47. package/src/extension/quiet-startup.ts +25 -0
  48. package/src/extension/register-tools.ts +312 -0
  49. package/src/extension/scoped-rules.ts +91 -0
  50. package/src/extension/system-instruction.ts +74 -0
  51. package/src/index.ts +71 -0
  52. package/src/tools/advanced.ts +133 -0
  53. package/src/tools/agent.ts +379 -0
  54. package/src/tools/dispatcher.ts +80 -0
  55. package/src/tools/executable.ts +15 -0
  56. package/src/tools/execution.ts +289 -0
  57. package/src/tools/filesystem.ts +662 -0
  58. package/src/tools/git.ts +196 -0
  59. package/src/tools/glob.ts +81 -0
  60. package/src/tools/grep.ts +203 -0
  61. package/src/tools/image-read.ts +71 -0
  62. package/src/tools/index.ts +52 -0
  63. package/src/tools/lsp-client.ts +104 -0
  64. package/src/tools/lsp.ts +172 -0
  65. package/src/tools/memory-store.ts +77 -0
  66. package/src/tools/notebook.ts +169 -0
  67. package/src/tools/registry.ts +31 -0
  68. package/src/tools/shells.ts +63 -0
  69. package/src/tools/todo.ts +119 -0
  70. package/src/tools/undo-journal.ts +46 -0
  71. package/src/tools/web-fetch.ts +119 -0
  72. package/src/tools/web-search.ts +76 -0
  73. package/src/tools/write-file.ts +14 -0
  74. package/src/tui/editor.ts +65 -0
  75. package/src/tui/footer-stats.ts +35 -0
  76. package/src/tui/header.ts +81 -0
  77. package/src/tui/index.ts +124 -0
  78. package/src/tui/mascot.ts +59 -0
  79. package/src/tui/permission-dialog.ts +94 -0
  80. package/src/tui/permission-rules.ts +64 -0
  81. package/src/tui/tasks-panel.ts +84 -0
  82. package/src/tui/text.ts +55 -0
  83. package/src/tui/tool-renderer.ts +42 -0
  84. package/src/tui/working-feedback.ts +220 -0
  85. package/src/types/agent.ts +54 -0
  86. package/src/types/common.ts +1 -0
  87. package/src/types/execution.ts +24 -0
  88. package/src/types/index.ts +4 -0
  89. package/src/types/tools.ts +61 -0
  90. package/themes/catppuccin-mocha.json +80 -0
  91. package/themes/github-dark.json +80 -0
  92. package/themes/honeycomb-dark.json +81 -0
  93. package/themes/honeycomb-light.json +81 -0
  94. package/themes/tokyo-day.json +80 -0
  95. package/themes/tokyo-night.json +80 -0
  96. package/themes/vercel-black.json +80 -0
  97. package/themes/vercel-light.json +80 -0
package/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Varun Gaikwad
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,444 @@
1
- # Temporary Holding Version
1
+ # Honeycomb
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Honeycomb extends the [Pi coding agent](https://pi.dev) with permission-aware tools,
4
+ workflow commands, and a customizable terminal UI. Launch it with `bee` or load it directly in Pi.
5
+
6
+ [Quick start](#usage) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) · [ISC license](LICENSE)
7
+
8
+ ## What Honeycomb adds
9
+
10
+ - Inspect and manage your session with `/diff`, `/doctor`, `/tasks`, and `/stats`.
11
+ - Track multi-step work with `/goal`, branch-local todos, and project notes.
12
+ - Control tool access with permission modes, per-tool rules, and interactive approvals.
13
+ - Customize the terminal with compact or detailed status footers and bundled light and dark themes.
14
+
15
+ ## Usage
16
+
17
+ You'll need Node.js 22.19 or later, npm, and `pi` on your `PATH`.
18
+
19
+ ```bash
20
+ npm install -g @preapexis/honeycomb
21
+ bee
22
+ ```
23
+
24
+ `bee` starts Pi with Honeycomb loaded and forwards Pi session arguments. The existing
25
+ `--bi-*` flags keep their names for compatibility. If you prefer to keep using `pi`,
26
+ install Honeycomb through Pi instead:
27
+
28
+ ```bash
29
+ pi install npm:@preapexis/honeycomb
30
+ ```
31
+
32
+ To work from source, clone this repository and run these commands from the checkout:
33
+
34
+ ```bash
35
+ # Try for one session (no install needed)
36
+ pi -e ./
37
+
38
+ # Install as a local package
39
+ pi install ./
40
+
41
+ # Or copy into the global extensions directory
42
+ mkdir -p ~/.pi/agent/extensions/honeycomb
43
+ cp -r . ~/.pi/agent/extensions/honeycomb
44
+ ```
45
+
46
+ ### Bash approvals
47
+
48
+ In a trusted interactive project, an eligible Bash prompt can remember an exact
49
+ command for the current session. The command, arguments, working directory and
50
+ shell must match; explicit ask/deny rules still apply. Approvals are in memory
51
+ and are cleared on session, branch, or permission-mode changes and reloads.
52
+ Only literal standalone commands and the command after a simple
53
+ `cd /absolute/path && command` are eligible. Remembering a command from that
54
+ chain approves the displayed chain once, not future chains. Other shell syntax
55
+ continues to require its normal approval. A remembered command may still behave
56
+ differently if its executable, files or environment change.
57
+
58
+ Inside pi:
59
+
60
+ - `/init` — analyzes the codebase and generates/updates `AGENTS.md` at the project root
61
+ - `/goal <objective>` — starts a persistent goal with a bounded automatic continuation loop
62
+ - `/goal` or `/goal status` — show the saved goal and its progress
63
+ - `/goal pause`, `/goal resume`, `/goal clear` — manage the current goal
64
+ - `/goal edit <objective>`, `/goal budget <1-50>` — update the objective or iteration limit
65
+ - `/diff [staged|unstaged]` — browse tracked Git changes without a model call
66
+ - `/doctor` — diagnose Honeycomb preferences, permission rules, inactive tools, and Git availability
67
+ - `/tasks [jobs]` — view the current branch's goal and todos, or inspect managed jobs
68
+ - `/allowed-tools` — read-only alias for `/permissions`; `/checkpoint` — alias for `/rewind` (latest eligible Honeycomb file operation only)
69
+ - `/verify [focus]` — ask the current agent to inspect and run permitted checks; in Plan mode, propose checks only
70
+ - `/plan [request]` — enter Plan mode or start a planning turn; `/plan show` displays the session note subject to read rules
71
+ - `/security-review staged|unstaged` — explicitly approve a bounded local diff for a separate tool-free model review
72
+ - `/help`, `/skills`, `/context [details]`, `/status` — local command discovery and session metadata
73
+ - `/stats [recent <1–10>]` — local session usage, not provider billing
74
+ - `/memory [note-number]`, `/remember <note>` — browse project notes or append one with confirmation
75
+ - `/rules [relative-path|clear]` — select or clear a branch-local path for scoped project instructions
76
+ - `/hooks [jobs on|off]` — opt in to local job completion notifications
77
+ - `/claude-migrate` — preview where your own Claude commands and skills can be migrated
78
+ - `/tool-search [name]` — search registered tool names and see which are active without calling them
79
+ - `/lsp` — open the optional language server setup menu
80
+ - `/worktree [list|create <directory-name>|leave]` — list Git checkouts, create a detached checkout, or find your way back to the main checkout
81
+ - `/btw [question]` — ask a standalone question without adding it to the main transcript
82
+ - `/rewind` — preview and restore the latest tracked Honeycomb file operation; `/rewind history [turn]` is preview only
83
+ - `/review` — reviews the current changes
84
+ - `/review-diff quality|tests staged|unstaged [--json]` — a separate, tool-free review of an approved local diff
85
+ - `/simplify` — looks for opportunities to simplify code
86
+ - Interactive mode uses a responsive welcome panel, prompt chevron, status footer, and collapsible tool output. A session named with Pi's `/name <name>` appears on the prompt border, or in the footer when another extension supplies the editor. The detailed footer shows session usage across all recorded entries (including other branches), estimated cost, and elapsed wall time including time away. Set `ui.footerStyle` to `"compact"` in `.pi/config.json` for a two-line footer with the model, directory and Git status, estimated cost per session and per prompt, and permission mode. The `esc to interrupt` hint appears while the agent is running. The package default is `"detailed"`. Use **Ctrl+O** (Pi's default) to expand tool output and `/session` to see usage statistics.
87
+ - Select a bundled theme in `/settings` → **Theme**: `honeycomb-light`, `honeycomb-dark`,
88
+ `catppuccin-mocha`, `github-dark`, `tokyo-day`, `tokyo-night`, `vercel-black`, or `vercel-light`.
89
+ To try the Honeycomb pair and match your terminal's appearance: `pi -e ./ --theme ./themes/honeycomb-light.json --theme ./themes/honeycomb-dark.json --use-theme honeycomb-light/honeycomb-dark`.
90
+ If you previously selected `honeycomb`, switch to `honeycomb-dark` to keep the original palette.
91
+
92
+ Goal state is stored in the current Pi session transcript, so it survives session
93
+ resume and follows session branches. Active goals continue through Pi's
94
+ `agent_before_settle` lifecycle hook, up to 8 automatic iterations by default
95
+ (configurable with `/goal budget`). `/goal resume` grants another bounded run
96
+ after budget exhaustion. Pressing Escape pauses the goal; use `/goal resume` to
97
+ continue. Each turn must send exactly one `goal_report`; missing or duplicate
98
+ reports stop the loop. When blocked, the agent should ask one focused question
99
+ rather than guess. Honeycomb relies on the agent's report and verification evidence for
100
+ completion/blocker decisions; this is not an independent verifier, and it does
101
+ not guarantee a goal will finish within the iteration budget.
102
+
103
+ ### Reviewing and managing a session
104
+
105
+ | Command | Behavior and limits |
106
+ | --- | --- |
107
+ | `/diff` | TUI only. Tab switches staged/unstaged; use arrows and Enter to load one file's patch on demand. `n`/`p` opens the next/previous patch; Esc goes back or closes the picker. Untracked files and submodule changes are omitted. The viewer honors `git_diff` rules, asks before showing sensitive paths, and does not modify the worktree or index. |
108
+ | `/doctor` | Read-only diagnostics in TUI or RPC. Shows effective settings and why supported preferences were ignored, without printing raw config or credential values. TUI also shows whether Honeycomb's editor is active and how that affects its shortcuts. Use `/permissions` for rule details and `/hotkeys` for all bindings. |
109
+ | `/tasks [jobs]` | Read-only. Todos and goal state follow the active branch; verification is agent-reported. In TUI press Tab for the newest 100 managed jobs (`background` and `terminal`); Enter shows up to 8,000 characters of permitted output, `r` refreshes, Esc goes back. RPC `/tasks jobs` shows status only. Plan mode and restrictive `process` rules can hide jobs. The view never starts, stops or sends input to jobs. |
110
+ | `/help [command]` | Lists discovered extension, prompt and skill commands. Pi TUI built-ins are not included in discovery; `/clear` corresponds to `/new`, `/config` to `/settings`, and `/exit` to `/quit`. |
111
+ | `/skills` | Lists loaded skill metadata and separately lists exposed skill commands; does not read skill bodies. |
112
+ | `/context [details]` | Shows estimated token usage and metadata counts. `details` lists permitted workspace instruction paths from Pi's prompt metadata, not file contents or exact context after compaction. |
113
+ | `/stats [recent <1–10>]` | Current-session totals in TUI or RPC. In a trusted idle TUI outside Plan and No prompts, `recent` asks before aggregating logs from Pi's active session directory. Only same-workspace logs up to 4 MiB are counted; saved branches are included and forks may duplicate history. No transcript text or provider quota is shown. Use `session_stats:*` to restrict access. |
114
+ | `/status` | Shows local model, trust, permission mode, active tool count and goal status. No provider quota request is made. |
115
+ | `/verify [focus]` | Starts a model turn with the focus text and current conversation. The agent inspects checks and uses existing tool permissions; in Plan mode it is instructed to propose checks only. |
116
+ | `/plan [request]` | Idle TUI only. Enters Plan without starting a turn unless a request is supplied; `/plan show` displays the session note if read rules allow it. It does not leave No prompts or Bypass, or approve implementation. |
117
+ | `/security-review staged\|unstaged` | Idle TUI only, outside Plan and No prompts. Sends the selected tracked local diff (maximum 12 KB) to the selected provider only after confirmation; protected diffs are refused. No conversation or tools are sent. Provider retention policies apply. |
118
+ | `/review-diff quality\|tests staged\|unstaged [--json]` | Same consent and scope as `/security-review`, in a trusted project. Choose correctness/maintainability or test coverage. `--json` displays a schema-validated report locally or rejects malformed output. Neither role runs tests, tools, or a separate agent. `/review` still reviews the local working tree as before. |
119
+ | `/btw` | Idle TUI only, outside Plan and No prompts. After confirmation, the active provider receives the question, but no main transcript, project files, or tools. Esc cancels. Usage is shown separately in the overlay. Provider retention policies still apply. Inline questions can appear in Pi's input history; use bare `/btw` for a separate input field. |
120
+ | `/rewind` | Idle TUI only, outside Plan and No prompts. Previews the affected paths and always asks for confirmation. Supports tracked `edit`, `write`, `apply_patch`, and `notebook_edit`; a newly created file can be removed, but parent directories are left in place. Refuses changed files. Multi-file rollback is best-effort and reports incomplete restores. History is bounded and in memory; it does not survive branch changes, reload, or session switch. Shell commands, Git state, and conversation history are not rewound. |
121
+ | `/rewind history [turn]` | List tracked turns or preview created/modified paths for one turn. Turn numbers are local to the current branch lifetime. This does not restore files, show file bodies, or navigate the conversation; use bare `/rewind` for the last operation and Pi `/tree` for conversation navigation. |
122
+ | `/hooks [jobs on\|off]` | Local completion notifications for permitted managed jobs. Off by default and reset on branch/session changes or reload. Does not run scripts or display job output. |
123
+ | `/claude-migrate` | Trusted idle TUI or RPC. Lists eligible `.claude/commands/*.md` → `.pi/prompts/` and `.claude/skills/*/SKILL.md` → `.agents/skills/` mappings. Names only: review and adapt your own files manually. It does not read the bodies, copy files, expand shell commands, run hooks, or grant `allowed-tools`. |
124
+
125
+ The `todo` tool also supports `update`, optional `description`, `status`
126
+ (`pending`, `in_progress`, `completed`), and `blockedBy` (existing task IDs).
127
+ `blockedBy: []` clears dependencies. Older todo entries remain readable. These
128
+ fields are for tracking, not automatic job execution.
129
+
130
+ ### Project notes and path-scoped instructions
131
+
132
+ Use `/memory` or `/memory <number>` to browse the same `.pi/memory.json` used by
133
+ the `memory` tool. `/remember <note>` previews and appends a note after approval.
134
+ These commands need an idle trusted TUI outside Plan and No prompts; they don't
135
+ send notes to a provider or add them to the model prompt. Inline notes may appear
136
+ in Pi's input history. Avoid saving secrets: project notes are plain text on disk.
137
+
138
+ To opt in to path-scoped instructions, put patterns and instructions in your
139
+ trusted project's `.pi/config.json`, for example:
140
+
141
+ ```json
142
+ {
143
+ "systemPrompt": {
144
+ "pathRules": [{ "pattern": "src/ui/**/*.ts", "instructions": "Use the shared terminal render helpers." }]
145
+ }
146
+ }
147
+ ```
148
+
149
+ In the TUI, run `/rules src/ui/panel.ts` to select an eligible file path on this
150
+ branch (the file may not exist yet), `/rules` to show the selection, or `/rules clear`
151
+ to clear it. Future turns receive only matching rules for that explicitly selected path.
152
+ `*`, `?` and path components of `**` are supported. Rules do not change permissions,
153
+ run hooks, or automatically import `.claude/rules/`.
154
+
155
+ ### Tool discovery and file matching
156
+
157
+ `/tool-search [name]` shows tool names and active/inactive status for the current
158
+ session in TUI or RPC. Active means exposed to the model, not authorized to run.
159
+ This is not a usage log. See the [tool parity matrix](plan/tools/tool-parity.md).
160
+
161
+ `glob` lists files matching a relative pattern such as `src/**/*.ts`, with an
162
+ optional workspace subdirectory as its search root. Patterns support `*`, `?`,
163
+ and `**` as a path component. `find` searches names by substring. `glob` skips
164
+ symlinks, protected paths, and `.pi`/`.bi` state directories, and bounds both the
165
+ scan and the results. It does not parse project `.gitignore` files.
166
+
167
+ `grep` searches a workspace file or directory and returns matching lines as
168
+ `path:line:text` by default. Supply exactly one of `query` and `pattern`.
169
+
170
+ | Call | Matches |
171
+ | --- | --- |
172
+ | `{"query":"foo\|bar"}` | The literal text `foo\|bar`, including the pipe |
173
+ | `{"pattern":"foo\|bar"}` | Lines containing `foo` or `bar` |
174
+ | `{"path":"src","query":"TODO","glob":"*.{ts,tsx}","-i":true}` | Case-insensitive literal text in TypeScript and TSX files under `src` |
175
+
176
+ Regex and filtered searches use ripgrep from Pi's agent `bin` directory or
177
+ `PATH`. They follow ripgrep's traversal and file selection rules. Use `type`
178
+ for a named ripgrep file type. Plain literal search also works without ripgrep
179
+ and includes hidden and ignored files. `output_mode: "files_with_matches"` lists
180
+ file names; `"count"` returns `path:count` for files with matching lines (not the
181
+ number of occurrences within a line). In `"content"` mode, `context: 0–10` adds
182
+ surrounding lines marked `path-line-text`. `filesystem.maxGrepMatches` caps matches
183
+ in content mode or the number of files in the other modes.
184
+
185
+ Honeycomb's `read` can attach a workspace PNG or JPEG up to 2 MiB and 4,096 pixels
186
+ on either axis. Omit `offset` and `limit`. Attachments require a trusted project,
187
+ an interactive approval for that file, and an image-capable model. Protected,
188
+ linked, and outside-workspace images are refused. The provider and local session
189
+ may retain the attachment; don't approve files with secrets.
190
+
191
+ `notebook_edit` edits the source of one existing cell in a local nbformat 4
192
+ `.ipynb` file (up to 1 MiB). Read the notebook first, then provide `path`,
193
+ zero-based `cell_index`, exact `old_source`, and `new_source`. For array sources,
194
+ join the strings without adding separators. Honeycomb previews the change and requires
195
+ one-time approval; cells are never executed, and bytes outside the selected
196
+ source value are preserved. Both the filesystem and agent groups must be enabled
197
+ so the edit can be tracked by `/rewind`. This tool is unavailable in Plan mode.
198
+
199
+ ### Optional local language-server queries
200
+
201
+ In an idle, trusted Pi terminal, open `/lsp`. Use the arrow keys and Enter to
202
+ choose **TypeScript / JavaScript** or **Use an existing server**, or Esc to exit.
203
+ On macOS/Linux with npm on `PATH`, Honeycomb can download the displayed versions from
204
+ npm and install them under `~/.bi-lsp/` only after confirmation. npm lifecycle
205
+ scripts are disabled, and project and global npm packages are not changed. The
206
+ existing-server option takes an absolute executable path outside the workspace
207
+ and requires `--stdio` support. Managed setup needs a data folder outside the workspace.
208
+
209
+ Enabling a server for the current session is a separate confirmation. You can
210
+ also opt in at launch with `--bi-lsp-server /absolute/path/to/server`. If no
211
+ managed, configured or `PATH` TypeScript server is found, rotating working tips
212
+ point to `/lsp`. The tool starts one process per approved query and is blocked
213
+ in Plan and No prompts modes.
214
+ For example, send `{"action":"definition","path":"src/index.ts","language_id":"typescript","line":0,"character":0}`.
215
+ Positions are zero-based UTF-16. `implementation`, `references`, and `hover` also take a position.
216
+ `document_symbols` shows symbols in one file; it and `diagnostics` omit the
217
+ position. Diagnostics require a server that supports pull or publishes on open.
218
+
219
+ Only use a server you trust: it receives the source file and workspace path,
220
+ and can read other files or run code under your user account. This is not a
221
+ sandbox. Honeycomb does not honor server requests for client actions (such as applying
222
+ edits); returned locations are limited to permitted workspace files. Each request
223
+ has an eight-second deadline, so cold or large projects may time out.
224
+
225
+ ### Git worktrees
226
+
227
+ From the root of a trusted Git checkout in an idle Pi terminal:
228
+
229
+ - `/worktree` or `/worktree list` lists linked checkouts and marks the current one.
230
+ - `/worktree create <directory-name>` previews a new subdirectory and the exact
231
+ commit to check out in detached HEAD state. Creation needs explicit confirmation
232
+ and a clean checkout. Ordinary untracked files still block creation; registered
233
+ nested worktrees are separate checkouts and don't count as parent changes, even
234
+ if `git status` lists them as untracked. Changes inside submodules are ignored.
235
+ Checkout hooks and external Git filters are disabled for this command.
236
+ - `/worktree leave` identifies the main checkout and warns about local changes
237
+ in the current linked checkout. It leaves the checkout and all files intact.
238
+
239
+ Open a new Pi session to use a different checkout. These commands never switch
240
+ Pi's working directory, remove worktrees, or create branches.
241
+
242
+ ### Optional public web fetch
243
+
244
+ Launch Pi with `pi -e ./ --bi-web-fetch` in a trusted workspace. Ask the model,
245
+ for example, “Read `https://example.org/` and summarize it.” The model proposes
246
+ URLs via `web_fetch`; Honeycomb previews the full destination and asks for approval on
247
+ **each** request. Plan, No prompts, and noninteractive sessions cannot fetch.
248
+
249
+ The tool issues an HTTPS GET to a public IPv4 address on the default port. It
250
+ uses no cookies, credentials, or proxy and does not execute page scripts. The
251
+ site sees the requested URL (including query parameters) and your network address.
252
+ Never put secrets in URLs. Redirects are not followed: the model must request
253
+ any new destination separately. Only uncompressed text, HTML, Markdown, and JSON
254
+ are supported, with a 10-second deadline, a 128 KiB response cap, and truncated
255
+ model output. Returned text is untrusted. This feature does not search the web.
256
+
257
+ ### Optional Tavily web search
258
+
259
+ Set `TAVILY_API_KEY` in the shell that launches Pi, then run
260
+ `pi -e ./ --bi-web-search` in a trusted workspace. Do not put the key in
261
+ `settings.json`, project files, or chat. If the key is missing, Honeycomb leaves
262
+ `web_search` inactive and shows a startup warning and a working tip.
263
+
264
+ Ask the model to search for a topic. Honeycomb previews the exact query and requires
265
+ one-time approval before sending it to Tavily. Tavily receives the query and
266
+ returns up to five results to Honeycomb; the model sees those results, not the API
267
+ key. Avoid sending secrets in queries. Plan, No prompts, and noninteractive
268
+ sessions cannot search. `web_fetch` remains separate and does not need a key.
269
+
270
+ ### Optional Pi MCP resource access
271
+
272
+ Configure an MCP server you trust in Pi and check its name and source in `/mcp`.
273
+ Then launch `pi -e ./ --bi-mcp-resource-server docs`, replacing `docs` with the
274
+ exact configured server name. The flag does not configure or connect a server;
275
+ Pi still owns connections, authentication and tool exposure.
276
+
277
+ If Pi exposes `list_mcp_resources`, `list_mcp_resource_templates`, or
278
+ `read_mcp_resource`, Honeycomb requires the selected server explicitly and asks for
279
+ one-time approval for each call. Resource reads show the URI before approval.
280
+ Honeycomb blocks these calls without the flag, in untrusted projects, in Plan or No
281
+ prompts mode, and without an interactive UI. Existing deny rules can match the
282
+ server name or URI, for example `read_mcp_resource:docs`.
283
+
284
+ This gate applies only to those three resource tools, not other MCP capabilities.
285
+ Pi controls output handling: listed metadata and returned text or images can
286
+ reach the model, and binary data can be saved to temporary files. This is not a
287
+ text-only mode. Check which server a project config selects before approving.
288
+
289
+ ### Tool execution safety
290
+
291
+ On Windows, `powershell` runs native PowerShell commands, preferring PowerShell
292
+ 7 (`pwsh.exe`) and falling back to Windows PowerShell. `bash` is available
293
+ when Pi can locate a working POSIX shell. `background` and `terminal` prefer
294
+ PowerShell on Windows and name the selected shell in their descriptions.
295
+ On Linux and macOS these shell tools use `/bin/sh -c`. On every platform
296
+ `run_code` passes JavaScript directly to the current Node executable.
297
+
298
+ PowerShell commands require one-time approval and honor matching deny rules,
299
+ including when started through `background` or `terminal`. Plan and No prompts
300
+ modes block PowerShell execution.
301
+
302
+ Shell, background, terminal, and code-execution tools require either an
303
+ `allowCommand` policy supplied to `createExecutionTools()` or per-command
304
+ approval through the tool context. Destructive filesystem and Git operations
305
+ also require a UI approval callback; both kinds of operation are denied when
306
+ the extension has no UI or configured policy.
307
+
308
+ Managed process IDs and output belong to the Pi session that started them.
309
+ Session replacement, branch changes, and shutdown (including reload) retire
310
+ those IDs and cancel in-flight execution. Honeycomb closes its process pipes and
311
+ terminates still-running managed process groups on POSIX and process trees on Windows.
312
+ Commands that leave their process group or outlive its exited leader are not
313
+ covered by cleanup.
314
+
315
+ ### TUI activity indicator
316
+
317
+ Thinking starts with `Thoughtweaving… · Model is reasoning` and a slowly pulsing lavender (`#B7A2ED`) `✧`.
318
+ General work starts with `Materializing… · Agent is active` and a mint (`#90CEBA`) `✦` with an orbiting dot.
319
+ Both phases have 15 wordings and cycle through alternatives such as `Synapsing…` and `Sparkforging…`.
320
+ Each activity keeps its phrase for the current run and advances to the next one the
321
+ next time that activity occurs in a new run. Tool and reply statuses pair a creative
322
+ phrase with a plain description, for example `Pageflipping… · Reading files`,
323
+ `Taskjuggling… · Running tools`, or `Wordsmithing… · Writing reply`. Descriptions come
324
+ from events, not tool arguments, so they don't show filenames, search terms, or commands.
325
+ When input or approval is needed, a static `◇ Waiting for your input…` takes priority.
326
+ `BI_ASCII=1` uses ASCII symbols, separators, and ellipses; `NO_COLOR=1` disables the custom colors.
327
+
328
+ ### Low-code configuration
329
+
330
+ Edit [`src/config/bi.config.json`](src/config/bi.config.json) for common defaults;
331
+ all tool groups are enabled by default:
332
+
333
+ | Setting | What it changes |
334
+ | --- | --- |
335
+ | `toolGroups.filesystem` / `execution` / `git` / `agent` / `advanced` | Registers or disables the corresponding tool group |
336
+ | `filesystem.defaultReadLimit` | Default number of lines returned by `read` |
337
+ | `filesystem.maxReadLineLength` | Maximum displayed characters per line before truncation |
338
+ | `filesystem.maxGrepMatches` | Maximum matching lines or files returned by `grep`, depending on the mode |
339
+ | `git.defaultLogLimit` | Default number of commits shown by `git_log` (1–100) |
340
+ | `execution.timeoutMs` | Timeout for foreground shell and JavaScript execution, in milliseconds |
341
+ | `output.maxChars` | Maximum output returned/captured for a tool call |
342
+ | `startup.autoEnableQuietStartup` | Adds `quietStartup: true` only when the project's Pi setting is unset; false disables this automatic change |
343
+ | `systemPrompt.additional` | Extra project instructions, up to 8,000 characters; applied only when Pi trusts the project |
344
+ | `systemPrompt.pathRules` | Optional project instructions for the path explicitly selected with `/rules`; at most 16 rules and 8,000 characters total |
345
+ | `ui.startupMessage` | Session-start notification text outside the TUI |
346
+ | `ui.workingTips` | Enable TUI tips while waiting for a reply and set their delay (default: 20 seconds) |
347
+ | `ui.tagline`, `gettingStartedTitle`, `gettingStarted` | Welcome/header copy |
348
+ | `ui.commands`, `ui.keys`, `commandsTitle`, `keysTitle` | Header commands, key hints, and their headings |
349
+ | `systemPrompt.core` | Honeycomb's identity and workflow instructions (each array item is one prompt line) |
350
+
351
+ On the first session start outside Plan mode, Honeycomb creates `.pi/config.json` with the current safe
352
+ package defaults if it does not exist. Existing files are never overwritten.
353
+ Projects may edit and commit this file; other `.pi` runtime data remains ignored:
354
+
355
+ ```json
356
+ {
357
+ "filesystem": { "defaultReadLimit": 500, "maxReadLineLength": 1500, "maxGrepMatches": 200 },
358
+ "git": { "defaultLogLimit": 20 },
359
+ "output": { "maxChars": 50000 },
360
+ "startup": { "autoEnableQuietStartup": false },
361
+ "systemPrompt": { "additional": "Follow this project's coding conventions and test commands." }
362
+ }
363
+ ```
364
+
365
+ Package defaults are used for missing, invalid, or out-of-range values. Project
366
+ config is size-limited and allowlisted; tool preferences are reread on each call
367
+ (startup settings at session start). Project instructions add to—not replace—the
368
+ package core prompt, and are ignored until Pi trusts the project. Config cannot
369
+ change tool groups, command authorization, execution timeouts, or destructive-operation approvals.
370
+ Output is capped at 1,000,000 characters, grep at 10,000 matches, and Git history
371
+ at 100 commits even if a package default is changed.
372
+
373
+ `createToolSystem({ config })` also accepts a `BiConfig` override for callers
374
+ and tests. Timeout must be a positive integer. Tool implementations, argument
375
+ validation, command authorization, and destructive-operation approvals remain
376
+ in TypeScript. Use TypeScript to change how a tool works or add a new tool.
377
+
378
+ ### How `/init` works
379
+
380
+ 1. Checks `AGENTS.md` doesn't already exist (asks before overwriting)
381
+ 2. Sends a user prompt to the agent instructing it to explore the project
382
+ (docs, manifests, directory structure) and write a concise `AGENTS.md`
383
+ with overview, build/test/lint commands, architecture notes, and code style
384
+ 3. The agent runs with its normal tools (read, edit, write) to produce the file
385
+
386
+ ## Permission modes
387
+
388
+ Press **Shift+Tab** in bi's prompt (or **Alt+M**) to cycle Manual → Edits → Plan → Auto → Manual. The mode appears below the prompt. With the default Pi keybinding, **Alt+T** cycles thinking in bi's editor instead. If another extension already supplies an editor, bi leaves it alone and only registers Alt+M. Modes follow the session branch and take effect for the next tool call. `/reload` preserves the selected mode but clears temporary approvals. Plan startup does not change bi's project config or quiet-startup setting.
389
+
390
+ Permission dialogs show what is being requested, including proposed file changes or the shell command. Use the numbered choices, or arrows and Enter; Esc cancels. PageUp/PageDown scroll long previews. A saved plan is shown before implementation can start. `/permissions` shows effective Allow, Ask, and Deny rules with their sources, the number of session approvals, and recent mode-gate denials. It does not add or modify rules.
391
+
392
+ | Mode | Behavior |
393
+ | --- | --- |
394
+ | Manual (`default`) | Ordinary reads pass the mode gate; edits and uncertain calls require approval. |
395
+ | Edits (`acceptEdits`) | Also permits ordinary project edits after path checks. Sensitive operations still require approval when eligible. |
396
+ | Plan (`plan`) | Restricts the active tools to investigation and session bookkeeping. `plan_note` writes only `.pi/plans/<session-id>.md`; after a change, choose whether to start in Edits or Manual, keep planning, or discard the note. |
397
+ | Auto (`auto`) | Uses the Edits rules. With no configured reviewer it falls back to asking; the injectable reviewer receives only a safe summary and times out after 15 seconds. |
398
+ | No prompts (`dontAsk`) | Declines calls whenever either the mode gate or a Honeycomb tool requires confirmation. Launch only with `--permission-mode dontAsk`. |
399
+ | Bypass (`bypassPermissions`) | Skips routine mode prompts for eligible calls, after interactive confirmation at launch with `--permission-mode bypassPermissions`. |
400
+
401
+ The last two modes are not in the shortcut cycle. Bypass cannot be restored from a transcript without the launch flag and confirmation. An approval can be granted once or, for eligible file calls, for those exact arguments and resolved paths during the session. Honeycomb rejects hard policy blocks before its own approval dialog: workspace file tools cannot open paths outside the workspace, including through symlinks, and protected shell redirects (including `2>/dev/null`) stay blocked. An approval from Pi or another layer cannot override these restrictions. Eligible sensitive or outside-path calls still require fresh confirmation. Deny rules take precedence over Ask and Allow; none can override a hard boundary.
402
+
403
+ Optional trusted user settings live in `~/.pi/agent/permission-modes.json`. For example:
404
+
405
+ ```json
406
+ { "defaultMode": "acceptEdits", "ask": ["write:docs/*"], "deny": ["read:.env*"] }
407
+ ```
408
+
409
+ Rules use `tool:pattern`, where `*` and `?` are glob characters. User settings may also contain `allow`; project `.pi/permission-modes.json` can contain only `ask` and `deny`. Invalid configuration blocks tool calls until corrected. These files are separate from `.pi/config.json`.
410
+
411
+ Path-based allow rules match the resolved destination against the configured pattern. A rule such as `write:docs/*` stays scoped to `docs/` if that directory becomes a symlink. For calls without a path or shell input, rule patterns match the JSON-encoded arguments, so `git_diff:*` covers every diff call. Permission rules files are protected from tool writes and must be regular files with one link. The loader rejects symlinks in the path below the project root or home directory.
412
+
413
+ Read-only Git tools and the footer's Git status check disable optional index writes and repository-configured helpers such as filesystem monitoring and worktree filters. Worktree status and diff may therefore differ from a normal Git invocation, including for submodules. In-place file writes refuse hard-linked files.
414
+
415
+ The mode gate is a tool-call filter, not an operating-system sandbox. It blocks protected paths and recognized critical operations, but cannot inspect all effects of an approved command, script, external tool, or a process already running. bi's own command and destructive-operation confirmations still apply after the mode gate, including in Bypass. Auto ships without a network reviewer and asks when its static policy cannot decide.
416
+
417
+ ## System prompt
418
+
419
+ Honeycomb uses its own system prompt — pi's default system instruction is fully
420
+ replaced via a `before_agent_start` handler that returns the complete prompt
421
+ for every run.
422
+
423
+ - Edit `systemPrompt.core` in `src/config/bi.config.json` to change bi's identity and workflow rules
424
+ - The builder in `src/extension/system-instruction.ts` re-embeds what pi's default prompt would have provided: tool
425
+ guidance (`toolSnippets`/`toolGuidelines`), context files (`AGENTS.md`
426
+ content), skills, custom sections, and `--append-system-prompt`
427
+ - User-supplied `--system-prompt` / `SYSTEM.md` prefixes are kept in front
428
+
429
+ ## Development
430
+
431
+ Use Node.js 24 for local checks and install [ripgrep](https://github.com/BurntSushi/ripgrep)
432
+ on your `PATH` for the full test suite.
433
+
434
+ ```bash
435
+ npm ci
436
+ npm run typecheck
437
+ npm test
438
+ node --experimental-transform-types --test tests/ui/footer-render.test.ts
439
+ ```
440
+
441
+ See [AGENTS.md](AGENTS.md) for the source layout and project conventions.
442
+
443
+ Host-provided packages (`@earendil-works/pi-coding-agent`, `typebox`, etc.)
444
+ are declared as optional `peerDependencies` — pi supplies them at runtime.
package/bin/bee.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from 'node:child_process';
3
+ import { constants } from 'node:os';
4
+ import { fileURLToPath } from 'node:url';
5
+
6
+ const extension = fileURLToPath(new URL('../', import.meta.url));
7
+ const { error, status, signal } = spawnSync('pi', ['--extension', extension, ...process.argv.slice(2)], {
8
+ stdio: 'inherit',
9
+ });
10
+
11
+ if (error) {
12
+ console.error(error.code === 'ENOENT'
13
+ ? 'bee: Pi was not found on PATH. Install the Pi coding agent first.'
14
+ : `bee: could not start Pi: ${error.message}`);
15
+ process.exitCode = error.code === 'ENOENT' ? 127 : 1;
16
+ } else {
17
+ process.exitCode = status ?? (signal ? 128 + constants.signals[signal] : 1);
18
+ }
package/package.json CHANGED
@@ -1,6 +1,68 @@
1
1
  {
2
2
  "name": "@preapexis/honeycomb",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.1.0",
4
+ "description": "Pi coding agent extension with permission-aware tools, workflow commands, and customizable terminal themes",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "registry": "https://registry.npmjs.org/"
8
+ },
9
+ "type": "module",
10
+ "keywords": [
11
+ "pi-package",
12
+ "pi-extension",
13
+ "coding-agent"
14
+ ],
15
+ "engines": {
16
+ "node": ">=22.19.0"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/VarunGaikwad/honeycomb.git"
21
+ },
22
+ "homepage": "https://github.com/VarunGaikwad/honeycomb#readme",
23
+ "bugs": {
24
+ "url": "https://github.com/VarunGaikwad/honeycomb/issues"
25
+ },
26
+ "author": "Varun Gaikwad",
27
+ "license": "ISC",
28
+ "bin": {
29
+ "bee": "./bin/bee.js"
30
+ },
31
+ "files": [
32
+ "bin/",
33
+ "src/",
34
+ "themes/",
35
+ "plan/tools/tool-parity.md",
36
+ "README.md"
37
+ ],
38
+ "pi": {
39
+ "extensions": [
40
+ "./src/index.ts"
41
+ ],
42
+ "themes": [
43
+ "./themes/*.json"
44
+ ]
45
+ },
46
+ "scripts": {
47
+ "typecheck": "tsc --noEmit",
48
+ "test": "node --experimental-transform-types --test \"tests/**/*.test.ts\""
49
+ },
50
+ "peerDependencies": {
51
+ "@earendil-works/pi-coding-agent": "*",
52
+ "typebox": "*"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "@earendil-works/pi-coding-agent": {
56
+ "optional": true
57
+ },
58
+ "typebox": {
59
+ "optional": true
60
+ }
61
+ },
62
+ "devDependencies": {
63
+ "@earendil-works/pi-coding-agent": "^1.5.2",
64
+ "@types/node": "^22.19.19",
65
+ "typebox": "^1.3.27",
66
+ "typescript": "^5.9.3"
67
+ }
68
+ }
@@ -0,0 +1,61 @@
1
+ # Bi tool parity: inventory and implementation plan
2
+
3
+ ## Current additions
4
+
5
+ Current Honeycomb supports regex/filtered `grep` with bounded result modes,
6
+ branch-local task details and a read-only jobs tab, Windows PowerShell,
7
+ approved PNG/JPEG reads, LSP document symbols and implementations, and tool-free
8
+ `/review-diff` roles with optional validated JSON. See the [README](../../README.md)
9
+ for current behavior. The rollout notes below describe prior milestones.
10
+
11
+ PDF and richer notebook operations, workspace symbols/call hierarchy, PR commands,
12
+ agent teams, and restoring an arbitrary turn remain separate work. The rewind
13
+ timeline is a local path preview, not a new restore mechanism.
14
+
15
+ ## Rollout status
16
+
17
+ - **P0 — Discovery: complete.** The capability inventory and `/tool-search` are in place. The catalog shows active/inactive tools without running or enabling them. An opt-in history of actual tool calls is **optional and not started**.
18
+ - **P1 — File search and process isolation: complete for the agreed scope.** `glob` supports bounded, workspace-only matching; `find` and literal `grep` are unchanged. Live `glob` returned matches in the Bi workspace and denied an outside path. Managed process handles are session-owned, with cancellation and cleanup at session/branch boundaries. Richer task fields and regex search are **optional and not started**.
19
+ - **P2 — Optional local tools: complete for the agreed scope.**
20
+ - [x] **Notebook:** `notebook_edit` implements source-only cell updates, one-time preview/approval, stale-file checks, and `/rewind`. Automated coverage passed; no live Pi smoke test recorded.
21
+ - [x] **LSP setup:** `/lsp` provides a menu, confirmed user-local TypeScript install or existing-server selection, and separate session enablement. The working tip points to `/lsp` when no supported server is found. The user confirmed live install and enable in a sibling `test` directory next to the Bi checkout.
22
+ - [x] **LSP diagnostics:** Live hover worked but diagnostics timed out because the TypeScript server requires the `textDocument.publishDiagnostics` client capability. After advertising it, direct calls through Bi's LSP tool to the installed TypeScript server returned both a type error and `[]` for a clean file. A fake-server test covers push diagnostics and rejects unrelated/stale notifications.
23
+ - [x] **Git worktree:** Added `/worktree list`, `create <directory-name>`, and `leave`, with Git fixture tests. Creation requires a trusted, clean checkout and explicit confirmation. Leave only shows where to start a new session; it never removes the worktree or changes Pi's working directory.
24
+ - **PowerShell:** Deferred unless Windows support is requested; requires its own permission and platform tests.
25
+ - **P3 — Network and host integrations: in progress.** Model-initiated `web_fetch` is implemented behind `--bi-web-fetch` with per-URL approval. It accepts public HTTPS text on IPv4, pins the validated DNS address, and never follows redirects automatically. Offline tests cover permissions and transport, and the user confirmed a live fetch in Pi. Tavily `web_search` is implemented behind `--bi-web-search` and `TAVILY_API_KEY`, with per-query approval. Bi gates Pi-hosted MCP resource list/template/read calls behind `--bi-mcp-resource-server <name>` and per-call approval without adding a client. Additional tool-free reviewers still need separate scope and approval.
26
+
27
+ **Related fix complete:** Bi rejects workspace escapes before opening its approval dialog. Regression tests also confirm that protected shell redirects are rejected without a Bi approval prompt. A prompt from Pi or an outer host is outside Bi's control.
28
+
29
+ **Last verified code baseline:** Typecheck, 163/163 automated tests, and `git diff --check` passed. Live diagnostics passed both through Bi's tool and in Pi. The user also confirmed `/worktree list` and creation in Pi.
30
+
31
+ **Live P3 checks:** The user confirmed Tavily `web_search` in Pi using an official Node.js documentation query. With the local `bi-smoke` MCP fixture, Pi/Codemode blocked a call for a nonmatching server name, listed `docs://smoke/hello`, and returned the expected text when reading that resource.
32
+
33
+ **Next:** No required P3 smoke test remains for the implemented scope. Additional tool-free reviewers remain deferred pending scope and approval.
34
+
35
+ **MCP feasibility checked locally:** The installed Pi CLI (1.6.0) and Bi's development peer (1.5.2) document built-in `list_mcp_resources`, `list_mcp_resource_templates`, and `read_mcp_resource` when a connected server exposes resources. Pi already handles server configuration and authentication. The public extension API exposes server registration/configuration, not a live resource client; the documented `tool_call` hook can gate built-in tool calls, including nested calls. Bi allows one explicitly selected server per launch, requires the server on every list and read call, and prompts before forwarding to Pi. Pi can return images and write other binary resources to temporary files; the Bi permission gate does not make reads text-only. No MCP server was connected for this check.
36
+
37
+ ## What was verified
38
+ `temp/README.md` describes the snapshot as leaked source. Use it only to inventory capabilities; implement independently from Bi/Pi and public specs. No imports, copying, execution, packaging, or dependencies from `temp/`. `/temp/` is Git-ignored and absent from the npm files allowlist. Bi's parity features use its existing permission, Plan, discovery and verification code.
39
+
40
+ This is a static inventory, not a runtime call history. No `.jsonl` or `.log` matches were found under `temp/`. `temp/src/tools.ts` assembles the candidate pool; feature/environment checks, `isEnabled()`, deny rules, mode and connected MCP servers change availability. Model `tool_use` blocks go through `temp/src/query.ts` to `StreamingToolExecutor` or `toolOrchestration.runTools`, then `toolExecution.runToolUse` validates and authorizes before `tool.call()`. An exposed tool is not necessarily called, and a requested tool is not necessarily executed.
41
+
42
+ ## Inventory and proposed disposition
43
+ | Names in snapshot | Triaged Bi mapping |
44
+ |---|---|
45
+ | `Read`, `Edit`, `Write`, `Bash`, `Grep`, `Glob` | Reuse `read`, `edit`, `write`, `bash`, `grep`, `glob`, and `find`; `glob` matches relative paths, `grep` is literal, and `find` is substring-based. Regex content search remains optional. Do not add duplicate PascalCase aliases. |
46
+ | `AskUserQuestion`, `TodoWrite`, `TaskCreate`, `TaskGet`, `TaskUpdate`, `TaskList` | Reuse `ask_user` and branch-local `todo`/`/tasks`. Add task detail, stable IDs and status only where needed; one store with compatibility for existing todo entries, not a second source of truth. |
47
+ | `TaskOutput`, `TaskStop` | Partial equivalents `process` and `kill`. Handles are scoped to their owning session and retired on Pi session and branch boundaries. Output remains nonblocking; no new process operations were added. |
48
+ | `EnterPlanMode`, `ExitPlanMode`, `VerifyPlanExecutionTool`* | Reuse `/plan`, `plan_note`, approval flow, `/verify`, and `goal_report` where relevant. Do not add any tool that leaves Plan or starts implementation without the user's approval. |
49
+ | `Skill`, `Config`, `CtxInspectTool`* | Reuse Pi skills and Bi `/skills`, `/settings`, `/doctor`, `/context`; metadata only for discovery. No model-driven settings writes. |
50
+ | `ToolSearch` | `/tool-search` lists registered tool names and their active/inactive status. It does not expose definitions, activate tools, or grant permissions. |
51
+ | `NotebookEdit`, `LSP` | `notebook_edit` supports source-only cell edits, one-time approval and rewind without execution. `lsp` is opt-in for a trusted local stdio server; `/lsp` offers confirmed user-local TypeScript setup or selection of an existing server. Definition, references, hover, and diagnostics are implemented; live TypeScript diagnostics were verified. Nothing installs automatically, and code actions are not supported. |
52
+ | `EnterWorktree`, `ExitWorktree`, `PowerShell` | `/worktree` supports create/list/leave; no removal or implicit Pi cwd mutation. PowerShell only if Windows support is requested, via the authorized shell path and explicit platform tests. |
53
+ | `WebFetch`, `WebSearch`, `WebBrowserTool`* | Optional adapters for public pages and user-selected search provider, no network by default. Preview destination/query, cap output/time, block private/loopback/metadata endpoints and recheck redirects, do not forward credentials. Browser automation out of scope. |
54
+ | `ListMcpResourcesTool`, `ReadMcpResourceTool`, `MCPTool` (`mcp` wrapper), `McpAuthTool` (dynamic auth) | Use approved Pi host MCP support where available, not a generic forwarding tool. Add read-only resource listing/reading later only if the host exposes it; preserve namespace/rules, size limits, user-controlled authentication. Dynamic server tool names cannot be enumerated from source alone. |
55
+ | `StructuredOutput` (synthetic) | Optional request-scoped output validation against a caller-supplied schema, not a general-purpose tool or executor. |
56
+ | `Agent` (legacy `Task`), `SendMessage`, `TeamCreate`, `TeamDelete`, `ListPeersTool`* | Existing `subagent` is an adapter but Pi registration does not supply `delegateAgent`. If needed, consider a separate user-started, tool-free reviewer with an approved bounded input. Do not add agent swarms, peer messaging or autonomous offensive workflows. |
57
+ | `SendUserMessage` (legacy `Brief`), `SendUserFileTool`*, `PushNotificationTool`* | Prefer local Pi UI notifications; no upload, external delivery or extra model tool by default. |
58
+ | `Sleep`, `CronCreate`, `CronDelete`, `CronList`, `RemoteTrigger`, `MonitorTool`*, `SubscribePRTool`*, `SuggestBackgroundPRTool`* | Defer. If there is a concrete need, start with local user-managed reminders that do not invoke tools or models. No background agents, webhook runtime, auto-PR or remote triggers. |
59
+ | `REPL`, `WorkflowTool`*, `TerminalCaptureTool`*, `SnipTool`*, `TungstenTool`*, `OverflowTestTool`*, `TestingPermission` | No production port. Prefer approved existing execution tools, managed process output, and Pi session features. Permission and overflow cases belong in Bi tests. No session history mutation, generic script wrapper, or global terminal capture. |
60
+
61
+ * Registry reference is visible but the implementation directory is missing in this snapshot; names above are source symbols, not verified model-facing names. MCP helpers and StructuredOutput have special registration paths, not ordinary always-on built-ins.