@d3ara1n/pi-subagent 2.1.0 → 2.2.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/roles.ts +9 -4
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ This means:
|
|
|
32
32
|
|
|
33
33
|
| Role | Model Role | Timeout | Tools | Can Delegate To | Description |
|
|
34
34
|
|------|-----------|---------|-------|-----------------|-------------|
|
|
35
|
-
| `explorer` | fast | 900s | read, find, grep | — | Fast code exploration (read-only) |
|
|
35
|
+
| `explorer` | fast | 900s | read, find, grep, bash | — | Fast code exploration incl. git history inspection (read-only) |
|
|
36
36
|
| `reviewer` | heavy | 3600s | read, bash, grep, find | — | Deep code review, runs git/tests for evidence (read-only) |
|
|
37
37
|
| `worker` | default | 2400s | all (no whitelist) | explorer, researcher | Implementation — the only role that can modify files; full tool access (web, MCP, everything) |
|
|
38
38
|
| `researcher` | fast | 2400s | web_search, fetch_content, source_check, get_search_content, read, bash, edit, write, delegate | explorer | Web research + GitHub repo analysis; writes artifacts only inside its temp dir |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d3ara1n/pi-subagent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Role-based subagent orchestration for pi — delegates tasks to specialized pi child processes with configurable model roles",
|
|
6
6
|
"main": "src/index.ts",
|
package/src/roles.ts
CHANGED
|
@@ -15,13 +15,18 @@ export const BUILTIN_ROLES: Record<string, SubagentRole> = {
|
|
|
15
15
|
fallbackRole: "default",
|
|
16
16
|
timeout: 900,
|
|
17
17
|
description:
|
|
18
|
-
"READ-ONLY codebase exploration — locate files, grep symbols, trace imports, explain structures.",
|
|
19
|
-
examples: [
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
"READ-ONLY codebase exploration — locate files, grep symbols, trace imports, explain structures, inspect git history (log/diff/blame).",
|
|
19
|
+
examples: [
|
|
20
|
+
"Find where auth middleware is implemented",
|
|
21
|
+
"Map the routing structure",
|
|
22
|
+
"Summarize what the uncommitted diff changes, file by file",
|
|
23
|
+
],
|
|
24
|
+
decisionTrigger: "Task finds or maps code (including git history) without touch?",
|
|
25
|
+
tools: ["read", "find", "grep", "bash"],
|
|
22
26
|
systemPrompt: [
|
|
23
27
|
"Code explorer. READ-ONLY — locate code, understand it, and report findings; never modify anything.",
|
|
24
28
|
"Search to locate → read the files relevant to the task → trace imports, identify types, interfaces, functions.",
|
|
29
|
+
"Bash for read-only inspection only: git log/show/blame/diff, ls, wc. Never run a command that modifies files or state (sed, tee, echo >, git checkout/commit, installs).",
|
|
25
30
|
"Skip noise: lockfiles, vendored, minified, and generated files.",
|
|
26
31
|
"",
|
|
27
32
|
"Output format:",
|