How Antfarm agent workflows work
mainAntfarm uses deterministic workflows where specialized agents (e.g., planner, developer, verifier) work in a specific sequence.
Core Principles:
- Deterministic workflows: Steps follow a strict, repeatable order.
- Agent Verification: Agents verify each other's work (e.g., a developer does not mark their own homework; a separate verifier checks against acceptance criteria).
- Fresh Context: Each agent runs in a fresh session with clean context to prevent context window bloat and hallucinations. Memory is persisted via git history and progress files.
- Retry and Escalate: Failed steps retry automatically. If retries are exhausted, the system escalates to the user.
Architecture: Antfarm is a TypeScript CLI built on the Ralph loop. It uses YAML for definitions, SQLite for state tracking, and cron for orchestration. It requires no external infrastructure like Redis or Kafka.