@eduardo191labs/opencode-free-pi 0.5.2 → 0.5.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 +7 -6
- package/dist/agents/definitions.d.ts +6 -1
- package/dist/agents/definitions.js +10 -5
- package/package.json +1 -1
- package/src/agents/definitions.ts +10 -5
package/README.md
CHANGED
|
@@ -199,7 +199,7 @@ añadir ruido al contexto.
|
|
|
199
199
|
|
|
200
200
|
## Agentes y subagentes
|
|
201
201
|
|
|
202
|
-
El CLI incluye cuatro personalidades de
|
|
202
|
+
El CLI incluye cuatro personalidades de agente. El plugin las instala como
|
|
203
203
|
agentes Markdown nativos de OpenCode en el directorio global de configuración:
|
|
204
204
|
|
|
205
205
|
```text
|
|
@@ -217,11 +217,12 @@ agentes Markdown nativos de OpenCode en el directorio global de configuración:
|
|
|
217
217
|
| `free-pi/worker` | Ejecuta una tarea completa en su propia ventana de contexto. |
|
|
218
218
|
| `free-pi/reviewer`| Revisión de solo lectura con archivo y línea. |
|
|
219
219
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
220
|
+
Usan `mode: all`, así que aparecen en el selector `/agents` de la TUI como
|
|
221
|
+
agente principal **y** se pueden lanzar con la herramienta `subagent` nativa.
|
|
222
|
+
Heredan el modelo free-pi de la sesión padre. Como subagentes corren en segundo
|
|
223
|
+
plano, comparten el allowance diario y envían su informe al agente principal.
|
|
224
|
+
Así se conservan las sesiones hijas, los permisos, la profundidad de subagentes
|
|
225
|
+
y el resto del comportamiento nativo.
|
|
225
226
|
|
|
226
227
|
El plugin solo reescribe estos archivos si conservan su marca de gestión; si el
|
|
227
228
|
usuario edita o reemplaza uno, se respeta tal cual.
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Native OpenCode agents for free-pi.
|
|
3
3
|
*
|
|
4
|
-
* The provider CLI ships four
|
|
4
|
+
* The provider CLI ships four agent personalities (scout, planner, worker,
|
|
5
5
|
* reviewer) with their own prompts and tool access. OpenCode's V2 plugin API
|
|
6
6
|
* cannot add agents through `AgentEditor`, but it loads Markdown agents from the
|
|
7
7
|
* global config directory. Installing those files is the supported way to map
|
|
8
8
|
* the CLI agents onto OpenCode's native `subagent` tool, so child sessions,
|
|
9
9
|
* background reports, permissions and the agent picker keep working normally.
|
|
10
10
|
*
|
|
11
|
+
* They use `mode: all`: OpenCode only lists non-subagent agents in the `/agents`
|
|
12
|
+
* picker, and only agents whose mode is not `primary` can run through the
|
|
13
|
+
* `subagent` tool. `all` satisfies both, so the same personalities are
|
|
14
|
+
* selectable as the main agent and spawnable as children.
|
|
15
|
+
*
|
|
11
16
|
* Files live under `agents/free-pi/`, which makes their IDs `free-pi/scout`,
|
|
12
17
|
* `free-pi/planner`, `free-pi/worker` and `free-pi/reviewer`.
|
|
13
18
|
*/
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Native OpenCode agents for free-pi.
|
|
3
3
|
*
|
|
4
|
-
* The provider CLI ships four
|
|
4
|
+
* The provider CLI ships four agent personalities (scout, planner, worker,
|
|
5
5
|
* reviewer) with their own prompts and tool access. OpenCode's V2 plugin API
|
|
6
6
|
* cannot add agents through `AgentEditor`, but it loads Markdown agents from the
|
|
7
7
|
* global config directory. Installing those files is the supported way to map
|
|
8
8
|
* the CLI agents onto OpenCode's native `subagent` tool, so child sessions,
|
|
9
9
|
* background reports, permissions and the agent picker keep working normally.
|
|
10
10
|
*
|
|
11
|
+
* They use `mode: all`: OpenCode only lists non-subagent agents in the `/agents`
|
|
12
|
+
* picker, and only agents whose mode is not `primary` can run through the
|
|
13
|
+
* `subagent` tool. `all` satisfies both, so the same personalities are
|
|
14
|
+
* selectable as the main agent and spawnable as children.
|
|
15
|
+
*
|
|
11
16
|
* Files live under `agents/free-pi/`, which makes their IDs `free-pi/scout`,
|
|
12
17
|
* `free-pi/planner`, `free-pi/worker` and `free-pi/reviewer`.
|
|
13
18
|
*/
|
|
@@ -75,7 +80,7 @@ over running an external CLI.
|
|
|
75
80
|
`;
|
|
76
81
|
const SCOUT = `---
|
|
77
82
|
description: Read-only recon. Locates code, traces how pieces connect, and returns structured findings the lead can use without re-reading the files.
|
|
78
|
-
mode:
|
|
83
|
+
mode: all
|
|
79
84
|
color: "#4cc9f0"
|
|
80
85
|
permissions:
|
|
81
86
|
- action: edit
|
|
@@ -110,7 +115,7 @@ Which file to look at first and why.
|
|
|
110
115
|
`;
|
|
111
116
|
const PLANNER = `---
|
|
112
117
|
description: Turns context and requirements into a concrete implementation plan. Read-only: never edits files or runs commands.
|
|
113
|
-
mode:
|
|
118
|
+
mode: all
|
|
114
119
|
color: "#b5179e"
|
|
115
120
|
permissions:
|
|
116
121
|
- action: edit
|
|
@@ -142,7 +147,7 @@ Keep the plan concrete: a worker agent will execute it verbatim.
|
|
|
142
147
|
`;
|
|
143
148
|
const WORKER = `---
|
|
144
149
|
description: Full-capability worker that carries out one delegated task in its own context window and reports what changed.
|
|
145
|
-
mode:
|
|
150
|
+
mode: all
|
|
146
151
|
color: "#2a9d8f"
|
|
147
152
|
permissions:
|
|
148
153
|
- action: subagent
|
|
@@ -167,7 +172,7 @@ Anything the lead should know.
|
|
|
167
172
|
`;
|
|
168
173
|
const REVIEWER = `---
|
|
169
174
|
description: Senior code reviewer for quality, security and maintainability. Read-only; reports findings with file and line references.
|
|
170
|
-
mode:
|
|
175
|
+
mode: all
|
|
171
176
|
color: "#e76f51"
|
|
172
177
|
permissions:
|
|
173
178
|
- action: edit
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Native OpenCode agents for free-pi.
|
|
3
3
|
*
|
|
4
|
-
* The provider CLI ships four
|
|
4
|
+
* The provider CLI ships four agent personalities (scout, planner, worker,
|
|
5
5
|
* reviewer) with their own prompts and tool access. OpenCode's V2 plugin API
|
|
6
6
|
* cannot add agents through `AgentEditor`, but it loads Markdown agents from the
|
|
7
7
|
* global config directory. Installing those files is the supported way to map
|
|
8
8
|
* the CLI agents onto OpenCode's native `subagent` tool, so child sessions,
|
|
9
9
|
* background reports, permissions and the agent picker keep working normally.
|
|
10
10
|
*
|
|
11
|
+
* They use `mode: all`: OpenCode only lists non-subagent agents in the `/agents`
|
|
12
|
+
* picker, and only agents whose mode is not `primary` can run through the
|
|
13
|
+
* `subagent` tool. `all` satisfies both, so the same personalities are
|
|
14
|
+
* selectable as the main agent and spawnable as children.
|
|
15
|
+
*
|
|
11
16
|
* Files live under `agents/free-pi/`, which makes their IDs `free-pi/scout`,
|
|
12
17
|
* `free-pi/planner`, `free-pi/worker` and `free-pi/reviewer`.
|
|
13
18
|
*/
|
|
@@ -85,7 +90,7 @@ over running an external CLI.
|
|
|
85
90
|
|
|
86
91
|
const SCOUT = `---
|
|
87
92
|
description: Read-only recon. Locates code, traces how pieces connect, and returns structured findings the lead can use without re-reading the files.
|
|
88
|
-
mode:
|
|
93
|
+
mode: all
|
|
89
94
|
color: "#4cc9f0"
|
|
90
95
|
permissions:
|
|
91
96
|
- action: edit
|
|
@@ -121,7 +126,7 @@ Which file to look at first and why.
|
|
|
121
126
|
|
|
122
127
|
const PLANNER = `---
|
|
123
128
|
description: Turns context and requirements into a concrete implementation plan. Read-only: never edits files or runs commands.
|
|
124
|
-
mode:
|
|
129
|
+
mode: all
|
|
125
130
|
color: "#b5179e"
|
|
126
131
|
permissions:
|
|
127
132
|
- action: edit
|
|
@@ -154,7 +159,7 @@ Keep the plan concrete: a worker agent will execute it verbatim.
|
|
|
154
159
|
|
|
155
160
|
const WORKER = `---
|
|
156
161
|
description: Full-capability worker that carries out one delegated task in its own context window and reports what changed.
|
|
157
|
-
mode:
|
|
162
|
+
mode: all
|
|
158
163
|
color: "#2a9d8f"
|
|
159
164
|
permissions:
|
|
160
165
|
- action: subagent
|
|
@@ -180,7 +185,7 @@ Anything the lead should know.
|
|
|
180
185
|
|
|
181
186
|
const REVIEWER = `---
|
|
182
187
|
description: Senior code reviewer for quality, security and maintainability. Read-only; reports findings with file and line references.
|
|
183
|
-
mode:
|
|
188
|
+
mode: all
|
|
184
189
|
color: "#e76f51"
|
|
185
190
|
permissions:
|
|
186
191
|
- action: edit
|