Skip to content

Releases

v1.7.2 — Skills Progressive-Disclosure Audit & Scoped Agent Hardening

Choose a tag to compare

@zou172866 zou172866 released this 24 Nov 14:12

What's New in v1.7.2

English

  • Agent Skills progressive disclosure & prefix-tax audit: Restructured skills/agy-dart/ with on-demand examples/ (ctx_trace_summary.py, filters.json) and references/error-playbook.md synced cleanly across Antigravity, Claude Code, and Codex; added node bin/agy-dart.mjs audit skills to inspect Turn-0 frontmatter tax and progressive-disclosure hygiene, and separated on-demand skill assets in prefix:budget.
  • Scoped dart-coder / dart-reviewer check routing: Guided built-in minimal agents to prefer run_checks for short checks (keeping run_command for >60s or async tasks) so command outputs stay within 8.8 KB without losing inheritMcp: false / inheritCustomizations: false isolation.
  • Test & packaging hardening: Isolated AGY_DART_CONFIG_PATH in v1.2-persist-prefix.test.mjs so local ~/.agy-dart/config.json overrides (such as stablePrefixOnly: true) never interfere with unit tests, and excluded Python bytecode artifacts (__pycache__, *.py[cod]) from Git and package manifests.

简体中文

  • Agent Skills 渐进披露结构与首轮前缀税审计:为 skills/agy-dart/ 拆分按需加载的 examples/(ctx_trace_summary.py、filters.json)与 references/error-playbook.md 并同步适配 Antigravity、Claude Code 与 Codex;新增 node bin/agy-dart.mjs audit skills 审计已装 Skills 的首轮 frontmatter 开销与渐进披露结构,并在 prefix:budget 中分离统计按需附件体积。
  • 内置净身角色 dart-coder / dart-reviewer 短检查引导:在保持 inheritMcp: false 与 inheritCustomizations: false 零外部前缀税的前提下,明确短检查优先走 run_checks(长耗时/异步任务仍用 run_command),减少原生终端输出超 10 KB 落盘。
  • 测试隔离与打包卫生加固:修复 v1.2-persist-prefix.test.mjs 对本机 ~/.agy-dart/config.json(如 stablePrefixOnly: true)的读取隔离,并在 .gitignore 与 package.json 中排除 __pycache__ / *.py[cod] 产物。

Verification

  • npm test: 249/249 PASS
  • npm run verify:pkg / npm run brief:check / npm run prefix:budget / node scripts/install.mjs doctor: PASS

v1.7.1 — Fast-Tool Savings Telemetry, Windows CLI Filters & Root-Session Rollup

Choose a tag to compare

@zou172866 zou172866 released this 24 Nov 09:31

What's New in v1.7.1

English

  • Accurate "Guard Saved" accounting for agy-dart_fast tools: read_slices, run_checks, and batch_search now record strictly non-inflated byte savings (only when raw input/output genuinely exceeds returned bytes) and attribute anonymous shared MCP calls cleanly to the active conversation without cross-session stealing.
  • Expanded Windows / PowerShell CLI filtering: cli-filter now recognizes leading package-manager flags (npm --prefix, pnpm -C, yarn --cwd, etc.) and safe -- argument/path separators while preserving cross-shell safety guards.
  • Complete MCP receipt claiming & subagent rollup: Extended receipt claiming to ctx_index and ctx_batch alongside ctx_execute, synced sources/chunks ownership (schema v155 + idx_sources_origin_session), and unified rootSessionId rollup so subagent savings roll up into parent conversation stats without double-counting.
  • Repository & docs: Updated repository URLs for Antigravity-agy-dart and added full v1.7.0 / v1.7.1 bilingual changelogs.

简体中文

  • 修好侧边栏「已挡冗余」长期显示 0 的问题(补齐 agy-dart_fast 真实埋点):read_slices、run_checks、batch_search 现按真实裁剪/压缩字节差值记账(绝不虚报),并在匿名共享 MCP 下精准归属到当前对话,不串会话、不重复计数。
  • 修复 Windows / PowerShell 终端过滤漏判:cli-filter 支持跳过 npm --prefix、pnpm -C、yarn --cwd 等前置参数,并在确保跨 Shell 安全的前提下放行常见 -- 路径/参数分隔符。
  • 补全 MCP 回执归属与子代理统计汇总:将回执认领从 ctx_execute 扩展至 ctx_index、ctx_batch 并同步认领 sources/chunks(数据库 schema 升级至 v155);全链路统一按主对话 rootSessionId 汇总子代理节省量。

Verification

  • npm test: 240/240 PASS
  • npm run verify:pkg / npm run brief:check / npm run prefix:budget / node scripts/install.mjs doctor: PASS

v1.5.0 — Cross-Session Empirical TTL Calibration, Opt-In Expiry Alert & Stall Watchdog

Choose a tag to compare

@zou172866 zou172866 released this 22 Nov 07:15

社区反馈原文(Community Feedback)

「@billy88lsh: 我看的记录,我的缓存是97。你的问题是你总是超时,超过15分钟就缓存没了。提升的办法就是回答完一轮,程序自动激活一下缓存」

「我在多轮对话之后很容易一直工作中却不输出任何东西,直接卡住了,难道没有自动总结压缩的功能么?」


核心升级(v1.3.0 → v1.5.0)

  1. 跨会话按模型实证 TTL 区间校准(v1.5.0)
    • 在 context.db meta 表新增 14 天有界去重 Ring Buffer(ttl_calibration:v1:<profileId>),跨会话累计同一模型档位(如 gemini-4-512k、claude-200k)的热命中时间下界与纯空闲冷失效时间上界(规避 ttl_idle_expiry 循环依赖)。
    • estimateCalibratedTtl() 支持双向区间收敛(后端动态 LRU 缩短时自动向近期冷上界下调,不再单向锁定)与 explicit > session/history > profile 严格优先级,新开会话直接继承实测 ~15 分钟窗口并实时同步至 Sidecar 与 PreInvocation。
  2. 高上下文空闲 TTL 临期桌面提醒(Opt-in 默认关闭,零 statSync,v1.5.0)
    • 新增 ttlDesktopNotify(AGY_DART_TTL_DESKTOP_NOTIFY 与 Sidecar #kv-ttl-notify-btn 开关)、ttlNotifyLeadSec(默认 60s)与 ttlNotifyMinTokens(默认 60000)。
    • 主对话处于 IDLE、>= 60k tokens 且距服务端缓存过期剩余 (0, 60s] 时发送一次脱敏防抖桌面通知(全程 0 次 statSync、休眠唤醒防误弹、与 stallWatchdog 解耦),把“切回续聊保热”还是“放冷后 /compact”的决定权交还给用户。
  3. npm run cache:simulate 新增 Keep-Alive 策略回放(v1.5.0)
    • 离线回放扩充至 9 套策略,新增 keepalive-1x 与 keepalive-unlimited(支持 --keepalive-tail <sec>,标记 hypothetical: true 绝不抢占 recommendedPolicy),同时输出表观命中率 projectedHitRate 与真实用户轮命中率 userTurnHitRate,直接用本机真实日志算清保活 Ping 成本与离座尾窗浪费。
  4. Sidecar 卡死看门狗与免越狱救援闭环(v1.4.0)+ 压缩零延迟补强(v1.3.1)
    • 双源融合状态机(5 大生命周期 Hooks watchdog_lease:<convId> + transcript.jsonl 增长检测与尾步终态自愈)、状态感知动态超时矩阵(黄灯 suspect / 红灯 stalled)、自动预生成脱敏抢救版 Handoff Brief 与 6 类根因排障指引。
    • 统一 4 类压缩/裁剪信号首轮即时失效、readDedupMaxTurns: 12 轮次衰减、readDedupMinBytes: 4096 小切片放行与 compactFailureWithErrorAnchors 失败中段报错锚点保真。

底层设计原理(Why Not Blind Auto Keep-Alive)

  1. 平台权限与零前缀污染边界:服务端 KV-Cache Key 绑定宿主底层完整请求前缀与签名;Stop Hook 同步阻塞(5s 超时),Sidecar 无静默 1-token 探针 RPC,强行注入保活消息会污染上下文并破坏零前缀污染不变量。
  2. 极窄盈亏平衡点与 Goodhart 刷分幻觉:每次保活仍需支付 10%–25% 缓存读费用与请求配额(90% 折扣连 Ping 10 次、75% 折扣连 Ping 4 次即等同一次冷重算);离座开会或挂置多标签页时后台自动 Ping 100% 白烧额度,出现“表面命中率刷到 ~96%+ 但真实输入账单更贵”。

Verification

  • Tests: 160/160 passing across 22 suites (including tests/v1.5-ttl-keepalive-suite.test.mjs & tests/v1.4-stall-watchdog.test.mjs)
  • Packaging & Prefix Budget: npm run verify:pkg PASS (34 reachable modules, zero devtools leakage) · npm run prefix:budget PASS (2,955 <= 4,000 tokens, canonical=true) · npm run brief:check PASS
  • Docs: Full dedicated section added to README.zh-CN.md & README.md

v1.3.0 — 4-Tier Host-Aligned Read Guard, Diff Outlines & 3-Stage Git Diff Fidelity

Choose a tag to compare

@zou172866 zou172866 released this 21 Nov 20:49

社区反馈原文(Community Feedback)

「Claude 没有这个限制。大文件它会分段读完,不会因此停下来。这个 16 KB 的限制也不是 Antigravity 自带的,而是你那台机器上 Antigravity 配置里加的一道读前检查(agy-dart protection),放宽它或者给评审目录开个例外就能解决,16kb 单文件读写居然是默认配置吗」

「@XCQ: 我是让他做我工作流的 reviewer,会碰到这种情况,git 的 patch 文件直接拒绝读写,因为单个 patch 文件随便就超过 16kb 了碰到现在的默认设置就会失败,我走了 AGY_DART_DISABLE_READ_HOOK=1」

(注:agy-dart 仅做读前拦截不限制写操作;但对 code reviewer 来说,读 .patch 失败就足以中断整个评审工作流。)


改进方案(v1.2.2 → v1.3.0)

  1. 四层宿主对齐读守卫 + 2-Strike 软护栏(默认 host-45k)
    • Tier 0(恒定豁免):附件、SKILL.md/AGENTS.md 指令文档、二进制文件(0-SQLite 快路径直放)。
    • Tier 1(高噪日志 / 锁文件 / 压缩单行):继续死守 16 KB(noiseMaxReadBytes),压缩探针升级为头/中/尾采样防 >4 KB 许可证头绕过。
    • Tier 2(常规源码 / 文档):精确对齐 Antigravity 原生 read_file 上限 45 KiB(46,080 B)/ 800 行 + 2-strike 软护栏(5 分支会话/子代理/匿名 TTL 隔离)。
    • Tier 3(.patch / .diff 代码评审):默认 128 KB(reviewMaxReadBytes)直放走宿主分页,超限 2-strike 软提示 + 原生 Diff Outline。
  2. 修复分页续读与无 MCP 子代理死锁
    • 前置 ByteOffset 余量计算并放行合法宿主翻页续读;拆开压缩单行与宽行多行文本(动态给出 suggestedLines);读缓存(readDedup/diffRead)优先于大文件拦截消除三连拒;子代理全档支持 2-strike 原生降级(消除上游 context-mode#1311 同款死锁)。
  3. 三通道严格解耦与评审一等公民
    • read_file 体积豁免(exemptExtensions / 线性无 ReDoS exemptPaths / readGuardMode: soft|strict|off)仅跳过大小检查,完整保留 readDedup/diffRead;run_command 拆出独立 shellDumpMaxBytes = 16 KB 并移除 exemptExtensions 依赖(同时封堵 cat huge.png / curl .../archive.zip 绕过)。
    • agy-dart_fast read_slices({ outlines }) 新增原生 .patch/.diff 解析器(extractDiffSymbols);filterGitDiff 升级为 <= 7.9 KB 内三阶段上下文保真(预算内 100% 留上下文 → -U/-W 保上下文截断 → 1 行上下文再压缩)+ 修复 gh pr view 误伤。
    • install 引入 cutoff:source 平滑迁移旧默认 16384 -> 46080 并保留用户自定义阈值;顺修 Sidecar /api/purge conversation 报错、getExemptExtensions 分裂 Bug 与 sensitive_read_confirm TTL。

底层设计原理(Why This Design)

  1. 对齐宿主物理天花板,消灭负 ROI 拦截区间:Antigravity 原生 read_file 本已封顶在 46,080 B(~11.5K tokens)/ 800 行,在 16–45 KB 之间硬拦省 token 极少,却多花 1 轮 TTFT 与全量前缀 Cache Read;对齐 45 KiB 后,凡放行必一轮无损读完,仅在真正需要多轮分页时介入。
  2. 按信噪比与阅读模式分层,而非按字节一刀切:日志/锁文件/压缩包适合沙箱聚合(留 16 KB),源码需局部上下文(45 KiB),.patch 评审需按变更顺序通读找未知逻辑 Bug(128 KB + Diff Outline)。
  3. 软护栏防死锁 + 5 分支 TTL 隔离:Hook 无法假设所有子代理都挂载了 MCP,重试放行(由宿主 45 KiB 兜底)兼顾首轮引导与零卡死,同时避免跨会话串态、翻页逐页重拦与三连拒。
  4. 严格隔离有宿主封顶与无封顶通道:cat/curl/git diff 没有 45 KiB 宿主护栏,因此绝不共用 read_file 豁免或靠 skipFlags 绕过 cli-filter.mjs,且豁免首读体积检查绝不跳过 readDedup。
  5. 安全边界守恒:exemptPaths/exemptExtensions 仅从可信用户级 ~/.agy-dart/config.json 与环境变量读取,严格排在 sensitiveFileGuard 之后,并经 fs.realpathSync 与线性匹配防软链逃逸与 ReDoS。

Verification

  • GitHub Actions CI: 4/4 green (ubuntu-latest & windows-latest × Node 22 & 24)
  • Tests: 132/132 passing across 18 suites (including tests/v1.3-read-guard-overhaul.test.mjs)
  • Docs: Full dedicated section added to README.zh-CN.md & README.md

v1.2.2 — Long-Task Continuity & Deep Security/Isolation Hardening

Choose a tag to compare

@zou172866 zou172866 released this 21 Nov 19:19

What's New in v1.2.2

1. Long-Task Continuity & Anti-Premature-Handoff Protections

  • Removed mid-task /compact prompts from rules/AGENTS.md and routed >60s builds/tests + background tasks (WaitMsBeforeAsync <= 2000, cliFilterAsyncBypassMs) directly to native run_command (preserving live streaming logs and attaching read-only permissionOverrides for plugin scripts on sync overwrite).
  • Raised ctx_execute default timeout to 120s (execTimeoutMs, per-call timeoutSec: 1..300) with timedOut: true guidance, added workspace cwd support across agy-dart_context tools + MCP initialize workspaceFolders/rootUri, suppressed mid-turn tool-loop (invocationNum >= 1) TTL/cold-compact banners in PreInvocation (scaling 1M-window ttlMinContext to 300k), and added step-based read-dedup decay (readDedupMaxSteps: 40).

2. Second-Round Deep Audit, Cross-Platform CI & Protocol Hardening (42 Verified Fixes)

  • Access-Control, SSRF, ReDoS & Windows Shell Fidelity: End-to-end sensitiveFileGuard=deny across PreToolUse, fast/mcp-server.mjs, ctx_index, and ctx_execute (covering symlinked files, .envrc/*.env, and \\?\ ADS paths); forced -n on git remote show to block network SSRF; hardened install.mjs against internal symlinks/NTFS junctions, UNC shares, and .git clones/worktrees while restoring self-uninstall; respected per-directory PATHEXT precedence and PowerShell ,/--/" safety in cli-filter; and capped serialized fast JSON-RPC payloads <= 8.8 KB with mixed \n\n/\r\n\r\n frame safety, dangling-symlink rollback, and bounded glob/regex/Markdown linear parsers.
  • Session Isolation, Process-Group Teardown & Multi-Provider Accuracy: Strict session/worktree/lifetime isolation in Sidecar /api/search and MCP ctx_search/ctx_resume; POSIX detached process-group + Windows taskkill /T /F teardown, linear JS ESM --input-type=module lexer, recursive subshell inspection, and graceful Windows 413 socket close; transactional pruneByTtl, per-turn USD cost across model_switch, OpenAI gateway cached-token deduplication, and anchored 1h implicit-write replay deltas (126/126 tests passing across Linux & Windows on Node 22/24).

v1.0.0 — Initial Release

Choose a tag to compare

@zou172866 zou172866 released this 20 Nov 12:40

agy-dart v1.0.0

All-in-one native Google Antigravity plugin uniting batched latency acceleration with local SQLite FTS5 context-window protection and a live Aux Pane Sidecar dashboard.

Highlights

  • Dual zero-overlap MCP engines in 1 plugin: agy-dart_fast (4 batched source-code tools) + agy-dart_context (8 local SQLite FTS5 & sandboxed execution tools)
  • Balanced 16 KB / 410-line default guard: lets Antigravity's 7ms local read_file fly on small/ranged reads while blocking massive un-paged log dumps and unbounded shell commands
  • Hard <= 8.8 KB UTF-8 inline cap across all tools: eliminates Antigravity's ~10 KB MCP output.txt disk spill extra turns
  • Smart auto-exemption for agent instruction files: exempts SKILL.md, AGENTS.md, GEMINI.md, CLAUDE.md and builtin skill/rule paths
  • Unified SessionStart hook + single-connection SQLite reuse in PreToolUse
  • Live Sidecar dashboard with dynamic sidecar_sdk resolution + cross-platform installer (--install-rg, 4 switchable modes, doctor health check)

Credits & Open-Source Attributions

Built with gratitude upon:

Full notices in THIRD_PARTY_NOTICES.md.