DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Context Economy — DSH Plugin for DeepSeek Harness
← Plugins
C

@dsh-external/dsh-context-economy

Context Economy

Token-efficient project reading with symbol/import indexing, PageRank topology, and byte-level slicing for DSH

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:huangjua/dsh-context-economy#9daab7da48c8ee05366af1f4c475a1f6e3890c13
READMECompatibilityVersions

Compatibility and provenance

Context Economy is published as @dsh-external/dsh-context-economy and currently resolves to version 0.0.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/1/2026

Versions

0.0.1stable
9/1/2026

Related plugins

Loading related plugins…

Latest
0.0.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
BSD-3-Clause
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/10/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocolPlus@sparkelf/dsh-plusDeepSeek Harness Plus official-base Web distribution profile and ranged compatibility patchset

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.