@howaboua/pi-shepherdr 0.2.1 → 0.2.2
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/CHANGELOG.md +4 -0
- package/index.ts +2 -1
- package/package.json +3 -3
- package/src/agents-operations.ts +2 -3
- package/src/agents-tool.ts +1 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @howaboua/pi-shepherdr
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
- Removed redundant tool guidance from Ask, Shepherdr, Skills and Browser. Code and Notebook Mode now show one callable contract per tool, with detailed Browser and agent rules in help.
|
|
6
|
+
|
|
3
7
|
## 0.2.1
|
|
4
8
|
|
|
5
9
|
- Deliver peer messages directly to Pi without submitting unsent human drafts.
|
package/index.ts
CHANGED
|
@@ -38,7 +38,8 @@ async function registerAgentsInCodeMode(
|
|
|
38
38
|
const registration = registerCodeModeExtensionTools(pi, () => [
|
|
39
39
|
adaptToolForCodeMode(tool, {
|
|
40
40
|
blocking: isBlockingAgentsCall,
|
|
41
|
-
usage:
|
|
41
|
+
usage:
|
|
42
|
+
'await tools.agents({ action: "help" }) // Persistent agents; first call alone',
|
|
42
43
|
}),
|
|
43
44
|
]);
|
|
44
45
|
pi.on("session_shutdown", () => registration.unregister());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@howaboua/pi-shepherdr",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Persistent blocking and asynchronous Pi agents through Herdr.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"pack:dry": "npm pack --dry-run"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@howaboua/pi-codex-conversion": ">=3.0.
|
|
46
|
+
"@howaboua/pi-codex-conversion": ">=3.0.33",
|
|
47
47
|
"@earendil-works/pi-ai": ">=0.84.3",
|
|
48
48
|
"@earendil-works/pi-coding-agent": ">=0.84.4",
|
|
49
49
|
"@earendil-works/pi-tui": ">=0.84.3",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@howaboua/pi-codex-conversion": "3.0.
|
|
58
|
+
"@howaboua/pi-codex-conversion": "3.0.33",
|
|
59
59
|
"@biomejs/biome": "^2.5.10",
|
|
60
60
|
"@earendil-works/pi-ai": "0.85.1",
|
|
61
61
|
"@earendil-works/pi-coding-agent": "0.85.1",
|
package/src/agents-operations.ts
CHANGED
|
@@ -62,7 +62,7 @@ export async function agentsHelp(): Promise<Record<string, unknown>> {
|
|
|
62
62
|
send: "Peer questions, updates, replies; submission only, no wait or watch",
|
|
63
63
|
assign: "Delegate a task to an existing agent",
|
|
64
64
|
blocking:
|
|
65
|
-
"spawn/assign/answer default true; false pushes task settlement;
|
|
65
|
+
"spawn/assign/answer default true; false pushes task settlement; never poll. Reviewer spawns always block; await review before working its scope",
|
|
66
66
|
watch:
|
|
67
67
|
"Explicit watch persists until unwatch; automatic task watches end on finish/failure, not blockage",
|
|
68
68
|
prompt:
|
|
@@ -73,8 +73,7 @@ export async function agentsHelp(): Promise<Record<string, unknown>> {
|
|
|
73
73
|
"Reuse only same investigation; reviews independent; new scope = new agent",
|
|
74
74
|
...(profiles.has("general")
|
|
75
75
|
? {
|
|
76
|
-
general:
|
|
77
|
-
"Only when requested/orchestrating. Current repo: create + bootstrap worktree; pass cwd",
|
|
76
|
+
general: "Only when requested/orchestrating",
|
|
78
77
|
}
|
|
79
78
|
: {}),
|
|
80
79
|
},
|
package/src/agents-tool.ts
CHANGED
|
@@ -52,15 +52,8 @@ export function createAgentsTool(fleet: AgentFleet) {
|
|
|
52
52
|
return defineTool({
|
|
53
53
|
name: "agents",
|
|
54
54
|
label: "Shepherdr",
|
|
55
|
-
description: "
|
|
55
|
+
description: "Delegate to persistent agents; call help first, alone",
|
|
56
56
|
parameters: AgentsParameters,
|
|
57
|
-
promptSnippet: "Load agents help before first use.",
|
|
58
|
-
promptGuidelines: [
|
|
59
|
-
"agents: send messages to peers; assign delegates work. Reviewer spawns always block; await review before working its scope.",
|
|
60
|
-
"agents: Specialists know their job. Give only the concrete task and inaccessible context; never append generic method, evidence, or reporting instructions.",
|
|
61
|
-
"agents: Reuse specialists only for the same investigation. Keep reviews independent. New scope gets a new agent.",
|
|
62
|
-
"agents: For advanced Herdr workspace, pane, process or layout control, run herdr --skill.",
|
|
63
|
-
],
|
|
64
57
|
executionMode: "sequential",
|
|
65
58
|
async execute(
|
|
66
59
|
_toolCallId,
|