llm-echo 0.5 发布:LLM 调试插件新增工具调用与推理 token 计数
Release: llm-echo 0.5
Simon Willison 发布 LLM 调试插件 llm-echo 0.5,该插件提供一个不涉及 LLM 的 echo 模型,只回显输入的提示词。新版本更新了模拟 token 用量统计,将工具调用、系统提示词和推理 token 纳入计算。示例中 `llm -m echo 'hi there' -o thinking 1 --usage` 显示 2 个输入 token、24 个输出 token。
正文
当前显示原文,中文全文译文尚未就绪。
#smallhead
18th October 2026
Release llm-echo 0.5 — Debug plugin for LLM providing an echo model
I'm working towards a new LLM release, and testing PRs caused me to revisit the llm-echo debug plugin. This plugin provides a "model" which doesn't involve an LLM at all - it just repeats back the prompts that have been fed to it. The new release now updates the simulated token usage counts to take tool calls, system prompts, and reasoning tokens into account.
Example usage:
uvx --with llm-echo llm -m echo 'hi there' -o thinking 1 --usage
Outputs:
First I consider the prompt, then I decide what to say. { "prompt": "hi there", "system": "", "attachments": [], "stream": true, "previous": [] } Token usage: 2 input, 24 output
Posted 18th October 2026 at 11:16 pm
Recent articles
Hello Python 3.15, goodbye 3.10, and now I can use 3.11 - 12th October 2026
A new feature for my blog, built using my voice - 9th October 2026
Claude Haiku 5.5 - 7th October 2026
We're going to need default hard budget caps on pretty much everything - 3rd October 2026
This is a beat by Simon Willison, posted on 18th October 2026.
llm 641
Monthly briefing