Terraphim
v2026.05.18
Terraphim

Sub-Millisecond Context: How Aho-Corasick Automata Replace Embedding Calls

29 Apr 2026 5 min

Vector embedding calls are the hidden tax on every RAG pipeline. You pay latency, you pay API cost, you get probabilistic results that vary run to run. There is a class of problem where none of that is acceptable. This post shows how Terraphim replaces embedding calls with Aho-Corasick finite-state automata -- deterministic, auditable, and under one millisecond for 1.4 million patterns.

Read More
Terraphim knowledge-graph Aho-Corasick FST context-engineering tutorial

Plug Terraphim Search into Claude Code and opencode (CLI First, MCP When You Need It)

18 Apr 2026 6 min

Your AI coding agent already has a knowledge graph. It is just not yours yet. The model knows GitHub, Stack Overflow, and the public training corpus -- it has no idea that in your project npm should be bun, that RFP is shorthand for acquisition need, or that the email about the Stripe receipt for the Obsidian licence lives in your Fastmail mailbox. This post shows the smallest path to fixing that for both Claude Code and opencode, using Terraphim and the three roles we have published over the last week (Terraphim Engineer, Personal Assistant, System Operator).

Two paths. CLI first.

Read More
Terraphim claude-code opencode mcp knowledge-graph developer-tools integration

Guarding OpenCode with Destructive Command Guard

17 Apr 2026 4 min

AI coding assistants are fast, productive, and occasionally catastrophic. One misplaced rm -rf, one accidental git reset --hard, and hours of uncommitted work vanish.

Jeffrey Emanuel (@Dicklesworthstone) built Destructive Command Guard (dcg): a Rust binary with SIMD-accelerated pattern matching, 49+ security packs, and a fail-open design. It is one of the best tools to come out of the AI agent safety space, and it solved a problem we had been fighting with regex hacks.

This post shows how we integrated dcg with OpenCode using its plugin hook system, so destructive commands are intercepted before they run.

Read More
Terraphim ai opencode developer-tools rust safety coding-agents
1 2