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

推薦訂閱源

Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
博客园 - 叶小钗
MyScale Blog
MyScale Blog
V
Visual Studio Blog
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
I
InfoQ
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
雷峰网
雷峰网
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor GitHub - GenAI-Gurus/awesome-eu-ai-act: Curated tools, official sources, OSS, templates, and guides for EU AI Act compliance. Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims IatroBench: Pre-Registered Evidence of Iatrogenic Harm from AI Safety Measures What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders How to Switch AI Chatbots and Why You Might Want To GitHub - MattMessinger1/agentic_refund_guardrail: Safe refund policy layer for AI agents — Python + TypeScript. Same behavior, shared tests. Adam/papers/emergent_values_whitepaper.md at master · strangeadvancedmarketing/Adam Ask HN: How do you stop playing 20 questions with your AI coding tools How far can automation and AI support psychotherapy? - @theU GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits A Mac Studio for Local AI — 6 Months Later A History of the Early Years of AI at the University of Edinburgh Why AI Coding Tools Still Feel Stuck on Localhost MSN AI Datacenters Are Becoming Strategic Targets twitter.com Penn Researchers Use AI to Surface Unreported GLP-1 Side Effects in Reddit Posts Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 AI models are terrible at betting on soccer—especially xAI Grok GitHub - xialeistudio/echoic GitHub - HimashaHerath/github-dev-wrapped: AI-powered weekly GitHub activity reports deployed to GitHub Pages
GitHub - peterxcli/ccost: 将本地AI编程会话日志转化为可搜索终端界面,以成本为视角。
peterxcli · 2026-05-25 · via Hacker News - Newest: "AI"

须臾间寻旧《古文渊》与克劳德代码会话,察其耗符之巨者。

ccost化本地AI编程会话之录为可索之终端界面,具成本之镜。用此以追索旧时之提示,检视昂贵之运行,明会话、模型、网搜之呼召何者耗汝之资。

codex-cost-demo.mov
brew install --cask peterxcli/tap/ccost
ccost

何故用之?

  • 觅会以正谬、探API或遇良错之会。
  • 会以估费、符、时、模、网索、会号或首问序之。
  • 览Codex与Claude Code之志,毋须上载符、径、栈迹或源境。
  • 持起速,以存索之索,唯索改之文。

所支源

默认路径
典籍 $CODEX_HOME/sessions,或~/.codex/sessionsCODEX_HOME未设定
克劳德代码 ~/.claude/projects
自定义JSONL目录 ccost --sessions /path/to/jsonl/sessions

安装

brew install --cask peterxcli/tap/ccost

升级:

brew update
brew upgrade --cask ccost

其他安装路径尚在规划中:

  • cargo install ccost
  • cargo binstall ccost
  • Linux发布件
  • Shell安装脚本

开启默认之Codex会话目录:

ccost

明择其源:

ccost --codex
ccost --claude

用自选之会话目录:

ccost --sessions /path/to/jsonl/sessions

于何时用之……

寻旧日之修补

尔忆曾询Codex或Claude Code于JWT refresh,然忘其所属之项目或会话。

/,输入:

JWT refresh

寻昂贵之会

依价排序,察何程用费最多

按:

s

至排序成cost

稽核重于网搜之会

依网搜排序,觅会中搜索调用助估之程

私隐

ccost首在本地。

  • 无需API密钥
  • 无遥测
  • 无网络调用
  • 无上传
  • 会话JSONL文件,乃真源所在。
  • 缓存文件乃暂存之物,置于本地。

若检测到缓存格式偏移或损坏,则删除TUI中所显示之缓存文件夹。原会话日志不受修改。

特性

  • 于本地会话日志中全文检索.
  • 前缀匹配,匹配高亮,显见搜索光标.
  • 依总成本、时日、符文、网络检索、模型、会话标识或首引言排序,计其费.
  • Codex与Claude Code之默认设置,兼可定制JSONL会话目录.
  • 内置定价表,兼支持本地JSON之覆写.
  • 可择选--no-web-cost 仅计数的模式。
  • 单作者缓存锁,具读锁与强制写逃逸。

何以速?

  • Rust 终端界面。
  • 永存全文索引。
  • FST 术语索引,于紧缩前缀搜索。
  • 存续梅尔克树与文件监听,故无变之会当复用,有变之会当渐次再索.

/ 入索之式
Enter 返览之式,或览时详略互易
Up / Downj / k 移择
Tab 切换列表/详情焦点
s 下一排序键
S 反向排序方向
r 刷新
Esc 清除搜索或返回
q 退出

选项

ccost [--codex | --claude | --sessions PATH] [--pricing PATH] [--no-web-cost] [--read-only-index] [--force-index]
  • --codex:打开默认的Codex会话目录.
  • --claude:打开默认的Claude Code项目记录目录.
  • --sessions PATH:启一自定之Codex或Claude Code会话目录,其中含JSONL文件。
  • --pricing PATH:载本地定价之JSON覆盖。
  • --no-web-cost:禁网络搜索调用之成本于估量。
  • --read-only-index:不载存搜索缓存而启之。
  • --force-index:无锁而书。唯确认无他TUI运行后乃用。

Pricing

费用者,估焉,本乎令器之用及模数于地会之志。内置之价,涵GPT-5.5、GPT-5.4、Claude Opus/Sonnet/Haiku模系,并网索之常。欲易地表,则用--pricing pricing.json

{
  "web_search_per_1k": 10.0,
  "models": {
    "gpt-5.5": {
      "input_per_m": 5.0,
      "cache_creation_input_per_m": 0.0,
      "cached_input_per_m": 0.5,
      "output_per_m": 30.0,
      "long_context_threshold": 272000,
      "long_context_input_multiplier": 2.0,
      "long_context_output_multiplier": 1.5
    },
    "gpt-5.4": {
      "input_per_m": 2.5,
      "cache_creation_input_per_m": 0.0,
      "cached_input_per_m": 0.25,
      "output_per_m": 15.0,
      "long_context_threshold": 272000,
      "long_context_input_multiplier": 2.0,
      "long_context_output_multiplier": 1.5
    },
    "claude-sonnet-4-5": {
      "input_per_m": 3.0,
      "cache_creation_input_per_m": 3.75,
      "cached_input_per_m": 0.30,
      "output_per_m": 15.0
    }
  }
}

long_context_multiplier犹可,施于诸器,若输入输出之别未详言。cache_creation_input_per_m 可选,默认为 0.0

Benchmarks

Benchmark 之数,当于有名之机,以可复现之数据测之,而后可用为证。docs/github-launch.md 中之发起新清单,备有表可填,待此数备齐而后填之。

此异于何?

Tool 专注
ccusage CLI报告,涉令牌与成本之用,遍及众代理
CodeBurn AI编程工具成本可观测仪表盘
ccost 速捷本地TUI,用于索检与览阅Codex及Claude Code会话,具成本感知排序

蓝图

  • 静态README截图,数据已净
  • GitHub社交预览图像
  • cargo install ccost
  • Linux发布之物
  • 演示装置或ccost --demo
  • JSON/CSV导出
  • 项目级成本概要
  • 光标、OpenCode、Gemini CLI及Goose日志支持
  • 可配置之主题
  • CI中基准测试

贡献之

惠助之至,尤盼新日志源与导出格式之添。详CONTRIBUTING.md

ccost助尔复旧会或明令牌所踪,星标可彰其存续之宜。