Semantic search across all indexed haystacks. Uses
knowledge graph expansion to find related concepts.
BM25, TitleScorer, and TerraphimGraph relevance functions rank results.
> graph --build <source>
Build or update the knowledge graph from documents.
Aho-Corasick automata extract concepts. LeftmostLongest matching
ensures precise term identification across your corpus.
> haystack --add <type>
Connect a new data source. Supported: ripgrep (local files),
confluence, jira,
discourse, jmap (email),
logseq, mcp.
> chat <message>
AI conversation with role-based context.
Uses local Ollama or OpenRouter. Knowledge graph provides
grounding. Summarisation, Q&A, and document analysis.
> autocomplete <prefix>
Sub-millisecond term completion powered by automata.
Searches across thesaurus entries and document titles.
Available via MCP, HTTP API, and WASM in the browser.
> vm --exec <command>
Execute untrusted code in Firecracker microVMs.
Sub-two-second boot. Knowledge graph validation gates execution.
Full isolation with VM-level sandboxing.
Terraphim AI is developed by Applied Knowledge Systems Ltd
and released as open source. A Cargo workspace of 29 specialised crates,
each with a single responsibility: from automata engines to agent supervisors,
from haystack integrations to knowledge graph orchestration.
Every component is inspectable, replaceable, and yours to extend.
Run it as a desktop app (Tauri + Svelte),
a terminal REPL, an HTTP API server,
or integrate it into your AI workflow via the MCP server.