Mehdi Akiki

Posts tagged "claude-code"

  • Published on
    I gave Claude Code six small Rust tasks, 36 runs in total, with no instruction file, with a generated AGENTS.md, and with a short hand-written one. Success barely moved. Cost and behavior moved a lot: on average, the generated file made a run about 56 percent more expensive. It made the agent run linters and add tests in every run, and reformat an untouched file in half of them.
  • Published on
    I ran one extraction prompt on Haiku 4.5 and 5.5, and on Sonnet 4.6 and 5.5, with a strict JSON validator. The answer format changed completely, two labels moved, the same email took about 20 percent more tokens, and Sonnet 5.5, a third cheaper per token, was only 10 percent cheaper per email.
  • Published on
    I sent a constructed 6,900-token support policy with 18 questions through claude -p and read the cache fields of every call. Caching cut the reported cost from 0.025 to 0.011 USD. One timestamp inside the policy raised it to 0.041 USD, more than with no cache at all.
  • Published on
    A router sends each task to a cheap model first and escalates when a check fails. I computed one from real runs on 40 Rust fixes and compared it with one strong model at low effort. It would never have escalated, and the reason was the check, not the models.
  • Published on
    Price per token said Haiku is 40 times cheaper than Opus. My 40 Rust fixes gave other numbers. This is how I compute cost per completed task, with failed attempts, retries, escalation and the fixed overhead of every call.