@dougbots/avenor-pi 0.1.0 → 0.3.3
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 +19 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -107,11 +107,11 @@ The `pi` key in `package.json` declares the extension entry point:
|
|
|
107
107
|
|
|
108
108
|
### Tools
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
Available tools for LLM sub-agent management:
|
|
111
111
|
|
|
112
112
|
| Tool | Description |
|
|
113
113
|
|---|---|
|
|
114
|
-
| `avenor_spawn` | Dispatch an agent run (blocking or fire-and-forget) |
|
|
114
|
+
| `avenor_spawn` | Dispatch an agent run (blocking or fire-and-forget). Accepts `agent` (optional, maps to a named profile in `agents.json`), `model`, `prompt`, and `dir`. |
|
|
115
115
|
| `avenor_status` | Get status of a run or all runs |
|
|
116
116
|
| `avenor_answer_permission` | Answer a pending permission request |
|
|
117
117
|
| `avenor_follow_up` | Resume a completed run with a follow-up message |
|
|
@@ -132,6 +132,23 @@ Beyond the tools, the extension integrates with Pi's TUI and event system:
|
|
|
132
132
|
- `/avenor-watch <run_id>` — open a live event feed overlay
|
|
133
133
|
- `/avenor-cancel <run_id>` — cancel a running sub-agent
|
|
134
134
|
|
|
135
|
+
### Agent profiles
|
|
136
|
+
|
|
137
|
+
The `avenor_spawn` tool accepts an optional `agent` parameter that maps to a named profile in pi's `agents.json`:
|
|
138
|
+
|
|
139
|
+
```json
|
|
140
|
+
{
|
|
141
|
+
"jockey": {
|
|
142
|
+
"model": "anthropic/claude-sonnet-4",
|
|
143
|
+
"systemPrompt": "You are a PR reviewer..."
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
When `agent` is set, avenor passes `PI_AGENT=<name>` to the pi subprocess. The `@dougbots/pi-agents` extension reads this to load the corresponding profile (model, system prompt, tools, permissions) from `agents.json` (located at `PI_CODING_AGENT_DIR` or `~/.pi/agent/`).
|
|
149
|
+
|
|
150
|
+
If you don't need a named profile, `model` alone is sufficient — no agent config or extension setup required.
|
|
151
|
+
|
|
135
152
|
## Typical workflows
|
|
136
153
|
|
|
137
154
|
**Blocking (default):**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dougbots/avenor-pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dev": "tsdown --watch"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@dougbots/avenor-core": "^0.3.
|
|
38
|
+
"@dougbots/avenor-core": "^0.3.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@earendil-works/pi-coding-agent": "*",
|