Stint
Run your agent in stints. Pit before the redline.
Requires Claude Code 2.1.311+.
More at https://stint.digitalstoic.net.
Install
/plugin marketplace add digital-stoic-org/stint
/plugin install stint@pitlane
Load from a local copy
claude --plugin-dir <path-to>/stint
claude plugin validate <path-to>/stint --strict
claude plugin test <path-to>/stint
Commands
| command | does |
|---|
/pit [stream] | The car comes into the pit: the agent writes its notes to a file, /clear runs by itself, and the notes are injected as the first message of the fresh context. The progress, the outcome and a refusal show on the band's board (red for a failure, until the next command); the transcript gets one line, pit: saved .stint/<stream>-notes.md. If the host refuses the /clear, the board says to type it. |
/rejoin [stream] | The car goes back on track: the notes of a stream are injected as the first message of a new session. With no stream it takes the only notes file of the folder, lists them when there are several, and says so when there are none. |
/brief @name <task> | A prompt template, no code of its own: it asks the model to brief a session (@name from ListAgents) or a sub-agent for the task, by the two crew lines on what a brief holds and on the human gate (the same words as in the Crew block). Typed as /stint:brief while the team plugin is loaded, whose /team:brief skill shares the name. |
At session start, if the folder holds notes and no stream is set, the board reads notes found: /rejoin x (the status line Notes for stream "x" found: /rejoin x where there is no band).
A /pit is refused, and nothing is cleared, when the save fails, when another /pit is running, or when the context is at 95% of the limit where Claude Code compacts on its own: the save runs in that same context and would fail there.
Stream name, in order: the argument (a-z A-Z 0-9 _ -, up to 50 characters, kept for the session and across /clear), the session title set by /rename, then the session's own name. The session's own name is <project folder>-<first 4 characters of the session id>, such as stint-92a8: two sessions started in one folder without /rename never share notes or a journal. stint sets it as the session title, so it shows above the prompt and in /resume, and a resumed session keeps it. main is used only when Claude Code gives no session id. pit and rejoin are reserved.
Dash
A band above the prompt carries the car's instruments, on by default (dash: full). It is drawn on the terminal and the desktop app. Where there is no such band (VS Code, mobile) the same line goes to the status line instead. While /pit runs, or after a pit outcome, the notes hint or the pit hint (see Checkpoints), the band's board carries them above every other board message; only where there is no band do they take the status line.
🚀 revs <n>% ▮▮▯▯▯▯▯▯▯▯ ↑<n> · ⛽ <n>% · 🏁 <n> · 📋 —
| term | reads |
|---|
revs | Context fill, as a share of the model window (the figure of Claude Code's own status line). The bar has ten cells, one per 10%. When the window is not 200k its size follows the percentage, e.g. revs <n>%/1M. |
| zone emoji | 🚀 under the soft threshold · 🔥 orange from the soft threshold · 🔶 bold orange from the hard threshold · 🚨 bold red from the red threshold, fixed, it does not pulse. |
| thresholds | Soft 80k tokens (never past 40% of a window under 200k), hard 60% of the window (120k on 200k). The red threshold exists only while auto-pit is on: 10 points of the window under the auto-pit ceiling (70% when the ceiling is 80%), never under the hard one. They are not the point where Claude Code compacts; that wall is read by /pit alone, which caps the auto-pit ceiling with it. |
↑<n> | The last rise of revs, for 3 seconds. |
⛽ | What is left of the tighter of the five-hour and seven-day plan windows. Shown only below 30%, and only when the host reports rate limits. |
🏁 | The stint counter, shown from the second stint: +1 at each successful /pit, taken from the notes by /rejoin. |
📋 | Pit board: the sign the crew holds over the pit wall; one short message, — when empty. It is cut first when the line is too wide. |
⚠️ cache 5 min · auto-pit rebuilds the context | Leftmost, bold orange, while the main conversation's prompt cache is on the 5-minute TTL instead of 1 hour (! cache 5min in ascii). The idle auto-pit assumes the 1-hour cache; on 5 minutes the fresh window is rebuilt from scratch. stint reads the TTL from the tail of the transcript at the end of each main turn, so it needs the CLI; elsewhere the warning never shows. |
The revs figure flashes for half a second at each upward crossing of a threshold, and the fuel segment flashes when it appears. Nothing else repeats.