feat(pi): add subagent config and agents

This commit is contained in:
2026-08-01 14:27:36 -04:00
parent 4e6baed5f0
commit 418d9c986d
7 changed files with 472 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ export class Supervisor {
cwd: this.cwd,
model: request.model,
thinking: request.thinking,
tools: "pi-default",
tools: request.tools ?? "read-only",
startedAt: now,
elapsedMs: 0,
lastEvent: "queued",
@@ -216,7 +216,7 @@ export class Supervisor {
private resolveContext(context: ContextMode | undefined): ContextMode {
if (context === undefined) return "independent";
if (context !== "independent") throw new Error("only independent context is implemented in this tracer bullet");
if (context !== "independent") throw new Error("only independent context is implemented before fork mode lands");
return context;
}