pi-cohort 4.1.0 → 5.0.0

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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.0.0] - 2026-08-06
4
+
5
+ ### Changed
6
+ - **BREAKING:** Programmatic chains now launch directly when `clarify` is omitted. Pass `clarify: true` to keep the foreground preview/edit flow.
7
+
3
8
  ## [4.1.0] - 2026-07-19
4
9
 
5
10
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cohort",
3
- "version": "4.1.0",
3
+ "version": "5.0.0",
4
4
  "description": "Delegate Pi work to focused child agents: code review, scouting, implementation, parallel audits, saved chains, and background jobs.",
5
5
  "author": "Jacek Juraszek",
6
6
  "license": "MIT",
@@ -400,8 +400,8 @@ subagent({
400
400
  })
401
401
  ```
402
402
 
403
- Chains default to clarify mode; set `clarify: false` to skip it. Clarify edits affect only the next run; use management actions, settings, or markdown files for persistent changes.
404
- For programmatic background launches, use `async: true`. Set `clarify: false` when you want to bypass chain clarification explicitly; `clarify: true` keeps the run foreground for the clarify UI.
403
+ Programmatic chains launch directly by default. Set `clarify: true` to preview or edit a sequential chain before launch; chains containing parallel steps skip the UI. Clarify edits affect only the next run; use management actions, settings, or markdown files for persistent changes.
404
+ For programmatic background launches, use `async: true`. Explicit `clarify: true` keeps the run foreground for the clarify UI.
405
405
 
406
406
 
407
407
  ## Worktree Isolation
@@ -289,7 +289,7 @@ export const SubagentParams = Type.Object({
289
289
  Type.String({ description: "Directory to store session logs (default: temp; enables sessions even if share=false)" }),
290
290
  ),
291
291
  // Clarification TUI
292
- clarify: Type.Optional(Type.Boolean({ description: "Show TUI to preview/edit before execution. Explicit clarify: true keeps the run foreground for the clarify UI; omitted clarify can still run in the background when async: true is set." })),
292
+ clarify: Type.Optional(Type.Boolean({ description: "Show TUI to preview/edit before execution. Omitted or false launches directly. Explicit clarify: true keeps the run foreground for the clarify UI when supported; chains containing parallel steps skip the UI." })),
293
293
  control: Type.Optional(ControlOverrides),
294
294
  // Solo agent overrides
295
295
  output: Type.Optional(Type.Unsafe({
@@ -493,7 +493,7 @@ export async function executeChain(params: ChainExecutionParams): Promise<ChainE
493
493
  const chainDir = createChainDir(runId, chainDirBase);
494
494
  const hasParallelSteps = chainSteps.some((step) => isParallelStep(step) || isDynamicParallelStep(step));
495
495
  let templates: ResolvedTemplates = resolveChainTemplates(chainSteps);
496
- const shouldClarify = clarify !== false && ctx.hasUI && !hasParallelSteps;
496
+ const shouldClarify = clarify === true && ctx.hasUI && !hasParallelSteps;
497
497
  let tuiBehaviorOverrides: (BehaviorOverride | undefined)[] | undefined;
498
498
  const availableModels: ModelInfo[] = ctx.modelRegistry.getAvailable().map(toModelInfo);
499
499
  const availableSkills = discoverAvailableSkills(cwd ?? ctx.cwd);