Terraphim
Clients v1.21.22
Terraphim

Blog posts about Terraphim AI development, knowledge graph patterns, AI coding agent hooks, learning systems, and local-first privacy-preserving search technology.

The 30% Problem: What Code Intelligence Research Tells Agent Builders

04 Nov 2026 5 min

A 300-page survey of code intelligence is full of findings that most agent harnesses do not act on. Our rough estimate is that they use about 30% of it. That number is a judgement, not a measurement, but the gap behind it is real, and some of the popular shortcuts built on this research do not survive a reading of the paper.

Read More
Technical Terraphim ai engineering coding-agents code-intelligence research

KG Concepts Before Code, Checklists After

28 Oct 2026 4 min

The Graph Embeddings for Checklists article shows how a knowledge graph acts as an enumerable checklist around an LLM call: terraphim-grep before it, terraphim-agent hook and learning after it. This how-to applies the same loop to terraphim-agent code — the bounded coding loop — on the simplest possible concept: npm install must become bun add.

Every command below was run while writing this article; the outputs are real.

Read More
Technical Terraphim coding-agent knowledge-graph checklists hooks

The cheapest routing decision is the one that costs no tokens

23 Oct 2026 7 min

Cloudflare published an excellent post this week: Cutting our inference bill by 68% by being obsessive about optimization. Their AI code reviewer went from $2.43 to $0.77 per review, and the median review time fell from 4m 09s to 1m 32s. It is a masterclass in squeezing the token economics of a single provider: shared prompt-cache prefixes, fewer LLM calls per session, and relentless model/effort A/B tests.

It is also a study in what optimisation inside the call cannot reach. Every one of their levers operates after the request has already been committed to a provider, a model, and an effort level. Their architecture answered the question of which lane each request deserves by experiment rather than by a decision mechanism. That layer is what terraphim-llm-proxy exists for, and the interesting part is that its answer costs zero tokens.

Read More
Engineering Terraphim LLM proxy cost routing tokens comparison

Graph Embeddings for Checklists

20 Oct 2026 7 min

A checklist is an enumerated set of terms that must be checked. That is the whole problem, and it is the reason vector embeddings are the wrong tool for it: a nearest-neighbour index returns fuzzy neighbours, it cannot enumerate a fixed set and report which members fired. A knowledge graph can. Write the checklist once as synonyms under a normalised term, compile it into an Aho-Corasick automaton, and every check becomes a deterministic match with a named edge you can audit.

This post shows that machinery applied to the two places a checklist earns its keep around an LLM call: terraphim-grep with a role thesaurus before the call, and terraphim-agent hooks plus learning after it. Every command below was run while writing this article; the outputs are real.

Read More
Technical Terraphim graph-embeddings knowledge-graph checklists ai-agents context-engineering
1 2 3 4 5 6