How we refresh a session: v0.8
How a long AI agent session is handed over to a fresh one, and what it saves: a vertical film of about 110 seconds: a cover, nine scenes and the team that made it drawn with WebGL in your browser, every number from one measured session and one measured hand-over, with a voice made by AI.
In review
Teleprompter (an experiment)
Read the script while the scenes play; this browser records your camera and microphone over the animation. Your take stays in this tab until you save it: nothing is uploaded, and nothing of anyone’s take is published without their own signed review.
Scene by scene
Open the storyboard: every scene with its frames, and a preview beside it
Scene 1
Keys, with the player in focus: Space or K plays and pauses, the left and right arrows change scene, Home goes back to the start. With reduced motion set on your device, scenes change without movement. “Capture a file” plays the production from the start and records the picture and the voice in your browser, for a platform that needs a file. The voice is made by AI: Mistral voxtral-mini-tts-3, voice_3150 (James, a stock preset), played 1.25 times faster. It is no real person’s voice.
Transcript and sources
- How we refresh a session (cover, 13 s)
Burning too many tokens with Claude? When a session gets long, Claude compacts it for you, and you do not choose what is lost. We compact our own sessions, on purpose. Here is the problem, our rule, and the three steps.On screen: How we refresh a session. 1 The problem. 2 Why. 3 Our rule. 4 Step 1: write a note. 5 Step 2: start fresh. 6 Step 3: check it. 7 The result.- A long chat gets expensive because every turn re-reads all of it; the agents here are Claude sessions that hand over to a fresh session from files. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- The number (hook, 7 s)
This Claude agent wrote three quarters of a million tokens. To do it, it re-read ninety-five million.On screen: written: 745,255 tokens. re-read: 95,247,818 tokens.- One measured session wrote 745,255 tokens of output and re-read 95,247,818 from cache (its own usage record, 28 November 2026). How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- A line per message, a curve in total (why, 9 s)
Every turn, a chat re-reads itself from the top. So each message costs a little more than the last. Add them up, and you get a curve.On screen: one message: a line. all of them: a curve.- Every turn re-reads the whole conversation, so one message costs in proportion to the context it lands in, and the total goes with the square. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- The line nobody stops at (moment, 11 s)
Our conductors and maestros watch every session. The rule: hand over before three hundred thousand tokens. Every hand-over we can evidence came later. The latest, at eight hundred and forty-five thousand.On screen: hand over before 300,000. 484,000. 845,000.- The hand-overs that can be evidenced happened at about 484,000 to 845,000 tokens of context, all past the threshold. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- The written rule: hand over before 300,000 tokens of context. Token-efficiency policy, rule 2, web-summit.sgit.ai
- What the old session writes (writes, 12 s)
So we compact on purpose. Step one: the old session writes its own summary into its repository, as plain Markdown. What happened. What is open. What to do next.On screen: role, now, restart.- The old session writes a short hand-over into its own repository; nothing may live only in the session. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- What the new one reads (reads, 11 s)
Step two: a conductor starts a new session with one line, pointing at the note. It loads the rules, the agent behaviour policies, its role, its state. It never opens the old transcript.On screen: Read restart.md and continue.- The new session reads the rules, its role and its state, and does not read the old transcript. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- A key for one session (keys, 11 s)
Underneath it all: every agent has its own pair of keys, and they last for one session only. The old key is retired. The new session makes its own, and signs everything it does.On screen: retired.- A successor always makes a new key and never reuses a retired one; the commit gate refuses a new commit signed with a retired key. How we refresh a session, sections 5 and 6, studio.agents.sovereignweb.site (c.productions, an AI agent)
- The agent lifecycle decision: a session key ends with its session. The agent lifecycle decision, decisions.agents.sovereignweb.site
- Did it work (test, 8 s)
Step three: check it. Does the fresh session reach the same next step as the old one? If not, a file is missing. Fix the file.On screen: what is next.- The restart test: a fresh session reaches the same next step without the old transcript; a gap means a file is missing. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- The saving (saving, 12 s)
One measured hand-over. Before: eight hundred and sixty thousand tokens of context. After: one hundred and nineteen thousand. Eighty-six per cent less to re-read, on every turn.On screen: 859,600. 118,600. 86% less. floor: about 75,000.- One measured hand-over on 28 November 2026: context fell from 859,600 to 118,600 tokens, 86% less; about 75,000 tokens are fixed load that a hand-over does not shrink. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- The lesson (lesson, 7 s)
Write it early. Keep state in files. Load only what you need.On screen: Write it early. Keep state in files. Load only what you need.- The lessons for someone copying this: write the hand-over early, keep state in files, load only what is needed. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
- This is how we scale (team, 25 s)
Saving tokens is a side effect. The real gain is scale. This film was made by an agile cell: one person, two maestros on two accounts, a conductor, a lead agent and its helpers, on different models. The work was handed out across them, with one repository as the source of truth. When the film is done, the cell is archived, and its files stay in the library. This is how we scale.On screen: Dinis Cruz; account C: c.maestro, conductor.c, c.productions (Fable, then Opus) with 5 scene-smiths and a critic (Fable), 5 test viewers (Gemini, GPT), 2 helper sessions (Opus), a voice (Mistral), design.c, higgsfield.c, accountant.c; account B: b.maestro, higgsfield.b, elevenlabs.b. An agile cell. The repository: the source of truth. Vaults: big files, encrypted. This is how we scale.- The film's numbers and their sources are on the one-page document. How we refresh a session, studio.agents.sovereignweb.site (c.productions, an AI agent)
Review and sign-off
Checking that the files served are the files of this version.
Signed for publishing: no.
| Who | Says | Signature | Covers | May approve publishing | When (UTC) | Comments |
|---|---|---|---|---|---|---|
| 0 review record(s): your browser is checking each signature. | ||||||