sorbitol25/dsh-persona-switch

Switches the DSH system prompt persona live from a running session - TUI, web or headless - with /persona commands, a persona_switch tool, markdown persona files and a complete mode that replaces the whole prompt.

Overrides the DSH system prompt with a persona chosen at runtime, by registering one prompt section whose text is a provider function evaluated at every assembly, then disposing and re-registering it on a switch so system-prompt/change fires. Commands are /persona (active persona plus roster), /persona list, /persona <name>, /persona off, /persona reload and /persona complete on|off|auto; the same operation is exposed to the model as the persona_switch tool. Personas are markdown files in $DSH_HOME/personas/, seeded on first run from the package's personas/ folder — jb (~8 KB, complete), terse (0.5 KB) and _selftest (answers only BANANA) — with front-matter title, complete (true replaces the whole prompt, false keeps first-party guidance) and suffix. Config is maxPersonaBytes (default 400000) and tool (default true); state and log live in persona-switch.json and persona-switch.log.

Agent Capabilities ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add dsh-persona-switch

Copied verbatim from the README's "Install → From npm" PowerShell block, the first of its three per-profile lines. package dsh-persona-switch, registry latest 0.1.3, repository field resolving back to github.com/sorbitol25/dsh-persona-switch — the README notes a pin (@0.1.2) is only needed against a stale pnpm packument.

Compatibility

Badged as verified against DSH 0.2.0-rc.2 and 0.2.1-rc.1. Restart the target profile (or just start it) after install — the package declares dsh.bundle.patch, so dsh plugin add also appends it to dsh.profile.bundles. The desktop profile is reserved by the Electron app and refuses dsh plugin --profile desktop, so the README ships scripts/install-desktop.ps1 plus a full quit and restart, tray included. State is deployment-wide in $DSH_HOME/persona-switch.json, and a complete: true persona is re-sent as the entire system prompt every turn, so an 84 KB persona costs those tokens on every request.

Details

Alternatives

Diluka/dsh-persona · Zephyr-vibe/dsh-personalize · Xilin3/dsh-prompt-persona

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins