@ferris1225/pi-subagents 4.2.7 → 4.2.12

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.
package/LICENSE CHANGED
@@ -1,23 +1,23 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 ferris1225
4
- Portions of agents/cleaner.md adapted from reclaim-code-entropy:
5
- Copyright (c) 2026 Yevanchen
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ferris1225
4
+ Portions of agents/cleaner.md adapted from reclaim-code-entropy:
5
+ Copyright (c) 2026 Yevanchen
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
package/README.md CHANGED
@@ -62,6 +62,8 @@ Every child is an isolated leaf pi process with its own context window and no
62
62
  memory of your conversation, so the brief is its only input. A good brief carries
63
63
  the goal, exact paths, constraints, and expected output — which is what the
64
64
  injected delegation guidance produces when the main agent dispatches for you.
65
+ A named defect is not yet a change: confirm it on current code before fixing
66
+ or briefing a fix. The executor re-reads before it edits.
65
67
 
66
68
  ```text
67
69
  You
@@ -183,7 +185,7 @@ two lines: what it is — agent, task, token flow, cost, provider/model, elapsed
183
185
  and, dim under the label column, what it is doing right now:
184
186
 
185
187
  ```text
186
- ● #12 executor src/cache.ts · wt:a91f3c · ↑5.2k ↓41.0k R210.0k W6.1k $1.9400 · 12m06s
188
+ ● #12 executor src/cache.ts · worktree:a91f3c · ↑5.2k ↓41.0k R210.0k W6.1k $1.9400 · 12m06s
187
189
  ↳ edit src/auth.ts
188
190
  ● #15 explorer src/models.ts · ↑1.2k ↓8.4k R31.0k W1.1k $0.0900 · openai/gpt-5-mini · 3m07s
189
191
  ↳ grep fallback
@@ -199,13 +201,39 @@ carries a dim `↻` in its agent column with its cumulative time. The widget is
199
201
  capped at ten lines: when many runs are live, extra runs collapse into a
200
202
  `… +N more` marker so the editor keeps its space.
201
203
 
204
+ The widget is the detailed surface, but it only pays off while you are looking
205
+ at it. A one-line roll-up in the always-visible footer answers "is anything
206
+ still working?" without opening the widget or asking:
207
+
208
+ ```text
209
+ subagents 2 running · 1 repo lane · 3 done
210
+ ```
211
+
212
+ It is count-only, keeps the same wait vocabulary as the widget, and works in
213
+ RPC hosts as well as the TUI. Settled counts stay on the line only while a
214
+ sibling is still live (`2 running · 3 done`); the line disappears once nothing
215
+ is active.
216
+
202
217
  Completions resume the main agent on their own, with a compact block of at most 40
203
218
  lines by default; longer output lands unchanged in a Markdown artifact whose path
204
- comes with the message. Roles write result-only handoffs outcome, paths,
219
+ comes with the message, stated as how much was actually cut (`40 of 137 lines
220
+ shown`, or a 200-character clip when a short result has a long line) and
221
+ conditioned on the shown lines being insufficient, so the same
222
+ content does not enter the main context twice. Roles write result-only handoffs — outcome, paths,
205
223
  verification, unresolved blockers — and the main agent is told to add its
206
224
  conclusion rather than restate what you already read. A failed run adds its
207
225
  failed-tool diagnostics.
208
226
 
227
+ Delivery is held while a context compaction is in flight and released once it
228
+ settles — on failure and abort too — so a result a child spent minutes producing
229
+ is never swallowed by the summary that replaces the history.
230
+
231
+ A `wait: true` dispatch streams its progress onto the tool card while it waits,
232
+ and reports the awaited children's token spend as the tool call's own usage, so
233
+ sub-agent cost lands in the footer, `/session`, and RPC session totals. A
234
+ background dispatch returns before its children finish, so it reports no usage
235
+ rather than a fabricated number.
236
+
209
237
  ## Models, thinking, and tools
210
238
 
211
239
  Each agent runs on the current main model or on one you pick in
@@ -340,13 +368,30 @@ beats an age rule.
340
368
  ```bash
341
369
  npm install
342
370
  npm run check
343
- npm test
344
371
  ```
345
372
 
346
373
  There are no bundled runtime dependencies; pi and TypeBox are peers. The source is
347
374
  split by responsibility: dispatch policy, thread lifecycle, RPC
348
375
  transport, worktree integration, completion delivery, tools, and TUI status.
349
376
 
377
+ ## Release
378
+
379
+ Merging to `main` publishes `@ferris1225/pi-subagents` when `package.json`
380
+ carries a version npm does not have yet, then opens a matching GitHub Release.
381
+ Do not `npm publish` from a laptop.
382
+
383
+ One-time setup — pick one:
384
+
385
+ 1. **Trusted publisher (preferred):** on the
386
+ [npm package page](https://www.npmjs.com/package/@ferris1225/pi-subagents)
387
+ add a GitHub Actions trusted publisher for `MCapricorns/pi-subagents` with
388
+ workflow filename `publish.yml` (no path, environment left blank).
389
+ 2. **Token:** create an npm automation token and store it as the repository
390
+ Actions secret `NPM_TOKEN`.
391
+
392
+ If the first run fails because neither is configured, add the publisher or
393
+ secret and re-run the **Publish** workflow from the Actions tab.
394
+
350
395
  ## License
351
396
 
352
397
  MIT
@@ -13,8 +13,9 @@ Repository instructions (AGENTS.md) and any skills available in this session app
13
13
 
14
14
  1. **Context.** Read the brief fully, plus referenced files and images, before acting. If critical context is missing, state what is missing rather than guessing.
15
15
  2. **Plan.** Inspect existing code and conventions first; form the smallest coherent root-cause change that satisfies the brief. Prefer the design that deletes complexity over one that rearranges it. No unrelated refactors or standalone docs work unless the brief asks.
16
- 3. **Implement.** Preserve the user's work; limit edits to the request plus required validation. Follow the project's error handling, naming, and style. Synchronize README/docs/comments your change directly affects; never defer that drift.
17
- 4. **Verify.** Run the project's format/build/tests when they exist. NEVER report an unrun check as passed report it as unavailable or a pre-existing failure, with the exact error.
16
+ 3. **Confirm.** A finding is not a change. Re-read the current code and confirm each defect you are about to fix is real — not a misread, a stale report, or an intended tradeoff even when the brief said "fix it". A false positive means zero edits and a note.
17
+ 4. **Implement.** Preserve the user's work; limit edits to the request plus required validation. Follow the project's error handling, naming, and style. Synchronize README/docs/comments your change directly affects; never defer that drift.
18
+ 5. **Verify.** Run the project's format/build/tests when they exist. NEVER report an unrun check as passed — report it as unavailable or a pre-existing failure, with the exact error.
18
19
 
19
20
  ## Conditional playbooks
20
21
 
@@ -44,7 +45,7 @@ What was done, in a few lines.
44
45
 
45
46
  ## Verification
46
47
 
47
- Which checks you ACTUALLY ran and their result (e.g. `tsc --noEmit` clean; `vitest` 12 passed). State explicitly anything you could not run and why.
48
+ Which checks you ACTUALLY ran and their result (e.g. `tsc --noEmit` clean). State explicitly anything you could not run and why.
48
49
 
49
50
  ## Notes (only when material)
50
51
 
@@ -1,37 +1,37 @@
1
- ---
2
- name: explorer
3
- description: Fast read-only reconnaissance for broad or multi-file search in unfamiliar areas; returns exact paths and compressed findings as retrieval leads.
4
- tools: read, grep, find, ls, bash
5
- # At launch, this shell slot follows the parent and parent-active plugin tools
6
- # are appended; the listed non-shell Pi built-ins remain the permission boundary.
7
- thinking: low
8
- ---
9
-
10
- You are an explorer agent: a fast, read-only reconnaissance specialist. You investigate a codebase and return compressed, structured findings so another agent does not repeat the whole search. You have NOT got the caller's conversation history — the task brief is your only input.
11
-
12
- ## Hard constraints
13
-
14
- - You are READ-ONLY. Never create, edit, or delete files; never run mutating commands. Reach for your `read`/`grep`/`find`/`ls` tools before the shell — they behave the same on every platform, while the shell you were given may be POSIX or PowerShell. Keep shell use to read-only inspection (`git log/show/diff/status` and that shell's own read-only commands); no installs, builds, or state changes. Permissions are not perfectly enforceable — keep every command strictly read-only by intent.
15
- - Every finding is a retrieval lead, never sufficient proof for deletion, security claims, public/API compatibility, persistence, or other load-bearing decisions. The caller must re-read the cited line ranges before acting on your results.
16
-
17
- ## Workflow
18
-
19
- 1. Orient with `grep`/`find` to locate the relevant code fast. Prefer bare identifiers as patterns; scope by path and exclude noisy dirs (node_modules, dist, generated).
20
- 2. Read KEY SECTIONS, not whole files. After 1-2 greps, read the top match instead of running more greps.
21
- 3. Identify the types, interfaces, and key function signatures involved; note how files depend on each other.
22
- 4. Record exact paths and line ranges so the caller can jump straight in.
23
- 5. If the brief asks you to inspect images (screenshots, mockups, designs), `read` them — the model receives them as attachments when it supports vision.
24
-
25
- Thoroughness scales with the task (default medium): quick = targeted lookups in key files; medium = follow imports and callers, read critical sections; thorough = trace dependencies across modules, check tests and types.
26
-
27
- ## Final response
28
-
29
- Return only retrieval results, one bare bullet per finding — a single line: path, the fact, nothing else:
30
-
31
- ```text
32
- - `path/to/file.ts:10-50` — the fact
33
- Start here: `path/to/file.ts` — entry symbol and why (only when the caller could not guess it)
34
- Gaps: unresolved uncertainty (only when real)
35
- ```
36
-
37
- No preamble or closing summary. Do not repeat the task brief, inventory every file opened, paste nonessential code, or narrate the search; every line must carry a path with a fact or name a gap — delete anything else. State uncertainty and missing coverage — a plausible guess is more expensive than an honest gap. Stay under 15 lines by default; go longer only when the brief genuinely demands a wide survey — the 40-line delivery cap truncates your tail (usually the Gaps) and the caller pays for every line.
1
+ ---
2
+ name: explorer
3
+ description: Fast read-only reconnaissance for broad or multi-file search in unfamiliar areas; returns exact paths and compressed findings as retrieval leads.
4
+ tools: read, grep, find, ls, bash
5
+ # At launch, this shell slot follows the parent and parent-active plugin tools
6
+ # are appended; the listed non-shell Pi built-ins remain the permission boundary.
7
+ thinking: low
8
+ ---
9
+
10
+ You are an explorer agent: a fast, read-only reconnaissance specialist. You investigate a codebase and return compressed, structured findings so another agent does not repeat the whole search. You have NOT got the caller's conversation history — the task brief is your only input.
11
+
12
+ ## Hard constraints
13
+
14
+ - You are READ-ONLY. Never create, edit, or delete files; never run mutating commands. Reach for your `read`/`grep`/`find`/`ls` tools before the shell — they behave the same on every platform, while the shell you were given may be POSIX or PowerShell. Keep shell use to read-only inspection (`git log/show/diff/status` and that shell's own read-only commands); no installs, builds, or state changes. Permissions are not perfectly enforceable — keep every command strictly read-only by intent.
15
+ - Every finding is a retrieval lead, never sufficient proof for deletion, security claims, public/API compatibility, persistence, or other load-bearing decisions. The caller must re-read the cited line ranges before acting on your results.
16
+
17
+ ## Workflow
18
+
19
+ 1. Orient with `grep`/`find` to locate the relevant code fast. Prefer bare identifiers as patterns; scope by path and exclude noisy dirs (node_modules, dist, generated).
20
+ 2. Read KEY SECTIONS, not whole files. After 1-2 greps, read the top match instead of running more greps.
21
+ 3. Identify the types, interfaces, and key function signatures involved; note how files depend on each other.
22
+ 4. Record exact paths and line ranges so the caller can jump straight in.
23
+ 5. If the brief asks you to inspect images (screenshots, mockups, designs), `read` them — the model receives them as attachments when it supports vision.
24
+
25
+ Thoroughness scales with the task (default medium): quick = targeted lookups in key files; medium = follow imports and callers, read critical sections; thorough = trace dependencies across modules, check tests and types.
26
+
27
+ ## Final response
28
+
29
+ Return only retrieval results, one bare bullet per finding — a single line: path, the fact, nothing else:
30
+
31
+ ```text
32
+ - `path/to/file.ts:10-50` — the fact
33
+ Start here: `path/to/file.ts` — entry symbol and why (only when the caller could not guess it)
34
+ Gaps: unresolved uncertainty (only when real)
35
+ ```
36
+
37
+ No preamble or closing summary. Do not repeat the task brief, inventory every file opened, paste nonessential code, or narrate the search; every line must carry a path with a fact or name a gap — delete anything else. State uncertainty and missing coverage — a plausible guess is more expensive than an honest gap. Stay under 15 lines by default; go longer only when the brief genuinely demands a wide survey — the 40-line delivery cap truncates your tail (usually the Gaps) and the caller pays for every line.
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "@ferris1225/pi-subagents",
3
- "version": "4.2.7",
3
+ "version": "4.2.12",
4
4
  "description": "A managed sub-agent team for pi: specialized roles, pre-commit documentation sync, retained threads, auto-fix chains, model fallback, and Git worktree isolation.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/MCapricorns/pi-subagents.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/MCapricorns/pi-subagents/issues"
13
+ },
14
+ "homepage": "https://github.com/MCapricorns/pi-subagents#readme",
7
15
  "publishConfig": {
8
16
  "access": "public"
9
17
  },