Repository navigation
Releases: Jaylor-Wang/dsh-plugin-agent-optimizer
Releases · Jaylor-Wang/dsh-plugin-agent-optimizer
Release list
v0.9.0 - Dual Composite Batching with edit_batch
English
What's New in v0.9.0
edit_batchComposite Batch Tool:- Introduced
edit_batchalongsideread_batchto 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.
- Introduced
- Config & Guidance Updates:
- Added
compositeTools.editBatch(default:true) andcompositeTools.maxBatchEdits(default:10). - Updated convergence guidance to steer models toward
edit_batchwhen making multi-file modifications.
- Added
- 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
English
What's New in v0.8.0
- Interval Convergence Guidance:
- Upgraded soft step budget to periodic interval reminders (
stepInterval: 8, default capmaxRemindersPerTurn: 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.
- Upgraded soft step budget to periodic interval reminders (
- Dynamic Tool-Error Suppression:
- Automatically suspends reminder injection when a preceding tool execution encountered an error (
result.isErrororresult.error). - Allows model full uninterrupted latitude to diagnose and resolve errors without prompt pressure.
- Automatically suspends reminder injection when a preceding tool execution encountered an error (
- Virtual Backend Probe via
ctx.fs:fileMutationPolicychecks existence viafsService.resolveandfsService.statbefore 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
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 onsession/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.fsBackend Existence Probe: RefactorfileMutationPolicyto probe file existence through the sharedctx.fsbackend (resolveandstat), preventing false negatives on virtual, sandbox, or non-host filesystems even without prior reads in the current turn.
🧪 Testing & Verification
- Added mock
ctx.fstest fixture to the test runtime mappingvirtualFs. - 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.fsFixture,无缝映射虚拟文件系统(virtualFs)。 - 新增针对并发交错流遥测、Windows 路径大小写折叠以及未预读后端文件的全写阻断 3 项回归测试。
- 全套 13 项官方 agent loop 集成测试全部通过,TypeScript 声明严格校验零错误。
v0.5.0
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.