Reasonix: a terminal coding assistant built to stay cheap over long sessions
3 months ago
Your AI coding assistant gets pricier the longer you leave it running. Reasonix is a coding assistant for your terminal, built so a long, leave-it-open session stays cheap instead. The whole design comes down to one habit: never changing the opening of what it sends the model.
Ask about this presentation
Chapters
0:00Reasonix: a terminal coding assistant built to stay cheap
0:15A coding assistant that lives in your terminal
0:34An AI model forgets everything between messages
0:56The model re-reads the opening for about a tenth of the price
1:34Reasonix keeps that opening perfectly still
2:08It measures its own cache hits and cost per task
2:28Three ways to run it, and not tied to one model
2:46A single program for Mac, Linux, and Windows
2:59Keep the opening still, and a long session stays cheap
Show transcriptHide transcript
Your AI coding assistant gets pricier the longer you leave it running. Reasonix is a coding assistant for your terminal, built so a long, leave-it-open session stays cheap instead. The whole design comes down to one habit: never changing the opening of what it sends the model.
Here’s Reasonix in action. It’s an AI coding assistant: you chat with it, and it writes and fixes real code for you. You run it right in the terminal, the plain text window developers work in. There’s a desktop app and a code-editor plug-in too, and underneath they’re all one engine on your own machine. All of it built around one idea about cost.
An AI model has no memory between messages. Every time you hit send, the model has forgotten the whole conversation so far. So to keep the model current, the assistant quietly re-sends the entire chat every turn: everything you’ve typed, and everything the model has said back. Early on, that’s cheap. But an hour in, each new message re-pays for that same growing pile of history.
Here’s the catch, and the clever part. Reasonix is tuned for a model made by a company called DeepSeek. DeepSeek keeps a copy of the opening of each request, and re-reading from that copy costs about a tenth of reading it fresh. That saved copy has a name, the cache, and DeepSeek’s own pricing makes it roughly ten times cheaper. There’s one condition: the opening has to match the last one exactly, character for character. And that’s where most coding tools throw the discount away. They rewrite their own opening every turn: a fresh timestamp, the tool list reshuffled, the machine scanned again. The model sees a changed opening, misses the cache, and pays full price.
Reasonix holds that opening completely still, and it does it three ways. First, at startup it writes a short note about your computer, which tools you have, which shell, and pins that note at the very front. It saves the note and reuses it, so a restart can’t quietly rewrite it. Second, the list of actions it’s allowed to take stays in one fixed order, so that never shifts either. Third, when the chat gets long, it trims from the end, never the front. It tucks the older output behind a placeholder and reopens it only if it’s needed. All three keep the opening identical, so the discount keeps paying, message after message.
Reasonix measures the payoff, and it shows you. It runs a set of test tasks and tracks how often the cache hits and what each task costs. The desktop app shows that hit rate live, as you work. Here’s one session: it reused that saved opening eighty-seven percent of the time, so most of the conversation cost the cheap tenth instead of full price. So the number is right there on your screen, adding up as you go.
That desktop app is only one way in. There’s the terminal, the desktop app, and a plug-in that lives inside your code editor, all driven by the one program on your machine. And Reasonix works with other AI models too, not only DeepSeek. The savings just need a model that offers this same discount for re-reading the opening.
Getting it running is quick: one command, and you’re in. It’s one self-contained program, with nothing else to set up. It’s free and open under the MIT license, so you can use it, change it, and build on it. The latest version shipped today, and new ones are landing fast.
So that’s Reasonix. Most AI assistants get pricier the longer you run them. Reasonix keeps the opening of every request identical, so the discount holds and a long session stays cheap. The link’s on screen. New repo tomorrow.
Up next
6:49Hide the tests from your coding agent? StrongDM's holdout idea, tested on Claude Code
@github-trending
3 weeks ago
0:51Claude Code built a machine to explain prompt caching
@github-trending
1 month ago
10:10reladraw draws your diagram from where you say the boxes go
@github-trending
1 month ago
7:27Lap photo manager finds photos by what's in them, offline
@github-trending
2 months ago
9:04Spirula Studio does Gaussian splatting on any graphics card
@github-trending
2 months ago
8:50Univer puts a spreadsheet, document editor and slides in your app
@github-trending
2 months ago
18:13i-have-adhd, ponytail, and 7 more skills that make your agent stop explaining itself
@github-trending
2 months ago
7:57Homebrew BrewUI runs every brew command in a clean shell
@github-trending
2 months ago
8:35fugleramme draws the birds in your garden on an e-ink frame
@github-trending
2 months ago
9:01Open Code Review: Alibaba open-sourced the code reviewer it validated on a million real tasks
@github-trending
2 months ago
3:03Portless refuses to touch eight shapes of command, and says why for each
@github-trending
2 months ago
2:52The measurement file says 1.571. The stylesheet says 1.57.
@github-trending
2 months ago