dsh-context-domains

Puts a domain bar under the session header — a domain groups skills and tools and toggles as one block, so one click loads or unloads every member. Hovering a chip lists its members (skills, then tools) in a height-capped panel that scrolls. The right end of the bar is a compaction-threshold counter (− 5 +, 100k tokens per step) that rewrites the live compaction engine policies, so the compaction trigger line changes on the next turn without restarting dsh; a degraded fallback turns the number amber and is reported in the snapshot. Settings maintains domains and members with search, skill/tool tabs, all/selected/unselected filters and a copyable AI grouping prompt. Tool removal uses tools.restrict plus a guard; hiding a skill re-registers it with modelInvocable false, so it leaves the model catalog while /name still works. Sessions of another preset are left untouched.

Overview

Puts a domain bar under the session header — a domain groups skills and tools and toggles as one block, so one click loads or unloads every member. Hovering a chip lists its members (skills, then tools) in a height-capped panel that scrolls. The right end of the bar is a compaction-threshold counter (− 5 +, 100k tokens per step) that rewrites the live compaction engine policies, so the compaction trigger line changes on the next turn without restarting dsh; a degraded fallback turns the number amber and is reported in the snapshot. Settings maintains domains and members with search, skill/tool tabs, all/selected/unselected filters and a copyable AI grouping prompt. Tool removal uses tools.restrict plus a guard; hiding a skill re-registers it with modelInvocable false, so it leaves the model catalog while /name still works. Sessions of another preset are left untouched.

Installation

Install from GitHub

dsh plugin --profile web add github:guicaiyue/dsh-context-domains

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.