Skip to main content

A generic, reusable multi-agent software development framework powered by Claude Code subagents

Project description

SOP(Team) Framework

A generic, reusable multi-agent software development framework powered by Claude Code subagents. Inspired by MetaGPT, this framework orchestrates a complete software team: Product Manager → Architect → Engineer → QA → DevOps.

Overview

This framework implements a strict SOP (Standard Operating Procedure) pipeline that transforms any software requirement into complete deliverables:

Requirement Input
       ↓
Product Manager → PRD.md
       ↓
Architect → ARCHITECTURE.md + TASKS.md
       ↓
Engineer → src/ (all code)
       ↓
QA Engineer → tests/ + QA_REPORT.md
       ↓
DevOps → DEPLOYMENT.md + deploy/
       ↓
Final Report → FINAL_REPORT.md

Features

  • Fully Generic: No assumptions about technology, industry, or project type
  • Sequential Pipeline: Strict SOP ensures consistent, high-quality output
  • Multi-Agent: Specialized agents for each phase of development
  • Self-Contained: All outputs written to the workspace directory
  • Retry Logic: Failed steps are automatically retried

Quick Start

Option 1 — Python SDK

pip install -r requirements.txt
python agent.py "Build a REST API for user authentication"

Option 2 — Shell Script

chmod +x run.sh
./run.sh "Create a data pipeline for ETL processing"

Option 3 — Direct Claude CLI

claude
> Use the coordinator agent at .claude/agents/coordinator.md
> Then provide your requirement

Agents

Agent Models

Setup 2 — Alibaba Coding Plan (Default): coordinator → kimi-k2.5 (SWE-Bench 76.8% — agentic orchestration) product-manager → qwen3.5-plus (Deep Thinking + Vision — requirement analysis) architect → MiniMax-M2.5 (SWE-Bench 80.2% — strongest design model) engineer → qwen3-coder-next (SWE-Bench 70.6% — purpose-built coding) qa-engineer → glm-4.7 (SWE-Bench 73.8% — strong bug detection) devops → qwen3-coder-plus (Lightweight — fast config generation)

Setup 1 — Claude Models (Fallback): coordinator → claude-opus-4-5 (SWE-Bench 80.9%) product-manager → claude-sonnet-4-5 (SWE-Bench 77.2%) architect → claude-opus-4-5 (SWE-Bench 80.9%) engineer → claude-sonnet-4-5 (SWE-Bench 77.2%) qa-engineer → claude-haiku-4-5 (Fast + cheap) devops → claude-haiku-4-5 (Fast + cheap)

Switching Setups

To use Alibaba models (Setup 2 — default): export ALIBABA_API_KEY=your-alibaba-coding-plan-key python agent.py "your requirement"

To use Claude models (Setup 1 — fallback): export SOP_SETUP=1 export ANTHROPIC_API_KEY=your-anthropic-key python agent.py "your requirement"

Output Files

All outputs are written to the workspace/ directory:

workspace/
├── docs/
│   ├── PRD.md              # Product Requirements Document
│   ├── ARCHITECTURE.md     # System Architecture
│   ├── TASKS.md            # Implementation Tasks
│   ├── CODE_SUMMARY.md     # Code Documentation
│   └── DEPLOYMENT.md       # Deployment Guide
├── src/                    # All source code
├── tests/                  # All test files
├── reports/
│   ├── QA_REPORT.md        # Test Results
│   ├── FINAL_REPORT.md     # Complete Summary
│   └── SOP_LOG.md          # Execution Log
└── deploy/                 # Deployment configs

The SOP

  1. Requirements Phase — Product Manager analyzes and documents requirements
  2. Architecture Phase — Architect designs the complete system
  3. Implementation Phase — Engineer writes production-quality code
  4. QA Phase — QA Engineer writes tests, runs them, reports results
  5. Deployment Phase — DevOps creates deployment documentation and configs
  6. Final Report — Coordinator summarizes everything

Directory Structure

sop-team-framework/
├── .claude/
│   └── agents/
│       ├── coordinator.md      # Master orchestrator
│       ├── product-manager.md  # PRD writer
│       ├── architect.md        # System designer
│       ├── engineer.md         # Code implementer
│       ├── qa-engineer.md      # Test writer
│       └── devops.md           # Deployment planner
├── workspace/
│   ├── docs/                   # Documentation output
│   ├── src/                    # Source code output
│   ├── tests/                  # Test files output
│   ├── reports/                # Reports output
│   └── deploy/                 # Deployment configs
├── agent.py                    # Python entry point
├── run.sh                      # Shell launcher
├── requirements.txt            # Python dependencies
└── README.md                   # This file

Usage Examples

# Web application
python agent.py "Build a blog platform with user authentication and comments"

# API development
python agent.py "Create a GraphQL API for an e-commerce product catalog"

# Data pipeline
python agent.py "Build an ETL pipeline that processes CSV files into a PostgreSQL database"

# Mobile backend
python agent.py "Design and implement a backend API for a fitness tracking mobile app"

# Automation
python agent.py "Create an automated invoice generation and email system"

Requirements

  • Python 3.8+
  • claude-agent-sdk (auto-installed if missing)
  • python-dotenv

Environment Variables

Set these in a .env file if using the Python SDK:

ALIBABA_API_KEY=your-alibaba-coding-plan-key

For Claude models, set:

SOP_SETUP=1
ANTHROPIC_API_KEY=your-anthropic-key

License

MIT License — Free to use, modify, and distribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sop_team_framework-0.1.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sop_team_framework-0.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file sop_team_framework-0.1.0.tar.gz.

File metadata

  • Download URL: sop_team_framework-0.1.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sop_team_framework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 db32ece91d9ae9c9b6f102e3610064430ab230fca1f028c544e2734b0422cfcc
MD5 80af4b63897e5a7b8fba69ee69d6b2c9
BLAKE2b-256 328e48802eb82a60279725addbe3ac8cbc89069b829c6c7d50329d79c2cee188

See more details on using hashes here.

File details

Details for the file sop_team_framework-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sop_team_framework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26022439e561dd8b06070d0fecb9e0554a8463fb31c9f674b2e7b94aecf5ffc9
MD5 9c876a7833fa7090a3644e701e96f90e
BLAKE2b-256 fd6d4cf998f82d254445440a316649e577e811d84c9c54d63aad7213a888033a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page