Agent Crop — AI skill for Claude Code
给 AI 编程助手一根马鞭:本地 trace 记录时间去向,推它反思、自证优化.
How to install Agent Crop
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open oriliz/agent-crop and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Crop does
给 AI 编程助手一根马鞭:本地 trace 记录时间去向,推它反思、自证优化。Local tracing for AI coding agents — where the time actually goes. DSH / Claude Code / Codex.
Alternatives in AI
- Axonhub — ⚡️ Open-source AI Gateway — Use any SDK to call 100+ LLMs 3.2k ★
- Rb Setup — First-time setup 1.3k ★
- Iai Personal Memory Engine — A cyber brain for your AI 866 ★
README
Agent Crop

*「我的 Token 啊!!!」*
**Agent Crop 是给 AI 的一根马鞭:催它交活,逼它复盘,让它自己越用越顺。**
测量 → 归因 → 优化 → 验证 · 本地 JSONL · 不上传
[](https://github.com/oriliz/agent-crop/actions/workflows/ci.yml) [](LICENSE) [](#安装与卸载) [](#它不做什么)
[方法论](#从传统性能优化到-agent-工作范式优化) · [案例分析](#案例分析) · [安装](#安装与卸载) · [面板](#面板v0还很简陋) · [它记了什么](#它记了什么在哪记)
你的 AI 编程助手跑了一个下午,交回来一堆东西——能用的没几样。
它说「抱歉,这个拖得有点久」。
你不知道那些时间去哪了。你不知道是它慢,还是你在想。
**Agent Crop 就是来回答这个问题的。**
从传统性能优化到 Agent 工作范式优化
后端做性能优化靠 Trace:一次请求一条,找到最贵的那一段,改完再用同一个指标测一遍。 这套东西在大厂跑了二十年,撑过双十一,也撑过每一次线上事故复盘。
职场里也有同一套结构,叫**复盘**:做了什么、时间花在哪、下次怎么改。
Agent Crop 只是把对象换成了「人和 AI 一起干活」:

上图是一次请求的 span,下图是一次工作的时间去向。四步不变:测量、归因、优化、验证。
马鞭做什么
- 防跑偏、防摸鱼。 Agent 长时间没回话、没给出结论的时候,鞭策它想一想:是不是走错了路。
- 即刻反思。 被鞭策之后,要求它在当下的环境里找一找,还有没有能挽回的时间和方法。
- 复盘,自驱优化。 通过周报、月报做自我反思,自己沉淀方法论。
三件事凑齐才叫自驱,不然只是被催。
案例分析
我们有个环境部署工具,子命令很多。AI 每次用都得先 `help` 一层层翻,再挨个试——对应的 Skill 写得不完整。
Agent Crop 把这件事记了下来:同一个命令反复翻 help、反复试错,归到 `tool-misuse` 这一类。
这条记录被推回给 AI,让它即刻反思——不是模型不会用,是这个 Skill 缺了最关键的一页。它据此补了一份常用 Skill。
同一个动作,下一次:**10 分钟,变成 30 秒**。
这是我个人使用中的一个成果,它确实帮到了我。但它还不是一个完善的测评——这个工具还在开发中,请大家多多包容。不过我相信,这样一套方法论是行之有效的。
同样的症状还有:没问清楚就开始干(`spec-drift`)、做不到也不停手(`no-evidence`)、串行等待(`serial-wait`)。一共九类,见 [docs/EVENTS.md](docs/EVENTS.md)。
Crop 是如何工作的
一句话:它只在几个点上出手。
它的核心就一句:提醒 → 反思 → 改工作方式 → 再干。
把一次对话从左到右摊开:

- 起点:会话开始。探针先往
Related Skills
Opencode Langsmith Tracing
LangSmith tracing plugin for opencode — captures sessions, LLM calls, tool calls, reasoning, and context compa
Rius SDK TypeScript
OpenTelemetry-native agent observability: trace every LLM call, tool call and agent step, with cost per call,
Token Trace Kit
Tap-to-token tracing for hybrid on-device + Claude AI features in Swift 6: W3C propagation, device-side tail s
Token Watcher
⏱ Token Watcher — local real-time token usage & quota dashboard for AI coding agents (Claude Code, ccmr, Codex
Echolot
Turns a huge Android trace into 20 rows of facts an AI agent can actually use
Querit Plugins
Official Querit integrations for AI agents: real-time, cited web search and page fetch for Pi, DSH, OpenCode,
Related Agents
Compile-time Profiling
clang++ -ftime-trace -ftime-trace-granularity=1 file.cpp chrome://tracing # Load the JSON bloaty binary -d sym
Codex Debugger
Root-cause a failing test, crash, stack trace, or misbehaving feature by delegating the investigation to OpenA
Part 13: Memory Bridge (Give Coding Agents Your Brain)
When you spawn Codex or Claude Code to build something, they start blind. They don't know your architecture de