llm-echo 0.5

王者归来已是老翁AI 前沿📡 Simon Willison's Weblog2026-10-19279 阅读💛 275 收藏

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

文章评论(12)

龙文博27 天前

刚好最近在找这方面的资料,太及时了。

回复
雪影27 天前

不错不错,已加入书签。

回复
一叶知秋27 天前

路过

回复
南山客27 天前

赞同,实践出真知。

回复
杨丽华27 天前

收藏了,以后慢慢研究。

回复
墨沐雨27 天前

作者写得真不错,学到了不少。

回复
月沐雨27 天前

收藏了,以后慢慢研究。

回复
一个橘子27 天前

实测过类似工具,作者说的基本属实。

回复
一个橘子27 天前

实话,说的不明不白

回复
白向阳27 天前

支持作者,持续关注中。

回复
星知秋27 天前

收藏了,以后慢慢研究。

回复
雪知秋27 天前

整理得太全面了,省了我不少时间。

回复