News for hackers. Stuff that matters.
Re:Living Dangerously with Claude by simonw on Thursday October 23, 2025 @03:53PM (#45686225)
I ran a cost estimate on the project I describe in https://simonwillison.net/2025/Oct/23/claude-code-for-web-vi... - which was covered by my Claude Max account, but I dug through the JSONL log files for that session to try and estimate the cost if I had been using the API.

The cost estimate came out to 63 cents - details here: https://gistpreview.github.io/?27215c3c02f414db0e415d3dbf978...

Re:Living Dangerously with Claude by jh3 on Friday October 24, 2025 @01:10PM (#45696726)
What are you doing to keep a JSONL per session? Or is this something built in? I’m interested in estimating token costs in this way.
Re:Living Dangerously with Claude by simonw on Friday October 24, 2025 @03:31PM (#45698268)
It's built in - the ~/.claude/projects folder stores the JSONL for 30 days or you can extend the retention time like this: https://simonwillison.net/2025/Oct/22/claude-code-logs/