DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Context Economy — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
C

@dsh-external/dsh-context-economy

Context Economy

通过符号/导入索引、PageRank 拓扑分析和字节级切片,以更少的令牌读取 DSH 项目

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:huangjua/dsh-context-economy#9daab7da48c8ee05366af1f4c475a1f6e3890c13
README兼容性版本

兼容性与来源证明

Context Economy 以 @dsh-external/dsh-context-economy 发布,当前版本为 0.0.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/1

版本

0.0.1stable
2026/9/1

相关插件

正在加载相关插件…

最新版
0.0.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
BSD-3-Clause
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/10
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序Plus@sparkelf/dsh-plusDeepSeek Harness Plus official-base Web 分发配置文件和范围兼容性补丁集

README

⚡ dsh-context-economy

Slash token costs for agent code reading via pointer & topology indexing
Pointer-Based Lazy Reading • PageRank File Topology • Byte-Level Slices • 80–93% Token Savings

Features • Quick Start • DSH Power Suite • Tools • 简体中文


💡 Why dsh-context-economy?

LLM context windows are finite and expensive. Dumping entire 2,000-line source files into prompts exhausts token budgets and severely degrades the model's reasoning capabilities.

dsh-context-economy provides an ultra-compact code reading layer:

  • 💰 80–93% Output Token Reduction: Queries return minimal path:line pointers with brief context; oversized matches spill cleanly to disk.
  • 🌐 PageRank Dependency Topology: Analyzes project imports (adapted from Aider's repomap algorithm) to prioritize central, high-frequency hub files (hotspots).
  • 🔬 Byte-Level Window Slicing (project_slice_read): Reads specific byte windows with regex find and tail tracking — built for huge single-line JS bundles and deep JSON.
  • 📊 Persistent Savings Accounting (project_savings): Automatically tracks token savings per turn against naive full-read baselines.

🚀 Quick Start

Installation

# In your DSH plugin environment
dev_inject_plugin @dsh-external/dsh-context-economy

Typical Usage Flow

  1. Find symbols with PageRank: project_symbols_find query="AuthHandler" ranking=true
  2. Inspect dependency hotspots: project_imports direction="hotspots"
  3. Query accumulated token savings: project_savings

🧩 DSH Power Suite

This plugin is part of the DSH Agent Power Suite — 4 modular, zero-hard-dependency plugins forming a complete closed-loop developer workflow:

graph LR
    M["🧠 <b>dsh-local-memory</b><br/><i>1. Remember rules & prefs</i>"] 
    --> E["⚡ <b>dsh-context-economy</b><br/><i>2. Save 80%+ tokens reading code</i>"]
    --> A["🛡️ <b>dsh-evidence</b><br/><i>3. Tamper-proof audit receipts</i>"]
    --> S["🔍 <b>dsh-session-index</b><br/><i>4. CJK search & bookmarks</i>"]
    --> M

    style M fill:#e8f4fd,stroke:#2b7de9,stroke-width:2px;
    style E fill:#eef9f2,stroke:#1e8e3e,stroke-width:2px;
    style A fill:#fef7e0,stroke:#f29900,stroke-width:2px;
    style S fill:#f3e8fd,stroke:#8430ce,stroke-width:2px;
PluginRole in SuiteSynergy with Context Economy
⚡ dsh-context-economyContext Economy (Current)Provides index-backed pointer reading and topology to slash token expenditure.
🧠 dsh-local-memoryMemory LayerFrees up prompt tokens, leaving abundant budget for persistent memory snapshots.
🛡️ dsh-evidenceAudit & ReceiptsBenchmark runs (savings-bench) generate verifiable evidence bundles registered into Evidence.
🔍 dsh-session-indexSession SearchCompact pointer output generates 80%+ smaller session logs, reducing search index load.

📖 Deep Dive & Reference

🛠️ Available Tools (8 Tools)
ToolDescription
project_index_statusView index stats, heal history, and manually refresh working-tree reconciliation.
project_symbols_findLocate symbols by name/substring with optional PageRank ordering.
project_importsInspect in/out import edges, top-k hotspots, and orphans.
project_filesCached fast glob listing relative project paths.
project_slice_readPrecision byte slicing with window / tail modes and ReDoS-protected regex find.
project_json_readBounded streaming scan of top-level JSON keys without full JSON.parse memory spikes.
project_cost_probeSingle-shot comparison probe between tool output and naive full-file reading.
project_savingsQuery accumulated token savings ledger (grouped by tool/root with trend analysis).
🏗️ Architecture & Self-Healing
  • Incremental Self-Healing Index: Tracks mtime + size to re-scan only modified files on demand without persistent daemon threads.
  • Top-Level JSON Scanner: 64KB chunk-based depth scanner preventing OOM on massive configuration files.
  • PageRank Algorithm: Power-iteration algorithm with $\alpha=0.85$ and strict convergence tolerances.
🧪 Building & Testing
npm run typecheck
npm run check:dsh-contract
npm test
npm run pack:check

Part of the DSH Agent Power Suite. Licensed under BSD-3-Clause.