tokless 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  `tokless` cuts runaway prompt-cache snowballing without sacrificing code quality by combining sub-100ms `[Lstart-Lend]` AST-like code skeleton navigation, native `PreToolUse` blind-read brakes, MCP-stripped subagents, and 0-token local session billing/compaction audits.
16
16
 
17
- In a controlled A/B bug-hunt and fix benchmark on a production Tauri + Rust + React desktop codebase, `tokless` reduced **total token throughput by 53.2% (-11.38M tokens)**, cut **cumulative Cache Read tokens by 53.8% (-11.23M tokens)**, and finished in **34.4% fewer model turns** while finding and fixing the exact same **7 deep concurrency/logic bugs**.
17
+ In a controlled A/B bug-hunt and fix benchmark on a production Tauri + Rust + React desktop codebase, `tokless` reduced **total token throughput by 53.2% (-11.38M tokens)**, cut **cumulative Cache Read tokens by 53.8% (-11.23M tokens)**, and finished in **34.4% fewer model turns** while finding and fixing the exact same **7 deep concurrency/logic bugs** (*Note: this A/B benchmark was recorded on early `v0.1.0` with only the baseline skeletonizer and unsliced blind-read block; we have not yet re-run a full long-horizon comparison on newer releases, which add MCP-stripped lean subagents and refined line-range pass-through for even stronger theoretical savings*).
18
18
 
19
19
  ---
20
20
 
@@ -77,11 +77,11 @@ Two isolated Git worktrees from the same commit (`3908815`), running the exact s
77
77
  | **Time to First Code Edit** | 227s (Step 115) | **196s (Step 81)** | **31s faster / -34 steps** |
78
78
  | **Real Bugs Found & Fixed (Build Verified)** | 7 | **7** | **Zero quality loss** |
79
79
 
80
- Full reports: [benchmarks/real-world-bugfix-case.md](./benchmarks/real-world-bugfix-case.md) and [benchmarks/static-skeleton-benchmark.md](./benchmarks/static-skeleton-benchmark.md).
80
+ > **Version Note (`v0.1.0` Baseline)**: The Tauri + Rust + React A/B figures above were captured on early `v0.1.0` (which only included baseline syntax skeleton extraction and unsliced blind-read blocking) and have not yet been re-run end-to-end on the latest release. With MCP-stripped lean roles (`inheritMcp: false`) and refined line-slice pass-through introduced in subsequent versions, current theoretical end-to-end token savings are even higher. Full reports: [benchmarks/real-world-bugfix-case.md](./benchmarks/real-world-bugfix-case.md) and [benchmarks/static-skeleton-benchmark.md](./benchmarks/static-skeleton-benchmark.md).
81
81
 
82
82
  ---
83
83
 
84
- ## Four Core Capabilities & Platform Boundaries (v0.4.0)
84
+ ## Four Core Capabilities & Platform Boundaries (v0.4.1)
85
85
 
86
86
  `tokless` draws a transparent line between **universal capabilities that work with every AI coding tool** and **host-specific hooks or log parsers**:
87
87
 
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  **面向主流 AI 编程 Agent(原生支持 Google Antigravity、Claude Code、Codex CLI,开放 `targets/` 插件架构扩展更多工具)的纯 Node.js 零依赖省流套件——毫秒级 `[L起-L止]` 语法骨架导航、原生 `PreToolUse` 防盲读硬刹车、剥离 MCP 空载税的净身角色与 0 Token 本地账单/缓存断层体检。**
16
16
 
17
- 在真实跨语言生产工程(Tauri + Rust + React)的严格 A/B 盲测中,启用 `tokless` 后单次任务减少 **34.4% 模型往返轮次**、砍掉 **53.2% 总 Token 吞吐(净省 1,138 万 Token)**、滚雪球 Cache Read 净省 **53.8%(少烧 1,123 万 Token)**,7 个真实深层 Bug 检出与修复质量零折损。
17
+ 在真实跨语言生产工程(Tauri + Rust + React)的严格 A/B 盲测中,启用 `tokless` 后单次任务减少 **34.4% 模型往返轮次**、砍掉 **53.2% 总 Token 吞吐(净省 1,138 万 Token)**、滚雪球 Cache Read 净省 **53.8%(少烧 1,123 万 Token)**,7 个真实深层 Bug 检出与修复质量零折损(*注:该组盲测数据完成于早期 `v0.1.0` 版本,当时仅含基础语法骨架与无行号盲读拦截,尚未针对后续新增净身角色与优化行号放行机制的新版本重跑完整长任务对照,当前版本理论综合省流表现更强*)。
18
18
 
19
19
  ---
20
20
 
@@ -99,11 +99,13 @@ $$\text{累计 Cache Read} \approx \text{平均上下文水位} \times \text{模
99
99
  | **定位首个 Bug 开始改代码耗时** | 227 秒(第 115 步) | **196 秒(第 81 步)** | **提速 31 秒 / 少花 34 步** |
100
100
  | **检出并修复的真实硬核 Bug 数** | 7 个(全部编译通过) | **7 个(全部编译通过)** | **0 质量损耗(并发细节更深)** |
101
101
 
102
- > 注:本轮实测基于四代模型,对照组峰值达 439,830 Tokens 未触发自动压缩(若换作 256K 阈值的三代模型早已触发强制压缩失忆)。完整逐项对比见 [benchmarks/real-world-bugfix-case.md](./benchmarks/real-world-bugfix-case.md) 与静态骨架基准测试 [benchmarks/static-skeleton-benchmark.md](./benchmarks/static-skeleton-benchmark.md)。
102
+ > **实测版本与模型说明**:
103
+ > 1. **测试版本背景(`v0.1.0` 基线)**:上表 A/B 盲测数据完成于早期的 `v0.1.0` 版本(当时仅包含基础语法骨架提取与无行号盲读拦截),目前尚未针对新版本重跑完整长任务对照;随着后续版本加入剥离外部 MCP 空载税的净身角色(`inheritMcp: false`)与优化后的行号切片放行机制,当前版本的理论综合省流表现更强。
104
+ > 2. **压缩阈值参考**:本轮实测基于四代模型,对照组峰值达 439,830 Tokens 未触发自动压缩(若换作 256K 阈值的三代模型早已触发强制压缩失忆)。完整逐项对比见 [benchmarks/real-world-bugfix-case.md](./benchmarks/real-world-bugfix-case.md) 与静态骨架基准测试 [benchmarks/static-skeleton-benchmark.md](./benchmarks/static-skeleton-benchmark.md)。
103
105
 
104
106
  ---
105
107
 
106
- ## 四大核心能力与全平台支持边界(v0.4.0)
108
+ ## 四大核心能力与全平台支持边界(v0.4.1)
107
109
 
108
110
  `tokless` 把「跨所有 AI 编程工具通用的省流内核」与「特定客户端的深度钩子/日志解析」拆得清清楚楚,绝不混为一谈:
109
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokless",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Token optimizer, AST codebase skeletonizer, PreToolUse blind-read guard, lightweight role templates, and cache/compaction auditor for AI coding agents.",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agy-tokless",
3
3
  "displayName": "AGY Tokless — Antigravity 省流护栏与账单透视套件",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "description": "专为 AI 编程打造的省流护栏与账单审计插件:提供代码语法骨架提取(repo-skeleton)、大文件盲读拦截钩子(PreToolUse Hook)、轻量净身角色模板(agents)以及 Prefix Cache 断层与 MCP 底座税体检工具(agy-audit)。",
6
6
  "disabled": false,
7
7
  "suggestedPrompts": [