Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getpipher/armory-fleet",
"version": "0.9.2",
"version": "0.9.3",
"private": false,
"description": "The armory suite's subagent orchestrator for the pi coding agent \u2014 a cross-harness, superpowers-native fleet where every agent is armory-native from birth.",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions src/tools/subagent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const subagentParams = Type.Object({
auto: Type.Optional(Type.Boolean({ description: "Only relevant with `lifecycle`. Tool-driven is always auto; this flag is forward-compat. Panel-driven uses --auto on /fleet-implement." })),
background: Type.Optional(Type.Boolean({ description: "Fire without awaiting. The run goes to the async/bg pool on an isolated git worktree; this returns { runId, status: 'background' } immediately. Foreground (default) awaits the result." })),
schedule: Type.Optional(Type.String({ description: 'Schedule the run instead of firing now: a cron string ("0 9 * * 1-5"), an interval ("30m"/"2h"), or a one-shot ISO datetime ("2026-07-25T14:00"). Returns { scheduleId, nextFire }. Session-scoped (fires only while pi is open); no catch-up.' })),
maxTurns: Type.Optional(Type.Number({ description: 'Per-run turn budget (default 20). Raise for complex multi-step tasks (e.g. 40) so the subagent doesn\'t hit the budget mid-task; lower for trivial lookups.' })),
});

export type SubagentInput = Static<typeof subagentParams>;
Expand Down Expand Up @@ -87,6 +88,7 @@ export function createSubagentTool(deps: SubagentToolDeps) {
skillsOverride: o.skills, backendOverride: o.backend,
registry: deps.registry, todoSync: deps.todoSync, runRegistry: deps.runRegistry, lock: deps.lock,
backendRegistry: deps.backendRegistry, parentModel: deps.parentModel, parentCwd: deps.parentCwd, runLog: deps.runLog, signal,
maxTurns: params.maxTurns,
}),
};
const res = await runLifecycle(params.task, params.lifecycle, {
Expand Down Expand Up @@ -117,6 +119,7 @@ export function createSubagentTool(deps: SubagentToolDeps) {
parentCwd: deps.parentCwd,
runLog: deps.runLog,
signal,
maxTurns: params.maxTurns,
});
const isError = res.status === "failed" || res.status === "aborted";
return {
Expand Down
Loading