惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
Cloudbric
Cloudbric
C
CERT Recently Published Vulnerability Notes
G
GRAHAM CLULEY
V
Vulnerabilities – Threatpost
C
Cisco Blogs
T
Tenable Blog
P
Privacy International News Feed
T
The Exploit Database - CXSecurity.com
I
Intezer
AWS News Blog
AWS News Blog
IT之家
IT之家
博客园 - 司徒正美
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - 【当耐特】
The Hacker News
The Hacker News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Spread Privacy
Spread Privacy
S
SegmentFault 最新的问题
博客园 - Franky
人人都是产品经理
人人都是产品经理
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
V
Visual Studio Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hacker News: Front Page
Latest news
Latest news
Scott Helme
Scott Helme
腾讯CDC
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
A
Arctic Wolf
S
Securelist
雷峰网
雷峰网
The GitHub Blog
The GitHub Blog
Project Zero
Project Zero
Google DeepMind News
Google DeepMind News
P
Palo Alto Networks Blog
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
云风的 BLOG
云风的 BLOG
Security Archives - TechRepublic
Security Archives - TechRepublic
The Last Watchdog
The Last Watchdog
WordPress大学
WordPress大学
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 最新话题
S
Schneier on Security
NISL@THU
NISL@THU
Jina AI
Jina AI
M
MIT News - Artificial intelligence

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - vnmoorthy/ccmeter: Local-first spend & cache-efficiency dashboard for Claude Code. Reads ~/.claude/projects, tells you exactly what's costing you. No telemetry, no API key.
vnmoorthy · 2026-04-30 · via Hacker News: Show HN

ci npm license node

Local-first spend & cache-efficiency dashboard for Claude Code. Reads ~/.claude/projects, tells you exactly what's costing you. No telemetry, no API key, no setup.

npx ccmeter

That's it. ccmeter parses the JSONL session files Claude Code already writes to disk and gives you a five-second answer to "why did my bill jump?".

ccmeter terminal demo: summary, cache health, recommendations, dashboard help

Real numbers from a heavy user's ~/.claude/projects, with project names anonymized via --anonymize. Run ccmeter on your own logs to see your version of this.


Why this exists

In early March 2026, Anthropic shortened Claude Code's default prompt-cache TTL from 1 hour to 5 minutes — quietly, with a staggered rollout that landed on different users on different days. Anthropic's official position is that this should not increase costs because most cached context is one-shot anyway. User analysis of session JSONLs disagrees: typical impact is a 30–60% bill increase with no change in usage.

The Anthropic Console gives you one number per day. What you need is a per-session, per-project, per-cache-bust breakdown so you can:

  • Verify which side of that argument your data falls on.
  • Find which sessions are the new expensive ones.
  • Apply the specific behavioral fix that recovers most of the $.

ccmeter is that breakdown. It runs against the data already on your machine, surfaces the patterns that are eating your spend, and recommends concrete fixes ranked by estimated monthly savings.

Install

# fastest — no install
npx ccmeter@latest

# permanent
npm i -g ccmeter
ccmeter

Requires Node 20+. Works on macOS, Linux, Windows. Reads ~/.claude/projects by default — set CCMETER_LOG_DIR if your logs live elsewhere.

What you can do in 60 seconds

ccmeter                             # summary: spend, cache hits, today's biggest leak
ccmeter recommend                   # personalized fixes ranked by $/mo saved
ccmeter compare                     # last 7d vs prior 7d — quantify what changed
ccmeter tools                       # which tool calls cost the most (Bash, Read, …)
ccmeter cache                       # cache hit rate trend + April-2 TTL-change callout
ccmeter whatif --swap opus->sonnet  # simulate model swaps on YOUR data
ccmeter dashboard                   # local web UI, no network
ccmeter share                       # copy-pasteable Markdown card for Reddit / Twitter
ccmeter tag $SID "auth-refactor"    # tag a session, then group by tag in any report
ccmeter live                        # full-screen ticker — record a gif of this

Don't have Claude Code installed yet but want to see what ccmeter looks like? Try the synthetic-data demo: ccmeter --demo.

Commands

command what it does
ccmeter one-screen summary (default — same as ccmeter summary)
ccmeter sessions sortable table of sessions: cost, duration, busts, tag
ccmeter cache cache hit rate, bust count, $ wasted on busts, April-2 callout
ccmeter recommend personalized cost-cutting rules sorted by monthly savings
ccmeter tools per-tool cost breakdown — answers "which subagent ate the budget"
ccmeter compare week-over-week (or any two-period) deltas across all metrics
ccmeter whatif simulate model swaps & cache TTL scenarios on YOUR data
ccmeter prompts rank assistant turns by output-tokens-per-dollar
ccmeter share shareable Markdown stat-card or social SVG (paths redacted)
ccmeter live full-screen ticker — each turn lands as it happens
ccmeter dashboard local web UI on 127.0.0.1:7777 (no network egress)
ccmeter export dump full analysis as json/csv/md (paths redacted by default)
ccmeter --anonymize ... replace project paths/ids with stable anonymous labels — safe for screenshots & demos
ccmeter watch one-line live tail today's spend (perfect for tmux/PS1)
ccmeter prompt --budget 10 one-line, color-coded $ for your shell prompt
ccmeter metrics Prometheus exposition — scrape into Grafana
ccmeter notify desktop notification when projected spend nears your budget
ccmeter tag <id> <label> annotate a session for grouped reporting
ccmeter budget --set 200 set & track a monthly budget
ccmeter digest --webhook URL post a weekly digest to Slack/Discord
ccmeter merge a.json b.json combine analyses from multiple machines
ccmeter pricing print the active pricing table (built-in + your overrides)
ccmeter reconcile diff ccmeter's local total vs Anthropic's authoritative usage
ccmeter selftest validate the parser/pricing against your real data
ccmeter doctor diagnose your setup
ccmeter check-privacy exhaustive list of every file ccmeter would read
ccmeter clear-cache drop the parsed cache at ~/.cache/ccmeter

Run any command with --help for full options.

What you'll see

ccmeter — last 30 days
────────────────────────────────────────────────────────────────────────────────
Total spend       $284.10   (↑ +43% vs prior period)
Daily average     $9.47     ≈ $284.10/month
Sessions          127
Cache hit rate    47.3%
Cache busts       89        wasted $24.18

Daily spend  ▁▂▂▃▅▇█▆▄▅█▇▆▄▃

Suggestions:
  ● Idle sessions are busting your cache 41× per week (save $43/mo)
  ● 6 long sessions (>90 min) bled cache value (save $18/mo)
  + 4 more — run `ccmeter recommend`

Privacy

Default ccmeter behavior:

  • Reads only files under ~/.claude/projects (the Claude Code session log directory).
  • Writes a gzipped parsed-result cache to ~/.cache/ccmeter.
  • Sends nothing. No analytics, no telemetry, no ping-home, no npm-bundle-tracker.

The two commands that touch the network — ccmeter digest (POSTs to your webhook) and CCMETER_CHECK_UPDATES=1 (queries npm registry) — are both off by default and opt-in only. Run ccmeter check-privacy for an exhaustive enumeration of every file ccmeter touches.

ccmeter check-privacy

The parser source is one file: src/core/jsonl/reader.ts. Audit-friendly under 5,000 lines total.

How it works

flowchart LR
  A[~/.claude/projects/*.jsonl] -->|stream parse| B[lenient Zod schema]
  B --> C[disk-cached parse results<br/>~/.cache/ccmeter]
  C --> D[sessionize<br/>cost / cache-bust detect]
  D --> E[aggregate by day/project/model]
  E --> F[recommendation rules]
  F --> G[CLI table + sparkline]
  F --> H[localhost dashboard]
  E --> I[json / csv / md export]
Loading

The recommendation rules each live in their own ~30-line file under src/core/analysis/recommend/rules/. To add one, copy _template.ts, implement the Rule function, and register it in index.ts. PRs are warmly invited.

Pricing accuracy

ccmeter ships a built-in pricing table verified against Anthropic's public pricing on 2026-04-25. Anthropic adjusts prices regularly. To override, drop a JSON file at ~/.config/ccmeter/pricing.json:

{
  "claude-sonnet-4-6": {
    "input": 3.0, "output": 15.0,
    "cache_5m_write": 3.75, "cache_1h_write": 6.0, "cache_read": 0.3
  }
}

Values you set override the built-in. Other models continue to use built-in defaults.

FAQ

Is this safe to run? Yes. Read src/core/jsonl/reader.ts — it opens files for read, JSON.parses each line, and never executes any of the contents. There is no network call in the default path.

Does this work with the Claude Code Pro subscription, or only API users? Both. The JSONL format is the same; ccmeter calculates "what this would cost on the API" for both audiences. Subscription users get a useful "if I were paying API rates I'd owe $X" number plus the cache/efficiency analysis.

My bill on the Console doesn't match ccmeter — why? Three common reasons: (1) Console aggregates across all your API usage, ccmeter only sees Claude Code; (2) Console has billing-cycle latency; ccmeter is real-time; (3) pricing tables drift — see "Pricing accuracy" above. If you see a >5% discrepancy after accounting for those, run ccmeter selftest and open an issue with the redacted output — fixing it benefits everyone.

Are the dollar numbers exact? They're as exact as the public pricing table allows. Run ccmeter pricing to see every model's input / output / cache rate ccmeter is using. If you have a private rate (enterprise contract, batch API, AWS Bedrock), drop a JSON file at ~/.config/ccmeter/pricing.json and ccmeter will use your numbers instead.

What's the deal with the cache TTL? Anthropic shortened Claude Code's default prompt-cache TTL from 1 hour to 5 minutes in early March 2026 (rollout staggered across users; tracked in anthropics/claude-code#46829). Anthropic says this should not increase costs. User analysis says it does, by 30–60% for typical heavy use. ccmeter computes the bust cost from your own data so you can settle that argument with numbers, not opinions.

Where do my logs live? Default ~/.claude/projects/. Override with CCMETER_LOG_DIR=/path/to/logs or --log-dir.

Can I use ccmeter in CI? Yes — ccmeter export --format json produces a stable schema you can pipe into anything. ccmeter merge combines per-machine exports for team-level reports. There's a ready-made GitHub Actions workflow template at docs/github-action-template.yml that posts Claude Code spend as a sticky PR comment.

Does the dashboard send any data anywhere? No. The HTTP server binds to 127.0.0.1 only and refuses non-localhost requests. The bundled SPA only fetches /api/* from that same local server. There's a per-launch bearer token in the URL so other apps on your machine can't snoop.

Roadmap

Already shipped in 0.2:

  • Per-tool-call cost breakdown (ccmeter tools)
  • Session tagging via ccmeter tag <session-id> <name>
  • Prometheus exposition for both CLI and dashboard
  • Two-period comparator (ccmeter compare)
  • Shareable Markdown / SVG stat cards (ccmeter share)
  • Full-screen live ticker (ccmeter live)

Up next, ranked by "would the average heavy user actually want this":

  • Per-prompt quality scoring ("which prompts gave you the most output per dollar")
  • Desktop notification (macOS / Linux) when projected monthly spend exceeds budget
  • iCal export of session timelines (for billable-time tracking)
  • Native macOS menu-bar app
  • VS Code / JetBrains extension that surfaces today's spend in the status bar
  • Integration with Anthropic's /v1/usage API for billing-period reconciliation
  • "Best practice" comparator — anonymized aggregate of community usage (opt-in)
  • Python and Go ports of the core analyzer (so users can pipe it into existing tooling)
  • Per-team aggregation server (opt-in, self-hosted) for engineering managers
  • Auto-tagging by inferred PR/feature using git branch context at session start
  • Cohort / retention analytics for org-level rollouts
  • SaaS-free, fully local "AI Coach" that watches your sessions and warns about $-anti-patterns in real time

Contributing

git clone https://github.com/vnmoorthy/ccmeter
cd ccmeter
npm install
npm run dev          # rebuilds CLI on save
npm run dev:web      # vite dev server for the dashboard
npm test

Recommendation rules, pricing-table updates, and parser improvements are all great PRs. The whole codebase is intentionally under 5,000 lines so a contributor can read it in a sitting.

License

MIT — see LICENSE.


If ccmeter saves you money, please star the repo — it helps other people find it. If you have a cost pattern that ccmeter didn't catch, open an issue with a redacted export and we'll add a rule.

Found a bug, hate the colors, or want a recommendation rule of your own? PRs of any size are welcome. The codebase is intentionally small and every part is documented — the goal is for the median Claude Code user to be able to read src/core/jsonl/reader.ts, trust what they see, and start hacking.