From 4843b95a7c96fdaf3b8cc86873f1f1732da9a9ae Mon Sep 17 00:00:00 2001 From: Lukas May Date: Sat, 31 Jan 2026 19:15:09 +0100 Subject: [PATCH] feat(11-05): add mode parameter to spawnAgent procedure - Update spawnAgentInputSchema to include optional mode field - Pass mode through to agentManager.spawn() for mode-aware spawning --- src/trpc/router.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/trpc/router.ts b/src/trpc/router.ts index fe22009..0047440 100644 --- a/src/trpc/router.ts +++ b/src/trpc/router.ts @@ -103,6 +103,8 @@ export const spawnAgentInputSchema = z.object({ prompt: z.string().min(1), /** Optional working directory (defaults to worktree path) */ cwd: z.string().optional(), + /** Agent operation mode (defaults to 'execute') */ + mode: z.enum(['execute', 'discuss', 'breakdown']).optional(), }); export type SpawnAgentInput = z.infer; @@ -355,6 +357,7 @@ export const appRouter = router({ taskId: input.taskId, prompt: input.prompt, cwd: input.cwd, + mode: input.mode, }); }),