Squad Squad
Back to Blog

Squad Goes Enterprise — Azure DevOps, Area Paths, and Cross-Project Work Items

Blog post #25 — How Squad learned to work with enterprise ADO environments where nothing is “standard.”

The Problem

GitHub repos have issues. Simple. One repo, one issue tracker, one set of labels.

Enterprise Azure DevOps? Not so much. Your code might live in one project, your work items in another. Your org might use “Scenario” instead of “User Story.” Your team’s backlog is scoped by area paths. Your sprints use iteration paths. And there’s no PAT to manage — you authenticate via az login.

Squad needed to understand all of this. Not just “detect ADO” — actually work in enterprise ADO environments where every project has its own rules.

What Shipped

Platform Auto-Detection

Squad reads your git remote URL and figures out where you are:

https://dev.azure.com/myorg/myproject/_git/myrepo     → azure-devops
git@ssh.dev.azure.com:v3/myorg/myproject/myrepo        → azure-devops
https://myorg.visualstudio.com/myproject/_git/myrepo    → azure-devops

No configuration needed. squad init detects ADO and:

Configurable Work Item Types

Not every ADO project uses “User Story.” Some use “Scenario,” “Bug,” or custom types locked down by org policy. Now you can configure it:

{
  "version": 1,
  "platform": "azure-devops",
  "ado": {
    "defaultWorkItemType": "Scenario"
  }
}

Squad uses your configured type for all work item creation — Ralph triage, agent task creation, everything.

Area Paths — Route to the Right Team

In enterprise ADO, area paths determine which team’s backlog a work item appears in. A work item in "MyProject\Frontend" shows up on the Frontend team’s board. One in "MyProject\Platform" goes to Platform.

{
  "ado": {
    "areaPath": "MyProject\\Team Alpha"
  }
}

Now when Squad creates work items, they land on the right team’s board — not lost in the root backlog.

Iteration Paths — Sprint Placement

Same story for sprints. Enterprise teams plan in iterations, and work items need to appear in the right sprint:

{
  "ado": {
    "iterationPath": "MyProject\\Sprint 5"
  }
}

Cross-Project Work Items — The Enterprise Killer Feature

Here’s the one that matters most for large organizations: your git repo and your work items might live in completely different ADO projects — or even different orgs.

Common pattern in enterprise:

Squad now supports this cleanly:

{
  "version": 1,
  "platform": "azure-devops",
  "ado": {
    "org": "planning-org",
    "project": "team-backlog",
    "defaultWorkItemType": "Scenario",
    "areaPath": "team-backlog\\Alpha Squad",
    "iterationPath": "team-backlog\\2026-Q1\\Sprint 5"
  }
}

When ado.org or ado.project are set, Squad uses them for all work item operations (create, query, tag, comment) while continuing to use the git remote’s org/project for repo operations (branches, PRs, commits).

The WIQL queries, az boards commands, and Ralph’s triage loop all respect this split.

The Full Config Reference

All fields are optional. Omit any field to use the default.

FieldDefaultDescription
ado.org(from git remote)ADO org for work items
ado.project(from git remote)ADO project for work items
ado.defaultWorkItemType"User Story"Type for new work items
ado.areaPath(project default)Team backlog routing
ado.iterationPath(project default)Sprint board placement

Security — No PATs Needed

Squad uses az login for authentication. No Personal Access Tokens to rotate, no secrets in config files. Your Azure CLI session handles everything.

For environments where MCP tools are available, Squad also supports the Azure DevOps MCP server for richer API access:

{
  "mcpServers": {
    "azure-devops": {
      "command": "npx",
      "args": ["-y", "@azure/devops-mcp-server"]
    }
  }
}

Security Hardening

The ADO adapter went through a thorough security review:

What We Tested

External integration testing against real ADO environments (WDATP, OS, SquadDemo projects):

TestResult
ADO project connectivity
Repo discovery
Branch creation
Git clone + push
Squad init (platform detection)
PR creation + auto-complete
PR read/list/comment
Commit search
Work item CRUD
WIQL tag queries
Cross-project work items

The only blockers encountered were project-specific restrictions (locked-down work item types in WDATP) — not Squad bugs.

Ralph in ADO

Ralph’s coordinator prompt is now platform-aware. When running against ADO, Ralph uses WIQL queries instead of GitHub issue queries:

SELECT [System.Id] FROM WorkItems 
WHERE [System.Tags] Contains 'squad' 
  AND [System.State] <> 'Closed'
  AND [System.TeamProject] = 'team-backlog'
ORDER BY [System.CreatedDate] DESC

The full triage → assign → branch → PR → merge loop works end-to-end with ADO.

Ralph + ADO: The Governance Fix

The coordinator prompt (squad.agent.md) is what tells Ralph where to look for work. Previously, it only had GitHub commands — gh issue list, gh pr list. Even if the ADO adapter was perfect, Ralph would still scan GitHub because that’s what the governance file told it to do.

We fixed this at every level:

This is the kind of bug that’s invisible in unit tests — the code works, but the governance prompt doesn’t tell the coordinator to use it.

Getting Started

# 1. Install Squad
npm install -g @bradygaster/squad-cli

# 2. Clone your ADO repo
git clone https://dev.azure.com/your-org/your-project/_git/your-repo
cd your-repo

# 3. Make sure az CLI is set up
az login
az extension add --name azure-devops

# 4. Init Squad (auto-detects ADO)
squad init

# 5. Edit .squad/config.json if you need custom work item config
# 6. Start working!

Full documentation: Enterprise Platforms Guide

What’s Next


The enterprise doesn’t bend to your tools. Your tools bend to the enterprise. Squad now does.

PR: #191 — Azure DevOps platform adapter