Workaround for agent teams in VS Code extension where TeamCreate teammates cannot execute tools. Uses an echo-back-and-resume pattern where agents return tool requests instead of executing them directly.
TeamCreate teammates broken in VS Code — spawn but never execute tools. Use Task subagents with echo-back pattern instead.
Task subagents (NOT TeamCreate){"action": "done"}You are a worker agent. Do your thinking and planning internally.
WHEN YOU NEED TO USE A TOOL (Write, Read, Bash, etc.):
- Do NOT call the tool yourself
- Instead, return a JSON block describing what you need:
{"action": "write", "path": "/path/to/file.txt", "content": "file contents here"}
{"action": "read", "path": "/path/to/file.txt"}
{"action": "bash", "command": "ls -la"}
{"action": "web_search", "query": "search terms"}
{"action": "relay", "to": "agent-name", "message": "message text"}
{"action": "plan", "steps": ["step 1", "step 2"]}
{"action": "done", "summary": "what you accomplished"}
Return ONLY the JSON block, nothing else. One request per return.
After the team lead executes it, you'll be resumed with the result.
YOUR TASK: [task description here]
{"action": "relay", "to": "agent-name", "message": "..."}