{"repo":"epsilla-cloud/clawtrace","free":true,"listed":false,"github":"https://github.com/epsilla-cloud/clawtrace","clone":"git clone https://github.com/epsilla-cloud/clawtrace.git","description":"Make your OpenClaw agents better, cheaper, and faster.","language":"TypeScript","stars":45,"topics":["agent-observability","ai-agent","ai-agent-observability","ai-evaluation","ai-observability","automomous-agents","claude-harness","openclaw","openclaw-plugin","openclaw-skills"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"Cost-aware tracing &amp; skill distillation for LLM agents Website &nbsp;·&nbsp; Docs &nbsp;·&nbsp; Paper &nbsp;·&nbsp; Ask Tracy &nbsp;·&nbsp; Quickstart --- Paper ClawTrace: Cost-Aware Tracing for LLM Agent Skill Distillation &nbsp;—&nbsp; Boqin Yuan, Renchu Song, Yue Su, Sen Yang, Jing Qin · arXiv 2604.23853 Skill-distillation pipelines learn reusable rules from LLM agent trajectories, but they lack a key signal — how much each step costs . ClawTrace records every LLM call, tool use, and sub-agent spawn during a session and compiles it into a TraceCard : a 1.5 kB YAML summary with per-step USD cost, token counts, and redundancy flags. On top of TraceCards, CostCraft produces three patch types — preserve , prune (with counterfactual evidence), and repair — that improve agent skills without inflating cost. Capture → Compile → Distill. ClawTrace instruments the agent (Substrate), compiles each session into a TraceCard (IR), and merges TraceCards into evolved skills via a preserve / prune / repair typology (Methodology). 📄 Read the paper: &nbsp;·&nbsp; BibTeX --- Why this exists My OpenClaw agent burned 40× its normal token budget in under an hour. Root cause: it was appending 1,500 messages of history to every LLM call. By the time I noticed, it had already spent a few dollars on what should have been a 3-cent task — and I couldn't see it from logs, because OpenClaw flattens everything into a wall of JSON. The loop was invisible. ClawTrace was built after that incident, and ","default_branch":null,"files":null,"tree":[],"storefront":"/r/epsilla-cloud","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/epsilla-cloud/clawtrace/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}