@deathbeam/pi-delegate 0.0.26 → 0.0.28

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 CHANGED
@@ -28,11 +28,6 @@ Optional `delegate` settings live in `~/.pi/agent/settings.json` or `.pi/setting
28
28
  }
29
29
  ```
30
30
 
31
- Relative `agentDirs` resolve against the project cwd, later same-name definitions win. Project `models` override global
32
- tiers (`cheap`, `balanced`, `strong`); a tier is a `provider/model` string with an optional `:<thinking>` suffix, as in
33
- pi's `--model`. An unset tier makes the child use the current session model. Thinking resolves from the agent's
34
- `model` suffix first, then the tier suffix, then the session level.
35
-
36
31
  Agents are Markdown files with frontmatter, the body becomes the child's system prompt:
37
32
 
38
33
  ```markdown
@@ -41,17 +36,17 @@ name: scout
41
36
  description: Explore the codebase
42
37
  tools: read, grep
43
38
  model: cheap
39
+ isolated: false
44
40
  ---
45
41
 
46
42
  Explore the codebase and report relevant paths.
47
43
  ```
48
44
 
49
- Omit `tools` to inherit active tools. `model` can also be an explicit `provider/model[:thinking]`. The model sees the agent list from
50
- when the extension loaded, so run `/reload` after adding agents or changing their descriptions.
51
-
52
- The main session is prompted to act as an orchestrator. When it makes 5, 10, 20, … direct exploration calls (`read`,
53
- `grep`, `find`, `ls`, shell, web tools) without delegating, a hidden reminder nudges it to delegate the rest. The count
54
- resets on each prompt and each `delegate` call.
45
+ - `name` is required and must be unique
46
+ - `descripion` is required
47
+ - `tools` is optional, a comma-separated list of tool names. Defaults to the session tools.
48
+ - `model` is optional, a tier name or `provider/model[:thinking]`. Defaults to the session model.
49
+ - `isolated` is optional, defaults to `false`. See [Isolation](#isolation).
55
50
 
56
51
  ## Isolation
57
52
 
@@ -59,8 +54,7 @@ resets on each prompt and each `delegate` call.
59
54
  `.pi/worktrees/<id>`, starting from your current working tree including uncommitted changes. Add `.pi/worktrees/` to
60
55
  `.gitignore`.
61
56
 
62
- `delegate_apply` merges the result into your working tree as uncommitted changes. On conflict the clone is kept so you
63
- can steer the delegate to resolve it. `discard: true` drops the clone instead.
57
+ `delegate_apply` merges the result into your working tree as uncommitted changes.
64
58
 
65
59
  ## Development
66
60
 
package/isolation.ts CHANGED
@@ -117,7 +117,7 @@ export function isolationSummary(iso: IsolationState): string {
117
117
  try {
118
118
  // Staging first pulls uncommitted and untracked changes into the stat.
119
119
  git(["add", "-A"], { cwd: iso.clone });
120
- const stat = git(["diff", "--stat", iso.base], { cwd: iso.clone }).trim();
120
+ const stat = git(["diff", "--stat", iso.base], { cwd: iso.clone }).trimEnd();
121
121
  if (stat) lines.push(`Changes vs the main tree at launch:\n${stat}`);
122
122
  } catch {
123
123
  // The clone may already be applied or gone; the path alone still says where the work lives.
@@ -177,7 +177,7 @@ export function applyClone(iso: IsolationState): ApplyResult {
177
177
  // Without --binary, binary files render as a name-only "Binary files differ" line.
178
178
  return {
179
179
  kind: "applied",
180
- stat: run(["diff", "--stat", SNAPSHOT_BRANCH, "HEAD"]).trim(),
180
+ stat: run(["diff", "--stat", SNAPSHOT_BRANCH, "HEAD"]).trimEnd(),
181
181
  diff: run(["diff", SNAPSHOT_BRANCH, "HEAD"]),
182
182
  };
183
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathbeam/pi-delegate",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "Minimal extension for delegating tasks to subagents.",
5
5
  "type": "module",
6
6
  "license": "MIT",