Starting the Hub
What It Does
| Feature | Description |
|---|---|
| Memory DB | SQLite database with indexed memories, embeddings, graph edges |
| Periodic Indexer | Indexes journal entries (60s), code headers (5min), backfills embeddings |
| Event Bus | MAP events for agent coordination and flow triggers |
| Context API | Serves project context to agents (journals, knowledge, code) |
| Session Tracking | Manages active sessions and branches |
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/health | GET | Health check |
/api/context | POST | Query project context |
/api/memory/search | POST | Search memories |
/api/memory/add | POST | Add a memory |
/api/memory/status | GET | Memory system stats |
/api/memory/index | POST | Trigger reindex + backfill |
/api/memory/link | POST | Add graph edge between memories |
/api/events | GET/POST | Query or publish MAP events |
Configuration
The hub reads from.jfl/config.json:
.jfl/context-hub.port.jfl/context-hub.token