慣性聚合 高效追讀感興趣之博客、新聞、科技資訊
閱原文 以慣性聚合開啟

推薦訂閱源

小众软件
小众软件
博客园 - 叶小钗
有赞技术团队
有赞技术团队
大猫的无限游戏
大猫的无限游戏
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
T
Tailwind CSS Blog
Jina AI
Jina AI
量子位
Stack Overflow Blog
Stack Overflow Blog
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
V
Visual Studio Blog
月光博客
月光博客

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 - amitb-quantum/roboapi: The unified API layer for robotics. Connect any robot, any brand, with one SDK. Like Stripe, but for robots. GitHub - manankharwar/fusioncore: ROS 2 sensor fusion SDK: UKF, 3D native, proper GNSS, zero manual tuning. Apache 2.0. Show HN: Wayland Wlroot Hjkl Everywhere Show HN: Codex context bloat? 87% avg reduction on SWE-bench Verified traces GitHub - NoahCristino/llmcat: A simple CLI that transforms your code into clean, structured text for feeding into LLMs. GitHub - actuallyepic/background-computer-use GitHub - h4ckf0r0day/obscura: The headless browser for AI agents and web scraping GitHub - anthonybudd/Express-ts-API-Template: Production-ready minimal REST API boilerplate using Express.js, Sequelize and MySQL. GitHub - molefrog/lilmd: Agent-friendly CLI for reading large Markdown files Show HN: I built a simple site to reduce tool overload and improve focus GitHub - JonathanRosado/claude-anyteam: Native Claude Code teammates, any LLM. Codex today. Gemini, Kimi, GLM, DeepSeek next. GitHub - abi/lilo Show HN: ffmpeg-render-pro – Parallel video rendering with live dashboard GitHub - adam-s/HNswered: Notifies you when someone replies to your Hacker News posts and comments. GitHub - arian-gogani/nobulex: The accountability primitive for AI agents. Cryptographic behavioral commitments with trustless verification. GitHub - Developing-Gamer/roids: Steroids for your AI agents GitHub - nellavio/nellavio: 🚀 Next.js dashboard starter with auth, i18n, 18 pages, 60+ charts and 90+ UI components Spotify – Web Player GitHub - tillahoffmann/cctape: Claude proxy to record all interactions in a local database, allowing you to browse and search sessions, track usage, and let Claude search its own history over MCP. Show HN: Rook, a macOS notes app for developers GitHub - donchuru/mr-links: Chrome extension that shows referenced links above comments on Marginal Revolution assorted links posts GitHub - anubhavgupta/whisper-npu: Speech to text at cursor using NPU. (shortcut -> win+/) SHOW HN: I built a marketplace agency that treats profit as the actual metric GitHub - trycua/cua: Open-source infrastructure for Computer-Use Agents. Sandboxes, SDKs, and benchmarks to train and evaluate AI agents that can control full desktops (macOS, Linux, Windows). GitHub - montanaflynn/headless-terminal: Headless terminal — puppeteer for TUIs (vim/emacs/htop/nethack) with a Go CLI backed by libghostty-vt The Genesis of TurboPentest.com: Bridging the Gap in an AI-Code Explosion Era GitHub - VincenzoManto/Doxa: A YAML-driven multi-agent simulation platform for economic and social systems. It combines LLM-backed agents, market microstructure, relation graphs, and world events behind a FastAPI API and a React client. GitHub - IdreesInc/PokeMesh: Collaborative Pokémon over a decentralized network, no internet required! GitHub - tamnd/python-one: Historical Python source tarballs (1.0.1 through 2.0c1) mirrored from legacy.python.org, extracted and committed at their original release dates. GitHub - dixalex/decision-linter: Decision Linter — like ESLint for your thinking. Claude Code plugin that scores assumptions, runs consider-the-opposite, and outputs judgment memos. GitHub - pitermarx/Virgulas: An Workflowy Inspired Outliner Show HN: A standalone YouTube Music popup for OBS (no plugins required) GitHub - polotno-project/render-tag: Render HTML string into canvas using 2d native API libgoc/bench/README.md at 81798b3dd5e27d7f1e752b6cff0bdf3a95d381b7 · libgoc/libgoc Show HN: Llm.sql – Run a 640MB LLM on SQLite, with 210MB peak RSS and 7.4 tok/s GitHub - RivoLink/leaf: Terminal Markdown previewer — GUI-like experience. [China AI News] Eight Chinese chip families ran DeepSeek V4 on launch day GitHub - michaelaz774/decision-engine: A decision operating system for startup founders, powered by Claude Code. Synthesizes wisdom from 25+ legendary founders and investors into interactive AI-driven decision frameworks. Sheetflow App - Webflow Apps & Integrations Questly — The Third Rail GitHub - crufter/safer: Sleep better while AI agents have shell access. gitrails/README.md at main · maxawzsinger/gitrails Show HN: RustNmap | Hacker News GitHub - 0x0funky/agent-sprite-forge: Agent Skill for generating 2D sprite sheets, transparent PNG frames, and animated GIFs from prompts. Submissions from github.com/darshanfofadiya | Hacker News GitHub - seb3773/ntfs-repair-rfc: A legally defensible, industry-grade blueprint for building an open-source NTFS structural repair engine from scratch. TOSTask - Chrome 应用商店
珊瑚AI/克劳德代码令牌X射线于主 · 珊瑚砖块AI/珊瑚AI
Hiteshjain11 · 2026-05-28 · via Hacker News: Show HN

Stars License: Apache 2.0 Python

逆推尔之本地Claude代码日志一月之踪迹 (~/.claude/projects/*/*.jsonl),察尔之令牌、时辰、耗损所归——并施之于尔。唯阅尔之本地日志,无物外传

Token consumption per task, before vs. after the Opus 4.7 upgrade — ~4× on the same work

所获之实(吾一月之日志——会话百八十一,模型调用二万五千五百六十四次):

  • 不费钱以生,费钱以读. ~29M独特符码→ 4.35B计费 (~150×).每轮重发全~173K符码之境.
  • 账单为84%输入/16%输出—重读同境乃64%之费.
  • 最显赫之线,乃汝所不见者。幽微之理百之八十四为出。六成以上之事,重读之。
  • ~三千三百七十一于Opus 4.7之月,列率已定。缓存已服务输入之98%——重读亦然。犹也账单之六十四分之百。

全文详述(含诸表、缘由、主线程与副代理之别)→ coralbricks.ai/blog/claude-code-token-xray

入门指南

pip install -r requirements.txt   # just tiktoken
python3 token_time_breakdown.py
python3 cost.py
python3 main_vs_sidecar.py
python3 reread_breakdown.py

tiktoken乃OpenAI之词器,非Claude所有,故其词比例之数,可信至±15%,非Claude之确。cost.py所计之账目词数,直自API而来。usage阻且确.

何月之费

cost.py于吾录,价依 Opus 4.7 之列:

条目
入 — 重读文境(缓存读) $2,176 64%
入 — 缓存写 $682 二成
输入——新鮮(未緩存) $二 零成
輸出——推理 $四百二十九 一成三
輸出——工具呼喚加總結 $八十二 二成
總計 $三千三百七十一 百成

缓存乃唯一维系其清明之物——无之,则同工之单复叠矣~二万二千六百三十(~7×)尔之数或有异,此其旨也。试行于尔之器。

脚本

  • token_time_breakdown.py— 标题表:词元(标记输入/输出) 之墙时,每事(推演、行令、书器呼、分司、要言、览索、修文)加之静境行(系统示语加器用、附缀、键入示语、注警)。一过,故符与时恒。推演不存明文(唯存密钥之章),故以减法得之:output − tool_calls − summaries。时由事刻重构。
  • cost.py — 计价之符,总其数(缓存读取/缓存写入依TTL/新鲜输入/输出),依Opus 4.7之价目,兼无缓存之反事实.
  • main_vs_sidecar.py — 分人主之主线与所生之副使(其日志录于嵌套*/subagents/*.jsonl);报计价之符,依模型之混合,缓存命中之率,每使之回合(主线依会,副使依侧),及其成本各,并合其总数。
  • reread_breakdown.py — 每次活动之累积输入:重演每场会话之情境生长,以示每类情境重读之际所费几何。报uniquere-read之每活动符数(推演为最大重读行)。重演之规模,依实测计费输入(确);每活动之细分,乃模型也。

慎之。

  • 一人一月一机——非为标尺。Claude Code 动态流转,故汝之分异焉。此即其旨:当于汝机而试之。
  • 世代之隙,亦含模型预览其境而书之。Bash之时,实为执行(命自允),然背景运行或别终端之码,不与焉。
  • 系统提示行,据各会话首缓存写入而估之。

此有益乎?

若此能助尔明察尔之Claude Code令牌、时辰、耗费之所归,请⭐此库也— 之助他人得见。好奇君之重读分享将成何。

許可

Apache 2.0 — 查看存储库許可證