How nekkanti-sujith/ares works
ARES accepts tasks, queues them for resilient execution, runs a four-stage agent workflow, and returns results while preserving progress across worker failures. The sampled code shows task publishing, Kafka consumption and retries, graph execution, model routing, checkpoint setup, and metrics. The README documents the unsampled gateway/UI, deployment, chaos, and monitoring capabilities; those links are shown as documented relationships rather than inspected implementation details.
Main entry points: worker.py Kafka worker · router.py Model router · resilient_agent.py Agent workflow · gateway API and web UI
Components 19
Task entry
- API and web UI
services/gateway - Task publisher
services/planner/planner.py
Agent execution
- Kafka worker
services/agents/worker.py - Agent workflow
services/agents/resilient_agent.py - Research step
services/agents/resilient_agent.py - Analyze step
services/agents/resilient_agent.py - Draft step
services/agents/resilient_agent.py - Review step
services/agents/resilient_agent.py
Runtime dependencies
- Kafka task queue
- Model router
services/router/router.py - Claude provider
- OpenAI provider
- Qwen backup
- PostgreSQL checkpoints
Resilience and observability
- Prometheus metrics
services/metrics.py - Prometheus and Grafana
infra/prometheus/prometheus.yml - Kubernetes workers
infra/k8s/worker.yaml - LitmusChaos tests
infra/chaos/pod-delete-engine.yaml
Other components
- Browser user
Connections 21
- Browser user → API and web UI: submits tasks
README.md - API and web UI → Kafka task queue: publishes tasks
README.md - Task publisher → Kafka task queue: publishes tasks
services/planner/planner.py - Kafka task queue → Kafka worker: delivers tasks
services/agents/worker.py - Kafka worker → Agent workflow: runs tasks
services/agents/worker.py - Agent workflow → Research step: dispatches first
services/agents/resilient_agent.py - Research step → Analyze step: passes results
services/agents/resilient_agent.py - Analyze step → Draft step: passes results
services/agents/resilient_agent.py - Draft step → Review step: passes results
services/agents/resilient_agent.py - Agent workflow → Model router: requests completions
services/agents/resilient_agent.py - Model router → Claude provider: calls model
services/router/router.py - Model router → OpenAI provider: falls back
services/router/router.py - Model router → Qwen backup: uses backup
README.md - Kafka worker → PostgreSQL checkpoints: sets up checkpointing
services/agents/worker.py - Agent workflow → PostgreSQL checkpoints: resumes checkpoints
README.md - Kafka worker → Kafka task queue: sends failures to DLQ
services/agents/worker.py - Kafka worker → Prometheus metrics: records task metrics
services/agents/worker.py - Model router → Prometheus metrics: records model calls
services/router/router.py - Prometheus and Grafana → Kafka worker: scrapes metrics
README.md - Kubernetes workers → Kafka worker: replaces crashed pods
README.md - LitmusChaos tests → Kubernetes workers: injects pod failures
README.md