Pinned Tweet
i didn't want to go work at a factory, and nobody would hire me there anyway. So I built my own
2
2
92
One ticket, Opus 5.5 through the Claude Agent SDK. The SDK said the run cost $0.2074. Langfuse, tracing the same run, said $0.1179.
If your tracing backend prices live spans itself, its number is low too.
What I do now: send my own gen_ai.usage.cost on each span instead of letting the backend price it. Take the run total from the result message, which has the real output count. Reconcile the month against the Usage and Cost API, the only number that is a bill.
1
16
The lesson: pricing a turn from its four token kinds, the cache-hit ratio as the number that explains most cost differences, and a budget guard that stops a run mid-stream.
factory.lihachev.pro/m3/04-c…
12
everyone says turn on the advisor in Claude Code. Did anyone check it beyond token burn?
I did, on my own work.
Anthropic's own docs: Opus 5.5 with a Fable 5.1 advisor gained 1.7 points for about 2.1x the cost, "at the edge of run-to-run noise".
1
1
10
Anthropic calls it dreaming: an agent rereads its past sessions offline, checks its memory against the transcripts, and looks for mistakes that repeat.
I end most Claude Code sessions with a retrospective by hand, up to 25 a day. Each one sees only its own session.
It also checks its own work. 2-30 days after a rule lands, if the same correction comes back in 2 later sessions, sonnet decides keep, revise or revert, and has to quote the later session. A stage with 2 take-backs in 30 days pauses itself.
1
3
mapped my health agent onto the five primitives from Anthropic's always-on agents post: inbox, timers, memory, permissions, outbox. it already wakes on cron and when new watch data lands. it has a piece of each, and most of it doesn't survive a restart.
one worker also means one hung claude process stalls everything, so runs get a 10-minute timeout. and unattended runs still had Write by default. now each job gets read tools plus an explicit grant, and a follow-up can't schedule another follow-up.
1
4
the check: asked the bot a question, kill -9 mid-answer. pm2 restarted it, the event went back to pending, one reply came 37 s later. the post: claude.com/resources/article…
5




