Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Platform detection and adaptive spawning for CLI vs VS Code vs other surfaces
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Squad runs on multiple Copilot surfaces (CLI, VS Code, JetBrains, GitHub.com). The coordinator must detect its platform and adapt spawning behavior accordingly. Different tools are available on different platforms, requiring conditional logic for agent spawning, SQL usage, and response timing.
Before spawning agents, determine the platform by checking available tools:
CLI mode — task tool is available → full spawning control. Use task with agent_type, mode, model, description, prompt parameters. Collect results via read_agent.
VS Code mode — runSubagent or agent tool is available → conditional behavior. Use runSubagent with the task prompt. Drop agent_type, mode, and model parameters. Multiple subagents in one turn run concurrently (equivalent to background mode). Results return automatically — no read_agent needed.
Fallback mode — neither task nor runSubagent/agent available → work inline. Do not apologize or explain the limitation. Execute the task directly.
If both task and runSubagent are available, prefer task (richer parameter surface).
When in VS Code mode, the coordinator changes behavior in these ways:
runSubagent instead of task. The prompt is the only required parameter — pass the full agent prompt (charter, identity, task, hygiene, response order) exactly as you would on CLI.mode: "background" + read_agent polling.read_agent: Skip entirely. Results return automatically when subagents complete.agent_type: Drop it. All VS Code subagents have full tool access by default. Subagents inherit the parent's tools.description: Drop it. The agent name is already in the prompt.| Feature | CLI | VS Code | Degradation |
|---|---|---|---|
| Parallel fan-out | mode: "background" + read_agent | Multiple subagents in one turn | None — equivalent concurrency |
| Model selection | Per-spawn model param (4-layer hierarchy) | Session model only (Phase 1) | Accept session model, log intent |
| Scribe fire-and-forget | Background, never read | Sync, must wait | Batch with last parallel group |
| Launch table UX | Show table → results later | Skip table → results with response | UX only — results are correct |
| SQL tool | Available | Not available | Avoid SQL in cross-platform code paths |
| Response order bug | Critical workaround | Possibly necessary (unverified) | Keep the block — harmless if unnecessary |
The sql tool is CLI-only. It does not exist on VS Code, JetBrains, or GitHub.com. Any coordinator logic or agent workflow that depends on SQL (todo tracking, batch processing, session state) will silently fail on non-CLI surfaces. Cross-platform code paths must not depend on SQL. Use filesystem-based state (.squad/ files) for anything that must work everywhere.
Example 1: CLI parallel spawn
// Coordinator detects task tool available → CLI mode
task({ agent_type: "general-purpose", mode: "background", model: "claude-sonnet-4.5", ... })
task({ agent_type: "general-purpose", mode: "background", model: "claude-haiku-4.5", ... })
// Later: read_agent for both
Example 2: VS Code parallel spawn
// Coordinator detects runSubagent available → VS Code mode
runSubagent({ prompt: "...Fenster charter + task..." })
runSubagent({ prompt: "...Hockney charter + task..." })
runSubagent({ prompt: "...Scribe charter + task..." }) // Last in group
// Results return automatically, no read_agent
Example 3: Fallback mode
// Neither task nor runSubagent available → work inline
// Coordinator executes the task directly without spawning
task when only runSubagent is available아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Shared hard rules enforced across all squad agents
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations with extensive frameworks, testing methodologies, and educational content.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Migrate API controller scope checks to framework-enforced authorization policies while preserving ownership checks.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Review API DTO implementations for contract/domain separation, mapping patterns, and REST compliance
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Register shared claims transformation and hierarchical role policies in the API without breaking existing scope enforcement.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.