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

  1. 0:00Reasonix: a terminal coding assistant built to stay cheap
  2. 0:15A coding assistant that lives in your terminal
  3. 0:34An AI model forgets everything between messages
  4. 0:56The model re-reads the opening for about a tenth of the price
  5. 1:34Reasonix keeps that opening perfectly still
  6. 2:08It measures its own cache hits and cost per task
  7. 2:28Three ways to run it, and not tied to one model
  8. 2:46A single program for Mac, Linux, and Windows
  9. 2:59Keep the opening still, and a long session stays cheap
Show transcript
  1. 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.

    Slide text
    GitHub Trending · Ep 28 · Aug 7, 2026

    Reasonix

    A terminal coding assistant built to stay cheap over long sessions.
    Go MIT Mac · Linux · Windows
  2. 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.

    Slide text

    A coding assistant that lives in your terminal.

    One local engine, with a matching desktop app and an editor plug-in.
    src: Reasonix (repo)
  3. 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.

    Slide text

    An AI model forgets everything between messages.

    So the tool re-sends the whole conversation every single turn.
    Most agents
    Turn 1
    the whole conversation, re-sent
    Turn 2
    the whole conversation, re-sent
    The pile of history grows every turn, so the bill grows with it.
    src: Reasonix source
  4. 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.

    Slide text

    The model re-reads the opening for about a tenth of the price.

    But only if it matches exactly, and most tools rewrite it every turn.
    Most agents
    Turn 1
    opening
    stamp 09:41
    the conversation
    Turn 2
    opening
    stamp 09:43
    the conversation
    The opening changes every turn: fresh time, reshuffled tools, re-scanned machine.
    cache miss ✗
    the opening costs ≈10×
    src: Reasonix source · DeepSeek pricing
  5. 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.

    Slide text

    Reasonix keeps that opening perfectly still.

    So the discount keeps paying, session after session.
    Reasonix
    Turn 1
    opening
    pinned ✓
    the conversation
    Turn 2
    opening
    pinned ✓
    the conversation
    older output
    trimmed
    cache hit ✓
    the opening costs ≈1/10
    1 a saved note about your computer, pinned at the front
    2 the action list kept in one fixed order
    3 it trims from the end, never the front
    src: Reasonix source · reasonix config
  6. 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.

    Slide text

    It measures its own cache hits and cost per task.

    A live look at one session on DeepSeek-R1.
    src: Reasonix desktop · illustrative session
  7. 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.

    Slide text

    Three ways to run it, and not tied to one model.

    Terminal, desktop app, or an editor plug-in, all one engine.
    src: Reasonix (repo)
  8. 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.

    Slide text

    A single program for Mac, Linux, and Windows.

    Open source under MIT, installed in one command.
    npm i -g reasonix
    Go MIT v1.21.1
    Shipping fast: the latest landed today.
    reasonix.io
  9. 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.

    Slide text

    Most AI assistants get pricier the longer they run. Reasonix keeps a long session cheap.

    By keeping the opening of every request identical.
    github.com/esengine/DeepSeek-Reasonix
    New repo tomorrow.

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York