---
title: "Argus — case study"
description: "AI-assisted Azure DevOps monitoring platform. Sprint, build, pull request and release visibility in one dashboard, with server-side encrypted PATs and multi-provider AI failure analysis."
url: "https://nishantxrana.com/projects/argus"
updated: "2026-11-16T00:00:00.000Z"
---

# Argus

AI-assisted Azure DevOps monitoring platform. Sprint, build, pull request and release visibility in one dashboard, with server-side encrypted PATs and multi-provider AI failure analysis.

- **Role:** Solo engineer · design, build, deploy
- **Year:** 2026
- **Status:** Open source
- **Stack:** Node.js, Express, React, MongoDB, Docker, Azure App Service, GitHub Actions, OpenAI · Groq · Gemini
- **Live:** https://stginsightops.azurewebsites.net/
- **Source:** https://github.com/nishantxrana/Argus

## Highlights

- AI diagnoses failed builds, summarizes sprints and explains PRs, with free-model fallback routing across providers
- Azure DevOps PATs encrypted at rest and never sent to the browser; read-only scopes only
- Webhooks with polling as a backup feed in-process agents that push alerts to Google Chat

## Architecture

```mermaid
flowchart LR
  spa["React SPA<br/>JWT + org headers"]
  api["Express API<br/>REST /api"]
  agents["Agents & workflows<br/>monitor · analyze · execute"]
  db["MongoDB<br/>encrypted PATs"]
  ado["Azure DevOps<br/>read-only"]
  ai["AI providers<br/>OpenAI · Groq · Gemini"]
  chat["Google Chat<br/>alerts"]
  spa -->|"HTTPS"| api
  api --> db
  api -->|"PAT"| ado
  agents --> ai
  ado -->|"webhooks"| agents
  agents --> chat
```

## The problem

Teams on Azure DevOps lose hours digging through failed pipelines, guessing at sprint blockers and filtering noisy alerts. The information exists, but it's spread across boards, builds, pull requests and releases, and nothing explains *why* a build failed.

## What I built

Argus pulls work items, builds, pull requests and releases into one dashboard across several Azure DevOps organizations and projects. When you configure an AI provider, it summarizes sprints, explains pull requests and diagnoses build failures.

- **Multi-org by design.** Each organization is added once with its own PAT; the API scopes every request by `X-Organization-ID` and project.
- **AI with a fallback path.** OpenAI, Groq and Google Gemini sit behind one interface, with free-model fallback routing, so analysis keeps working when one provider is rate-limited.
- **Events and polling.** Azure DevOps service hooks deliver events in real time; configurable polling covers anything a webhook misses. Both feed in-process monitor, analyze and execute agents.
- **Reports.** Activity reports export to PDF through Puppeteer and Chromium inside the Docker image.

## Key decisions

**PATs never reach the browser.** The server encrypts each organization's PAT at rest with a 64-hex-character key and masks it in every API response. The SPA only ever holds a session token.

**Read-only by default.** Argus asks for exactly five read scopes (Work Items, Build, Code, Release, Project and Team). It never creates work items, queues builds or posts comments, so a leaked token can't change anything.

**One process in production.** The built SPA is served from the same Express process, so the browser talks to a same-origin `/api` with no CORS surface.

## Delivery

A multi-stage Dockerfile (Node 22 plus Chromium for PDFs) with a health-checked `GET /api/health`. GitHub Actions workflows build and deploy separate staging and production slots to Azure App Service, and Azure DevOps pipelines cover zip deploys and container builds to ACR.

---

Canonical: https://nishantxrana.com/projects/argus · Index for agents: https://nishantxrana.com/llms.txt · Contact: nishantxrana@gmail.com
