flowchart TB
subgraph Clients
FE[Front-ends / apps]
UI[Admin UI<br/>gohead-admin]
EXT[External systems]
end
subgraph GoHead["gohead image"]
API["API<br/><code>gohead start</code>"]
DSP["Dispatcher<br/><code>gohead dispatcher</code>"]
WRK["Worker<br/><code>gohead worker</code>"]
SCH["Scheduler<br/><code>gohead scheduler</code>"]
end
DB[(PostgreSQL / MySQL / SQLite)]
R[(Redis)]
LLM[[LLM provider]]
FE -- REST / GraphQL --> API
UI -- REST --> API
EXT -- webhooks --> API
API --> DB
API -- events: queue 'events' --> R
R --> DSP
DSP -- agent jobs: queue 'agents' --> R
SCH -- cron jobs --> R
R --> WRK
WRK --> DB
WRK --> LLM
gohead standalone runs the four roles in one process and queues jobs in the database
(queue.driver: database), so the only dependency is the database, SQLite by default. The
queue interface (pkg/queue) has two drivers, Redis (asynq) and database; the dispatcher,
worker and scheduler code is the same with both. See
Standalone and Raspberry Pi.