This is f*cking brutal, Anthropic's own engineers cut Claude's token use by 98.7% and you're still paying full price
they published exactly how they did it:
150,000 tokens → 2,000
same tools, same task, same model
the trick: Claude stops calling tools one by one and writes code that calls them, so only the answer comes back
browse → load → filter → loop → mask → save
1. tools become files
every MCP tool (the apps Claude plugs into) gets its own file. Claude browses the folder and opens only what it needs
2. load on demand
no more reading every tool's instructions upfront, it pulls in just the ones it'll use
3. filter before reading
a 10,000-row spreadsheet? the code cuts it down and Claude sees 5 rows
4. loops run in code
waiting for "deploy done" in Slack? a loop keeps checking without waking the model every time
5. private data stays private
emails and phone numbers turn into [EMAIL_1] and [PHONE_1]. the real data goes to Salesforce, the model never sees it
6. it keeps what works
working code gets saved to ./skills with a SKILL.md, so next time it reuses its own toolkit
the catch: the code has to run in a sandbox, so set that up first
same Claude, 75x less context burned
I packed all 6 into one prompt for Claude Code
save it, prompt below ↓
ai is genuinely absurd right now
i was curious with how steven spielberg moved the camera through fences and straight into a moving car while tracking the actor in this scene from his latest movie "disclosure day"
so I just gave neon the raw mp4 and asked how it was set up. 10 mins later it had mapped the 3d geography, estimated the lenses and the rig handoff and built a 3d sim with a live 2.39:1 frame u can orbit around
we are living in the future tbh
Esto lo cambia todo…
Anthropic ha revelado el truco para reducir hasta un 98% el uso de tokens en Claude
Sus ingenieros pasaron de 150.000 tokens a 2.000 con este método
Mismas herramientas. Misma tarea. Mismo modelo
La clave: el agente escribe código que llama a las herramientas y solo recibe la información necesaria
Así funciona el modo código:
1. Herramientas como archivos
Cada herramienta MCP se guarda como un archivo
Claude explora la carpeta y abre solo lo que necesita
2. Carga bajo demanda
En vez de leer las instrucciones de todas las herramientas antes de empezar, carga únicamente las que va a usar
Ahí está la reducción de 150.000 tokens a 2.000
3. Filtra antes de leer
Una hoja de cálculo con 10.000 filas?
El código la filtra y Claude recibe solo las 5 relevantes
4. Ejecuta los bucles en código
Hay que revisar Slack hasta que alguien confirme que ha terminado un despliegue?
Un bucle lo comprueba sin pasar por el modelo cada vez
5. Mantén los datos sensibles fuera del contexto
Los emails y teléfonos pueden sustituirse por etiquetas como [EMAIL_1] y [PHONE_1]
Los datos reales llegan a Salesforce sin que el modelo tenga que verlos
6. Guarda lo que funciona
El código útil se guarda en ./skills junto a un SKILL.md
El agente construye su propia caja de herramientas y la reutiliza en futuras tareas
Menos tokens para cargar herramientas. Más contexto disponible para trabajar.
He reunido las 6 partes en un solo prompt para que Claude Code te ayude a montar este sistema
Guarda esto y pásale el prompt a Claude Code
Te dejo el prompt y un artículo para optimizar tu uso de Claude abajo👇