YuanyuanMa03/dsh-funnel

Plugin ⭐ 0 MIT developer-toolstools

Curate tool output before it enters the model's context — keep error/warning lines and head/tail, spill the full text with a pointer. ~24x smaller model view, measured. For DeepSeek Harness.

Install

Every later turn in the session pays for 370 characters instead of 8,893 — the saving compounds each request.
3. **Nothing is lost, and the model recovers on its own.** The full text spills to `.dsh-funnel/` and the notice carries the path. In testing, the model missed a middle line in the curated view, searched the spill file itself, and answered correctly — curation is pagination, not deletion. The spool doubles as an audit trail of what the agent actually saw.
4. **Long tasks hold up better.** Smaller context means cheaper turns, later compaction, and less attention dilution — the agent stays sharp deeper into a session instead of degrading as junk accumulates.
5. **Tune it to your workflow.** Threshold, kept lines, keyword patterns (add your project's own failure markers), per-tool aggressiveness, spill on/off.

Boundaries: error results are never touched (they are short and load-bearing); this complements compaction rather than replacing it.

## How it works

dsh-funnel wraps the `tools/execute` extension point (the seam the official timeout guard uses) and curates the canonical `value` of successful results: the registry re-projects model-facing content from `value`, so the curated view is exactly what the model sees and what the session log records. Long string fields inside `value` — stdout, stderr, fetched pages, file contents — are replaced in place; error results are never touched.

## Install

Add YuanyuanMa03/dsh-funnel to your DSH config (web profile) to enable.

README

Expand full README Collapse

README is empty.