token-audit
Skill75 starsChanged 5 days agoMITView on GitHub
审计与对比 Antigravity 会话的真实 Token 账单(Input / Output / Cache Read)、检测 Prefix Cache 断层与自动压缩节点(CHECKPOINT)、揪出单次会话最烧额度的 Top 5 步骤,或诊断项目的 AGENTS.md / SKILL.md 肥胖度、MCP 空载底座税与 Antigravity >= 1.5.17 自定义 Agent 4x 扣额雷区。
19 other projects use a version of this.
Adopted by
Most recently taken up by
- estebanmr99/lean-agentstheir own version, first seen Nov 29, 2026
- vtmocanu/skillstheir own version, first seen Nov 25, 2026
- douinc/agent-skillstheir own version, first seen Nov 24, 2026
- kratocz/skillstheir own version, first seen Nov 15, 2026
- swarm-routing/skillstheir own version, first seen Nov 15, 2026
- iaintsaket/how-saket-claudestheir own version, first seen Nov 15, 2026
Used with
Projects with it also use release.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- murphytrueman/design-system-ops★ 197same name
- robritacca-dotcom/rift-ds★ 10same name
- UXLana/design-skills-pack★ 8same name
- lohi-ai/babysit★ 5same name
- estebanmr99/lean-agents★ 4same name
- vtmocanu/skills★ 3same name
- iaintsaket/how-saket-claudes★ 2same name
- ngreenwall/claude-skills★ 2same name
- douinc/agent-skills★ 1same name
- Gaurav890/everything-agentic-engineering★ 1same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- code-skeletonSkill
The file
Files
Antigravity 账单透视、缓存断层与底座税审计指南 (token-audit)
无需消耗任何模型 Token,直接通过本地脚本解析 Antigravity 底层会话日志(transcript_full.jsonl / transcript.jsonl)、项目/全局 MCP 配置与本地自定义 Agent 定义,自动区分不同代际模型的上下文自动压缩水位(三代模型常见约 256K,四代模型推测约 512K),并自动检测 Antigravity CLI >= 1.5.17 自定义 Agent 4 倍扣额雷区。
常用命令
注:若已全局安装
tokless包,可直接运行tokless audit <session|compare|project> ...(兼容agy-audit)。Antigravity 仅向 Hook / MCP 进程注入PLUGIN_ROOT,不会注入到常规run_command终端中,未全局安装 CLI 时请直接使用下方插件路径:
macOS / Linux (bash / zsh)
# 0. 列出最近会话(兼容 antigravity / antigravity-cli / antigravity-ide,支持 --source cli|app|ide|all)
node "$HOME/.gemini/config/plugins/agy-tokless/tools/agy-audit/cli.js" list --source cli
# 1. 解剖单个会话(支持 latest、latest~1、短 ID 前缀或日志路径),查看缓存断层、模型切换型缓存断层归因、最慢步骤 Top 3、MCP 空载继承与 Top 5 烧钱步骤
node "$HOME/.gemini/config/plugins/agy-tokless/tools/agy-audit/cli.js" session latest
# 2. 优化前后双会话 A/B 对比(对比总 Token、Cache Read 滚雪球、缓存命中率、盲读次数与节省比例)
node "$HOME/.gemini/config/plugins/agy-tokless/tools/agy-audit/cli.js" compare latest~1 latest
# 3. 诊断指定项目的常驻规则/Skill 肥胖度、全局/工作区 MCP 底座税,以及本机 agy 版本与自定义 Agent 4x 扣额雷区
node "$HOME/.gemini/config/plugins/agy-tokless/tools/agy-audit/cli.js" project <项目目录路径>Windows (PowerShell)
# 0. 列出最近 agy CLI 会话
node "$env:USERPROFILE\.gemini\config\plugins\agy-tokless\tools\agy-audit\cli.js" list --source cli
# 1. 解剖单个会话(支持 latest、latest~1、短 ID 前缀或日志路径),查看缓存断层、模型切换型缓存断层归因、最慢步骤 Top 3、MCP 空载继承与 Top 5 烧钱步骤
node "$env:USERPROFILE\.gemini\config\plugins\agy-tokless\tools\agy-audit\cli.js" session latest
# 2. 优化前后双会话 A/B 对比(对比总 Token、Cache Read 滚雪球、缓存命中率、盲读次数与节省比例)
node "$env:USERPROFILE\.gemini\config\plugins\agy-tokless\tools\agy-audit\cli.js" compare latest~1 latest
# 3. 诊断指定项目的常驻规则/Skill 肥胖度、全局/工作区 MCP 底座税,以及本机 agy 版本与自定义 Agent 4x 扣额雷区
node "$env:USERPROFILE\.gemini\config\plugins\agy-tokless\tools\agy-audit\cli.js" project <项目目录路径>降 MCP 底座税与 4x 排雷建议
- 保持默认 Agent(1x 原价):自 Antigravity CLI
1.5.17起,自定义 Agent(--agent、.agents/agents/*、插件内置agents/*及派生子智能体)会触发custom_agent4 倍扣额(见 antigravity-cli#1890)。不要再通过切换自定义 Agent 来省 MCP 税,改将规范留在AGENTS.md/GEMINI.md或skills/中。 - 用
agy mcp disable直接关掉闲置 MCP:先跑tokless audit project <项目目录>定位闲置或高开销的外部 MCP,再直接执行agy mcp disable <name>关闭它(需要时再agy mcp enable <name>恢复),全程维持 1x 原价。 - 清理旧版
agents/残留:若体检提示插件目录下仍残留~/.gemini/config/plugins/agy-tokless/agents/,重跑一次npx tokless install即可自动清理。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

