Skip to content

Releases: Jaylor-Wang/dsh-plugin-agent-optimizer

v0.9.0 - Dual Composite Batching with edit_batch

Choose a tag to compare

@Jaylor-Wang Jaylor-Wang released this 05 Nov 16:21

English

What's New in v0.9.0

  • edit_batch Composite Batch Tool:
    • Introduced edit_batch alongside read_batch to collapse multi-file or multi-location literal text replacements into a single model round-trip.
    • Sub-dispatches sequentially via official ToolExecutionPipeline (PTC), strictly preserving sandbox modes, file mutation policies, and observation tracking.
    • Completely eliminates fragile Unified Diff line-number calculation errors and indentation mismatches typical of apply_patch.
    • Supports partial success with structured per-edit status reporting without losing valid changes.
  • Config & Guidance Updates:
    • Added compositeTools.editBatch (default: true) and compositeTools.maxBatchEdits (default: 10).
    • Updated convergence guidance to steer models toward edit_batch when making multi-file modifications.
  • Verification:
    • Expanded test suite to 17 automated tests, all passing.

简体中文

v0.9.0 更新日志

  • 新增 edit_batch 复合批量修改工具:
    • 与 read_batch 形成对称闭环,支持单次调用顺序执行最多 10 处跨单文件或多文件的字面量文本替换,将多文件重构轮次压缩至 1 轮。
    • 通过官方 ToolExecutionPipeline(PTC)顺序分发每一个子操作,完整继承沙箱权限、文件观察策略与审查记录。
    • 彻底规避官方 apply_patch 因 Unified Diff 行号少算/换行符微差导致的拒收错误,成功率与稳定性大幅提升。
    • 支持局部错误容忍与结构化状态返回,单点失误不破坏同批次其他有效修改。
  • 配置与收敛指导升级:
    • 新增 compositeTools.editBatch: true 与 compositeTools.maxBatchEdits: 10 配置项。
    • 收敛提示词自动引导模型在多文件/多位置修改时优先采用 edit_batch。
  • 测试用例扩充:
    • 自动化测试用例扩充至 17 项,全部通过。

v0.8.0 - Interval Convergence Guidance, Error Suppression & Backend Stat Probing

Choose a tag to compare

@Jaylor-Wang Jaylor-Wang released this 05 Nov 16:01

English

What's New in v0.8.0

  • Interval Convergence Guidance:
    • Upgraded soft step budget to periodic interval reminders (stepInterval: 8, default cap maxRemindersPerTurn: 4).
    • Switched reminder payload to a concise, high-signal micro-directive:

      Accelerate execution: batch remaining actions and conclude if criteria are met; do not omit verification.

    • Saves ~40% token overhead per turn while maintaining steady long-range convergence control.
  • Dynamic Tool-Error Suppression:
    • Automatically suspends reminder injection when a preceding tool execution encountered an error (result.isError or result.error).
    • Allows model full uninterrupted latitude to diagnose and resolve errors without prompt pressure.
  • Virtual Backend Probe via ctx.fs:
    • fileMutationPolicy checks existence via fsService.resolve and fsService.stat before falling back to host filesystem, preventing false overwrites across virtual/sandboxed environments.
  • Windows Path Case-Folding Resiliency:
    • Normalizes path casing on Windows across invocation keys and failure fingerprints.
  • Multi-Session Telemetry Stream Attribution:
    • Correctly routes interleaved model streams to their individual session IDs.

简体中文

v0.8.0 更新日志

  • 周期性收敛软提醒升级:
    • 将单次软预算升级为周期性步数微提醒(默认 stepInterval: 8 步,每轮上限 maxRemindersPerTurn: 4 次)。
    • 全新精炼微指令型提示词(单次仅 ~15 Token,节约 40% Token 消耗,提供长程收敛牵引力):

      Accelerate execution: batch remaining actions and conclude if criteria are met; do not omit verification.

  • 错误感知与智能避让机制:
    • 当模型上一步工具调用发生错误(result.isError 或抛错)时,自动静默避让提醒注入,优先保证排错排障上下文连贯,避免催促干扰。
  • 支持后端沙箱 ctx.fs 探测:
    • 文件策略优先通过 ctx.fs.resolve + ctx.fs.stat 进行后端虚拟文件探测,有效避免沙箱环境下的误判与强制覆盖。
  • Windows 大小写折叠容错增强:
    • 针对 Windows 文件路径不区分大小写特性进行规范化处理,防止相同报错工具调用漏计。
  • 多会话并发遥测流隔离:
    • 完善 telemetry 在多会话并发流交替输出时的隔离归属,会话销毁时安全释放追踪状态。

v0.6.0

Choose a tag to compare

@Jaylor-Wang Jaylor-Wang released this 05 Nov 15:37

What's Changed in v0.6.0

🚀 Enhancements & Bug Fixes

  • Multi-Session Telemetry Stream Attribution: Accurately attribute LLM stream tokens, latency, and requests to concurrent sessions using request sessionId, and clean up session records on session/disposed.
  • Windows Path Casing Normalization: Ensure case-insensitive path normalization and invocation identity hashing on Windows, reliably intercepting repeated identical failures (NO_PROGRESS) regardless of case variations.
  • Unified ctx.fs Backend Existence Probe: Refactor fileMutationPolicy to probe file existence through the shared ctx.fs backend (resolve and stat), preventing false negatives on virtual, sandbox, or non-host filesystems even without prior reads in the current turn.

🧪 Testing & Verification

  • Added mock ctx.fs test fixture to the test runtime mapping virtualFs.
  • Added regression tests for concurrent stream attribution, Windows path case-folding, and blind large write interception over backend files.
  • All 13 integration tests passing with zero TypeScript / linter errors.

🇨🇳 中文更新日志 (Release Notes in Chinese)

🚀 功能增强与问题修复

  • 多会话遥测流精准归属:支持按请求附带的 sessionId 精确归属 LLM 流式 Token、请求数及耗时,彻底解决并发交错流的遥测统计串线问题;在 session/disposed 生命周期事件触发时安全释放映射,防止内存泄漏。
  • Windows 路径大小写归一化:在 Windows 环境下对盘符与完整路径进行不区分大小写的标准归一化与调用指纹哈希,可靠拦截因路径大小写差异导致的无效重试死循环(NO_PROGRESS)。
  • 统一接入 ctx.fs 后端状态探针:fileMutationPolicy 优先调用底层 ctx.fs.resolve 与 ctx.fs.stat 进行文件存在性探测,彻底消除虚拟文件系统、沙箱环境与宿主物理磁盘的视图不一致;即使模型在本轮中未先执行 read 探测,也能精准拦截对已有文件的大量全写覆盖。

🧪 测试与质量验证

  • 在集成测试运行时提供规范的 ctx.fs Fixture,无缝映射虚拟文件系统(virtualFs)。
  • 新增针对并发交错流遥测、Windows 路径大小写折叠以及未预读后端文件的全写阻断 3 项回归测试。
  • 全套 13 项官方 agent loop 集成测试全部通过,TypeScript 声明严格校验零错误。

v0.5.0

Choose a tag to compare

@Jaylor-Wang Jaylor-Wang released this 05 Nov 13:57

Initial release of dsh-plugin-agent-optimizer: non-invasive runtime policy guards, PTC composite batch tools, soft convergence guidance, and A/B turn telemetry for DeepSeek Harness.