Your knowledge,
undisturbed.

Terraphim AI is a privacy-first assistant that searches your knowledge repositories locally, using semantic graphs and automata. Nothing leaves your machine.

View Source See It Run
Philosophy

Privacy is not a toggle.
It is an architecture.

Every search query, every document, every relationship in your knowledge graph exists solely on your hardware. Terraphim AI is built in Rust with no cloud dependencies. There are no analytics endpoints, no telemetry hooks, no API calls to external servers.

This is not a limitation. It is the point. When your data never leaves your machine, trust becomes a property of the system rather than a promise from a vendor.

Capabilities

Knowledge Graphs

Structured relationships between concepts, built from your documents. Role-specific graphs adapt search to your domain. The rolegraph system maintains nodes, edges, and document references for personalised ranking that evolves with your work.

Semantic Search

Three relevance functions work in concert. TitleScorer for direct matches, BM25 for statistical relevance, TerraphimGraph for semantic expansion through thesaurus-driven concept networks. Find what you mean, across every source you own.

Aho-Corasick Automata

Blazing-fast text matching and thesaurus expansion using LeftmostLongest automata. Sub-millisecond autocomplete across thousands of concepts. The engine that connects typed queries to the full breadth of your knowledge graph.

Multi-Haystack Integration

Search across local files via ripgrep, Confluence, Jira, Discourse, email through JMAP, Logseq notes, and more. A single query traverses every haystack. Results ranked by a unified relevance score.

Rust-Native Performance

Async Tokio runtime. Memory-safe concurrency. 29 specialised crates, each with a single responsibility. Compiled to native speed on every platform. Desktop via Tauri. Terminal via REPL. Browser via WASM.

Firecracker Sandboxing

Untrusted code runs in Firecracker microVMs with sub-two-second boot. Knowledge graph validation gates execution. Secure web request sandboxing. The safety of a VM with the speed of a container.

Terminal

A quiet demonstration.

$ terraphim-agent
Terraphim AI v1.5.2
Role: Terraphim Engineer
Haystacks: ripgrep, confluence, jira, logseq
Graph: 12,847 nodes -- 38,291 edges
terraphim> /search "semantic search architecture"
23 results across 3 haystacks (47ms)
1. Knowledge Graph Architecture
confluence -- score 0.94 -- 5 matched concepts
2. Search Pipeline Orchestration
ripgrep -- score 0.87 -- 3 matched concepts
3. Automata-Based Term Expansion
logseq -- score 0.81 -- 4 matched concepts
terraphim> /chat "summarise the search pipeline"
The search pipeline in Terraphim AI orchestrates
queries across multiple haystacks. Each haystack
returns candidates, which are re-ranked by the
active relevance function (BM25, TitleScorer, or
TerraphimGraph). The knowledge graph expands query
terms through thesaurus-driven automata before
scoring.
Source

Open source, openly built.

Developed by Applied Knowledge Systems Ltd and released under a permissive licence. Every component is inspectable, replaceable, and yours to extend.

Browse the Repository