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.
Install
dsh plugin --profile web add dsh-persona-switchCopied 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
- Repo: sorbitol25/dsh-persona-switch
- Category: Agent Capabilities
- Stars: 0
- Version: 0 stars, JavaScript, MIT, created 2026-10-11; install source is npm (dsh-persona-switch, latest 0.1.3, registry repository field resolves back to this repo); English README, no translation.
- First seen: 2026-10-11
Alternatives
Diluka/dsh-persona · Zephyr-vibe/dsh-personalize · Xilin3/dsh-prompt-persona