I have two tools open most days. One is T3 Code, a coding front end for agents. The other is Claudia, the assistant I built that runs on a Mac Mini in my house. Both of them run Claude underneath. Both of them, on a normal message, take a few seconds to answer.
Only one of them made me wonder if it had died.
In T3, a message goes in and a "Working for 0:03" row starts ticking before the server has even answered. Thinking shows up. Each tool call shows up with its status. With Claudia, a message went in and the screen did nothing. Then, eventually, words. A delegated job would show a step now and then, or nothing at all for minutes.
I wrote it down in the task doc almost exactly like that: "I never feel like I don't know what is happening on T3. With Claudia, everything seems to take time, and I am not sure what is happening."
My first instinct was to make Claudia faster. I didn't do that first, and I'm glad.
Measure before touching anything
The plan had three phases, and phase 0 changed no behavior at all. It added a small timer module that writes one JSON line per chat turn and per job to a log file. Each line records when every stage finished: sign-in check, saving the message, checking my rules, building the system prompt, reading the history, starting the Claude CLI, the first word of the reply, the end of the stream, saving the reply. It also records prompt sizes and the model.
The module never throws. If timing breaks, the chat doesn't notice. That was the only rule I cared about for instrumentation: it can be wrong, but it can't be the reason something fails.
Then there's a small report script that reads the file and gives the median and 90th percentile for every stage, per kind of work. I've let it collect for a couple of days. Here's where a typical chat turn goes, from 26 real turns:
| Stage | Median |
|---|---|
| Sign-in, save, rules check, turn count | 1.1 s |
| Build the system prompt (about 27,000 characters) | 1.0 s |
| History, prep, CLI ready | 0.5 s |
| Waiting for the first word | 4.9 s |
| Streaming the reply | 6.6 s |
| Saving after the text ends | 1.2 s |
Total median: 15.4 seconds. The 90th percentile is 24.7.
The part that mattered wasn't the total. It was this: the old route waited for the model's first word before it sent the HTTP response at all. It peeked at the first chunk so a startup failure could still return a clean 502. That was a reasonable choice when I made it. It also meant the browser had nothing to draw for about seven and a half seconds, and roughly 2.5 of those were my own code doing prep work in a straight line.
The fix was a status line
So phase 1 wasn't speed. It was honesty about what was happening.
The chat route now answers as soon as the message is saved, about 0.4 seconds in, and streams one JSON event per line. There are four event types: status, text, error, and done. While the turn is being prepared, status events walk through "Checking your rules", "Reading memory", "Reading the conversation", "Starting". Then the CLI's own stream takes over.
That second part was already sitting there. The CLI runs with partial messages on, and it was emitting thinking blocks and tool-use events the whole time. My parser kept only the text deltas and threw everything else away. Now content_block_start events turn into status lines: "Thinking", "Searching the web", "Looking at the attachment". They show on screen and never land in the saved message.
The old 502 became an error event in the stream. The page already knew how to handle a mid-stream error by putting my message back in the input, so that part came almost free.
On the page, my message shows the moment I hit send, and Claudia's bubble shows one line with a timer: "Reading memory · 0:02". When the words start, the line drops underneath and gets smaller: "Writing · 0:07".
The turn still takes about the same time. My reaction after the deploy was "the chat feels good."
Jobs got the same treatment
Delegated jobs were worse. The only progress came from the agent remembering to write a line to its job file, which it did when it felt like it.
Now every job runs the CLI with --output-format stream-json into a per-job events file. A small function turns those events into plain steps: "Reading notes.md", "Running: Count entries in the scripts folder", "Searching the web: ...". A tool that returned an error gets a red X. The chat bubble for a running job polls every two seconds and lists the latest six steps with a timer. The fake percent bar I'd had before is gone, because it was never measuring anything.
The job timings explain why this mattered more than chat speed. Queue wait is a median of 1.5 seconds. Context building is 1.4. The agent itself runs a median of 135 seconds, and the 90th percentile is almost 14 minutes. No amount of shaving the startup touches that. The only thing that helps a 14-minute job is being able to see that it's on step 31 and not stuck.
The speed work I talked myself out of
Phase 2 was a list of speed candidates, chosen from the numbers: run the prep steps in parallel, reorder the prompt so the stable parts come first and can be reused, keep a warm process, keep a long-lived session per conversation the way T3 does.
The numbers argued against most of it. The prep I could parallelize is about 2.5 seconds, and it's now covered by status lines. I applied the same treatment to my movie and health chats the same day, and while doing that I tested the prompt-ordering idea directly. A cold 37,000-character prompt got its first word back in 1.5 seconds, and repeating the identical prompt was no faster. The 6 to 7 seconds in a real health question is the model thinking over the records, not reading them. Reordering would have been a day of careful work for nothing.
The long-lived session is the biggest possible speedup, and also the biggest change to how memory and rules reach Claudia. I wrote the condition into the task: it's only worth the risk if the measurements show startup and prompt size are where the time goes. So far they aren't.
The line I keep coming back to is my own answer to the question of how much speed mattered: "I am ok with long tasks as long as I know what is happening."
The slow part was never the main problem. The silence was.

