An MCP-Native Framework for Reliable Agentic Software Engineering
ARGUS is an open-source research and engineering platform designed to enable autonomous AI agents to investigate, diagnose, modify, and verify software repositories using the Model Context Protocol (MCP), Groq LLMs (llama-3.3-70b-versatile, llama-3.1-8b-instant), and isolated Docker container verification sandboxes.
ARGUS strictly decomposes complex software engineering tasks into specialized, single-responsibility agents orchestrated via typed runtime contracts (AgentEnvelope, RunState, Finding, Evidence):
graph TD
User([Developer / CLI / CI]) --> Orchestrator
Orchestrator -->|INVESTIGATE| InvestigatorAgent[Investigator Agent]
InvestigatorAgent -->|Evidence & Context| Orchestrator
Orchestrator -->|DIAGNOSE| ConfigurationAgent[Configuration Debt Agent]
Orchestrator -->|HISTORY| HistorianAgent[Historian Agent]
Orchestrator -->|SYNTHESIS| AnalyzerAgent[Analyzer Agent]
AnalyzerAgent -->|Hypotheses & Root Cause| Orchestrator
Orchestrator -->|MODIFY| PatchAgent[Patch Agent]
PatchAgent -->|Candidate Unified Diff| Orchestrator
Orchestrator -->|VERIFY| VerifierAgent[Verifier Agent]
VerifierAgent -->|Docker Container Sandbox| Sandbox[Fresh Docker Sandbox]
Sandbox -->|Exit Codes & VerificationResult| VerifierAgent
VerifierAgent -->|Verified / Failed| Orchestrator
Orchestrator -->|On Failure: Loop to Patch| PatchAgent
Orchestrator -->|On Success: Final Report| User
- Investigator Agent (
agents/investigator): Explores repositories, reads files, inspects git trees, and gathers grounded evidence. - Analyzer Agent (
agents/analyzer): Correlates static analysis findings and CI errors to formulate concrete hypotheses (FACTvsINFERENCEvsHYPOTHESIS). - Configuration Agent (
agents/configuration): Analyzes configuration debt across GitHub Actions and Dockerfiles using 10 deterministic rules. - Historian Agent (
agents/historian): Inspects repository git history, blames, and commit intent. - Patch Agent (
agents/patch): Generates candidate unified diff code modifications. - Verifier Agent (
agents/verifier): Executes multi-stage isolated verification (AST, lint, vitest) inside fresh Docker sandboxes. - Orchestrator (
packages/orchestrator): Central state machine managing transitions, budget enforcement, and execution trajectories.
- Node.js:
>= 20.0.0 - pnpm:
>= 9.0.0 - Docker Desktop: (For sandboxed verification)
- Groq API Key: (Free tier at console.groq.com)
Create a .env.local file in the root directory (or export environment variables in your shell):
# In .env.local (git-ignored)
GROQ_API_KEY=gsk_your_groq_api_key_here
GITHUB_TOKEN=github_pat_your_token_here# Install dependencies across all 21 monorepo packages
pnpm install
# Build the entire monorepo
pnpm build
# Run all unit tests
pnpm test
# Run end-to-end multi-agent pipeline test
pnpm test:e2eARGUS provides a developer CLI for local scanning, patch verification, and multi-agent problem resolution:
Scan GitHub Actions workflows and Dockerfiles for 10 deterministic anti-patterns:
pnpm argus config scan .Verify a unified diff inside a fresh, isolated Docker container (node:20-alpine):
pnpm argus verify path/to/fix.diff --sandboxLaunch the autonomous agent orchestration loop on a local or remote repository:
# Analyze local repository
pnpm argus analyze
# Analyze specific target PR with custom objective
pnpm argus analyze --repo owner/repo --pr 42 --objective "Fix failing CI integration tests"argus/
├── apps/
│ ├── cli/ # Developer CLI (argus analyze, verify, config scan)
│ ├── dashboard/ # Web-based observability dashboard
│ └── github-action/ # ARGUS GitHub Action entrypoint
├── packages/
│ ├── agent-core/ # Canonical schemas (Zod), AgentEnvelope, contracts
│ ├── orchestrator/ # Central coordination state machine & loop
│ ├── shared/ # Groq LLM client, prompt builder, MCP adapter
│ ├── sandbox/ # Isolated Docker container lifecycle & exec
│ ├── verifier/ # Multi-stage verification pipeline runner
│ ├── mcp-server/ # MCP server runtime & protocol handlers
│ ├── git/ # Git inspection & repository MCP tools
│ ├── github/ # GitHub API client, PR, and CI tools
│ ├── config-engine/ # Deterministic configuration debt rule engine
│ └── trajectory/ # Structured event logging and audit trails
├── agents/ # Role-specialized agents (Investigator, Analyzer, etc.)
├── rules/ # 10 deterministic debt rules (CD001-CD005, CD101-CD105)
├── benchmarks/ # 10 comparative benchmark dataset cases & Baseline A/B runners
└── tests/ # End-to-end full pipeline integration tests
ARGUS includes built-in comparative evaluation against standard single-agent and toolless LLM baselines (§26-§31):
- Baseline A: Direct LLM reasoning on issue descriptions without tool access.
- Baseline B: Single-agent LLM reasoning with static file context.
- ARGUS MCP: Multi-agent orchestrated pipeline with dynamic MCP tool usage and deterministic verification.
Run benchmark evaluation:
pnpm test --filter @argus/benchmarksPlease consult AGENTS.md and CONTRIBUTING.md for full architecture standards, package ownership, runtime schema validation rules, and git hygiene policies.