Skip to content

Claude Code, Codex or Grok Build hit the usage limit mid-task: keep the work outside the session (Sutradhar, open source)

Evidence: Reproduced in a lab. In the evidence table: 9 claims tested here, 1 verified against a primary source.

As of 6 December 2026, Sutradhar 0.9.48 is public under AGPL-3.0-or-later. It keeps work outside any AI session: what is sent through its console is stored, signed, in a ledger and queued as a job, so the work no longer depends on one session surviving. A run that hits the plan's limit is held and tried again by itself. It starts the official Claude Code and Codex command-line tools and reads the session files of the Grok Build terminal tool for search. We built it after a plan's weekly limit stopped a whole team of chat bots with our unfinished work spread across their conversations.

By Nishant Gauraw, NG-NeXTPublished Updated 13 min read

Short answer. When an AI plan's limit runs out in the middle of a task, what you lose is whatever lived only in that session's conversation. Sutradhar keeps the work outside the session: what you send through its console is stored, signed, in a ledger and queued as a job; a run that hits the limit is held and tried again by itself; and a ticket can be handed to an agent on another tool. NG-NeXT released it on 6 December 2026 as version 0.9.48 under AGPL-3.0-or-later: Sutradhar on GitHub.

The Sutradhar console on a phone: the list of what waits on the owner, with an answer box under each item

How it started#

From 18 October to the end of November 2026 I ran much of my daily work through a team of named chat bots on a Grok subscription. Over 44 active days my account sent them 3,119 messages, about 71 a day, and they sent back 9,710. (A few long technical briefs were typed by someone else on my account and are counted as mine.)

The limit was a problem from the first week. The plan's weekly allowance ran out; top-up credit was gone within minutes; a plan with 15 times the allowance lasted a day or two of each week; I moved to the plan with 50 times, and it still ran out. This is not a complaint about Grok. Grok Build is fast and I use it for coding. In my use, a team of always-on chat bots was the wrong shape of work for a weekly allowance: one bot's history held 6,671 automatic routine runs against 1,830 messages from my account.

On 1 December the weekly limit ran out again. This time the upgrade would not go through, and the account stayed unusable for days. It was the week Cursor became Grok Build; I do not know whether the two were connected. Every bot stopped at once.

That was when the real problem showed. The bots were replaceable; I had Claude Code and Codex open the same day. What I could not replace was the state of the work. What was unfinished, promised or waiting on me was spread over conversations I could no longer continue, a board and a pile of files, and no single place said which was which.

Limits are ordinary. Anyone who works through AI all day will meet one. So we did not build a way around limits. We built a place for the work that does not stop when a session does. The first commit was on 2 December, it has been in my daily use since 4 December, and it went public on 6 December.

What we measured first#

On 2 December, before the first commit, we extracted both sides of those conversations and had each message from my account classified. The classifying was done by model readers, so the shares are close, not exact.

  • 28% were asks, 27% short approvals, 15% questions, 14% decisions and 7% corrections.
  • About 9% carried a sign of friction: chasing status, fixing a misunderstanding, asking for a redo, or saying the bot forgot.
  • The bots sent about three messages for every one from my account.
  • We then checked 48 asks that looked unfinished in chat against files, the board and live pages. For 21 the work had in fact been delivered, for 12 no delivery could be found, and 9 were waiting on me.

The last line is the important one. Almost half of what looked lost was done, and buried in a long reply or another chat. The models made mistakes as well: asks were misread and status was claimed wrongly. But the largest loss was not in the model. It was in the place the work was kept.

From each failure to a mechanism#

Some of these are enforced by code and some are still instructions to the agent. The table says which.

What went wrongWhat Sutradhar does, as of 0.9.48
The plan's limit ran out and everything stoppedBy code: a run that ends on a recognised limit message is held, not failed, and tried again by itself. The job is a row in the database, not a state inside a session
Routine chatter used up the allowanceBy code: a routine can have a script in front that decides whether a model is needed at all, and a reminder uses no model. A routine written as an instruction only still starts a model each time it is due
The last ask of a run-on message was lostBy code, for agents on the claude tool: a long message is split into one ticket per ask, each ask being text found in my message, and the numbered list comes back before work starts. Left-over words are shown to me, unless only a few are left. An agent on codex gets the message whole
"Yes" or "post all" was bound to the wrong thingBy code: a short reply is bound by rule to the tickets that thread's agent has put in my hands. If several are pending and none is named, nothing is assumed and I am asked which
A follow-up was promised and never happenedBy instruction: a reminder is a scheduled job that needs no model, and agents are told to create one when they promise something. Nothing yet detects a promise made without one
Shared memory existed but reading it was optionalBy code, for work given through the console: a script puts the ticket and its recent log in front of the agent, searches the record first and writes the answer back. Further notes during a run are still asked of the agent in its instructions
Every write carried the owner's nameBy code: each writer has its own key, and every change to a ticket is an event signed by the writer that made it
Named bots turned one ask into a chain of hand-offsBy design: a name is a face, a voice and a thread. No name owns a kind of work, and no name is asked for permission
"Done" was a sentenceBy code, when an agent closes a ticket: a web address in the evidence must answer, and a commit named beside its repository must be in it. What cannot be checked is marked as taken on the closer's word

What happens now when a limit runs out#

  1. The job is held and tried again. It goes back in the queue until the time the tool names for the reset, otherwise for 30 minutes, and never for more than six hours at a time; a limit that resets later is met by further rounds. I am told once per hold, not once per job. After a hold the job starts from the beginning in a new session.
  2. Agents do not all run at once. By default at most two jobs of one agent run at the same time. This slows how fast an allowance is used; it does not cap how much.
  3. The work can move to another tool. A ticket can be given to an agent whose profile names the other tool, through the console, and that agent is shown the ticket and its recent log. A session I open by hand can read the ledger too, but only once the sut command is set up for it; opening a tool in the same folder is not enough.
  4. Past sessions stay searchable. The session files of Claude Code, Codex and the Grok Build terminal tool are copied to the server and searched together with the ledger: sut search "words" --tool grok.

What it is#

A ledger, a queue and a small console.

  • Ledger. Tickets are what a chain of signed events in PostgreSQL adds up to. Each writer has its own key.
  • Queue and runners. A runner on each machine takes jobs and starts the official claude or codex command-line tool. A job waits only for a job it is connected to (the same ticket, chat thread or project folder).
  • Runs that are cut off. If the runner or the machine goes down in the middle of a run, the job goes back in the queue after three minutes, still carrying its session; the next attempt on the same machine reopens that session and is told to check what is done and finish. This holds for the claude tool, needs the session's transcript to be on that machine, and is given up after three attempts. A codex job starts again from the beginning.
  • A check before commands. Deleting, paying, posting and changing production are stopped by the command-line tool's own pre-tool hook and wait for my word, until I relax a type myself. On the claude tool a check that crashes stops the call.
  • Console. One "waiting on me" list with an answer box under each item, on a phone as well.

Where Grok Build stands#

On 30 November 2026 Cursor's desktop app was renamed Grok Build, with the Grok Build terminal tool as its companion. Sutradhar reads the session files of the terminal tool (under ~/.grok/sessions) into the same archive and search as Claude Code and Codex. That reader was written before the rename and we have not rechecked the file format since. Sessions of the desktop app that used to be Cursor are not read, and no runner starts Grok Build. If you need either, say so in an issue on the repository.

Install it#

Sutradhar is made to be installed by your own agent. You need a Linux server with systemd (tested on Ubuntu 24.04 with PostgreSQL 16 and Python 3.12) and your own signed-in claude or codex tool; Sutradhar installs neither and signs in to neither.

git clone https://github.com/ngnext-tech/sutradhar ~/sutradhar/app
cd ~/sutradhar/app

Open Claude Code or Codex in that folder and say: "Read SETUP-PROMPT.md and set Sutradhar up with me." The agent asks a few questions and shows every command that needs sudo before running it. Once the installation exists, python -m sutradhar_agent.doctor prints one line per check. The console listens on that machine only unless you choose otherwise.

You need no separate tool for this. It is part of the release.

  • Copying. The runner on each machine copies the session files of Claude Code, Codex and the Grok Build terminal tool from the runner user's home folder to your server, about every 20 seconds, whether a session was started by Sutradhar or by hand.
  • Loading. The console reads what is new into PostgreSQL every minute.
  • Searching. sut search and the console's Search page cover the ledger, Sutradhar's own files and that session history together, by word and phrase.

Know this before you install. Copying begins as soon as the runner starts, and as of 0.9.48 the set-up prompt does not ask about it. The transcripts are copied whole, so anything you pasted into a session, a key included, is in the archive on your server; a second machine set up to keep snapshots gets a copy as well. The runner has a --no-archive option, but the install scripts do not offer it: add it to the runner's service file or scheduled task by hand before the runner first starts.

The habit is older than Sutradhar. Since May 2026 I have kept every session in a separate searchable index; on 6 December 2026 it held 9,226 sessions and about 2.47 million turns, the oldest from December 2025. For 91 of those sessions the original file is no longer on this machine, which is why I do not rely on the tools' own folders as the record. Sutradhar used that index once, to fill in history older than itself. A fresh installation has no such index and does not need one; it starts from whatever session files are still on disk.

What is not public yet#

That older index, and the scripts that extracted and classified the conversations for the figures above. If you want either, open an issue on the repository; we will publish them if there is demand.

Evidence#

As of 6 December 2026, commit 5001d9e, version 0.9.48. The repository's tests were not re-run for this post.

ClaimStatusBasis
44 active days between 18 October and 30 November 2026; 3,119 messages from the owner's account, 9,710 from the bots; 6,671 routine runs in one bot's historyTested hereOur own count of our own conversations, 2 December 2026
The message shares and the friction shareTested hereClassified by model readers; close, not exact (docs/DESIGN.md)
21 delivered, 12 with no delivery found and 9 waiting on the owner, of 48 asks checkedTested hereChecked against files, the board and live pages; "no delivery found" is a strong sign, not proof
The limit history: weekly allowance, top-ups, the 15 times and 50 times plans, the failed upgrade on 1 DecemberTested hereThe author's own account; the cause of the failed upgrade is not known
A run that ends on a recognised limit message is held and tried againTested hereUnit tests with made-up limit messages in Claude's wording (tests/test_sessions.py, tests/test_console.py); not yet shown with a real limit, or with Codex's wording
A cut-off claude run carries on in its session; a codex run starts againTested heredocs/SURVIVE.md
Session files of the three tools are copied about every 20 seconds and loaded every minute; --no-archive stops the copying for that runnerTested hereRead in the code (sutradhar_agent/shipper.py, sutradhar_agent/runner.py, sutradhar_console/app.py)
9,226 sessions and about 2.47 million turns in the older index, the oldest from 31 December 2025; 91 sessions with no original file on this machineTested hereCounted on 6 December 2026
Cursor's desktop app was renamed Grok Build on 30 November 2026, with the terminal tool as its companionVerified against a primary sourceThe vendor's announcement, grok.com/news/cursor-is-now-grok-build, dated 30 November 2026
An agent that knew only the repository installed it from nothing on a clean Ubuntu 24.04 machineTested hereOne rehearsal (docs/state/NOW.md)

What this did not prove#

About the evidence:

  • One owner, one installation, two machines (a Linux server and a Windows second machine). The code assumes that layout. We know of nobody outside NG-NeXT running it yet.
  • Daily use is days old, not months. The figures above describe the earlier bot team, not Sutradhar; we have not yet measured whether the friction share fell.
  • The install was rehearsed from nothing once, on clean Ubuntu 24.04. Agent work on a machine with a signed-in tool, search over session history on a clean machine, and a Windows second machine have not been rehearsed from nothing.

About what it does not do:

  • It does not make every ask a ticket. A message with one ask is stored and queued as a job; a ticket is made when a long message is split, or with the sut new command. Work given in a session opened by hand is recorded only if that session writes it down.
  • A held job is not moved to another tool by itself, and a run stopped by a limit writes nothing to the ticket; the ticket's log holds the answers of finished runs and the notes agents chose to write.
  • The limit is recognised from the tool's own wording. A new wording is treated as an ordinary failure until the pattern is added.
  • Sutradhar uses the plan too: one small proof run per tool, per version, per day; a small model call for a long message and for choosing a folder; and a model run for each fresh reading of a closing.
  • The check before commands is a net, not a proof. A script the agent writes and then runs is not seen, and a session started by hand is not checked. With Codex the check works only while its wrapper ends with a refusal, and Codex runs without its own sandbox and approvals unless a profile names one. A sandbox around unattended runs is not built.
  • An ask in a split is text found in the message; that does not prove the text was a request. The split can also miss a boundary.
  • Carrying on after a cut-off is an instruction to check before repeating, not a guarantee. Two jobs on one machine share its files. Two messages in one chat thread wait for each other.
  • Security as shipped: the console's port is plain HTTP, every writer's credential file on the server is readable by the one service user, and through a public name Cloudflare can read what passes. Loss of both machines at once is not covered; there is no off-site copy.
  • History that was removed from disk before Sutradhar was installed is not in its archive. Search keeps the first 60,000 characters of a message; the raw file is kept whole.

FAQ#

What should I do when Claude Code or Codex says the usage limit is reached in the middle of a task?#

Write down what the task is and how far it got, somewhere outside the session, before you switch tools. With Sutradhar a job sent through the console is held and tried again by itself, from the beginning, and its ticket can be given to an agent on the other tool.

Can a task started in Claude Code be finished in Codex?#

Yes, for work given through the console: give the ticket to an agent whose profile names Codex, and it is shown the ticket and its recent log. The conversation itself is not carried over, and a session you open by hand reads the ledger only after the sut command is set up for it.

Does Sutradhar work with Grok Build?#

For reading only. The session files of the Grok Build terminal tool are archived and searched with the others. The desktop app that used to be Cursor is not read, and nothing starts Grok Build.

Why do AI coding sessions forget tasks?#

Because the task was stated in a conversation, and a new session starts without that conversation unless you resume it. Anything that must outlive a session has to be stored outside it and read at the start of the next one.

Does Sutradhar copy my session transcripts anywhere?#

Yes. Copying begins as soon as the runner starts, and as of 0.9.48 the set-up prompt does not ask about it. The transcripts go to your own server, so that they can be searched, and to a second machine of yours if you set one up to keep snapshots. They are copied whole, so anything pasted into a session, a key included, is in the archive. The runner's --no-archive option stops it for that runner; add it by hand before the runner first starts.

Do I need a separate tool to index my old sessions?#

No. Sutradhar loads the session files that are still on disk. What was removed before it was installed is not in its archive.

Does it need an API key?#

No. It drives the command-line tools you have signed in to yourself. It never reads, stores or forwards a login token and ships with no credentials.

Does it get around a plan's limit?#

No. It waits and tries again. What it reduces is the loss of work when the limit arrives.

Can several people share one installation?#

No. It is built for one person's own work. Each person signs in to their own command-line tool.

What licence is it under?#

AGPL-3.0-or-later. You may use, change and share it; if you run a changed copy as a service for others, you must offer them your source.

What does the name mean?#

Sutradhar: "the one who holds the thread".

Sources#

  • Sutradhar, source and documents: Sutradhar on GitHub, commit 5001d9e, version 0.9.48, read 6 December 2026.
  • The rename: Cursor is now Grok Build, the vendor's announcement, dated 30 November 2026, read 6 December 2026.

Talk to us directly.

We reply within one business day. The site assistant answers when it is available.