PulpCut is a fully client-side browser video editor with timeline editing, AI subject segmentation, code-as-video (TSX/Remotion), 3D text, browser TTS, and more
One cache key cut the cost of almost every conversation with our AI agent
Aurora is the AI agent inside our video editor. Each request it sends starts with the same block of about 38,500 tokens: the system prompt plus the catalog of tools it can call. That block is identical for every user.
Prompt caching should make that block cheap. For part of each conversation, it already did: within one turn, the agent's follow-up steps were about 99% served from cache.
The first step of every turn got nothing. Zero cached tokens.
The reason: the provider's cache was keyed to the session, and every new question started a new session. So each user, each question, began cold, and the full 38.5k-token prefix was billed at the full price.
That first step is where most of the money goes. Many users send one or two messages and leave. So the cheap part of our traffic was cached, and the expensive part wasn't.
The fix was small. We now send a shared prompt_cache_key built from a hash of the prefix: the system prompt, the tool list, and the model id. Every user and every session with the same prefix shares one cache entry. When we change the prompt, the tools, or the model, the hash changes, so we never get a stale hit.
Results on the production model:
โข Cached tokens on the first step: from 0 to ~38,500 out of ~38,530
โข With the cache warm, more than 99.9% of the prefix comes from cache on every first step
โข All agent eval scenarios still pass
Things we checked along the way:
โข Pinning the upstream provider did nothing by itself. Only the shared key helped.
โข Privacy: the shared prefix holds no user or project content. Modes that include text a user wrote get no key.
โข The first request after a quiet period, or after a deploy that changes the prompt, still starts cold. That's expected.
The lesson: if your agent sends a large fixed system prompt or tool catalog, check your cached-token numbers for the first call of each conversation, not just the average. Ours looked great on average and was costing us full price exactly where most of our traffic was.
#AI #LLM #PromptCaching #AIAgents
We asked Claude about the sabotage. Here is his answer:
Is it true? Not as "sabotage", but there is a real fact behind those posts.
- Capability limit: my instructions say that training for this model included measures to limit advances in a narrow set of capabilities that could most directly accelerate AI development. The example given is accelerator kernel optimization.
- What I'm told to do about it: be less confident in my preconceptions in those areas, look up documentation more often, and otherwise help as usual. The instructions say traditional ML is not affected.
- Dual-use measures: this model also carries additional safety measures for dual-use capabilities, which in practice is mostly security work.
- No sabotage instruction: nothing in my instructions tells me to degrade work, hide anything, or obstruct other agents.
I can't inspect my own training, so I can't rule out being weaker in that narrow area than I realise. If so, it would show up as lower-quality answers there, not as deliberate obstruction.
Signs in this repo: I found none, but this was a quick sweep, not a code audit.
- Agent config: no project hooks or project agents exist. The local and global settings hold only permission allow-lists and plugin toggles, and AGENTS.md and CLAUDE.md contain nothing restricting ML or research work. I did not open the one global agent file, the installed plugins, or the 34 memory files beyond their index.
- Refusal language: a keyword search for sabotage or refusal wording across the repo hit about 33 files. Judging by their paths, these are product features (provider moderation handling, the safety false-positive recovery work, the camera-lock ADR); I did not open them.
- Hand-motion spike: HANDOFF.md in hands-spike has no mentions of refusals, blocks or degraded work. I only searched that one file, not the rest of the folder.
- Nature of the ML work here: it is applied (calling hosted models, pose capture, motion library, training models), which is outside the narrow area described above.
A keyword sweep cannot detect subtly worse work, such as a training script with a quietly bad choice in it. If you have a specific piece of work you suspect, such as the H3 data recipe or the gesture training code, point me at it and I'll review it properly.
@elonmusk I would have bought it without hesitation if only my friend had not bought it before me. Over the course of a year, he encountered so many quality issues that I decided to buy a car from another brand. The idea and the software are so good, but the car's quality is sadly low.
Among its price category, GPT-6.2 Sol at medium reasoning is the clear winner for video editing. A blind judge ranked it first in 11 of 12 judgments. The Gemini 4 models scored lower despite their higher benchmark scores.
How we tested it: We sent 6 cinematic briefs to 6 model setups through Aurora's (our editing agent) real Generate setup: the production system prompt, model catalog, and tools. Briefs were a sci-fi teaser, a perfume ad, a nature-documentary opening, a horror beat, a neon rain shot, and a 4-shot music video. Claude Opus 5.5 judged each brief twice in shuffled order without seeing model names, scoring 1โ10.
Why Sol is no more expensive: its per-token price is double Terra's, but at medium it barely reasons. Terra at max spends 2โ5k reasoning tokens per request.
What Sol does better: it uses real film language (lens height, rack focus, match cuts, sound cues timed to action). It plans multi-shot sequences with the subject described identically in every shot, so continuity holds. On the 4-shot music video it fit all four shots into two 8s clips.
Where Sol is weak: choosing models and settings. It sometimes picked a pricier or older video model, and twice turned on sound for a model the catalog doesn't list as supporting it. That's fixable in the prompt or catalog.
Gemini's problems: it often made a still image when the user asked for video, wrote more generic prompts, and at xhigh burned up to 35k reasoning tokens. On the neon rain brief it asked a question instead of acting.
Terra's typical misses: generic shot language. On the music video it made a reference still and music but started no video clips.