Terraphim
Clients v1.21.22
Terraphim

Counts That Are Really Length: What a Proposition Paper Says About Graph Scores

27 Nov 2026 8 min

A new paper tests three kinds of method on two questions about sentences, and finds that the symbolic counters look predictive only because longer sentences have bigger counts. Terraphim's graph score is a count too. Checking our own code against the paper's test turned up a score term that grows with a concept's distinct neighbours, which is a plausible route for length to leak in, and two counting defects, which we have filed.

Read More
Technical

Inspiration Graphs and Counted Graphs: What FIG-MAC Says About Graph Embeddings

27 Nov 2026 8 min

A new paper builds a knowledge graph from 26,917 research papers, learns graph embeddings over it, and reports that graph traversal finds more varied sources than vector search. Terraphim also calls what it does "graph embeddings", but almost every design choice goes the other way. Putting the two side by side shows what each approach buys, what it costs, and the one thing our graph cannot do yet.

Read More
Technical

The Reviewer Saw the Bug and Passed It

27 Nov 2026 5 min

First published on Reference Architecture for AI.

Every pull request we merge is reviewed by a second model before it lands. The rule is simple: the model that wrote the code never signs it off. We use a different model family as the reviewer, at a fixed rubric, and we merge only when it returns no blocking findings and a confidence of 4 or 5 out of 5.

I like that rule. This week a paper made me look harder at what it actually buys.

Read More
Technical

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

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

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

A project lesson your coding agent can find next time

01 Jul 2026 6 min

You explain the project's validation command. The session ends. Next time, the agent needs the same explanation. Keeping the instruction somewhere is useful only if the next run can find the right instruction again.

This walkthrough saves one lesson from a fictional project, opens it in a new process, and retrieves it through a small knowledge graph. You can inspect the exact saved text and repeat the same checks with the downloadable example.

Read More
Technical
1 2 3 4