pi-subagents-j0k3r 1.0.0 → 1.0.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.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/skills/subagents-configuration/SKILL.md +52 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.1 - 2026-06-27
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Expanded Subagents configuration guidance so agents can explain npm installation/update setup, model/effort inheritance, and task/background runtime behavior.
|
|
7
|
+
- Clarified that subagent model and effort routing should live in `subagents.json` `model_profiles` by default, with unconfigured agents inheriting the orchestrator model and effort.
|
|
8
|
+
|
|
3
9
|
## 1.0.0 - 2026-06-27
|
|
4
10
|
|
|
5
11
|
### Added
|
package/package.json
CHANGED
|
@@ -77,7 +77,7 @@ Field conventions:
|
|
|
77
77
|
|
|
78
78
|
## Activation Contract
|
|
79
79
|
|
|
80
|
-
Use this skill only when the user asks how to configure Pi Subagents or when editing/reviewing subagent configuration files: markdown subagent definitions
|
|
80
|
+
Use this skill only when the user asks how to configure Pi Subagents or when editing/reviewing subagent configuration files: package installation/update settings, markdown subagent definitions, project/global `subagents.json`, model profiles, allowed tools, history settings, background task config, background handoff shortcuts, lean resources, runtime task/background behavior, and generic interaction handoff as configuration topics only.
|
|
81
81
|
|
|
82
82
|
Do not load this skill for ordinary subagent delegation/use (`subagent_run`, task status/result polling), extension implementation work, task history browsing, or editing this skill file; those are not configuration questions.
|
|
83
83
|
|
|
@@ -92,11 +92,24 @@ Do not load this skill for ordinary subagent delegation/use (`subagent_run`, tas
|
|
|
92
92
|
- Project definitions override global definitions with the same normalized name.
|
|
93
93
|
- Subagents config resolves as a cascade: project `.pi/subagents.json` overrides global `$PI_CODING_AGENT_DIR/subagents.json` or `~/.pi/agent/subagents.json`; missing project fields fall back to global config; fields missing from both fall back to built-in defaults. Communicate this precedence to users when explaining config behavior.
|
|
94
94
|
- `model_profiles` are deep-merged by agent name with project-local profile fields taking precedence over global profile fields.
|
|
95
|
+
- Prefer configuring subagent `model` and `effort` in global or project `subagents.json` under `model_profiles`, not in the subagent markdown frontmatter. Markdown definitions should usually contain identity, description, tool allowlist, and behavioral instructions only.
|
|
95
96
|
- Nested subagent sessions should use `session_resources: "lean"` by default so the subagent markdown body becomes the nested session system prompt, the delegated user prompt contains only orchestrator context/task, and workflow skills, prompt templates, themes, context files, and startup context injections are not auto-loaded.
|
|
96
97
|
- In lean mode, extensions are loaded for allowlisted tools and tool-safety hooks only; prompt/context lifecycle hooks such as `before_agent_start` and `context` must not inject hidden messages into subagent turns.
|
|
97
98
|
- Subagent task history is stored globally under data storage, but rows remain project-scoped by `cwd`; history stores delegated prompt and subagent system prompt separately.
|
|
98
99
|
- Debug logging is disabled by default with `debug: false`; when enabled in global or project `subagents.json`, logs are written to the executing project's `cwd/.pi/subagents-debug.log`.
|
|
99
|
-
-
|
|
100
|
+
- To install the published package globally, prefer `pi install npm:pi-subagents-j0k3r`. If the user wants future `pi update --extensions` / `pi update --all` to move to newer releases, keep the package source unpinned as `npm:pi-subagents-j0k3r` in `~/.pi/agent/settings.json`. Use `npm:pi-subagents-j0k3r@x.y.z` only when the user explicitly wants a fixed version.
|
|
101
|
+
- Runtime behavior to explain: `mode=task` waits and returns the full subagent response to the orchestrator; `mode=background` frees the chat, should not be polled just to wait, and sends an automatic completion/failure notification. `/subagents` opens the session history/detail panel; `ctrl+o` expands/collapses rendered tool output and responses; `subagent_result` reads a stored result when explicitly needed.
|
|
102
|
+
- After changing subagent markdown/config, package settings, or extension code, tell the user to `/reload` or restart Pi.
|
|
103
|
+
|
|
104
|
+
Recommended global package setting in `~/.pi/agent/settings.json`:
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"packages": [
|
|
109
|
+
"npm:pi-subagents-j0k3r"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
```
|
|
100
113
|
|
|
101
114
|
Recommended `subagents.json` starter:
|
|
102
115
|
|
|
@@ -131,8 +144,6 @@ description: investigates isolated ideas, code, documentation, and context7 befo
|
|
|
131
144
|
tools:
|
|
132
145
|
- read
|
|
133
146
|
- memory_search
|
|
134
|
-
model: anthropic/claude-sonnet-4-5
|
|
135
|
-
effort: low
|
|
136
147
|
---
|
|
137
148
|
|
|
138
149
|
# Discovery Subagent
|
|
@@ -140,6 +151,26 @@ effort: low
|
|
|
140
151
|
Instructions...
|
|
141
152
|
```
|
|
142
153
|
|
|
154
|
+
Configure routing separately in `subagents.json` when needed. If no profile/default is configured, the subagent inherits the current orchestrator model and thinking effort.
|
|
155
|
+
|
|
156
|
+
```json
|
|
157
|
+
{
|
|
158
|
+
"model_profiles": {
|
|
159
|
+
"discovery": {
|
|
160
|
+
"model": "anthropic/claude-sonnet-4-5",
|
|
161
|
+
"effort": "low"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Model/effort resolution order:
|
|
168
|
+
|
|
169
|
+
1. `model_profiles[agentName]` in `subagents.json`.
|
|
170
|
+
2. Markdown frontmatter `model` / `effort` only for explicit per-file overrides.
|
|
171
|
+
3. `default_model` / `default_effort` in `subagents.json`.
|
|
172
|
+
4. Current orchestrator model / effort.
|
|
173
|
+
|
|
143
174
|
## Decision Gates
|
|
144
175
|
|
|
145
176
|
- If the subagent will modify files, run bash, or write memory, ask whether a full SDD workflow or stricter review is required.
|
|
@@ -149,18 +180,20 @@ Instructions...
|
|
|
149
180
|
|
|
150
181
|
## Execution Steps
|
|
151
182
|
|
|
152
|
-
1. Identify target scope: global subagent, project subagent, global config, or project config, and explain the cascade when relevant: project-local config first, then global config for missing fields, then built-in defaults.
|
|
153
|
-
2.
|
|
154
|
-
3.
|
|
155
|
-
4.
|
|
156
|
-
5.
|
|
157
|
-
6. Configure `
|
|
158
|
-
7.
|
|
159
|
-
8.
|
|
160
|
-
9. When configuring history
|
|
161
|
-
10. When configuring
|
|
162
|
-
11.
|
|
163
|
-
12.
|
|
183
|
+
1. Identify target scope: npm package install/update, global subagent, project subagent, global config, or project config, and explain the cascade when relevant: project-local config first, then global config for missing fields, then built-in defaults.
|
|
184
|
+
2. For package setup, inspect settings before editing; use `pi install npm:pi-subagents-j0k3r` when possible, or edit `~/.pi/agent/settings.json` only when the CLI is unavailable/broken. Prefer unpinned `npm:pi-subagents-j0k3r` unless the user asks for a fixed version.
|
|
185
|
+
3. Read existing subagent markdown/config before editing.
|
|
186
|
+
4. For new subagents, choose lowercase kebab-case names and clear trigger-focused descriptions.
|
|
187
|
+
5. Set minimal tool allowlists; remove any `subagent_*` entries.
|
|
188
|
+
6. Configure `model_profiles`, `default_model`, and `default_effort` in `subagents.json` only when the user wants explicit routing; do not put model routing in subagent markdown unless the user explicitly asks for per-file overrides. Explain that unconfigured fields inherit from the orchestrator.
|
|
189
|
+
7. Configure `debug: true` only for temporary diagnostics; keep `debug: false` by default and remember logs are written under the executing project's `.pi` directory.
|
|
190
|
+
8. Validate JSON syntax for settings/subagents config and frontmatter/body structure for markdown agents.
|
|
191
|
+
9. When configuring OpenCode-mode history opening, prefer `history_panel_shortcut` with `ctrl+<letter>` or `ctrl+,` values and document any built-in shortcut conflicts.
|
|
192
|
+
10. When configuring history/detail cancellation, prefer `detail_cancel_shortcut` with `x` by default; it supports `ctrl+<letter>`, `ctrl+shift+<letter>`, `ctrl+,`, or one lowercase letter. It only cancels the selected queued/running task while the detail panel is active.
|
|
193
|
+
11. When configuring Claude-mode background handoff, prefer `background_handoff_shortcut` with `ctrl+<letter>` values and document any built-in shortcut conflicts.
|
|
194
|
+
12. Explain runtime behavior when relevant: use `mode=task` to wait; use `mode=background` to keep chat usable and wait for automatic notification; use `/subagents` and `ctrl+o` for detail/expanded rendering.
|
|
195
|
+
13. Tell the user to `/reload` or restart Pi.
|
|
196
|
+
14. If validating configuration after reload, use `subagent_list_agents` only when the user asks for runtime verification; do not run delegated tasks just to validate configuration.
|
|
164
197
|
|
|
165
198
|
## Output Contract
|
|
166
199
|
|
|
@@ -168,8 +201,9 @@ Return:
|
|
|
168
201
|
|
|
169
202
|
- Skill applied: `subagents-configuration`.
|
|
170
203
|
- Scope/path configured or reviewed.
|
|
171
|
-
-
|
|
172
|
-
- Tool allowlist, system-prompt isolation, Context7 scope, memory-tool scope, debug logging,
|
|
204
|
+
- Package settings and subagents/config fields added, changed, or preserved.
|
|
205
|
+
- Tool allowlist, system-prompt isolation, Context7 scope, memory-tool scope, debug logging, model/effort decisions, and inheritance behavior.
|
|
206
|
+
- Runtime behavior explained when relevant: task vs background, automatic notifications, `/subagents`, `ctrl+o`, and `subagent_result`.
|
|
173
207
|
- Related configuration skills considered or loaded.
|
|
174
208
|
- Validation executed, or the concrete reason it was not run.
|
|
175
209
|
- Required reload/restart note and open risks.
|