-
Notifications
You must be signed in to change notification settings - Fork 97
Description
Claude code seems to do things serially. And adding this as an mcp server to Claude Code and then telling it to act as a supervisor and deligate all tasks to this MCP works really well.
It might work even better if we can instruct the "supervisor" to collect tasks that can be worked on in parallel and supply them as a batch to this MCP server. So instead of a single prompt: ...
it's something like an array of prompts, create a promise for each one and join the promises back with their results.
Imagine I have a list 1000 files and I tell Claude code to add the Apache license header at the top of each file (stupid example but you get the idea). Then the main Claude code loop could go and break it up into batches of 10 prompts and supply them to this MCP to run against claude code asynchronously.
So instead of:
claude-code-mcp:claude_code (MCP)(prompt: "Your work folder is /Users/nick/myproject\n\nAdd the Apache license folder to src/a.ts")
It would be something like:
claude-code-mcp:claude_code (MCP)([
prompt: "Your work folder is /Users/nick/myproject\n\nAdd the Apache license to the top of src/a.ts",
prompt: "Your work folder is /Users/nick/myproject\n\nAdd the Apache license to the top of src/b.ts",
prompt: "Your work folder is /Users/nick/myproject\n\nAdd the Apache license to the top of src/c.ts"
])