MinerU
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Compiler-backed Angular template answers, component contracts and version facts for AI agents
教 AI 做这类工作的 Skill,可与本项一起使用
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 0/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 12/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Angular token saver,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "ng-token-saver": { "command": "npx", "args": [ "-y", "@alex-apps/ng-token-saver" ], "env": { "NG_TOKEN_SAVER_IDLE_MS": "your-value", "NG_TOKEN_SAVER_PREWARM": "your-value", "NG_TOKEN_SAVER_TRACE": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Angular token saver 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
SettingsDeveloperEdit Config
{
"mcpServers": {
"ng-token-saver": {
"command": "npx",
"args": [
"-y",
"@alex-apps/ng-token-saver"
],
"env": {
"NG_TOKEN_SAVER_IDLE_MS": "your-value",
"NG_TOKEN_SAVER_PREWARM": "your-value",
"NG_TOKEN_SAVER_TRACE": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Angular token saver 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Angular token saver,或回答中出现 Angular token saver 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Angular token saver
Angular token saver 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Angular token saver 的应用
可连接 Claude Code,但需要先准备
需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Angular token saver,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user ng-token-saver --env NG_TOKEN_SAVER_IDLE_MS=your-value --env NG_TOKEN_SAVER_PREWARM=your-value --env NG_TOKEN_SAVER_TRACE=your-value -- npx -y @alex-apps/ng-token-saver 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Angular token saver 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user ng-token-saver --env NG_TOKEN_SAVER_IDLE_MS=your-value --env NG_TOKEN_SAVER_PREWARM=your-value --env NG_TOKEN_SAVER_TRACE=your-value -- npx -y @alex-apps/ng-token-saver按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Angular token saver 在列表中并显示已连接
用 Angular token saver 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Angular token saver,或回答中出现 Angular token saver 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Angular token saver,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "ng-token-saver": { "command": "npx", "args": [ "-y", "@alex-apps/ng-token-saver" ], "env": { "NG_TOKEN_SAVER_IDLE_MS": "your-value", "NG_TOKEN_SAVER_PREWARM": "your-value", "NG_TOKEN_SAVER_TRACE": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Angular token saver 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
在 Angular token saver 的设置中,NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Angular token saver 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Angular token saver,或回答中出现 Angular token saver 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Angular token saver,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "ng-token-saver": { "type": "stdio", "command": "npx", "args": [ "-y", "@alex-apps/ng-token-saver" ], "env": { "NG_TOKEN_SAVER_IDLE_MS": "your-value", "NG_TOKEN_SAVER_PREWARM": "your-value", "NG_TOKEN_SAVER_TRACE": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Angular token saver 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
在 Angular token saver 的设置中,NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Angular token saver 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Angular token saver,或回答中出现 Angular token saver 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user ng-token-saver --env NG_TOKEN_SAVER_IDLE_MS=your-value --env NG_TOKEN_SAVER_PREWARM=your-value --env NG_TOKEN_SAVER_TRACE=your-value -- npx -y @alex-apps/ng-token-saverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"ng-token-saver": {
"command": "npx",
"args": [
"-y",
"@alex-apps/ng-token-saver"
],
"env": {
"NG_TOKEN_SAVER_IDLE_MS": "your-value",
"NG_TOKEN_SAVER_PREWARM": "your-value",
"NG_TOKEN_SAVER_TRACE": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"ng-token-saver": {
"command": "npx",
"args": [
"-y",
"@alex-apps/ng-token-saver"
],
"env": {
"NG_TOKEN_SAVER_IDLE_MS": "your-value",
"NG_TOKEN_SAVER_PREWARM": "your-value",
"NG_TOKEN_SAVER_TRACE": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"ng-token-saver": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@alex-apps/ng-token-saver"
],
"env": {
"NG_TOKEN_SAVER_IDLE_MS": "your-value",
"NG_TOKEN_SAVER_PREWARM": "your-value",
"NG_TOKEN_SAVER_TRACE": "your-value"
}
}
}
}NG_TOKEN_SAVER_IDLE_MS 机密 必填 envNG_TOKEN_SAVER_PREWARM 机密 必填 envNG_TOKEN_SAVER_TRACE 机密 必填 env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月18日
注册名称已通过 GitHub 账户 Alex88Ryabov 验证,该账户拥有此仓库
代码最后更新于8天前
使用 GPL-3.0
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 @alex-apps/ng-token-saver@0.2.0 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/alex88ryabov-ng-token-saver)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于8天前,最新版本(0.2.0)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Puter MCP, XcodeBuildMCP, Vexa, Atlassian Rovo MCP Server, Anki MCP Server
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
MCP server for Anki flashcards: adaptive review, notes, media, and deck management via AnkiConnect.
| 本项 Angular token saver | Puter MCP | XcodeBuildMCP | Vexa | Atlassian Rovo MCP Server | Anki MCP Server | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 需要安装在电脑上 |
| 需要密钥 | 是 | 否 | 否 | 是 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 是 | 否 |
| 基础检查 | 3/3 | 4/4 | 3/3 | 2/4 | 4/4 | 3/3 |
| 许可证 | GPL-3.0 | AGPL-3.0 | MIT | Apache-2.0 | Apache-2.0 | MIT |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP server that lets an AI agent understand Angular templates by asking the same compiler that builds the project, instead of guessing from file text. The token saving is measured, not promised.
Angular ships a first-class language server, but no official AI integration exposes it — the Angular CLI MCP (ng mcp) works at the docs-and-build level and does not touch templates. This server is that missing layer, and it answers for the Angular version the project actually runs.
Everything below marked as measured was produced by running code against six real Angular workspaces (17.3.12, 18.2.14, 19.2.25, 20.3.26, 21.2.18, 22.0.8) and two production projects. Every number can be reproduced with the commands in Reproducing the measurements.
| Measured on a production Nx monorepo | Result |
|---|---|
| A component's contract instead of its whole file | 67% fewer tokens over 1298 components |
| Where one input is bound on a component used 577 times | 50 527 → 1 035 tokens against the grep path |
| Errors of one template | 81 tokens, 1 ms warm against a 395-token compiler listing |
| Whole Claude Code sessions, five read-only questions × 3 | no saving: +15% input tokens, −4% cost, 60 of 60 answers right in every arm — why |
The last row stays in the table: a per-call saving is not a per-session one, and the difference is explained below.
The language server ships as a regular dependency — nothing to install besides the package:
npm install -g @alex-apps/ng-token-saver
Claude Code:
claude mcp add ng-token-saver -- ng-token-saver
Or, in Claude Code, as a plugin — the same server through npx, plus the one-line hints toward it; no global install needed:
/plugin marketplace add Alex88Ryabov/alex-apps-ng-token-saver
/plugin install ng-token-saver@ng-token-saver
A server already registered with claude mcp add would then run twice; remove it with claude mcp remove ng-token-saver. The plugin's tools carry a plugin prefix (mcp__plugin_ng-token-saver_ng-token-saver__…), so permission rules and agent tool lists written for the bare names need the new ones.
Codex CLI:
codex mcp add ng-token-saver -- ng-token-saver
Any other MCP client:
{ "mcpServers": { "ng-token-saver": { "command": "ng-token-saver" } } }
Or skip the install and let the client fetch it through npx:
{ "mcpServers": { "ng-token-saver": { "command": "npx", "args": ["-y", "@alex-apps/ng-token-saver"] } } }
In Cursor that npx form is one click:
The npm and npx paths are verified by running: the packed tarball (79 kB, dist only) was installed into a clean prefix and all four tool kinds answered through a real MCP client, and the npx form connects in 1.2–2.0 s from a warm npm cache (the very first run on a machine also downloads the dependency tree — the language server alone unpacks to 13.6 MB).
A first question to ask it — the contract of a component whose members are scattered across an extends chain. Asked for fixtures/v17/src/app/derived-card.component.ts (a fixture in this repository), ng_component_info answers, verbatim:
{"found":true,"angularVersion":"17.3.12","className":"DerivedCardComponent","kind":"component","selector":"app-derived-card","standalone":true,"inlineTemplate":true,"styleUrls":[],"imports":[],"hostDirectives":[],"extends":"BasePanel","ancestors":[{"name":"BasePanel","file":"<repo>\\fixtures\\v17\\src\\app\\base-panel.ts"},{"name":"BaseWidget","file":"<repo>\\fixtures\\v17\\src\\app\\base-widget.ts"}],"inputs":[{"name":"accent","type":"boolean"},{"name":"heading","type":"string"},{"name":"disabled","type":"boolean"}],"outputs":[{"name":"blurred","type":"void"}],"publicMembers":[{"name":"focus","kind":"method","signature":"focus(): void","noop":true},{"name":"collapse","kind":"method","signature":"collapse(animated: boolean): void","noop":true}]}
811 characters with this checkout's absolute paths in place of , 305 ms on the session's first call (it loads the project's own TypeScript), single-digit milliseconds after. The asked file declares one input and an extends clause; heading, disabled, the output and both methods live in BasePanel and BaseWidget and are resolved statically, with their files named in ancestors for the next edit. "noop": true on focus() is the subclass shadowing it with an empty body — the kind of fact that otherwise costs a whole file read per ancestor.
Configs for Cursor, VS Code, Windsurf, Codex CLI and JetBrains, the Node floor, and running from source are in Requirements and setup.
1. No template awareness. grep over an .html file cannot tell you where {{ user().fullName }} is declared, and no amount of reading gives you TS2339 Property 'emailAddress' does not exist on type 'UserVm'. That is compiler output, not text.
2. Version drift. The AI context files on angular.dev (llms.txt) describe only the newest major and carry no version markers; the versioned archive sites serve none at all. On v17–v21 they hand the agent instructions that produce APIs which do not exist. Measured examples are in Version facts.
Six tools, 1040 characters of descriptions in total. Answers are dense JSON with no markdown.
| Tool | What it answers | Needs the language server |
|---|---|---|
ng_template_definition | where a symbol on a template line is declared — the line as Read shows it, the symbol by name | yes |
ng_template_diagnostics | Angular compiler errors for a template, or for a files batch; an entry anchored in the companion .ts carries file, a message repeated on several lines comes once with its lines | yes |
ng_component_info | the public contract of a component or directive | no |
ng_workspace_map | projects, versions, strictTemplates and zone.js per project | no |
ng_version_rules | what exists and what does not in this project's Angular version | no |
ng_find_usages | where a component, directive, pipe or service is used; with input — where that input is bound | no |
Four of the six never start the language server, so they answer in milliseconds and keep working on workspaces where the server refuses to load.
Since 0.2.0 every position is 1-based, as Read shows it: ng_template_definition takes the line that way and the symbol by name (character is an alternative for a name that repeats on the line). 0.1.x took a 0-based line and character, the LSP convention — the same numbers now point one line lower.
ng_component_info returns the public contract of a component rather than its source. Measured across two production codebases through a real MCP client:
| Nx monorepo | CLI workspace\* | |
|---|---|---|
| Angular / TypeScript | 19.2.18 / 5.8.3 | 17.3.8 / 5.3.3 |
| Components in the tally | 1298 | 407 |
| Parse errors | 0 | 0 |
| Sources | 5 404 708 chars | 1 735 223 chars |
| Contracts (base-class members included) | 1 759 331 chars | 463 563 chars |
| Saved | 67% | 73% |
| Saved in tokens (o200k_base proxy) | 67% | 71% |
| Contract shorter than source | 1201 of 1298 (93%) | 386 of 407 (95%) |
| Flagged as partial | 1 of 1298 | 3 of 407 |
| First call (loads the project's TypeScript) | 306 ms | 564 ms |
\* measured with the pre-0.1.2 wire format; the current format is leaner, so this saving is a floor.
The largest component in the monorepo shrinks from 177 863 to 10 770 characters while listing 117 contract members. Contracts include members inherited from base classes — the extends chain is resolved through relative imports, tsconfig path aliases and barrels. Before that resolver, 91 of 1298 monorepo contracts were flagged as partial; now 1 is.
Three caveats that travel with these numbers:
o200k_base, since Claude's tokenizer is not public; cl100k_base agrees within one point on this data. Characters are exact.On small components there is no saving at all: a 17-line component produces a 578-character contract against a 315-character source. The contract grows with the number of members, the source with method bodies — and on production code the second wins almost always.
Renaming an input across usages. The grep path an agent actually takes — read the component file to learn the selector, then grep the selector and the binding spellings repo-wide — against ng_component_info plus ng_find_usages with its input filter, which returns only the tags that bind the name, each entry pointing at the binding itself. On the production monorepo, 6243 files scanned:
| Component | grep path | bridge | saved (o200k) |
|---|---|---|---|
577 usages, mask bound on 5 tags | 50 527 tokens | 1 035 tokens | 98% |
466 usages, icon bound on 463 tags | 41 698 tokens | 22 566 tokens | 46% |
1211 usages, name bound on 1134 tags | 129 227 tokens | 30 650 tokens | 76%\* |
\* the tool returns at most 500 entries per answer, and the answer says so.
The saving is decided by how many of the usages actually bind the input: mask is bound on 5 of 568 tags, and grep still prints every selector line plus 67 binding-shaped lines from across the repo — 62 of them somebody else's mask — while the bridge answers with exactly those five sites.
Diagnosing a template that will not compile. A whole-project compiler listing costs 395 tokens and 1321 ms; one ng_template_diagnostics call answers with the asked file's diagnostics in 81 tokens, 1 ms warm. The gap only widens with project size: the listing grows with the project, the answer does not. After an edit, fresh diagnostics arrive as a 340–400 ms push — against a rebuild.
The numbers above are per call. Whether they reach the bill was measured on whole sessions: five read-only questions on the production monorepo — an inherited contract, a plain contract, where one input is bound, where a component is used, which APIs the installed version has as stable — each answered three times by claude -p (Claude Code 2.1.322, claude-opus-5-5) in four arms, isolated from the machine's own CLAUDE.md, memory, hooks and MCP servers, with read-only tools and no subagents. Every one of the 60 answers was right.
| Arm | Input tokens | Output tokens | Cost\* | Turns |
|---|---|---|---|---|
| A — no server | 1 322 306 | 20 560 | $1.27 | 65 |
| B — no server, told to read only what the question needs | 1 347 280 | 21 062 | $1.39 | 70 |
| C — B plus this server | 1 552 429 | 21 634 | $1.34 | 83 |
| D — C plus the plugin hints | 1 537 528 | 20 828 | $1.23 | 79 |
\* Claude Code's own estimate at API list prices; cached input is cheap, so cost and token totals move apart.
Against the control (C versus B) the server **added 15% input tokens and saved 4%