Response Shape
Every endpoint returns a JSON envelope: {ok: true, data: ...} on success, {ok: false, error: "..."} on failure. Long-running POSTs stream progress as Server-Sent Events when called with Accept: text/event-stream.
Health · 1
| Method | Path | Summary |
|---|
| GET | /health | Daemon health check |
Pipeline · 6
| Method | Path | Summary |
|---|
| POST | /api/analyze | Run LLM semantic analysis |
| POST | /api/digest | Run full pipeline (import, enrich, analyze, benchmark) |
| POST | /api/enrich | Extract cross-file import graph (no LLM) |
| POST | /api/import | Import git history and file structure |
| POST | /api/reseed | Reload prompts, queries, and rules |
| POST | /api/update | Sync knowledge graph with latest git state |
Branches · 1
| Method | Path | Summary |
|---|
| POST | /api/delta/ensure | Materialize or refresh the local delta DB for a feature branch |
Querying · 8
| Method | Path | Summary |
|---|
| POST | /api/ask | Ask a question using AI-powered iterative querying |
| GET | /api/queries | List available named queries |
| POST | /api/query | Run a named Datalog query |
| POST | /api/query-as-of | Run a named query against a historical database value |
| POST | /api/query-federated | Run a named query merged across trunk and a local delta DB |
| POST | /api/query-raw | Run an ad-hoc Datalog query (EDN string) |
| GET | /api/schema/{repo} | Get database schema |
| GET | /api/status/{repo} | Get entity counts |
Databases · 2
| Method | Path | Summary |
|---|
| GET | /api/databases | List all databases |
| DELETE | /api/databases/{name} | Delete a database |
Benchmarks · 3
| Method | Path | Summary |
|---|
| POST | /api/benchmark | Run benchmark evaluation |
| GET | /api/benchmark/compare | Compare two benchmark runs |
| GET | /api/benchmark/results | Get benchmark results |
Introspection · 4
| Method | Path | Summary |
|---|
| POST | /api/introspect | Run autonomous self-improvement loop |
| GET | /api/introspect/history | Query introspect history |
| GET | /api/introspect/status | Check introspect session status |
| POST | /api/introspect/stop | Stop a running introspect session |
Admin · 1
| Method | Path | Summary |
|---|
| GET | /api/artifacts/history | Show artifact change history |