frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Claude Token Analyzer: a token "screen-time" report

1•danmeier•2h ago
Everyone is talking about token spend, but not what we actually spend tokens on. I’ve always found it interesting to track my time across different tasks to challenge whether I was working on the right things.

Nowadays, I spend around 95% of my day in the Claude desktop app, so “where did my time/tokens go?” basically means “what did I do in Claude?”*

Turns out it’s all already on your disk. Every Claude Code / Cowork session is a JSONL transcript with per-message usage blocks: input, output, cache creation, cache read, and timestamps.

Run it from the terminal:

  curl -fsSL 'https://gist.githubusercontent.com/danmeier2/064f7db8c0867dd6331007ba43f0e6fe/raw/claude-token-analyzer.py' | python3 -
Run the snipped to get an overview of what you did and when based on your Cowork and Claude Code history. Example output:

Claude Token Analyzer · 2026-06-15 · 5 threads

  Claude Token Analyzer  ·  2026-06-15  ·  5 threads

  ╭────────────────┬────────────────┬────────────────┬────────────────╮
  │ Spend          │ Tokens         │ Active         │ Cache-read     │
  │ $39            │ 27.5M          │ 1.8h           │ 91%            │
  ╰────────────────┴────────────────┴────────────────┴────────────────╯

   when active   08:00               09:00                10:00                11:00               12:00
     Claude Code                                                         
   Claude Cowork                                             

  Claude Code  —  $36.56  ·  3 threads
       $22.07  17.9M  Claude usage report for 2026-06-14
                $9.29   7.6M  LinkedIn data export analysis
                  $5.19   1.0M  Productization plan

  Claude Cowork  —  $1.99  ·  2 threads
                     $1.15   791K  YouTube video summary
                     $0.84   156K  Picture location identification

*ccusage doesn’t see my Claude Code sessions because they’re stored in ~/Library/Application Support/Claude/local-agent-mode-sessions/.

Tired of chaos, investors retreat from oil market at record pace

https://www.reuters.com/business/energy/tired-chaos-investors-retreat-oil-market-record-pace-2026...
1•mriet•44s ago•1 comments

TerraWatch,GitHub App that scans Terraform PRs and posts exact fix in comment

https://terrawatch.dev
1•alejny•51s ago•0 comments

Is it feasible to self host OSS EU productivity suite? [A Mijn Bureau Review]

https://techstackups.com/articles/is-it-feasible-to-self-host-an-open-source-eu-sovereign-product...
1•sixhobbits•3m ago•0 comments

The WWII Invention That Changed Simulation Forever

https://www.halldale.com/defence/the-forgotten-wwii-invention-that-changed-simulation-forever
1•e12e•3m ago•0 comments

B-52 bomber crashes shortly after takeoff at California's Edwards Air Force Base

https://www.cnn.com/2026/06/15/us/b-52-crash-edwards-california
2•bluedino•5m ago•0 comments

Open Sourcing dbt's latest feature

https://github.com/orchestra-hq/sao-paolo
1•HugoLu88•6m ago•1 comments

The UKs Smartphone Nude Filter Plan Is Insane

https://worldofmatthew.com/blog/nudefilter/
1•worldofmatthew•7m ago•0 comments

'The Phoenix' magazine to cease publication

https://www.independent.ie/business/irish-business/the-phoenix-magazine-to-cease-publication/a/15...
2•austinallegro•8m ago•0 comments

Show HN: Transpilatron – an AI tool that converts Python code into C binaries

https://github.com/NoodlixProject/transpilatron
2•johnnytech•9m ago•0 comments

Commander Keen Games (free book)

https://forgottenbytes.net/
2•tzury•10m ago•0 comments

Clojure is almost as fast as C (with some help)

https://ertu.dev/posts/4_clojure-reaching-c-performance/
2•ertucetin•11m ago•0 comments

The Grain of Thought

https://asker.dev/grain-of-thought
2•caminmccluskey•11m ago•1 comments

I built a chess trainer. Looking for beta testers

https://chesstrain.net
2•Blaskooo•12m ago•0 comments

Anthropic pauses credit change for Claude Code

4•fabianlindfors•12m ago•0 comments

Show HN: All 194 YC Spring 2026 startups scored from public data

https://fluenta.space/resources/reports/yc-spring-2026-batch-scored
2•OlegIvanov•12m ago•0 comments

US battery manufacturing output continues to break records

https://fred.stlouisfed.org/series/IPG33591S
4•epistasis•12m ago•0 comments

We built a PaaS that survives AWS region outages by default

https://platform.kubernetix.ai
2•iamafounder•12m ago•0 comments

Show HN: Does a vibe leak? Fine-tuning an LLM on an attitude it never states

https://github.com/leo-dcfa/ai-latent-bias-transfer
2•neurodivergent•14m ago•0 comments

Kedgr – AI code scanner that never stores your source code

2•kedgr•15m ago•0 comments

JWT Decoder

https://fusionauth.io/docs/dev-tools/jwt-decoder
2•mooreds•15m ago•0 comments

Gen Z Doesn't Trust Anyone

https://www.graphsaboutreligion.com/p/gen-z-doesnt-trust-anyone
3•toomuchtodo•15m ago•2 comments

June 2026 Stealer Logs Data Breach

https://haveibeenpwned.com/Breach/June2026StealerLogs
2•sanqui•16m ago•0 comments

Show HN: Macro – unified system for email, chat, tasks, docs, agents (AGPL/Rust)

https://github.com/macro-inc/macro
4•jbecke•16m ago•0 comments

Show HN: We built an 8-bit CPU as 2nd year EE students

https://github.com/c0rRupT9/STEPLA-1
3•CorRupT9•17m ago•0 comments

AI and Amateurism

https://pluralistic.net/2026/06/15/vernacular/#hypercardian
3•samizdis•23m ago•1 comments

UK's social media age ban requires an identity layer. That changes everything

https://bbs.splinternet.org/manifesto.html
1•arfuzzum•24m ago•0 comments

Serendipity: The Role of Luck in Your Life and Career

https://ritholtz.com/2026/06/recognize-the-role-of-luck-in-your-life-and-career/
2•zdw•24m ago•0 comments

Price drop notice from Google re. One/AI service

https://9to5google.com/2026/06/08/google-ai-plus-price-drop/
1•imperialdrive•24m ago•1 comments

I Love the Computer

https://michaelenger.com/blog/i-love-the-computer/
12•speckx•26m ago•0 comments

What job interviews taught me about Kubernetes

https://notnotp.com/notes/what-job-interviews-taught-me-about-kubernetes/
2•chmaynard•28m ago•0 comments