dsh-readcache
Version-token-validated in-process result cache for the DSH read tool: repeated reads of unchanged files skip file I/O and line rendering, with a readcache tool for stats and clearing.
为 DSH read 工具提供版本令牌校验的进程内结果缓存:未变更文件的重复读取跳过文件 I/O 与行渲染,附带 readcache 工具查看统计与清空。
How to install
dsh plugin add dsh-readcache About
dsh-readcache ⚡ **给 DSH read 工具的版本令牌校验结果缓存。** 长会话会反复重读未变更的文件——上下文压缩后的恢复、并行子代理、编辑前后的对比,每一次重复都要重新做文件 I/O 和行号渲染,读到的却是字节完全相同的内容。dsh-readcache 包装了 tools/execute 事件瀑布,让这些重复读取直接命中进程内缓存,**且每一次命中都对照文件系统自己的版本令牌重新校验**。 为什么它是安全的 朴素的缓存会吐旧内容,这个插件不会: | 性质 | 机制 | |---|---| | **绝不吐旧内容** | 每次命中都重新 stat 文件,要求版本令牌精确匹配(本地后端为 dev:ino:size:mtimeNs:ctimeNs)。任何写路径——edit/write 工具、bash、外部编辑器——都会改变令牌并立即失效对应条目。 | | **无写入竞态** | 未命中时,执行结果只有在二次 stat 仍报告执行前令牌的情况下才会入缓存(双 stat 防护)。 | | **保留"先读后改"约束** | 缓存键包含代理 id。文件系统的观察门(fs-observation-policy)要求每个代理编辑前必须自己读过该文件;按代理隔离键值保证每次命中都以该代理自己的先前观察为凭据。 | | **内存有界** | LRU 上限:300 条 / 总量 16 …
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 1
- mo. downloads
- –
- Last push
- 2026-08-23
- Created
- 2026-08-23
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- cache, deepseek-harness, dsh, dsh-plugin
Related plugins
loki-mode
asklokesh/claudeskill-loki-mode
Multi-agent autonomous SDLC framework. Spec to deployed app. PRD, GitHub issue, OpenAPI/JSON/YAML, or one-line brief. 5 AI providers, 8 quality gates.
ccmanager
kbwo/ccmanager
Coding Agent Session Manager for Claude Code / Gemini CLI / Codex CLI / Cursor Agent / Copilot CLI / Cline CLI / OpenCode / Kimi CLI
ai-sdk-provider-claude-code
ben-vargas/ai-sdk-provider-claude-code
Vercel AI SDK community provider for Claude Agent SDK
langfuse
langfuse/langfuse
🪢 Open source AI engineering platform: LLM evals, observability, metrics, prompt management, playground, datasets. Integrates with OpenTelemetry, LangChain, OpenAI SDK, LiteLLM, and more. 🍊YC W23