How sora-developer/autonomous_ai_swarms_using_llama3.2 works
This repository is a local multi-agent workflow that turns a user’s idea into a reviewed Markdown specification. The main path runs through a Planner draft, concurrent Security/Scalability/UX critics, merged feedback, Planner refinement, summarization, and local saving. The orchestrator owns these stages; BaseAgent handles model calls, JSON validation, and context pruning. The README documents the workflow and TUI, while sampled source shows the CLI callback and persistence wiring. Ollama is shown as an external dependency; no cloud model service is part of the documented workflow.
Main entry points: orchestrator.py Swarm orchestrator · main.py CLI entry · base_agent.py Agent runtime · prompts.py Agent prompts
Components 13
Swarm workflow
- Swarm orchestrator
orchestrator.py - Planner
orchestrator.py - Critic swarm
orchestrator.py - Critique merge
orchestrator.py - Summarizer
orchestrator.py
Agent runtime
- Agent runtime
agents/base_agent.py - Agent prompts
prompts.py - Output schemas
schemas.py
User interaction
- CLI entry
main.py - Live console
main.py
Specification output
- Specification storage
storage.py
Other components
- User
- Ollama model
Connections 16
- User → CLI entry: provides idea
README.md - CLI entry → Swarm orchestrator: runs swarm
main.py - Swarm orchestrator → Planner: requests draft
orchestrator.py - Swarm orchestrator → Critic swarm: dispatches concurrently
orchestrator.py - Swarm orchestrator → Critique merge: merges results
orchestrator.py - Swarm orchestrator → Summarizer: requests specification
orchestrator.py - Planner → Agent runtime: executes via
orchestrator.py - Critic swarm → Agent runtime: execute via
orchestrator.py - Summarizer → Agent runtime: executes via
orchestrator.py - Swarm orchestrator → Agent prompts: configures roles
orchestrator.py - Swarm orchestrator → Output schemas: configures validation
orchestrator.py - Agent runtime → Ollama model: sends chat
agents/base_agent.py - Swarm orchestrator → Live console: emits steps
orchestrator.py - CLI entry → Live console: renders panels
main.py - Swarm orchestrator → CLI entry: returns specification
main.py - CLI entry → Specification storage: saves specification
main.py