How nattar-kani/multiagent-system-with-supervisor-day46-10weekschallenge works
This is a Python command-line multi-agent workflow: a user submits a task, the supervisor coordinates research, analysis, drafting, and critique, then returns an approved or bounded-unapproved answer and workflow summary. Shared state carries task data, agent outputs, counters, and the hop log; the workers use a configured local Ollama model. The README documents the review/revision loop and limits. The state module was not excerpted, so its fields and use are included only where supported by the README or shown callers; tests and setup files are omitted.
Main entry points: supervisor.py Supervisor · main.py CLI entry · agents.py Researcher · state.py Shared workflow state
Components 10
User interface
- CLI entry
main.py
Workflow control
- Supervisor
src/supervisor.py - Hop audit log
src/supervisor.py
Specialist agents
- Researcher
src/agents.py - Analyst
src/agents.py - Writer
src/agents.py - Critic
src/agents.py
State and model
- Shared workflow state
src/state.py
Other components
- Task submitter
- Local Ollama model
Connections 15
- Task submitter → CLI entry: enters task
main.py - CLI entry → Shared workflow state: initializes
main.py - CLI entry → Supervisor: runs workflow
main.py - Supervisor → Shared workflow state: updates and reads
src/supervisor.py - Supervisor → Researcher: dispatches
src/supervisor.py - Supervisor → Analyst: dispatches
src/supervisor.py - Supervisor → Writer: dispatches
src/supervisor.py - Supervisor → Critic: dispatches
src/supervisor.py - Supervisor → Hop audit log: records events
src/supervisor.py - Researcher → Local Ollama model: requests completion
src/agents.py - Analyst → Local Ollama model: requests completion
src/agents.py - Writer → Local Ollama model: requests completion
src/agents.py - Critic → Local Ollama model: requests completion
src/agents.py - Supervisor → CLI entry: returns result
main.py - CLI entry → Task submitter: displays answer
main.py