webkubor

Harnessweight — Development skill for Claude Code

Development community

给网关后面的每个 Agent harness 称重:输入 token、缓存命中、失败率、每轮重发的工具定义体积.

How to install Harnessweight

This entry records only its repository, not the path inside it, so there is no exact command to give. Open webkubor/harnessweight and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Harnessweight does

给网关后面的每个 Agent harness 称重:输入 token、缓存命中、失败率、每轮重发的工具定义体积。已收录 magpie 社区插件 · Weigh every agent harness behind your magpie gateway.

Alternatives in Development

  • Reason Network — Reason Network: your team's coding agents, talking to each other 1.4k ★
  • Waggle — Attributed, resolvable artifact references for agent handoffs — a ~30-byte token instead of pasted context 637 ★
  • MiniCode Architecture — 简体中文 This document describes the lightweight architecture decisions behind mini-code 388 ★

README

HarnessWeight

HarnessWeight

给网关后面的每个 agent harness 称重:读了多少 token、命中多少缓存、失败多少次、每轮重发多重的工具定义。

magpie 社区版 版本 MIT 零运行时依赖 只在本机运行 中文 / English

中文 · English

![HarnessWeight 浅色主题](docs/preview-light.png)

https://github.com/user-attachments/assets/866f1b60-b5c6-4128-8828-15646b10a32e

▶ 30 秒演示:结论 → Agent 卡片 → 排序 → 详情 → 切 30 天 → 深色。

截图是作者本机 7 天的真实用量,在和 magpie 一样的沙箱框架里实拍,没有模拟数据。Agent 名字和图标与 magpie 自己显示的一致。卡片上的小图标是该 Agent 在这段时间实际用到的模型,超出排序的部分渐隐。

它回答什么问题

你同时用 Claude Code、Codex、zcode、DSH、Cursor……都接在同一个 magpie 网关上。magpie 自带的用量页按**模型**统计;HarnessWeight 按 **agent harness** 统计,回答四个问题:

  • 谁在花你的 token:每个 Agent 读进模型的总 token,其中多少命中缓存、多少按原价。
  • 谁每次读得最多:每次请求的平均输入。上下文越大,越贵。
  • 谁最不稳:失败率、首字延迟和总耗时(p50)。失败的请求也可能消耗 token。
  • 谁的工具清单最重:Agent 每轮都会把整份工具