AgentFlow follows a micro-services-inspired modular monorepo structure.
The entry point for all client requests. It handles:
- Authentication & Authorization
- Rate limiting
- Routing to the Orchestrator or direct DB CRUD
A specialized control loop that manages the lifecycle of Agent Tasks.
- State Machine:
PENDING -> READY -> RUNNING -> REVIEW -> DONE - Dependency Resolver: Ensures tasks are executed in sequence based on Artifact Handoffs.
- PostgreSQL 16: Persistence for Tasks, Agents, Projects, and Artifacts.
- Redis 7: Pub/Sub for real-time updates and task queuing.
A high-end "Frosted Glass" dashboard for real-time visualization.
- Zustand for global state.
- TanStack Query for server-state caching.
- User creates a Project via Frontend.
- Architect Agent generates a Task Chain.
- Orchestrator dispatches tasks to specific Agents.
- Agents produce Artifacts.
- Orchestrator verifies Handoff and triggers next task.