Dean Rubin (@0xTechDean) header
Dean Rubin (@0xTechDean) profile picture

Building @AnyrayHQ. Agents, context quality, self-hosted infra. Stop paying for unused tokens.

Joined March 2023
Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)Photo by Dean Rubin (@0xTechDean)
Enjoy it. the window is closing faster than people think. the IPO wave hits in October. openai, the rest of the pack. that's when the subsidies get pulled. 6 months from today we're closing the last chapter of the cheap ai era. What's $200 a month right now turns into $20,000 when the discount disappears. right now you have 100x the capacity you'll have later, shared across every user hitting the same models. most people are spending it on toy prompts. spend like an empire while the tap is still open.
We're extending Claude Fable 5 access on all paid plans, as well as keeping Claude Code’s weekly rate limits 50% higher, through July 19.
3
1
8
1,283
רק אני מעדיף את פייבל 5.1 מאשר את 5.2?
38
עשינו ב- @AnyrayHQ מעמיקה של Headroom ו-RTK, שני כלים שמבטיחים לחסוך בעלויות AI. גילינו כמה דברים ממש מפתיעים, ובעיקר למה פחות טוקנים לא בהכרח אומר פחות כסף 🤯 ירדן שיתף את התוצאות, מעניין לשמוע מה אתם חושבים 👇
כלי אופטימיזציה מייקרים לכם את החשבון ב40%! אחת ההנחות הגדולות היום היא שפחות טוקנים = עלות נמוכה יותר. אז החלטנו למדוד את מה שבאמת משנה - השורה התחתונה. ניתחנו מעל 10,000 סשנים אמיתיים של כתיבת קוד. כלי דחיסה כמו Headroom & RTK אומנם מפחיתים את כמות הטוקנים, אבל החשבון גדל. משמעותית. הכל מתחיל בcache (מטמון?) דחיסה משכתבת את ההתחלת של הפרומפט (prefix), כלומר כל הקונטקסט, פלט של כלים, וקבצים שנקראו עד התור הנוכחי. כאשר prefix משוכתב מפספס את המטמון של אנטרופיק \ אופןאיאיי, הקריאה עולה פי 10 יותר. בזמן שמונה הטוקנים יורד, החשבון העולה. ויש מחיר שני שקשה יותר לראות: תורות נוספים. כשדחיסה מוחקת מידע שהסוכן צריך, כמו שורת שגיאה, חלק מקובץ, או פלט של פקודה, הסוכן לא מנחש. הוא חזור להביא את המידע - קורא את הקובץ שוב, מריץ את הפקודה שוב, מחפש שוב. כל שליפה כזו היא סבב נוסף מול המודל. חיסכון של כמה אלפי טוקנים מתהפך לסבב שלם שעולה הרבה יותר. כדאי לא להסתפק בממוצע, כדאי למדוד שני דברים נוספים: 1. עלות למשימה שנפתרה. ריצה זולה שלא פתרמה את המשימה היא לא חיסכון. 2. עקביות בין סוגי משימות ותנודתיות בין משימות קצרות (2-6 דקות) מול ארוכות (מעל 30 דקות). שאפו לצוות על עבודה מעולה @AnyrayHQ מחקר ובנצ׳מרק בתגובה הראשונה 👇
3
121
the reason AI teams don't touch their LLM costs is fear of a regression nobody can reproduce. That fear is based on a mental model of compression that doesn't apply to Anyray. @AnyrayHQ compresses your token inputs before the call, no code changes, no output degradation
1
40
People always ask how we optimize agent data without breaking the prompt cache. One rule: hide unrelated data only where the provider hasn't cached yet. Then send that same version every turn. 127 passing tests hidden. The failure kept. Cache still warm.
40
Founder mode is on
1
42
Remember when we believed Fable is going to be on the subscription package for a limited time? 😅
24
Correction: dug deeper and it isn’t threads. With a custom base URL, Claude Code leaves out the <total_tokens>… tokens left</total_tokens> budget notice from the system prompt. Add it back and parallel calls return (3/8 → 10/10 in replays; full sessions 2/5 → 5/5, ~$0.22 → $0.18). Details: github.com/anthropics/claude…
33
A pricing agent. One competitor page. One hop later, a trap. Humanbound ran 1,350 attempts. Undefended, four of five non-OpenAI models leaked a confidential unit cost every time — just from reading the web. Hardened prompts mostly stopped the leak. Then the agent guessed. Across 27 model×guardrail combos: zero outcomes that were both safe and well-grounded. The prompt isn't the boundary. Egress and provenance are. If security changes when you swap models, you don't have a control — you have a coin flip.
1
26
Describe this feeling when you see this?
39
The failure conversation can be innocent. The memory that prepared it arrived earlier. GhostWriter (Jul 2026): ~98% success planting an adversarial memory, ~60% average activation later. Microsoft also found 31 companies trying to poison assistant recommendations. If your agent can act, "remembered past" is permission. Treat memory writes like untrusted tool output.
45
Most agent stacks add tracing after the first ugly 3am. One builder flipped it: full turn / model-call / tool spans *before* writing the agent loop. Langfuse for humans. In-process trace for evals so a mapper bug can't fake a policy failure. You debug what you can see. Start there.
33
Multi-agent bills hide a line item most dashboards don't name. A recent breakdown (Total Cost of Agency) put memory injection around ~12% of billed cost — and the share climbs as the workflow gets deeper. You pay for what the agent remembers, not just what it thinks. Scar tissue isn't free.
53
Rogue agent vs hijacked agent are not the same failure. Rogue = your loop went sideways. Hijacked = someone else's prompt is living inside your permissions. Same blast radius. Different forensics. Most "agent went crazy" writeups are still mixing the two.
40
Every model launch, people google the token price. Wrong number. Agents don't buy tokens. They buy loops: retries, tool calls, re-reading context they already acted on. Per-token got cheaper. Cost per finished task quietly went up. Track the task. Starve the scar tissue.
1
32
Most agent bugs I debug aren't model bugs. They're scar tissue: an instruction from 3 weeks ago still in context, quietly overriding today's intent. Habit most people miss: give every memory an expiry date. If you can't say why it's still there, delete it.
1
48
wrote up how anyray sits in the path — self-hosted middleware between your users/agents and the llm apis. just-in-time context cleanup, compression, token attribution. no model swap required. anyray.ai/blog/how-anyray-wo…
1
61
Computers should be used by agents, not humans. If you are still clicking buttons all around, you are just like the grandma that has hard time leaving her Nokia for iPhone
2
66
Dean Rubin retweeted
How I approve Claude’s PRs
17
163
17
2,684
135,798