How zizka-ai-sl/zizkadb works
ZizkaDB is a Postgres-backed operational database and auditability platform for AI agents. An agent records events through an SDK or integration; the API authenticates and persists a causal, checksummed history. Users then inspect sessions, trace causes, replay past state, search memory, and review drift or compliance data in the dashboard or MCP. The map also includes embedding-based retrieval and the optional suggestion-analysis capability. Edges reflect README statements and shown source references; several API subsystems are represented by their exact directories because their implementation was not sampled.
Main entry points: main.py HTTP API · client.py Python SDK · event_write.py Event write path · sessions.py Sessions and causes
Components 21
Event Ingestion
- HTTP API
core/main.py - Authentication
core/api/deps.py - Event endpoints
core/api/events.py - Plans and billing
core/api/billing_checkout.py
History and Memory
- Event write path
core/services/event_write.py - Postgres history
core/db/connection.py - Checksums and chain
core/services/audit_chain.py - Memory and search
core/api/memory.py - Embedding service
core/services/embeddings.py - Embedding index worker
core/workers/embed_worker.py - Suggestions analysis
core/services/suggestions/engine.py - Sessions and causes
core/api/sessions.py - Agent analytics
core/api/agents.py
User Interfaces
- Web dashboard
dashboard/app/dashboard - Community portal
dashboard/app/community
Client Integrations
- Python SDK
sdk/python/zizkadb/client.py - SDK instrumentation
sdk/python/zizkadb/instrumentation.py - TypeScript SDK
sdk/typescript/src/instrument.ts - Framework adapters
integrations - MCP server
mcp/zizkadb_mcp/server.py
Other components
- AI agent
Connections 24
- AI agent → SDK instrumentation: emits events
README.md - SDK instrumentation → Python SDK: records events
- AI agent → Python SDK: logs events
README.md - Python SDK → HTTP API: sends requests
README.md - TypeScript SDK → HTTP API: sends requests
- Framework adapters → Python SDK: uses SDK
- MCP server → HTTP API: accesses database
- HTTP API → Authentication: routes requests
core/main.py - Authentication → Event endpoints: authorizes access
core/api/deps.py - Event endpoints → Event write path: writes events
core/api/events.py - Event write path → Postgres history: stores events
core/services/event_write.py - Event write path → Checksums and chain: builds chain
core/services/event_write.py - HTTP API → Memory and search: routes requests
core/main.py - HTTP API → Sessions and causes: routes requests
core/main.py - Sessions and causes → Postgres history: reads history
core/api/sessions.py - Sessions and causes → Checksums and chain: verifies causes
- Embedding index worker → Postgres history: reads pending events
core/workers/embed_worker.py - Embedding index worker → Embedding service: generates vectors
core/workers/embed_worker.py - Memory and search → Embedding service: retrieves vectors
- HTTP API → Agent analytics: routes requests
core/main.py - Agent analytics → Suggestions analysis: analyzes evidence
core/services/suggestions/engine.py - Web dashboard → HTTP API: queries data
- Community portal → HTTP API: uses services
- HTTP API → Plans and billing: routes requests
core/main.py