plugin(hook): add task tool execution hooks and command context tracking (#5642)

This commit is contained in:
Spoon
2025-12-17 02:28:09 +01:00
committed by Aiden Cline
parent e4d7bb4869
commit 463bf7ab3a
4 changed files with 45 additions and 22 deletions
+1
View File
@@ -26,6 +26,7 @@ export const TaskTool = Tool.define("task", async () => {
prompt: z.string().describe("The task for the agent to perform"),
subagent_type: z.string().describe("The type of specialized agent to use for this task"),
session_id: z.string().describe("Existing Task session to continue").optional(),
command: z.string().describe("The command that triggered this task").optional(),
}),
async execute(params, ctx) {
const agent = await Agent.get(params.subagent_type)