Skip to content
DE | EN
Go back

Introducing: Cohereny — Reviewed Context for Workflows Across Multiple Language Models

Introducing: Cohereny — reviewed context for workflows across multiple language models

As of today, Cohereny is released as open source under the AGPLv3. The source code is on GitHub, and the project site is cohereny.com. This post covers what Cohereny is, why it exists and what of it works today. If you want to go deeper, the repository holds the architecture with every decision and its reasoning.


The problem

A prompt that works well on one model often does worse on another. Not because the other model is weaker, but because it expects a different structure, tone and format. Three effects add up, and you pay for them again with every model switch:

In a workflow with several steps and several models, every step needs its own context to get right — and each one is exposed to all three at once.

How it started

An AI system can run flawlessly, be fully logged and still quietly get worse over weeks, because no control measures what actually comes out. I ran into this in a private project, and again when comparing notes with people I know.

It stuck with me, and I wanted to know whether it could be done better. So I tried — because I could, because I enjoy it, and because I wanted to find out in practice what works and what doesn’t. The question behind it is still the one Cohereny works on: how do you build a workflow out of several language models so that it stays traceable, even when the models underneath it change?

The approach: context doesn’t belong in the code

Cohereny keeps context outside the application code, in a repository every team shares: system prompts, domain knowledge, examples, tool schemas, routing rules. Each piece is a versioned block that only takes effect after review, and it belongs to a scope — an organisation, a team, a project or a single person.

At runtime, Cohereny assembles exactly the context a workflow step needs and hands it to the model the routing rules pick.

From context block to model call: the context repository with its scope tree supplies the blocks, composition assembles them per workflow step, routing picks the model by rules. Adaptation per model is planned.

A few properties that mattered to me:

What is built, and what isn’t yet

Cohereny is currently a pre-release and not meant for production use; the API will still change. What is built is on GitHub, the roadmap on cohereny.com.

Built and covered by tests:

The benchmark is in progress. Calibration anchors and measurement tables are in place; runs against the configured models come next. The aim is publicly reproducible evidence of whether, and by how much, adapting context to the model pays off. It is also the piece that was missing in the experience above: a measurement of what actually comes out.

The adaptation itself is still planned: tailoring prompt and context to each model, derived from the benchmark results. That is the part Cohereny is ultimately about — and I will only call it done once the measurements show it works.

How Cohereny is built

Cohereny is a private project: built in my own time, on my own hardware, with my own accounts and licences, and at my own — and therefore very limited — expense. Development happens on a self-hosted GitLab; the GitHub repository is a snapshot of it.

Even so, it is built the way I think a proper software project should be, even though I work on it alone:

The same goes for my coding buddy Claude Code, which writes much of the code with me. I looked at and checked every change it made, then approved it, or rejected it. How I work with Claude Code is in “Claude Code: Helpful, But Not a Free Pass”.

A few numbers as of today:

MetricToday
Unit tests, no services needed1,382
Integration tests against a real PostgreSQL70
Line coverage outside the two original pilots91%
… in the kernel (identity, roles, permissions, audit)97%

The pipeline fails if coverage drops by more than half a point.

Why open source, and why the AGPLv3

A tool that promises traceability should be traceable itself. That’s why the code is open, along with the architecture and the reasoning behind it.

The AGPLv3 keeps it that way: if you distribute a modified version or run it as a network service, you must make its source code available. For uses where that doesn’t fit, such as a proprietary integration, a commercial license is available on request.

What comes next

The roadmap with the current state is on cohereny.com.

Getting involved

Issues are welcome. I can’t merge pull requests yet, because the GitHub repository is a snapshot — CONTRIBUTING.md explains why. Please report vulnerabilities to [email protected] rather than opening an issue. Questions and everything else go to [email protected].

And if you want to know which architecture questions sit behind Cohereny: I’m writing a book about them — more on that here.


Share this post:

Previous Post
Ich stelle vor: Cohereny – geprüfter Kontext für Workflows mit mehreren Sprachmodellen
Next Post
AI ohne Cloud — was wirklich geht, und was nicht