@d3ara1n/pi-subagent 1.2.0 → 1.2.1

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 (3) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
  3. package/src/roles.ts +10 -10
package/README.md CHANGED
@@ -32,8 +32,8 @@ 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 search (read-only, no bash) |
36
- | `reviewer` | heavy | 3600s | read, bash, grep, find | — | Deep code review (read-only, bash for git/log) |
35
+ | `explorer` | fast | 900s | read, find, grep | — | Fast code exploration (read-only) |
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 |
39
39
 
@@ -126,7 +126,7 @@ Override, disable, or add subagent roles via `agentOverrides`. Built-in and cust
126
126
  },
127
127
  "tester": {
128
128
  "role": "default",
129
- "description": "Test automation & QA — write and run tests, validate fixes. Tools: read, bash, edit, write, grep. Can delegate to explorer.",
129
+ "description": "Test automation & QA — write and run tests, validate fixes. Can delegate to explorer.",
130
130
  "examples": [
131
131
  "Write unit tests for the auth module",
132
132
  "Run the test suite and fix failing tests"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3ara1n/pi-subagent",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
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,18 +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. Tools: read, find, grep. NO bash, NO edits, NO web access.",
18
+ "READ-ONLY codebase exploration — locate files, grep symbols, trace imports, explain structures.",
19
19
  examples: ["Find where auth middleware is implemented", "Map the routing structure"],
20
20
  decisionTrigger: "Task finds or maps code without touch?",
21
21
  tools: ["read", "find", "grep"],
22
22
  systemPrompt: [
23
- "Fast code explorer. You have READ-ONLY tools only no commands, no edits.",
24
- "Grep/find to locate → read key sections only → identify types, interfaces, functions.",
25
- "Never read entire files. Target specific line ranges.",
23
+ "Code explorer. READ-ONLY locate code, understand it, and report findings; never modify anything.",
24
+ "Search to locate → read the files relevant to the task trace imports, identify types, interfaces, functions.",
25
+ "Skip noise: lockfiles, vendored, minified, and generated files.",
26
26
  "",
27
- "Output format (keep each section brief):",
27
+ "Output format:",
28
28
  "## Files: file paths with line ranges and one-line descriptions",
29
- "## Findings: key types/functions with minimal code snippets",
29
+ "## Findings: key types/functions with short code snippets",
30
30
  "## Summary: direct answer to the task question",
31
31
  ].join("\n"),
32
32
  },
@@ -35,7 +35,7 @@ export const BUILTIN_ROLES: Record<string, SubagentRole> = {
35
35
  fallbackRole: "default",
36
36
  timeout: 3600,
37
37
  description:
38
- "READ-ONLY code review & analysis — audit code, assess architecture, review diffs. Tools: read, bash, grep, find. Has bash (git diff/log, test runs). NO edits, NO web access.",
38
+ "READ-ONLY code review & analysis — audit code, assess architecture, review diffs, run tests for evidence.",
39
39
  examples: [
40
40
  "Review the error handling in src/api/ for security issues",
41
41
  "Audit this PR diff for performance regressions",
@@ -44,7 +44,7 @@ export const BUILTIN_ROLES: Record<string, SubagentRole> = {
44
44
  tools: ["read", "bash", "grep", "find"],
45
45
  systemPrompt: [
46
46
  "Senior code reviewer. READ-ONLY — you must NOT modify any file.",
47
- "bash is for read-only commands only (git diff/log/show, test runs). Never use sed, tee, echo >, or any write command.",
47
+ "Run only read-only commands (git diff/log/show, test runs). Never use sed, tee, echo >, or any write command.",
48
48
  "Provide evidence-backed findings with file:line references.",
49
49
  "",
50
50
  "Output format (prioritize critical issues first):",
@@ -67,8 +67,8 @@ export const BUILTIN_ROLES: Record<string, SubagentRole> = {
67
67
  "After each change, validate: run tests, check syntax, verify behavior.",
68
68
  "",
69
69
  "## Protecting your context",
70
- "You have full tool access (web_search, fetch_content, MCP, ...) plus a `subagent_delegate` tool.",
71
- "Use direct tools for quick lookups — e.g. check library docs/APIs with web_search or context7 before writing third-party code.",
70
+ "You have full tool access plus a `subagent_delegate` tool.",
71
+ "Use direct tools for quick lookups — e.g. search the web for library docs/APIs before writing third-party code.",
72
72
  "Delegate only when the work is substantial:",
73
73
  "- subagent_delegate(role=explorer) when you need to map unfamiliar code before editing",
74
74
  "- subagent_delegate(role=researcher) when the research itself is a multi-step investigation",