Three model tiers and two prompt rules with no off switch
Distill large CLI outputs into small answers for LLMs and save tokens!
At a glance
- What is it?
- Distill is a Rust-built coding agent harness and terminal interface that claims a 67 percent cost reduction against the reference harness on the same nine runs, and its two most distinctive mechanisms are structural rather than clever: a main, worker and utility model tier split where the main model delegates rather than works, and two rule sets compiled into every system prompt, one of which ignores a stored setting that asks for it to be turned off.
- Who is it for?
- It fits someone who already pays for a coding agent subscription and wants delegation between two model strengths rather than one model doing everything, since the worker tier is what produces the token reduction in the published comparison. Three things to weigh.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 5 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- samuelfaj/distill782 ★ · +108
| Repository | 2026-09-13 | 2026-11-24 |
|---|---|---|
| samuelfaj/distill | 674 | 782 |
108 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Two rule sets are in every prompt, and one ignores being switched off
The always-on behaviour section is the most opinionated part of the documentation, and it is worth reading literally.
Two rule sets are compiled into every system prompt, for the main model and for its subagents, and neither has an off switch.
The first makes the agent write terse prose while keeping code, paths and error strings exact. That carve-out is the interesting clause: the compression applies to prose and not to the strings you will grep for later. There are three intensity levels selected by a slash command, the middle one being the default, and then the sentence that tells you how committed this is: a stored setting of off is ignored.
That is unusual. A preference that the program refuses to honour is a design decision rather than a bug, and it is stated in the same sentence as the setting itself, which is the correct way to make it.
The second rule set is subtler. It instructs the agent to work like a lazy senior developer: before writing code, ask whether the code needs to exist; then reuse what the codebase already has; then the standard library; then an installed dependency; and only then write the minimum that works. What is never cut is named explicitly, which is the part that makes it safe: validation, error handling, security, and anything you asked for.
That ordering is a review checklist turned into a system prompt, and it is adapted from another small project under a permissive licence, credited in the documentation.
Three tiers, and the main model delegates rather than works
Model configuration is a three-tier screen rather than a single picker, and the tiers describe roles rather than qualities.
The main model is required and owns every session. It plans, specifies, delegates and reviews. The worker model is optional and runs every delegated assignment the main model hands it, described as a precise specification rather than a conversation. The utility model handles bounded work: extraction, summarisation and compression.
Each tier has its own slash command and its own screen, so you can change one without touching the others.
The guidance is to pick the strongest model as main and a cheaper one as worker, with the reasoning stated plainly: the main model gives the worker as much of the work as it can do well. That is the whole mechanism behind the cost claim. You are not compressing output; you are moving work to a cheaper model that can do it.
Each tier also takes an effort level, or the word auto. Auto is the default, and it means a routing component picks the effort separately for every call rather than you setting one number per tier. That is a better fit than a fixed level, because a short utility call does not need the same reasoning budget as a planning call.
The syntax for a tier is a model name and an effort separated by a space, so a tier can be set directly from the prompt with the model command, the worker-model command or the utility-model command.
One task, two harnesses, nine runs
The benchmark section is short, which is either a virtue or a warning depending on what you need from it.
Two rows. One harness running two model tiers on automatic effort, finishing in just over five minutes at a cost of nineteen cents. The reference harness running a single model at high effort, finishing in under eight minutes at fifty-nine cents. The reductions quoted are a third off the time and two thirds off the cost.
The claim of equivalence is stated in a single sentence under the table: same quality, and nine passing runs out of nine.
Two things follow. First, the comparison is not model-neutral, since one side uses two tiers with automatic effort and the other uses one model at a fixed high effort. That is the intended configuration difference, and it is the honest way to state a system claim, but it means the numbers describe two setups rather than two implementations of the same setup.
Second, it is one task. A single task with nine repetitions tells you the harness is not slower and is much cheaper on that task. It does not tell you how the harness behaves on a task where the main model's delegation is wrong, which is the failure mode worth worrying about.
The documentation points to a separate file for more, which is the right place for that discussion and the right thing to read before quoting the percentage anywhere.
One dependency is patched to a fork at a pinned revision
The workspace manifest opens with something worth stopping on: a dependency override.
One async client library is replaced by a fork hosted on the project's own git server, pinned to an exact commit. This is done through the standard mechanism for substituting a registry dependency, and the effect is that everyone building this project gets that fork rather than the published release.
There are legitimate reasons. A patch often arrives upstream months after you need it, and pinning a revision means your build does not change when the fork moves.
There are also costs, and they are worth naming. The fork is now a dependency you own, whether you intended to or not. Its licence and maintenance are yours to track, which is why the repository carries a third-party notices file and a notice file at the root.
The manifest also carries a header comment saying it was modified for this project, and a second comment describing the file as auto-generated, preferring that you edit the per-crate manifests instead. So the workspace root is a generated artefact, which is why the override lives there: it is a property of the whole build rather than of one crate.
For an evaluator, that override is the first thing to check when you update, since a stale pinned revision is the kind of thing that breaks silently a year later.
Install is a pipe to a shell on both platforms
Installation is two commands per platform and nothing else, which is fast and which requires you to read the script first.
On macOS and Linux, one command fetches the install script over the network and pipes it to a shell, and the second adds the binary directory to your path. On Windows the same pattern with the platform's own remote-execution cmdlet, followed by a command that prepends the local install directory to the user path permanently.
curl -fsSL https://raw.githubusercontent.com/samuelfaj/distill/main/install.sh | sh
export PATH="$HOME/.local/share/distill/bin:$PATH"
distill --versionUpgrades have their own command, and it is scoped: it works for an installation made with the release installer. That qualifier matters, because a build from source or a package-manager install has a different upgrade path, and the documentation says so rather than implying one command covers every case.
The path manipulation deserves one note. Modifying the user path environment variable from a script is a persistent change to your machine made by a program you piped from the internet. It is a very common pattern in developer tooling and it is also the kind of step that trips managed machines and corporate policy, which will block the installer rather than the agent.
The tool itself works with two named subscription services and with any model speaking the OpenAI-compatible protocol, so the model access is not tied to one vendor.
The working notes are committed beside the source
The repository root has files in it that have no business being in a library, and their presence is informative.
There are goal, plan and production directories, plus a todo list, a separate list file, and a tracking file. Those are the artefacts of someone's working process, committed next to the source.
Also at the root: a source revision marker, a third-party notices file and a separate notice file, both of which matter because of the dependency fork described earlier. A security policy, a contributing guide, a screenshot, and two separate shell installers for the two platforms.
Then the build machinery, which is extensive: a build script, an initialisation script, a linter configuration file, a formatter configuration, a pinned toolchain file, a code generation directory, vendored third-party sources, a binary directory, and a tests directory.
The code generation directory is the one to understand. The workspace members are mostly named after functions rather than domains: a protocol build crate, a terminal control library with its own command line tool, an agent lifecycle crate, chat state, a codebase graph, transcript compaction, a crash handler, directory resolution, fast worktrees, file utilities, filesystem watching, fuzzy file search, git status, active sessions, announcements, authentication, bundling, configuration, a dashboard store, a diagnostics server, environment handling, extra certificate authorities, feedback, foreign sessions, hooks, HTTP, images, login, markdown, an MCP client and memory.
That list reads as a specification of what a coding agent harness has to survive, and the entries that sound like failure modes are the ones that tell you the most.
The crate names are a list of failure modes
Reading the workspace member list as a set of problems rather than as a set of features gives you the architecture of a terminal agent.
There is a crash handler. There is a compiler-tooling configuration file, which tells you they care about the diagnostics an agent reads when its own code fails to build. There is filesystem watching and a separate git status crate, so the harness tracks the working tree directly instead of shelling out to a version control binary on every poll.
There is a terminal control library generated from a schema, with its own command line tool, which is how you drive a pseudo-terminal from Rust without shelling out. There is a diagnostics server, so an agent stuck in a loop can be inspected from outside. There is a fast worktree crate, which means parallel agents get isolated copies of a repository rather than fighting over one.
Then two crates whose names explain the product. Foreign sessions implies the harness reads or adopts conversations started elsewhere, which is how a tool works across the several coding agents people actually use. Compaction of the transcript implies the harness rewrites its own history to stay inside a context window, which is a large part of how a token bill shrinks.
And the token saving itself has a documentation page, which is unusual. Most projects of this kind show you the percentage and leave the mechanism to inspection. This one names the page and lets you check whether the savings come from compression, delegation, or both.
Editorial conclusion
It fits someone who already pays for a coding agent subscription and wants delegation between two model strengths rather than one model doing everything, since the worker tier is what produces the token reduction in the published comparison. Three things to weigh. The benchmark is one task across nine runs and is linked to a file rather than reproduced in full, so read that file before quoting the percentage. Two behaviours are documented as non-negotiable: a stored preference to disable the compression rule is explicitly ignored, so if you need to audit what the agent writes you have to read the source rather than configure it away. And one dependency is patched to a fork at a pinned revision, which is a reasonable way to carry an unreleased fix and also a thing to check when you update.
Frequently asked questions
What is the distill coding agent harness?
It is a lightweight coding agent harness and terminal interface, built in Rust and licensed Apache-2.0, whose stated goal is to get more done with fewer tokens. It works with two named subscription services and with any model that speaks the OpenAI-compatible protocol, and it splits work across a main, a worker and a utility model tier.
How do the three model tiers work in distill?
The main model is required and owns every session, planning, specifying, delegating and reviewing. The worker model is optional and runs delegated assignments as precise specifications, and without it the main model does all the work. The utility model handles bounded tasks such as extraction, summarisation and compression. Each tier takes an effort level or auto, where auto picks the effort per call.
What token savings does distill claim?
Its published comparison runs one task on nine passing runs: the harness with two model tiers finishes in about 308 seconds at a cost of 0.19 US dollars, against 465 seconds and 0.59 dollars for the baseline at a single high effort, quoted as roughly 34 percent less time and 67 percent less cost at the same quality. A separate benchmarks file is linked for the detail.
What are the Caveman and Ponytail rules in distill?
They are two rule sets built into every system prompt, for the main model and its subagents, with no off switch. One makes the agent write terse prose while keeping code, paths and error strings exact, with three intensity levels and the default at the middle. The other makes it check whether new code is needed at all, reuse the codebase, then the standard library, then an installed dependency, before writing the minimum, while never cutting validation, error handling, security or anything requested.
How do I install distill?
On macOS or Linux, pipe the install script to a shell and add the binary directory to your path. On Windows, pipe the PowerShell installer to the remote execution cmdlet and prepend the local install directory to the user path. Both finish with a version check. Upgrades use the update command, and that works for installations made with the release installer.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/samuelfaj-distill)Star history chart for your README
[](https://hysenlabs.com/projects/samuelfaj-distill)Was this useful?