Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Agent Team PlannerNew to Visual Studio Code? Get it now.
Agent Team Planner

Agent Team Planner

Tr Wei

|
5 installs
| (0) | Free
Long-running, dependency-aware multi-agent development in VS Code Copilot Chat.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Agent Team Planner

Agent Team Planner coordinates dependency-aware Copilot workers in Visual Studio Code. It is an experimental tool: review plans, changes, and commands before relying on their results.

Setup

  1. Install the extension from Visual Studio Marketplace.
  2. Open a trusted folder in VS Code and sign in to GitHub Copilot.
  3. Open Agent Teams: Getting Started for a three-step introduction and a read-only example. The example button prefills Copilot Agent chat (and copies to your clipboard as a fallback); review and send it yourself.

Use Agent Teams: Check Readiness if Activity is blank or still loading. Its local text report works independently of the webview and distinguishes extension activation, current workspace/trust, running VS Code/Copilot provider versions and activity, model catalog discovery, an actual Activity snapshot ACK, automation gate state, active Foreman blocker diagnostics, and single-line Foreman envelope / Foreman telemetry summaries. Catalog availability is not request permission or Chat readiness. Missing ACKs do not diagnose a cache, lock or login problem; preserve existing accounts and uncommitted work. After an account or consent action you chose, recheck in the same still-open window: the same profile name does not establish the same running host/provider context. 4. Follow progress in Explorer > Agent Teams or Agent Teams: Open Activity Panel.

On hosts supporting extension-contributed Skills, the bundled agent-team skill can be discovered when your request calls for team coordination. Use /agent-team to invoke it explicitly when available. Discovery depends on your VS Code/Copilot version, enabled customizations and tools; it is not guaranteed for every request. VS Code 1.105 does not provide this skill contribution: use #planAgentTeam to draft a plan, or #runAgentTeam for a fully specified authorized task list.

The extension does not install instruction files into your project or user profile, change approval settings, or start work merely because it was installed. Open Agent Teams: Open Troubleshooting for model access, approval, failed tasks, recovery and feedback guidance. In Copilot Agent mode, try: “Plan a team to read the parser and inspect its tests in parallel, then summarize the findings. Do not edit files.” The draft tool returns a concise chat preview of proposed work and dependencies, plus the full plan for review in Activity. Nothing starts until the existing approval flow permits it; the parallel limit is not a guarantee that all independent tasks will run together. In an unfamiliar or empty workspace, call agent_teams_status with workspaceOnly: true first and compare its effective workspace and Git HEAD to the intended project before creating a draft. Optional agent_teams_plan intake (intakeMode: "assist") inspects only bounded root filenames and asks up to four questions when a consequential planning choice is unresolved. If the goal already suffices, planning proceeds in the same call. The calling agent may answer from verified workspace evidence or prior conversation using intakeAnswers; no mandatory human form is added. Answers do not authorize writes, approval or publication. In optional intake, executable checks must match the entire separately supplied modifyVerification contract, including required project coverage and the working directory; neither goal wording nor answers authorize commands.

Features

  • Runs bounded parallel workers with task dependencies and declared writable resources.
  • Reclaims only verified owned worktrees of finished teams using file-backed extension storage; dirty worktrees require 30 days of inactivity and a verified archive before removal.
  • Persists task state, bounded history, messages, checkpoints, and results in VS Code workspace storage.
  • Supports status, cancellation, retry, resume, report export, and confirmed history deletion.
  • An explicit team cancellation signalled before task-branch merge dispatch blocks that new merge. Work already dispatched still settles behind the existing stop barrier before retry or takeover; cancellation is not a promise to roll back a completed merge.
  • Public team status includes bounded recorded reviewer metadata and saved workspace identity. Read complete reports with the existing task-output tools. A verdict or own-attempt match does not establish source coverage or fresh command/hash proof. Activity distinguishes a missing optional approved/integrated execution baseline from an observed comparison; this does not add or relax an execution/review gate.
  • Public team status and task Execution separately show current-host ownership and cancellation draining. A persisted cancelled status may precede the stop request finishing; wait for its write barrier before takeover. These observations are ephemeral snapshots, not global process scans or additional resume permission.
  • Conservative workspace snapshots report bounded failure categories and scope. A non-regular inventory entry, unavailable Git observation or budget refusal is not a cache/account diagnosis. Preserve existing artifacts and inspect the declared scope with the operator; never remove or ignore entries to bypass an independent-review or stable-workspace check. Older missing reasons stay unknown.
  • Previews a locked-task change and creates a revision-fenced, separately approved successor draft for unfinished work without replaying completed tasks.
  • Offers optional worktree isolation, model routing, plan approval, and continuous-iteration automation.
  • Initializes a persistent Planner through chat using agent_teams_planner_create, with exact workspace binding and create-if-absent semantics; creation alone starts no team.
  • Provides a Superagent Foreman loop (agent_teams_foreman with start, single/batch answer, status, grant_envelope, revoke_envelope, and settled stop, plus Agent Teams: Start Foreman Goal, Agent Teams: Answer Foreman Question, Agent Teams: Grant Foreman Approval Envelope, and Agent Teams: Revoke Foreman Approval Envelope) that decomposes one plain-language goal into dependency-ordered tickets, supports optional goal-scoped ForemanApprovalEnvelope multi-wave pre-approval (with interactive Activity Pre-Approve Scope… / Extend… / Revoke controls, 1-shot in-envelope plan-defect auto-repair, and strict goal-rotation isolation), automatically queues a guarded 1-shot int-<todoId> Conflict Integrator ticket when a wave retains a conflicted branch before escalating to CONFLICT_REVIEW, blocks false worker completions containing unresolved Git conflict markers, deduplicates worker Handback: follow-ups across parallel tasks and active DAG tickets, and surfaces progressSummary, goalTelemetry, operatorDigest, and the Needs You Now inbox while staying quiet when healthy.
  • Includes operator inspection ergonomics in Activity: instant Planner Work ticket filtering, Expand all / Collapse all group toggles, one-click Copy Report / Copy Error task clipboard actions, one-click Foreman ⎘ Digest clipboard export, privacy-safe Foreman metadata counts in local feedback drafts, and Display name + Planner correlation provenance headers in exported logs.
  • Explicitly archives a completed/stopped Planner before starting an independent goal in the same workspace through agent_teams_planner_start_goal. Exact identity/revision and settled execution are required; history remains locally viewable and creation starts no model/team or automation-setting change.
  • Planner public status and Activity expose queue capacity, current snapshot waiting age and observed capacity evictions by trigger kind. Counts cover only the displayed observation epoch; older/missing history is explicitly unknown. The existing limit remains 64 (active claim plus latest unclaimed triggers); evicted triggers are not replayed, and duplicate admission does not increment a counter or revision.

Scoped source character paging

Workers can explicitly request character pages when a long line exceeds the 32,000 UTF-16-unit result cap. Start with offset: 0, then follow page.nextOffset using page.identity as expectedIdentity and the same line range. Changed file bytes or ranges reject continuation; surrogate pairs are not split. The existing 4 MiB file and 200-line range limits remain. Omitting offset preserves the old result shape. Custom scoped readers must explicitly support paging; it never falls back around their access restrictions. The reader's returned canonical path can be reused for reads under an assigned root alias. This does not authorize writes through that spelling, foreign aliases or links that escape the approved root.

Optional verified completion in 0.5

copilotAgentTeams.experimentalVerifiedHandoff is an explicit, disabled-by-default experimental preference. After reload, eligible modify workers can include their complete original report in one approved verification call. The report finishes the worker only after the required gate passes for the same attempt and unchanged source. Missing/advisory gates do not advertise this field. Worktree isolation, independent review and final approval are unchanged; enabling the preference does not start work or invent a verification command. Configure the preference through VS Code Settings and reload manually; leave it disabled unless the required verification workflow is ready.

Planner contracts in 0.4

The 0.4 line starts with consistent public input validation for Planner editing, chat, proposals and evidence retrieval. Unknown fields and malformed values are rejected before mutation or model lookup. Pass runNow as a boolean, integer maxTasks from 1 to 6, and integer maxChars from 100 to 80000; messages must contain 1-4000 characters. Omit optional budgets to retain their defaults. Proposal resources remain a mapping from literal TODO IDs to arrays of paths. This does not approve execution or enable automation.

Valid plans, persisted state and revision checks are unchanged. Evidence retrieval retains the legacy first entry even when that entry exceeds the requested budget; maxChars is not a strict serialized-output size bound. The extension remains experimental; a minor-version milestone is not a stable-API or compatibility guarantee for malformed requests.

Actionable rejected plans

agent_teams_plan returns bounded INVALID_MODEL_PLAN repair feedback for post-parse validation failures as well as malformed model JSON. Invalid supplied DAGs return INVALID_EXPLICIT_PLAN without invoking a model. Neither response creates a draft, retries, approves or starts execution. Independent-review gates still require a read-only reviewer with resources=[] and no command; describe the named original source/test files it must read with the existing assigned- workspace read tools, and the verifier report it must read through current-team predecessor outputs. Empty writable resources do not prohibit these existing scoped source reads. Predecessor prose summaries are not original file contents; no external path, write scope or executable verification is authorized by this.

Original guidance evidence in experimental 0.10

agent_teams_read_guidance reads original runtime-recorded captain guidance for the current reader and its transitive current-team DAG ancestors. Coordinators provide exact teamId and readerScope (schemaVersion1, taskId, attemptId and auditAttempt); assigned workers use their host-bound generation, never a caller chosen foreign scope. Status exposes tasks[].guidanceReaderScope only when the current generation is known. Omit message selectors for metadata (10 entries/page), or use messageId with 8192-UTF16-unit pages and identity-bound continuation. messageIds selects 1-8 complete records in a 64KiB serialized bundle; metadataOnly omits bodies. Source inspection is bounded to64 current stored team messages, each original body at most32KiB; oversized requests fail without partial success. This adds no history search, remote query or persistent copy.

Original contentSHA256 and returned renderedSHA256 are distinct when existing sensitive-log redaction changes a body (bodyExact=false). readAt means the host saved guidance into worker context, not that a provider saw it or the model understood or acknowledged it. A receipt proves neither instruction truth nor permission, approval, verification or task acceptance. Stale attempts/audits, deleted tasks, unrelated siblings, foreign scope and unscoped legacy messages are unavailable. Readers never consume messages or update their delivery state. Compare messageIdentity, messageId, original contentSHA256 and source taskScope across readers. The separate identity is a current-reader/DAG/ delivery-snapshot cursor for expectedIdentity paging: different verifier and reviewer cursors are normal, not conflicting original guidance. Updating readAt changes the cursor, not the original message identity.

Complete report references in 0.9

agent_teams_planner_chat optionally accepts outputRefs: 1-8 unique { teamId, taskId, expectedIdentity } selectors from agent_teams_read_task_output. Supply the exact current expectedPlannerId and expectedRevision. The host resolves only completed final reports from that Goal's owned or audited teams; invalidated authorization, missing reports and stale identities are rejected before the conversation changes.

Completed-output bundles require 1-8 unique exact task IDs in a dense array. The host captures the indexed selectors once before reading any reports; missing/inherited array entries or duplicate selectors are errors, never successful bundles containing null reports. Caller order is preserved. Source-receipt bundles use the same snapshot validation with their existing 1-16-ID limit, including metadata-only reads; provenance and body visibility remain unchanged.

Known root-only or empty dispatch-resource rejections provide bounded guidance to choose named paths within the existing Goal authorization. Recovery summaries also reach the tool-free Planner as diagnostics, including a prior reason cleared by an operator circuit reset. They do not authorize scope changes or bypass resource validation; unknown errors retain generic guidance rather than raw text.

The complete rendered reports, provenance and operator message together must fit the existing 4000-character limit. Oversized input is rejected, never clipped. Credential-shaped text is redacted, with original and rendered SHA-256 hashes distinguished. Reports are untrusted historical source text, not fresh workspace verification or permission to execute. The Planner remains tool-free: references cannot open arbitrary files, grant authority or change automation. Omit outputRefs to keep ordinary chat behavior.

Controls

Use the Activity Panel or Command Palette to inspect teams, stop work, retry or resume tasks, export reports, and delete completed history. Agent Teams: Stop All Automation (Emergency) pauses running teams and optional automation; Resume Automation reverses that pause. Automation is opt-in and external delivery remains manual.

The Planner pane distinguishes its recorded ownership from the owned team's observed status. A failed, cancelled, interrupted or unavailable owner is not displayed as running; a completed team does not complete the Planner goal. Use Inspect owned team to select the exact team, then open its task details for the error and recorded verification/review evidence before requesting recovery. Inspection does not execute work, retry a cancellation, approve a draft or verify current workspace bytes.

Task failure summaries prioritize a configured gate's failed exit and bounded diagnostic causes over passing-log prefixes. For a recorded child-process permission denial, Safe next step explains how to recover within the approved boundary. A diagnostic mentioning an allow flag is not authorization to enable it, and passing checks do not make a failed gate successful. The recorded error and verification output remain available in Artifacts.

If a retry cannot start, Retry request rejected shows the runtime's reason in task details without resetting the stopped task or clearing its evidence. When another worker still owns the team, wait for that work to settle, or explicitly stop the team and wait for cancellation to finish, then request retry again. A rejection never falls back to changing the task to pending. If the stopped team already has a pending task, explicitly Resume the team instead of retrying that task. Resume is a separate operator action and may restart the team's other unfinished tasks; it is not plan approval. Explorer's inline Resume interrupted team resolves the team actually selected in that tree. Explicit command IDs and the command-palette default remain supported; a real unavailable-model or workspace blocker is still reported rather than bypassed.

Stop, Retry and Revise & Retry act on the worker attempt and audit generation shown in Task Details. Delayed actions or revision dialogs from an older attempt are rejected without stopping its replacement, changing its instructions or retrying it. Refresh Activity and deliberately choose the current action; an older unstamped view cannot guess the intended attempt.

Task Details preserves keyboard focus on its tabs, panels and actions during status refreshes. If an action disappears, focus returns to the selected tab; updates never take focus from outside the details. Recorded worktree flags show Not recorded when unknown, not No. Tasks without a worktree observation show no worktree-cleanliness claim; these details are not a live scan. The worker log shows how many scoped stored events are shown or omitted by the global 200-event view. An empty bounded view does not mean the task had no activity. Use its explicit Export Log action for all currently stored scoped events; these records are not a complete process trace. Lifecycle timing treats task names as data, so words such as “started” in a completed task's name do not reset its recorded interval. Deliberate Export Log includes existing verification stdout/stderr summaries, exit and attempt/audit identity, and stored independent review reports. These are recorded observations, not current-workspace proof or a complete process trace. Review sensitive log content before sharing; raw conversations and private fingerprints are excluded. Log and retained-patch save dialogs suggest a bounded portable filename even when a legal opaque task ID contains :, / or other filename characters. Ordinary names stay unchanged; projected names retain a readable prefix and an original-ID digest. This affects only the suggestion: task identities and export bytes stay exact, cancellation writes nothing, and the selected local destination still controls the export.

Pane dividers support drag or keyboard resizing: focus a divider and use Left/Right arrows (10 pixels), Shift+arrow (50 pixels), or Home (100-pixel minimum). Chosen widths survive closing/reopening details and resizing a closed/collapsed pane's sibling; interrupted drags release on window blur. On narrow panels, expanded panes fit the available width while preserving the desktop sizes to restore when space returns. The collapsed Planner rail stays compact. Planner/model APIs, status reads and layout/state checks do not require the window to stay in the foreground. Real document-focus and focus-visible styling are a separate targeted test suite: rerun it when its production inputs, CSS cascade, keyboard handlers or renderer change. Unchanged coverage requires an explicit dependency-equivalence proof; synthetic events are not native keyboard input or proof of focus.

Planner Chat keeps one Send & Run submission pending until its exact request is acknowledged. Rejection preserves the draft for explicit retry; acceptance clears only that submitted value, not newer text. Message saved is distinct from planning progress: a later planning error does not mean the message was unsent and never triggers automatic resend. Existing approval and pause gates remain in force.

Unsent user-task editor values stay local to their owning plan, task and reviewed version across unrelated task observations and team navigation. Unchanged editors keep their DOM, expanded state and input selection. Pending mutations temporarily disable the form; a rejected stale save retains the input. An empty or whitespace-only subject, description or role is diagnosed before Save becomes pending. The local required-field status keeps the input editable and clears on correction, without relaxing the receiver's strict contract or moving focus. Approve and run stays unavailable while that plan has local task edits. Save every edited task, revert its fields, or use Cancel local edits first. A Save is confirmed only by its matching receipt and authoritative saved state; failed, stale or conflicted input keeps approval blocked. Editing another plan does not block a clean plan. Public approval and execution policies are unchanged. When the plan version advances, explicitly Review current version before Save. If that task's authoritative fields, profile or verification changed, local values remain visible but cannot overwrite them: Cancel local edits loads the current task and discards only that task's local draft. Deleted, locked and terminal tasks cannot resurrect cached edits. An unobserved multi-version gap also requires a reset rather than guessing whether a same-ID task was removed and recreated. If an unsent dependency selection loses its target, the unavailable selection stays visible for recovery; review/save cannot silently drop or resurrect it.

This view retains at most 20 locally edited plans and 30 tasks per plan, without evicting another live dirty draft. The host's current team list retires removed or non-draft owners and their save bookkeeping, so cancelled plans do not consume future editing capacity. Missing team-list metadata does not imply deletion. Resource text is bounded to 32,768 characters. These drafts are not written to webview state, extension storage or disk and end with the view. A completion must match its request and renderer generation; it is not by itself proof that newer input was saved. Team renames update the selector without waiting for execution progress. Approval, read policy and backend version guards remain unchanged.

Pending draft changes remain associated with their own plan when switching teams. Submitting another draft does not unlock an earlier unfinished update; each actual completion releases only its own plan. At most 20 draft updates are tracked in this webview's memory; no outstanding entry is evicted or automatically resent, and backend version/approval guards remain unchanged. Normal Cancel also keeps its draft controls disabled until deletion settles, including when another plan's update is ahead of it in the persistence queue. After a draft reorder settles, focus returns to an enabled control for that same task; a boundary-disabled direction falls back within that task. Public tools which reveal an addressed draft/team select that target, even when another newer team exists. Completed planning and redesign show their returned new draft; ordinary no-target Activity opening keeps its existing default selection behavior. Switching teams discards the old plan's deferred focus instead of applying it to a similarly identified task in the new plan. This controls the webview's DOM focus, not OS window activation.

For keyboard task inspection inside Activity, use Find task by name or ID, choose Task to inspect, then activate Open task details. Search and previous/next pages expose at most 64 choices per page; opening a task focuses its details tab and synchronizes UI selection, without starting execution. This bounds only the navigator choices, not graph or snapshot size. The phase summary labels unscheduled tasks pending; dependencies may still prevent them from running.

Captain replies are durably queued for the selected task's current attempt and audit generation. A reply posted after that attempt's last model turn can remain unread; it is not silently applied to another task or retry that reuses the worker. Receipts expose this scope and do not promise another model turn. Legacy messages without a scope keep their original routing; the extension does not infer missing historical task ownership.

The graph's Simplify checkbox is enabled by default and remembers your choice in the panel. It hides only transitively implied links: when A leads to B and B leads to C, the extra A-to-C link is hidden. The hidden-link count is shown beside the checkbox. Clear it for the complete dependency graph. Task execution, handoffs and original dependencies are unchanged; Task Details > Execution retains the full dependency list. This does not merge tasks or change an approved plan.

Worktree Isolation

An explicit execution-workspace preview reports selectedTargetUnavailable when the reviewed HEAD changed or another team reserves that target. Its empty target list still grants no execution; canCreate describes the source's ability to prepare a different target, not approval of the unavailable one.

Plan review shows whether modification tasks will use the shared workspace or isolated Git worktrees. Isolation is off by default. Use Worktree settings to choose the User or Workspace setting explicitly; this shortcut does not change settings or approve a plan. Workspace settings can make a tracked settings file dirty. Agent approval of modify tasks requires a clean execution workspace. When the primary workspace is dirty, preview agent_teams_approve_plan with previewOnly: true, then explicitly select a clean registered worktree or request creation from the returned commit hash. The Activity Panel offers the same choice when approving an isolated modify plan. No stash or reset is performed; results remain on the selected execution branch, not the dirty primary branch.

When the target is already known, include executionWorkspace: {path, expectedHead} in the preview to inspect only that registered target. Omit the selection to discover other worktrees. A create preview reports source readiness without creating or inventorying targets. An unavailable selected target yields no replacement target; preview never starts execution or grants approval. Actual approval freshly checks the selected workspace and policy, without repeating unrelated target discovery or caching readiness across calls. Preview and approval-readiness calls honor their existing cancellation token between bounded inspection phases. Cancellation does not return a successful target preview or start approval; an already-running Git inspection may finish. This is not a claim that the underlying Git process or model provider stopped.

With isolation enabled, each modify task gets its worktree only when it starts after approval and its dependencies. Drafts and read-only tasks do not create worktrees. Changing the setting does not move already-running tasks. Local feedback includes the current setting and recorded worktree status, but not worktree paths or branch names. For a worker's exact on-disk view, agent_teams_read_workspace_file reads a bounded UTF-8 range from its assigned worktree using the same canonical path rules as structured edits. It returns the path and file SHA-256 for comparison with shell output; unsaved VS Code editor buffers are not part of this view. In a plan, modification descriptions and resources must agree on every authorized written file. Verification/read-only descriptions should name every required original input; they need not copy a large read-only inventory into resource arrays. Optional read-scope declarations retain the same per-task limit and grant no writes. Never drop originals, verification or review to fit that limit. agent_teams_create_file creates missing parent directories for a new file. No separate directory tool is needed; the file still requires declared writable resources, stays within the canonical workspace fence, and cannot overwrite an existing file. Activity shows a retained worktree's exact path and changed/untracked paths when a failed task leaves dirty files behind. Model request, tool-call and stream-time totals in task details accumulate across task attempts and revisions. After an owned stop drains, verified managed worktrees are inspected read-only for bounded retained-file diagnostics, without automatic removal or reclamation. The observation is timestamped, not a live filesystem guarantee. If ownership or inspection cannot be confirmed, dirty/conflict flags display Not confirmed; the original bytes, branch and ownership remain untouched. Retained text patch export preserves standard submodule commit references even when Git display settings request logs, nested diffs or hidden submodules. Uncommitted nested submodule content is rejected, not silently omitted or copied. Text export also refuses incomplete/truncated output, non-UTF-8 bytes and NUL-bearing hunks, including files forced to text by Git attributes. A normal untracked diff exit 1 is not an allowance for child-process failure. Valid UTF-8 Unicode, literal replacement characters, embedded BOM and CRLF bytes are preserved. Existing destinations are not overwritten on failure; copy unsupported content manually. This does not add binary/encoding conversion or raise limits. Export validates two complete captures and their HEADs before publishing bytes. Observed changes between tracked/untracked reads fail rather than produce a mixed recovery patch. The Save dialog and final write remain bound to the captured retained identity, attempt, owner/path and workspace; a retry or draining stop cannot complete an old export. Wait for writes to settle, refresh and explicitly export again. These checks are bounded observations, not a filesystem lock or atomic race guarantee; they do not add storage or read authority. Export destinations must also be physically independent of open workspace and retained-worktree roots. Junction/symlink aliases into those roots, existing hard-linked files and unverifiable identities are refused. Genuine external aliases remain valid. Identity is checked before generation and immediately before writing; no location is rewritten and no atomic race/sandbox guarantee is implied. Choose a fresh independent local file when an existing link is refused. The team's original source and selected execution workspace are protected too, including their recorded common Git metadata directory, even when those approved project folders are outside the currently open window. Framework Git status/snapshots/worktree operations ignore presentation-only order files per subprocess, not by changing configuration. Programmatic source-diff audits avoid diff/textconv presentation helpers and report Git errors rather than empty changes. Ordinary Git and user verification commands remain unchanged. Isolated execution requires the exact Git worktree root; opened subfolders are not silently mapped to parent-repository resources. Registered ancestors cannot hide a dirty child target. Existing contained artifacts remain retained, and unknown/unregistered directories are not ignored or cleaned automatically. Same-folder read-only previews remain local when an isolated Git root is not established: Git dirtiness/HEAD are uninspected, not clean, and no parent-root isolation or automatic creation is offered. Framework-owned Git refuses ambient GIT_DIR, GIT_WORK_TREE, GIT_COMMON_DIR, GIT_INDEX_FILE or GIT_OBJECT_DIRECTORY overrides before invoking Git, including empty overrides. These can redirect repository metadata or bypass independent worktree indexes. Only variable names are reported; no environment values are changed. Ordinary Git/user commands keep their context. Same-folder read-only previews remain local with Git state uninspected and no isolated authority.

Model Selection

In the Models panel, Compare Models (Experimental) opens a picker for two or three Copilot models. With your confirmation it first checks each model once, then sends 24 built-in synthetic questions per model (up to 50 or 75 requests, respectively). Scoring starts only after all connectivity checks pass. Cancel via the progress notification. The local report shows correctness, format failures, and observed latency. It does not send workspace contents, run tools or generated code, or apply routing changes. The small public fixture is a check of constrained behaviors, not a general model ranking.

Use Agent Teams: Configure Chat Models (or click Models in the Activity Panel toolbar) to inspect the chat models supported by your current VS Code Copilot session, apply suite presets (Gemini 4 Suite, Hybrid Best-of-Breed (GPT-6.2 + Gemini 4), GPT-6.2 Sol Suite, GPT-6 Sol Suite, Claude 5.5 Suite, or one shared model across all roles), and preview effective per-role resolution before saving to User or Workspace Settings. Compare Models (Experimental) supports both a quick 1-pass check (24 cases) and a 4-pass P95 latency benchmark (96 cases, >=20 samples per role).

You can also set copilotAgentTeams.defaultModel to a Copilot model family or id and copilotAgentTeams.fallbackModels to an ordered list of backup models. These settings apply to workers, Planner, conversation compaction and real-profile smoke. They do not follow the model selected in the Copilot Chat dropdown. The shipped modelRouting defaults select the Gemini 4 suite (gemini-4-carbon for default workers, gemini-4-hydrogen for role:planner, role:architect and role:reviewer, and gemini-4-argon for role:smoke) when offered by Copilot; unavailable models fall back to the configured backups and then the automatic chain (including Gemini, GPT, and Claude fallbacks). Existing explicit settings and exact-model-pinned teams are not changed by this default.

Explicit modelRouting profile/role rules take priority. A nonempty defaultModel replaces the * route; unavailable routes then try the configured backups followed by the built-in automatic fallback. Empty new settings retain existing routing defaults. Planner and compaction use role:planner; smoke uses role:smoke. Existing reviewer/architect routes can therefore override your new default until you change those role settings.

Backup choices are explicit and may select high-cost models; cost exclusions apply only to implicit fallback. This is selection-time fallback, not provider failover: transient request errors retry the same model. An authorization that explicitly pins a task model still fails closed if that model cannot be resolved. New Continuous Planner dispatches resolve and persist exact catalog model IDs before execution. Retry and reload preserve these bindings even when routing settings change. A missing pinned ID stops that task instead of choosing another model; create a new Planner decision to select a different model. Historical policies and ordinary unpinned teams retain their existing routing behavior.

Team status and wait results include the five latest captain-directed messages, including ones already marked read, with each message limited to 1000 characters plus a truncation marker. Wait revision events remain metadata-only. Status also exposes bounded selected-model metadata and recorded request, queue/stream-time, tool-call and network retry/abort counters. Missing counters are omitted, not assumed to be zero. These counters are diagnostics, not a speedup guarantee. Status event cursors are local to the current extension host. A cursor beyond the current ledger, such as one retained across a host restart, returns truncated: true and the available current events. Use the returned cursor and current state; a history-gap flag is not proof of complete source evidence. Request and concurrent-read counters remain cumulative across task attempts; late metrics from an earlier attempt are ignored, and tool-only turns do not erase the last observed first-text timing. Current verification executions explicitly tag summaries as retained-capture-ends-v1: a best-effort-redacted beginning and end of each captured stream within the existing 2000-character total budget, with ... marking an omitted middle. This keeps early diagnostics and final failures visible together; it is not complete output or proof of a failure cause, and cannot recover bytes already discarded by the runner capture. No raw-output store, new read scope or larger retention limit is added. Untagged legacy observations keep their canonical tail/prefix-marker identity, and the generic failure-summary API keeps its trim, coercion and fractional-limit behavior. Verify-worker counts are self-reported: compare the approved verification command, working directory, and bounded gate output in the task detail before treating a count as a project or solution total. If the output is truncated or a different runner was used independently, the extension cannot infer a comparable aggregate from the worker report alone. Command diagnostics distinguish an observed shell spawn error from an observed shell exit. ran in the worker gate result means the gate was invoked, not that the application or test suite executed. The legacy result code can be nonzero without a physical process exit; inspect the diagnostic's physical exit code, shell-start observation and retained output in status or Activity task detail. A spawn error calls for checking the approved shell/environment and user-approved working directory, not changing application code. A started nonzero shell may indicate a command/environment or application failure: repair only the evidenced cause. Missing legacy process observations remain explicitly unknown, even with empty output. Cancellation/timeouts require ownership to settle before normal retry; teardown failure remains quarantined. Diagnostics do not relax required verification, approvals, resources or retry limits, or certify current bytes. For complete captured dotnet test summaries, the gate records observed passed/failed/skipped counts across the summary lines it can verify. A truncated or unrecognized output reports counts unavailable; this does not change the command's exit status. A verify worker's count-only complaint cannot overturn a passed command, but other independent failures still fail the task. For a required test project that a solution gate may omit, set verification.requiredTestProjects to an approved list of 1–5 workspace-relative .csproj paths or { "kind": "python", "manifest": "tests/pyproject.toml" } or { "kind": "node", "manifest": "tests/package.json" } entries. Each is tested separately after the main command; every project must exist in the task worktree, exit successfully, and report a complete, nonzero test summary. Missing or truncated summaries fail this opt-in gate, even when an older solution command passes. Activity and status show individual project outcomes; a passing project result is reusable only for the same contract, attempt, Git HEAD and workspace snapshot. required: false is not accepted with required projects. Independent reviewer verdicts still apply. Alternatively, explicitly opt in with autoDiscoverTestProjects: true and testProjectRoots: ["tests"] in the same required verification contract. Only newly added, non-ignored manifests beneath those approved roots are discovered relative to the Git HEAD frozen before the team's first worker claim. A gate with no newly added projects still runs its approved command; no repository-defined package scripts are invoked. Gated modify tasks without an auditable edit receive an early reminder and stop before their model-round budget ends. If Git finds dirty task artifacts, the retained worktree path and changed paths remain visible in task status. When a task has exactly one declared file and a direct, selected producer handoff, its first-edit reminder comes at 20% of the round budget instead of 40%. The no-edit stop remains at 80%; if the worker edits but does not run the gate, it receives a separate verification reminder. Verification commands run through the platform's native shell (cmd.exe on Windows), not the VS Code terminal's selected profile. Draft approval and direct dispatch reject recognizable unwrapped PowerShell syntax such as $env:TEMP or if (...) { ... }, $LASTEXITCODE, and 2>$null before a worker starts. For a PowerShell-specific check, place the approved logic in an existing .ps1 script and explicitly call it with powershell.exe -NoProfile -NonInteractive -File in the approved command. The extension never rewrites or silently changes the approved command's shell.

Closing the status-wait service ends pending waits with a cancelled outcome (or missing if the team no longer exists); it does not stop the team's work. Deleted teams no longer occupy its revision-tracking cache. Message projection still scans recipients for the omitted count but keeps only five selected references, independent of the number of matching historical messages.

Repeated verification failures are bounded: three failed required gates with the same command, working directory and Git content in one attempt stop the worker and notify the captain. Changed content, success, timeouts, cancellation or unavailable fingerprints reset that count. No success is cached and no gate is skipped. Review the error and ownership before retrying; reloading also resets this attempt-local guard.

Iteration Resource Review

For a Continuous Iteration mission, the agent can set planResources: true on agent_teams_iteration_create and supply up to 20 inspected workspace-relative candidate file paths in resources (or use configured iteration resources). The planner selects a smaller writable set; it cannot invent or expand paths. This step proposes ownership only and does not run workers or commands.

Use Agent Teams: Review Iteration Resources to inspect the goal and exact proposed files, then approve and start or reject. Closing the dialog does nothing. Approval still requires a trusted Git workspace, clean working tree, enabled worktree isolation and unpaused automation. New file candidates need an existing parent directory; directory prefixes and Git metadata are not accepted in this proposal flow. Paths are checked again before dispatch.

Approved ownership is persisted for the whole mission and reused after reload. To change scope, stop the mission and propose again. Failed or interrupted planning never dispatches work; inspect status and stop it before retrying. The existing explicitly scoped create flow remains available when planResources is omitted. Neither path uses a built-in broad resource fallback.

Limits

AI output can be incomplete or wrong. Workers consume Copilot model quotas and may also be subject to tool, provider, and concurrency limits. They can receive repository content, completed dependency output, selected skills, direct messages, and other context supplied by enabled tools. Available host tools may access local files or remote services and can have side effects; declared resources improve coordination but are not a security sandbox.

Local history is bounded and may be compacted. Deleting a team removes the extension's selected local record after confirmation, but cannot recall content already sent to model providers, remote tools, logs, exports, backups, or source-control history. Remote-host retention and deletion are governed by those services. Do not provide secrets or sensitive personal data.

Privacy

The extension uses the VS Code Language Model API and enabled tools to perform requested work. Relevant prompts and context can leave the local machine for Copilot or remote tool hosts. Inspect tool permissions, workspace trust, automation settings, and proposed commands before use. The extension does not provide complete data-loss prevention.

Workspace history and recovery checkpoints are stored through VS Code's extension storage; in remote workspaces this can be on the remote extension host. Logs, exports, Git artifacts and VS Code backups are separate records. There is no fixed automatic deletion period promised here, and deleting a team does not erase those other copies or provider-held data.

The Feedback action opens an unsaved local JSON draft and does not upload it or invoke an AI. Descriptions are optional; bounded diagnostics are included automatically. Review before saving or sharing: redaction is best effort, and VS Code may retain unsaved content in backups. Provider and tool data-handling policies apply separately; this extension does not promise provider training exclusions or a data-residency region. Unsent form fields and category survive reopening or switching back to the same team/task scope. At most 20 scoped drafts stay in the current webview's memory; Cancel discards only the current one. Reloading clears this cache, and nothing is generated or persisted automatically.

Agents can call agent_teams_feedback to save the same bounded, redacted report under extension storage, optionally associated with a team/task. Use category, actual (what happened), expected, and/or notes. The tool returns a local file URI and uploaded: false; it does not submit to an external service.

Existing Local Builds

This extension's identity is TrWei.agent-team-planner. An older local build named local.copilot-agent-teams is a different extension, not an automatic upgrade source. Its history is not automatically migrated. Test in a separate profile/workspace, preserve the old installation and history, and do not enable both identities in the same profile because their command/tool identifiers overlap.

Review inherited copilotAgentTeams settings before opening a real repository. For an initially paused environment, set copilotAgentTeams.automationPaused to true. Continuous Planner auto-dispatch and continuous-iteration auto-advance are opt-in; configured automation and recovery can continue work after the initiating chat turn. Retained checkpoints, exports and rollback copies are not proof of a supported import/migration workflow.

Source Development Checks

Automatic and explicit retries retain one bounded, redacted originating scope rejection plus the latest genuine failure as historical diagnostic context, with source attempt, audit generation and observation time. Pending/running retries do not expose that history as a current error. An empty terminal diagnostic labels the earlier cause as history rather than claiming the new attempt repeated it; a new real error remains primary. Revising task intent clears obsolete context. Status, Activity and exported worker details share the same historical view. This grants no resources, restores no stale completion evidence and changes no retry budgets or model instructions.

The known vscode_renameSymbol workspace-edit operation is not available in read-only or verification work, including direct calls for an unadvertised tool. Modify-mode availability remains unchanged. Its occurrence file does not identify every changed reference; this classification does not certify unknown host tools as read-only.

The Agent Teams output includes [tools] Selected definitions: diagnostics for each changed worker request catalog. They report the selected definitions' JSON UTF-8 bytes, UTF-16 characters and the largest three tool contributions, without logging raw schemas or descriptions. These are not tokens, provider wire sizes or cost savings. Measurement occurs only when the selected tool references change within a conversation; new conversations have independent observations. This is a selection-time snapshot, not continuous monitoring of external schema mutations. Unsupported, accessor-bearing or oversized schemas report explicit unknown, never a fabricated zero. No tools, prompts, model requests, approval scopes or completion gates are changed by the diagnostic.

From a source checkout, npm run check runs the existing host, webview and controlled-host TypeScript validations with no emission. It overlaps at most three compiler processes, bounded by available CPU parallelism, without dropping projects or compiler options. The controlled-host entry files and original strict settings are captured in tsconfig.controlled-host.json in the source checkout.

Failures remain nonzero and report each component. Already-started compilers are drained; cancellation targets only owned compiler children and prevents queued startup. For custom compiler flags, invoke an individual tsc project instead of passing arguments to the parallel coordinator. npm run check:controlled-host remains available independently.

Source worktree identity matrices copy a freshly committed Git template into independent per-case repositories instead of repeating initialization and commits. Copies share neither object storage nor hardlinks. Every original case and assertion, source timeout and runner concurrency remain unchanged.

npm run test:runtime gives its child host a compact, unique project-owned fixture staging root, independent of inherited TEMP/TMP. This preserves Git's Windows directory budget for nested execution/task worktrees without changing Git settings or weakening ownership checks. Failed-run staging and user-data are retained for diagnosis; successful runs remove only their own.

Opt-in background reads

Policy-constrained worker instructions follow the current offered runtime catalog and the existing task/generation/argument guards rather than an obsolete exclusive list of private operations. An offered tool still requires its existing authorization and read scope. Exact approved host-adapter names do not certify availability, read-only semantics or delegated service permission. This wording adds no reader, ancestor scope, background opt-in or execution authority; standard worker prompts and all runtime checks are unchanged.

Normal model-generated planning receives the supplied workerToolPolicy and exact workerReadTools as declarative constraints, matching the later worker scope. Local-only planning uses available scoped originals and bounded dependency handoffs rather than requiring the full output/source-receipt readers excluded by that policy. These hints do not certify adapter availability, semantics or delegated permission. Standard planning without a policy is unchanged; all mode, resource, approval, invocation and review gates remain independently enforced.

For mixed DAGs that combine observational readOnly research tasks with downstream modify, required verify, or independent readOnly review tasks, supply explicit taskReadTools: [{ taskId, workerReadTools }] (up to 50 task bindings and at most 16 unique MCP read adapters per team; mutually exclusive with workerToolPolicy and workerReadTools). When taskReadTools is present (including []), all unlisted registered host tools are denied before invocation across every task, while each task retains only its existing mode- and resource-scoped runtime-owned capabilities (scoped workspace readers, structured edits within declared modify resources, exact approved verify_changes commands, and transitive DAG-local read_evidence / read_task_output without remote calls). Bound tasks must be mode: "readOnly" without an executable verification contract, and live catalog schema/description digests plus the v1 approval scope seal are verified before admission and before each host invocation. Candidate naming and schema compatibility do not prove that an MCP adapter is read-only, side-effect-free, or authorized for a target data scope; operators must review actual adapter contracts independently.

Before reviewing an exact read adapter's input contract, call agent_teams_status with workerToolsOnly: true and workerToolDiscovery: { names: ["mcp_exact_read_name"], compact: true, includeInputSchemas: true }. This deliberately returns complete currently declared JSON inputSchema snapshots and canonical inputSchemaSHA256 values for the existing manifest binding. Exact names are required; missing/non-JSON contracts are unavailable, and a response exceeding64KiB UTF8 is rejected without partial schema text. Explicit schema responses use compact JSON so that this limit covers the actual returned text, not an estimate inflated later by pretty-printing. Use fewer names or a lower page limit when needed. Omit the option for unchanged ordinary discovery. Compact omits descriptions, not explicitly requested schemas. Metadata and hashes are not semantic read-safety, delegated permission or a stable grant: review actual service contracts and keep normal approval and current-schema checks. This lookup invokes no tool, model, remote service or extra filesystem read and does not copy schemas into automatic diagnostics.

Draft replacement previews check the team's persisted worker read policy as well as the proposed DAG. Under either read-only worker policy, a command, modify or executable-verification proposal fails with the existing policy diagnostic before it can return a valid preview or change the stored draft. Activity edits use the same pre-persistence check. Legal read-only proposals (including the existing omitted-mode default) and standard-policy verification plans remain supported. A valid preview is not workspace readiness, approval or execution authority: normal exact-version, reviewed HEAD, scope, isolation, tool permissions and independent-review checks still apply at approval/run.

Saving a draft task without changing its resource field preserves the recorded array exactly, even when a path contains commas, Unicode, whitespace or line breaks. Unchanged declarations retain the current executable resource projection; existing execution normalization is not redefined. Equivalent legacy comma-list presentation also keeps that array; it does not redefine commas inside a recorded path as separators. For explicit unambiguous edits, enter one exact path per line; spaces are path characters. Empty input clears the array. Ambiguous comma/embedded-line-break edits, empty entries or message-schema limits show a field error without submitting. Use the existing agent_teams_edit_plan exact resources array for those paths; the textarea is not a JSON input. The separate comma-separated Quick Input prompt retains its existing contract. Normal validation and approval still apply to all edits. New editor submissions carry their displayed draft version; stale submissions are refused rather than overwriting newer stored resources. All Activity draft actions, including add, remove, reorder and cancel, carry the version displayed when clicked. A stale action reports a conflict rather than discarding unseen edits. Cancellation rechecks the draft version/status inside the persistence queue, so concurrent edits or approval are preserved; storage failure keeps the draft. Legacy unstamped messages require a matching current-generation acknowledged draft. These checks do not approve or start work.

Local feedback generation acknowledges the exact submission, renderer and team/task scope. If an earlier view still owns generation, a new submission gets a busy rejection and keeps its input; nothing is automatically retried. Late or unscoped receipts cannot mark a new form as generated. Repeated request identities reuse only their recorded outcome, not another report; an explicit retry uses a new identity. At most 20 metadata-only receipts live in the panel controller's memory. No report body/path is cached or uploaded, and existing in-webview draft bounds and reload persistence behavior are unchanged. Existing explicit local document opening, scope, permissions and approval gates are unchanged.

Run/plan inputs may explicitly set backgroundReads: { "localFiles": true }. The direct Run tool preserves that reviewed policy when starting its detached team, just like synchronous launch. Omission remains off; invalid policies and adapters without the existing exact read authorization fail before admission. Omitting the field preserves synchronous execution. This is not a global setting and does not grant additional file, tool or service permissions.

Workers use agent_teams_start_background_read({toolName,input}). At original tool-response publication, an actually settled invocation returns returned with its original result, or failed with an honest failure record. That handle has been consumed once: do not await it again. Only an unsettled invocation returns pending, not successful data, and requires agent_teams_await_background_read({handle}) once. There is no timer, polling, predicted read duration or automatic retry; the ordinary synchronous reader remains available in opted-in runs. Each worker owns at most one outstanding operation; at most one guidance-triggered model request overlaps it, charged to the existing budgets. The same conversation is never requested concurrently. Writes, commands, verification and completion remain blocked until a later request contains the actual delivered result; same-request writes cannot use an inline result that was not in their input. Failed evidence remains incomplete; required verification, independent review and current-source checks still apply.

MCP reads additionally require workerToolPolicy: "approved-read-tools", exact workerReadTools membership and an operator-reviewed capability binding in backgroundReads.adapters: {name,manifestPath,manifestSHA256}. The manifest is a scoped workspace JSON file (complete bounded read, matching byte SHA256):

{
  "schemaVersion": 1,
  "toolName": "mcp_example_read",
  "inputSchemaSHA256": "<canonical JSON SHA256 of the current registered schema>",
  "effects": "operator-reviewed-observational-read-only",
  "cancellation": "drain-until-settled",
  "inputSHA256s": ["<canonical JSON SHA256 of one exact authorized input>"]
}

Canonical JSON recursively sorts object keys, preserves array order and uses ordinary JSON encoding before hashing. Manifests permit at most 16 exact input hashes. Review the adapter's actual effects and service scope before approving; names, descriptions and readOnly hints are not safety proof. Mutating, unknown, unlisted or schema/input-mismatched adapters cannot run in the background. Other tools retain their existing synchronous permissions, but cannot bypass a pending-result barrier. Returned content remains untrusted evidence.

Cancellation and soft timeout retain ownership until real I/O settles, even if the underlying operation cannot be interrupted. No hard-timeout release or automatic retry is synthesized. Activity/status expose pending/draining and delivery metadata, not proof of understanding or acceptance. Reloaded handles are interrupted, never resurrected promises or automatically replayed reads.

License

The original MIT copyright notice is retained in the packaged LICENSE file. Subsequent contributions are copyright (c) 2026 TrWei.

Verification inputs and source access

Approval of an exact verification command does not grant worker file readers access to every path in that command. Planning and worker guidance distinguish incidental command inputs from explicitly required originals and complete supplied evidence. Required originals and current independent review still apply: report inaccessible required sources rather than widening access or substituting a command PASS for source review. Supplied evidence is not fresh verification.

Support

For non-sensitive bug reports and questions, use the extension's Q & A page on Visual Studio Marketplace. Include the extension version, VS Code version, and a redacted description. Do not post credentials, proprietary source, personal data, or other sensitive content.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft