Kremis
Alpha — Funktional und getestet. Vor v1.0 kann es noch zu Breaking Changes kommen.
Warum Kremis
Problem | Wie Kremis es löst |
Halluzination | Jedes Ergebnis lässt sich auf ein tatsächlich aufgenommenes Signal zurückführen. Fehlende Daten führen zu einem expliziten "nicht gefunden" – niemals erfunden |
Opazität | Vollständig überprüfbarer Graph-Zustand. Keine versteckten Ebenen, keine Blackbox |
Mangelnde Erdung | Null vorinstalliertes Wissen. Alle Strukturen entstehen aus echten Signalen, nicht aus Annahmen |
Nicht-Determinismus | Gleiche Eingabe, gleiche Ausgabe. Keine Zufälligkeit, keine Fließkomma-Arithmetik im Kern |
Datenverlust | ACID-Transaktionen über die eingebettete Datenbank |
Design-Philosophie — warum diese Einschränkungen existieren.
Related MCP server: agent-fact-system
Funktionen
Deterministische Graph-Engine — Reines Rust, kein Async im Kern, keine Fließkommazahlen. Gleiche Eingabe erzeugt immer die gleiche Ausgabe
CLI + HTTP API + MCP-Bridge — Drei Schnittstellen zur gleichen Engine: Terminal, REST und KI-Assistenten
BLAKE3-Hashing — Kryptographischer Hash des gesamten Graph-Zustands zur Integritätsprüfung zu jedem Zeitpunkt
Kanonischer Export (KREX) — Deterministischer binärer Snapshot für Provenienz, Audit-Trails und Reproduzierbarkeit
Kein eingebautes Wissen — Kremis startet leer. Jeder Knoten stammt aus einem echten Signal
ACID-Persistenz — Standardmäßiges
redb-Backend mit absturzsicheren Transaktionen
Anwendungsfälle
KI-Agenten-Gedächtnis via MCP
Verleihen Sie Claude, Cursor oder jedem MCP-kompatiblen Assistenten eine überprüfbare Gedächtnisebene. Kremis speichert Fakten als Graph-Knoten – der Agent fragt diese ab, und jede Antwort lässt sich auf einen echten Datenpunkt zurückführen. Keine Embeddings, kein probabilistischer Abruf.
LLM-Faktencheck
Nehmen Sie Ihre Daten auf, lassen Sie ein LLM Behauptungen generieren und validieren Sie dann jede Behauptung gegen den Graphen. Kremis kennzeichnet jede Aussage als [FACT] oder [NOT IN GRAPH] – keine Konfidenzwerte, keine Mehrdeutigkeit.
Provenienz und Audit-Trail
Exportieren Sie den vollständigen Graphen als deterministischen binären Snapshot, berechnen Sie dessen BLAKE3-Hash und überprüfen Sie die Integrität zu jedem Zeitpunkt. Jeder Knoten verlinkt auf das Signal, das ihn erzeugt hat. Nützlich für Compliance-Workflows, bei denen Sie nachweisen müssen, welche Daten wann vorhanden waren.
Ehrlichkeit-Demo
Nehmen Sie ein paar Fakten auf, lassen Sie ein LLM Behauptungen generieren, und Kremis validiert jede einzelne:
[FACT] Alice is an engineer. ← Kremis: "engineer"
[FACT] Alice works on the Kremis project. ← Kremis: "Kremis"
[FACT] Alice knows Bob. ← Kremis: "Bob"
[NOT IN GRAPH] Alice holds a PhD from MIT. ← Kremis: None
[NOT IN GRAPH] Alice previously worked at DeepMind. ← Kremis: None
[NOT IN GRAPH] Alice manages a team of 8. ← Kremis: None
Confirmed by graph: 3/6
Not in graph: 3/6Drei Fakten belegt. Drei erfunden. Keine Mehrdeutigkeit.
python examples/demo_honesty.py # mock LLM (no external deps)
python examples/demo_honesty.py --ollama # real LLM via OllamaSchnellstart
Erfordert Rust 1.89+ und Cargo.
git clone https://github.com/TyKolt/kremis.git
cd kremis
cargo build --release
cargo test --workspacecargo run -p kremis -- init # initialize database
cargo run -p kremis -- ingest -f examples/sample_signals.json -t json # ingest sample data
cargo run -p kremis -- server # start HTTP serverIn einem zweiten Terminal:
curl http://localhost:8080/health
curl -X POST http://localhost:8080/query \
-H "Content-Type: application/json" \
-d '{"type":"lookup","entity_id":1}'Hinweis: CLI-Befehle und der HTTP-Server können nicht gleichzeitig ausgeführt werden (
redbhält eine exklusive Sperre). Stoppen Sie den Server, bevor Sie CLI-Befehle verwenden.
Docker
docker build -t kremis .
# MCP server (default) — pipe MCP stdio JSON-RPC; suitable for any MCP client
docker run -i --rm kremis
# HTTP API only — override the entrypoint
docker run -d -p 8080:8080 -v kremis-data:/data \
--entrypoint kremis kremis server -H 0.0.0.0 -D /data/kremis.dbArchitektur
Komponente | Beschreibung |
kremis-core | Deterministische Graph-Engine (reines Rust, kein Async) |
apps/kremis | HTTP-Server + CLI (tokio, axum, clap) |
apps/kremis-mcp | MCP-Server-Bridge für KI-Assistenten (rmcp, stdio) |
Siehe die Architektur-Dokumentation für Interna: Datenfluss, Speicher-Backends, Algorithmen, Exportformate.
Dokumentation
Vollständige Referenz unter kremis.mintlify.app:
Thema | Link |
Einführung | |
Installation | |
Schnellstart | |
Konfiguration | |
CLI-Referenz | |
API-Referenz | |
MCP-Server | |
Philosophie |
Testen
cargo test --workspace
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt --all -- --checkBenchmarks
Automatisch generiert auf CI-Runnern — 10.05.2026.
Operation | Linux | Windows | macOS |
Knoteneinfügung (100K) | 21,30 ms | 22,06 ms | 18,67 ms |
Signalaufnahme (10K Batch) | 6,98 ms | 9,78 ms | 8,12 ms |
Graph-Durchquerung (Tiefe 50, 1K Knoten) | 2,6 µs | 3,1 µs | 2,3 µs |
Stärkster Pfad (1K Knoten) | 7,6 µs | 8,7 µs | 6,1 µs |
Kanonischer Export (1K Knoten) | 68,2 µs | 74,4 µs | 56,6 µs |
Kanonischer Import (10K Knoten) | 3,09 ms | 3,97 ms | 3,38 ms |
Redb-Knoteneinfügung (1K) | 358,19 ms | 14,6 s | 489,02 ms |
Lizenz
Die Marken-Assets in docs/logo/ (Logo, Icon, Favicon) sind urheberrechtlich geschützt und nicht durch die Apache 2.0-Lizenz abgedeckt. Siehe docs/logo/LICENSE.
Mitwirken
Siehe CONTRIBUTING.md für Richtlinien. Die Architektur entwickelt sich noch – eröffnen Sie ein Issue, bevor Sie einen PR einreichen.
Danksagungen
Dieses Projekt wurde mit KI-Unterstützung entwickelt.
Available Tools
10 toolskremis_certifyA
Produce a Verifiable Query Certificate for an entity lookup: a reproducible proof of a fact, or a proof of absence when the entity is not in the graph
Inputs: entity_id (required).
kremis_hashA
Get the canonical BLAKE3 hash of the current graph state
Inputs: no named parameters.
kremis_ingestC
Add an entity or relation to the Kremis knowledge graph
Inputs: value (required), attribute (required), entity_id (required).
kremis_intersectB
Find common connections between multiple nodes
Inputs: nodes (required).
kremis_lookupB
Look up an entity in the graph by its entity ID
Inputs: entity_id (required).
kremis_pathC
Find the strongest weighted path between two nodes
Inputs: end (required), start (required).
kremis_propertiesB
Get all properties (attributes and values) of a specific node
Inputs: node_id (required).
kremis_retractB
Decrement the weight of an edge between two entities (edge invalidation / signal retraction)
Inputs: to_entity (required), from_entity (required).
kremis_statusA
Get current graph statistics (node count, edge count, density)
Inputs: no named parameters.
kremis_traverseC
Traverse the graph from a node to discover connected entities
Inputs: node_id (required), depth, top_k.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: ingest adds data, lookup retrieves entities, properties gets attributes, traverse explores connections, intersect finds common neighbors, path finds weighted paths, retract adjusts edge weights, status shows statistics, hash computes graph hash, and certify produces proofs. No overlapping functionality.
All tools follow the consistent pattern 'kremis_<verb>' with clear action verbs (certify, hash, ingest, intersect, lookup, path, properties, retract, status, traverse), making the naming predictable and easy to understand.
With 10 tools, the server is well-scoped for a knowledge graph management and verification system. Each tool contributes meaningfully without being excessive or insufficient.
The tool set covers essential CRUD-like operations (ingest, lookup, retract), graph traversal and analysis (traverse, intersect, path), statistics, hashing, and certification. Missing explicit update or full delete tools, but these may be intentional given the focus on verifiable proofs and immutable facts.
Maintenance
Related MCP Connectors
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides a stdio MCP bridge for coding agents to query and record engineering knowledge locally, preserving debugging history, failed attempts, and verified solutions.MIT
- AlicenseBqualityCmaintenanceLocal-first knowledge system for reasoning agents, exposing facts, evidence, documents, retrieval, and audit history through a thin stdio MCP server.14MIT
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to keep a local knowledge graph across sessions and checkpoints, restoring project context after tabs or model changes, and to ground every answer with an explicit verdict from the graph. Runs entirely on the user's machine over MCP/stdio or local JSON-RPC with no third-party runtime dependencies.12Apache 2.0
- AlicenseNot gradedqualityBmaintenanceAn MCP stdio bridge that lets compatible agents query a local, provenance-first memory graph, fetch source-versioned text, inspect retrieval, check service health, and report usefulness feedback.1MIT