← Back to all entries
2026-03-17

Code Review, Agent Teams & Structured Outputs GA

Code Review, Agent Teams & Structured Outputs GA — visual for 2026-03-17

Claude Code Review — Multi-Agent PR Analysis

Launched on 9 March 2026 and now in research preview for Claude Team and Enterprise customers, Code Review for Claude Code dispatches a team of specialised agents that analyse a pull request in parallel — each agent focused on a different class of issue. When they finish, they post a consolidated comment on the PR with findings and suggested fixes. Anthropic's own engineers using the feature internally reported a 200 % increase in output.

How it works

Cost & timing expectations

Tip Code Review is best suited to substantive PRs with meaningful logic changes. For trivial formatting-only PRs, the cost may outweigh the benefit — consider gating it by diff size in your CI pipeline.

claude-code code-review multi-agent GitHub research-preview

Agent Teams in Claude Code — Parallel Sub-Agents

Shipped alongside Opus 4.6 in February 2026, Agent Teams is an experimental Claude Code feature that lets a single session spin up a coordinated team of Claude Code sub-agents. Rather than one session working sequentially through a large task, the lead session can split work across teammates that each own a piece — with their own independent context windows — and then coordinate results back to the lead.

Architecture pattern

Enabling the feature

Agent Teams are disabled by default. Enable them by adding the flag to your Claude Code settings or environment:

# In settings.json
{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "true"
  }
}

Experimental Agent Teams are a research preview — behaviour may change between releases. Each teammate spawns its own context window, so costs scale with the number of active agents. Monitor token usage carefully.

claude-code agent-teams multi-agent experimental Opus-4.6

Structured Outputs GA & Data Residency Controls

Two significant API production-readiness upgrades landed in early 2026. Structured Outputs — which guarantee Claude returns valid JSON conforming to a developer-supplied schema — are now generally available across all current Claude models with no beta header required. Separately, Data Residency Controls let teams constrain where model inference actually runs on a per-request basis, answering a common compliance requirement.

Structured Outputs — what's new at GA

response = client.messages.create(
  model="claude-sonnet-4-6",
  max_tokens=1024,
  messages=[{"role": "user", "content": "Extract the invoice fields."}],
  tools=[{
    "name": "extract_invoice",
    "input_schema": {          # ← your JSON schema here
      "type": "object",
      "properties": {
        "vendor":  {"type": "string"},
        "amount":  {"type": "number"},
        "due_date":{"type": "string", "format": "date"}
      },
      "required": ["vendor", "amount"]
    }
  }],
  tool_choice={"type": "tool", "name": "extract_invoice"}
)

Data Residency — inference_geo

The new inference_geo API parameter (also settable as a workspace default) controls which region processes a request. Currently supported value: "us" for US-only inference. This is useful for teams with data-sovereignty requirements that prohibit processing outside a specific jurisdiction.

Pricing note US-only inference (inference_geo: "us") is priced at 1.1× the standard rate for models released after 1 February 2026 — a modest premium for geographic certainty.

structured-outputs GA data-residency compliance API