DevelopProject
Architecture
The processes Holtkeeper runs, the contracts its modules depend on, and the path from a webhook to a merged change.
Processes
Section titled “Processes”One image runs in every setting; a process gets its work from its role (holtkeeper serve --role web|worker|scheduler|all).
flowchart LR forge[GitLab] -- webhooks --> web people[People] -- panel --> web agents[Coding agents] -- MCP --> web web[web: API, panel, webhooks, MCP] --> store[(Store: Postgres or SQLite)] scheduler[scheduler: sweeps and schedules] --> store worker[worker: jobs in a sandbox] --> store worker --> artifacts[(Artifacts: S3 or disk)] worker -- merge requests, comments --> forge
| Role | Does |
|---|---|
web |
API, panel, webhooks, MCP endpoint, probes, metrics |
worker |
Runs jobs: checkouts, analyzers, agent tasks |
scheduler |
Schedules and sweeps, under a leader lease |
all |
Everything in one process (single container) |
More than one process needs Postgres and S3-compatible artifacts. See the deployment reference.
Contracts
Section titled “Contracts”Modules depend on interfaces from contract packages, never on each other’s implementations.
| Contract | Package | Implementations |
|---|---|---|
GitForge |
@holtkeeper/forge | forge-gitlab |
Store |
@holtkeeper/store | store-postgres, store-sqlite |
CommandRunner |
@holtkeeper/exec | local process, exec-container |
Analyzer |
@holtkeeper/analyzer | analyzers and the analysis packages |
| Auth | @holtkeeper/auth | auth-users (passkeys), auth-password, auth-header, auth-none |
| Vulnerabilities | @holtkeeper/vuln | vuln-osv, vuln-js, vuln-go |
GitForge covers what analyzers need — repositories, branches, merge requests, line comments with suggestions, pipelines, tags and normalized webhook events — and hides the differences between providers inside adapters.
From a webhook to a merge request
Section titled “From a webhook to a merge request”sequenceDiagram participant F as GitLab participant W as web participant Q as Job queue participant K as worker participant P as Person F->>W: merge request opened W->>Q: queue review job Q->>K: claim job K->>F: read diff, post findings with suggestions K->>Q: record run Note over K,P: an upgrade or fix runs as a task K->>F: open merge request per repository W->>P: Inbox: approve the wave P->>W: approve W->>F: merge
Configuration split
Section titled “Configuration split”holtkeeper.config.ts holds infrastructure only: store, artifacts, sign-in, vault key, worker execution and limits. Forges, teams, schedules, policies, analyzer options and budgets live in the database and are edited in the panel. See Configuration.