five-agent-os

Five-Agent Operating System

Five-Agent-OS multi-agent runtime architecture logo

CI Python 3.11+ License: MIT Ruff

A practical multi-agent operating model for intake, synthesis, decisions, outreach, and quality control.

Built for service businesses, consulting workflows, internal ops, sales enablement, digital marketing, IT/cloud operations, and AI automation pipelines.


Agent Lineup

Agent Primary Job Output
Intake & Routing Agent Capture request, classify work, assign priority, route to the right agent path TaskPacket
Data Synthesis Agent Convert messy inputs into structured facts, insights, risks, and source notes SynthesisBrief
Decision-Making Agent Compare options, score tradeoffs, choose next action, document rationale DecisionRecord
Content & Outreach Agent Produce customer-facing or internal content based on approved context ContentPackage
Compliance & Quality Agent Validate accuracy, policy, privacy, security, completeness, and delivery readiness QualityGateReport

Architecture

graph TD
    A([User / System Request]) --> B[Intake & Routing Agent]
    B -->|content_generation| C[Data Synthesis Agent]
    B -->|decision_support| C
    B -->|research| C
    B -->|data_analysis| C
    B -->|technical_implementation| C
    B -->|compliance_review| G
    C --> D{Route Decision}
    D -->|needs decision| E[Decision-Making Agent]
    D -->|content needed| F[Content & Outreach Agent]
    E --> F
    E --> G[Compliance & Quality Agent]
    F --> G
    G -->|approved| H([Approved Output])
    G -->|revise| C
    G -->|escalate| I([Human Review])

    style A fill:#1a1a2e,color:#fff
    style H fill:#16213e,color:#fff
    style I fill:#e94560,color:#fff

Fast Start

Requirements: Python 3.11+

# 1. Clone
git clone https://github.com/donny-devops/five-agent-os.git
cd five-agent-os

# 2. Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate

# 3. Install dev dependencies
pip install ruff pytest

# 4. Run the workflow with the default sample request
python -m src.multi_agent_os.orchestrator

# 5. Or pass your own request
python -m src.multi_agent_os.orchestrator \
  --request "Write a LinkedIn post summarizing our Q2 product launches"

Sample output (truncated):

{
  "task_packet": {
    "request_id": "REQ-4A2F1C9B8E3D",
    "work_type": ["content_generation"],
    "route": ["data_synthesis_agent", "content_outreach_agent", "compliance_quality_agent"],
    "version": "1.1.0"
  },
  "agent_outputs": [
    { "agent_name": "data_synthesis_agent", "status": "success", "duration_ms": 0.42 },
    { "agent_name": "content_outreach_agent", "status": "success", "duration_ms": 0.31 },
    { "agent_name": "compliance_quality_agent", "status": "success", "duration_ms": 0.28 }
  ]
}

Running Tests

pytest tests/ -v
Test file Coverage
tests/test_models.py TaskPacket, AgentOutput, generate_request_id
tests/test_router.py detect_work_types, detect_risk, build_route, create_task_packet
tests/test_orchestrator.py All 4 agent functions + full run_workflow integration

Project Structure

five-agent-os/
├── .github/workflows/ci.yml       # CI: ruff + pytest on Python 3.11/3.12
├── agents/                         # Agent markdown specs
├── config/agents.yaml              # Agent configuration
├── docs/                           # Handoff protocol + operating playbook
├── examples/                       # Sample task packets
├── schemas/                        # JSON schemas for TaskPacket + AgentOutput
├── src/multi_agent_os/
│   ├── models.py                   # TaskPacket, AgentOutput dataclasses
│   ├── router.py                   # Keyword router with confidence scoring
│   └── orchestrator.py             # Async pipeline runner with retry + logging
├── tests/                          # pytest test suite
├── CHANGELOG.md
├── CONTRIBUTING.md
└── pyproject.toml

Key Features (v1.1.0)


Production Hardening Checklist


Contributing

See CONTRIBUTING.md for the sixth-agent guide, handoff contract format, schema extension rules, and commit style.