DeepSeek Harness Plugin

Aliuyanfeng/dsh-soul

Stars ★ 11 Downloads (30d) 7,192 Category UI Enhancements Added 2026-09-01 npm dsh-soul

Personalization for the agent: a Web UI panel (about-you, reply style & tone, traits for headings/lists and emoji, output language, custom instructions) and `/soul` commands, with nickname/occupation/bio/style/traits/language compiled into a system prompt and re-injected into active sessions. Exposes `soulConfig` for other plugins and a `set_persona` tool the agent can call.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-soul

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Aliuyanfeng/dsh-soul

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

简体中文 | English

dsh-soul

Verify

A personalization plugin for DeepSeek Harness (DSH). Configure your agent's nickname, reply style, tone, and custom instructions.

Features

  • Personalization settings page in the Web UI
  • Localized settings UI (English/Chinese, follows the interface language), dirty tracking (save disabled when unchanged), save-result toasts, and a read-only prompt preview panel
  • Enable or disable personalization
  • "About you": set your nickname, occupation and bio so replies fit your background
  • Combined style & tone option: professional, casual, humorous, roast, efficient
  • Trait fine-tuning (layered on top of style & tone):
    • Headings & lists: default, more (clear formatting with headings and lists), less (more paragraph text)
    • Emoji: default, more (frequent emoji usage), less (minimal emoji usage)
    • Tables: default, more (prefer tables for comparisons and multi-field data), less (avoid tables; use lists or paragraphs)
  • Reply length preference: concise (key points only), normal (no extra constraint, default), detailed (expand background, steps and reasoning)
  • Output language (agent reply language + /soul command output language): Chinese, English, Russian, Japanese, Spanish, French, German or Portuguese. It is a global switch, not a persona trait — so presets do not store it, and subagents follow it too (turning off inheritance does not change the language). It localizes the prompt and the replies
    • UI text is a separate layer, unrelated to the output language: the host UI supports zh / en / ja / es / fr / de / ru / pt since DSH 0.2.2 (the last six are appended via addLanguage); this plugin's own strings (settings page, sidebar, 438 keys) ship in all eight languages the host supports, applied as soon as you switch the host UI, with no extra plugin and no fallback to Chinese / English left. The Russian strings were merged from the MIT pack dsh-soul-ru-lang (see UI language)
  • The compiled system prompt follows the output language (English / Russian / Japanese descriptions when language=en / ru / ja)
  • Custom instructions
  • Agent-callable tool set_persona to let the model adjust persona during a conversation
  • Persona artwork: each of the 7 built-ins ships with one; custom presets can have their own image: pick one when saving (PNG / JPEG / WebP, ≤ 1.5 MB, square recommended; larger images, or formats the browser can decode, are scaled to 1024 px and converted to WebP automatically); saved presets swap or remove it from the overlay that appears when you hover the artwork (current custom card only). Not into making images? "Copy image prompt" in the save dialog assembles an English prompt from your current style and custom instructions — paste it into any image generator. The art direction is pinned to the built-in set (3D anthropomorphic blue whale); style only changes its mood, so new artwork sits next to the built-in cards as one series. Saved presets can copy it too from the artwork overlay (using that preset's own style and instructions). "What gets saved / what doesn't" now lives behind a question mark next to the dialog title Uploads live in ~/.dsh/soul-art/, outside the package (updates never overwrite them) and are named by the preset name's sha1 — renaming means a new preset
  • Named personas: 7 built-in personas (Socratic Questioner / Minimalist / Senior Architect / Teaching Explainer / Strict Code Reviewer / Brainstorm Partner / Self-Driven Collaborator — shipped with the plugin, cannot be deleted) plus your own named personas, switched with one click (save / use / list / delete, in both the Web UI and slash commands); each row summarises the style and every dimension that differs from its default
    • Under all eight UI languages the 7 built-in personas show names / descriptions / instructions in that language (Chinese uses the canonical text; lib/personas-<lang>.mjs, sharing the matching rules in lib/personas-i18n.mjs). The same holds for the output language: with English / Russian / Japanese / Spanish / French / German / Portuguese selected, the built-in persona instructions that reach the prompt are in that language too
    • When UI language and output language differ, nothing is left ambiguous: card names follow the UI language, the instruction text on the card back follows the output language (that is what the model actually receives). When they differ, the card back notes “Instruction text follows the output language (currently: …)”, and the output-language row offers a one-shot “Use interface language (Español)” button. No automatic syncing by design: silently rewriting the output language on every UI switch would create audit entries, session injections, and fights between multiple tabs. The instructions that reach the prompt follow the output language; the UI locale only affects display. Persona keys stay canonical, so switching languages never changes existing presets, bindings or session overrides
  • Personas cover the agent's personality only: switching a persona never touches "About you" (nickname / occupation / bio describe you, not how the agent talks). Built-in and self-saved personas behave identically — saving a persona snapshots style / traits / reply length / custom instructions — never the identity fields, and never the output language (a global switch); full-config snapshots written by earlier versions are stripped on read
  • Scope precedence: session override > workspace binding > directory binding > global settings > defaults. A binding is a partial override — it takes over only the fields that persona actually declares, so saving in the global Traits section will not change a workspace that has a persona bound. "About you" is never in scope: it always comes from the global config. Neither can any layer turn off enabled. The note sits under the Traits section's save buttons as a short hint line, with the detail behind the ⓘ next to it.
  • Soul persona overview (sidebar panel, off by default — turn it on in Settings → "Show persona overview in sidebar"; while off it takes no sidebar space, and the "Open persona overview" button still opens it): see at a glance which persona is active globally, and whether each workspace / session overrides it. Three blocks: Current (switch the global persona in place) · Workspaces (rebind a broken binding in place; expand to list that workspace's sessions) · Presets (read-only list; add/edit/delete stays in Settings). Click a session row to jump straight to that session; the panel refreshes automatically when persona or bindings change elsewhere
  • The overview uses the same session scope as the sidebar: registry members − archived − subagent sessions, and the "N sessions" count follows the same rule (archived ones excluded). Sessions that never had a conversation are labelled "(empty session · no conversation yet)" and collapsed by default, with a toggle to show them
  • Quote as context (off by default; DSH already ships a better entry point, dsh-message-quotes): select text in a reply → Quote, and it is delivered to the model as runtime context with your next request — it never enters your message body or the chat history
    • Why off by default: the official "message quotes" feature has the identical entry point but inserts the quote into the composer as a visible, editable Markdown blockquote, which is the expected shape. This option only serves the "quote must not enter the message" case, so it does not take up the default position
    • When on, a "N quoted passage(s)" pill appears above the message that carried the quotes; hover to read the original text. Pills bind to the unique message id, so they never drift to later turns or get replaced
    • Queued messages carry no quotes: the quotes expire as soon as the queue shrinks — they belong only to the message you actually sent
  • set_persona confirmation mode (requireToolConfirmation): agent persona changes first raise the host's native approval panel above the composer, taking effect only after you click "Allow once" or "Reject" (Enter allows, Esc rejects); when the approval channel is unavailable (e.g. the session approval policy is never) it degrades to a pending proposal handled with /soul confirm
  • Composer light trail: while the agent is replying, a light trail loops around the composer border (default color #679EFE)
    • Color: preset swatches, a color picker, or a hex input (e.g. #679EFE)
    • Flow speed: slow / normal / fast (default slow, 4.8s / 3.6s / 2.4s); trail thickness: thin / normal / thick (default thin, 1.5 / 2.5 / 4 px)
    • The trail advances at constant speed along the border and fades into a tail; it sits exactly on the composer border, never producing a double line
    • The settings page shows a live preview that follows color / speed / thickness; automatically disabled under "reduce motion"
  • Sidebar trail (runIndicatorEnabled, on by default): a running session's sidebar row gets a flowing 1px border, a 7% tint, and a bolder title
    • The leading mark has selectable shapes (runIndicatorShape): full ring / arc / four-point star / dot, all tinted with the trail colour; the host's 14px ring is hidden but keeps its slot, so the row does not jump
    • Colour and speed read the same light-trail settings; the two switches sit next to each other on the settings page
    • Turning it off returns the row completely to the host's own look (tint, weight and border all disappear); the host's 14px status ring stays as it is
    • Under "reduce motion" the border becomes a static outline
    • Each switch carries its own sample: the composer trail switch shows a composer-shaped sample, the sidebar switch shows the "Off / On" pair (the ring spins like the host's: 1.5s rotation plus a breathing arc)
    • Colour / speed / thickness collapse into a single "Trail colour & speed" row: collapsed by default, showing the current swatch, speed and thickness on the right (so the summary is readable while closed); expanding reveals the swatches and selects, with a note that both positions share them. It stays available as long as either position is on, so turning the composer trail off does not take away the only colour control
    • Directly under the switch there is an "Off / On" two-pane comparison; both panes are really rendered (the "On" pane hard-codes data-soul-run-row="on" on the row itself, so the same four sidebar rules apply), sharing one stylesheet with the live UI. It is a fixed illustration: it reads neither the switch nor any config state, so toggling the switch does not change it; colour and speed still follow, and they come from the local value (same source as the composer sample), so dragging the colour picker updates it on the same frame instead of waiting for the 600ms debounce. It uses its own attribute rather than data-row-key: with the switch on, the page-level [data-soul-run="on"] would also match a data-row-key row and light up the "Off" pane
  • /soul set key=value field updates
  • Configuration persisted to disk
  • Input validation: field whitelist, types, length limits (nickname/occupation 50, bio 500, custom instructions 2000 chars), enum and hex-color checks; invalid or oversized fields reject the whole write
  • Durable config: writes are atomic (temp file + rename, so an interrupted write can never leave half a config); reads tell "file missing" apart from "file corrupted" — a corrupt file is left untouched, backed up as .corrupt, refused as a write target, and the reason is shown right in the settings page so your custom instructions and persona library are never silently wiped
  • Reset is the escape hatch for a corrupt config: since every other write path refuses to touch a corrupt file, /soul reset (and the settings-page reset button) moves it aside as .corrupt and writes a fresh default config, reporting the backup path — so a bad file never locks you out of the plugin without a restart
  • Delivery is observable: /soul show ends with a delivery line, GET /api/soul/status reports version / enabled / configPath / configError / promptChars / both channels / deliveryWarning, and the settings page shows the same reason as a banner. configError (cannot read the config) and deliveryWarning (cannot deliver it to active sessions) are reported separately — same symptom, different fix
  • Prompt interpolation is disabled: {{…}} in custom instructions stays literal and can no longer break system-prompt assembly
  • Configuration synced to all active agents after every update
  • Change detection: the prompt is refreshed and sessions injected only when a behavior-affecting field actually changed — appearance-only config (composer light trail) is persisted without injecting anything
  • Change history and rollback (plugin details page: Plugin manager → Installed plugins → dsh-soul; the settings page only keeps a pointer, and the retention dropdown lives in that same block): every config change appends a record (time, source, field-level old → new), and you can undo one change together with everything after it; deleted personas can be restored individually. The log lives in $DSH_HOME/soul-config.history.jsonl (append-only, one record per line, readable by eye), and the retention count is configurable (50 / 100 / 200 / 500, default 200, applied immediately). When it cannot be written, only the log suffers — config writes still go through, and you are told the history may be incomplete
  • Plugin icon: a dedicated icon in the plugin manager list and the sidebar entry (assets/icon.svg, 36×36, shipped with the npm package)
  • Settings nav icon: the "Personalization" entry in the settings panel draws the same geometry as the plugin icon — same trail and spark, but coloured and weighted like its neighbours (monochrome currentColor). DSH hardcodes nav glyphs by section id and offers no way for a plugin to declare one, so the client swaps the glyph in the DOM
  • Prompt preview (read-only, collapsible section at the bottom of the settings page): shows the currently active prompt while the form is untouched; as soon as any edit is pending it compiles the draft instead — what will actually be injected once you save — refreshing live (400 ms after you stop typing) and again after save / reset / applying a persona. Fields that fail validation are listed separately and excluded from the preview

Roadmap

Version Direction Status
0.7.2 Settings-page styling aligned with the host, stacked card carousel, persona changes routed through the host's native approval panel Released
0.8.0 Change audit and rollback — every config change recorded (timestamp, source, field-level from→to), with a timeline and undo on the plugin details page Released
0.9.0 Three-level config scoping — Global → Workspace → Session: the workspace picks the persona, a session may override it, plus conservative cleanup Released
0.10.0 Persona overview panel — puts "who is in effect" on a panel: active / workspace × session cascade / preset library, switchable in place; button specs aligned with the host Released
0.11.0 Quotes as context — selected text rides along with the next request (never in the message body or history); history chips bound by message id; sidebar overview toggle Released
0.12.0 Per-section saves on the settings page — "About you" and "Traits" save independently, interaction and UI settings take effect immediately; the composer toggle can be hidden Released
0.13.0 Subagent persona boundary — inheritance toggle plus set_subagent_persona; the same release hardens the trust boundary (CSRF, UNC paths, confirmation before persona writes) Released
0.14.0 Russian — Русский joins the output languages, and the 7 built-in personas are localized under a Russian UI Released
0.15.0 Japanese — 日本語 joins the output languages (Japanese names / descriptions / instructions for built-in personas still pending) Released
0.16.0 Complete the language set — close the gap 0.15.0 left by localizing the built-in personas in Japanese (lib/personas-ja.mjs); ship the UI text for four languages inside the package (zh / en / ru / ja, Russian merged from the MIT pack, no overlay to install); the host's 8 output languages and 8 UI languages are all covered (pending release) Planned
Backlog Self-evolution proposals with diff approval — the Agent proposes persona refinements and the diff goes through the approval panel Not scheduled
Backlog Memory layer — long-term memory across sessions, isolated per persona, recalled on demand Not scheduled

Design rationale lives in docs/; shipped changes are in RELEASE_NOTES.md, the release process in PUBLISHING.md, and the troubleshooting playbook in DEBUGGING.md. The roadmap states direction, not a commitment — the order may change.

Version numbers appear only on work that has started: 0.10.0 / 0.11.0 were once reserved for self-evolution and the memory layer, but other features shipped under them, so those two are now "Backlog" without a reserved number. The next number is picked when work begins.

Docs

File What it covers
README.md / README_EN.md Features, install, usage (for users)
RELEASE_NOTES.md Detailed per-release changelog (for debugging and history)
DEBUGGING.md Symptom → cause playbook, how the verification chain is built
PUBLISHING.md Release process and npm publishing setup
QUICK_START.md Shortest path to a working setup
docs/DESIGN-config-scope.md Three-level scoping: why these layers, why cleanup is conservative
docs/DESIGN-audit-rollback.md Change audit: why undo also reverts later changes
docs/DESIGN-persona-scope.md Original directory-binding design (predecessor of 0.9.0; path normalization still in use)

Installation

dsh plugin --profile <profile> add dsh-soul
dsh plugin --profile <profile> update dsh-soul

Replace <profile> with your own profile name (e.g. desktop when using the DSH desktop build).

The plugin is registered via cordis.patch.yml:

- insert:
    - id: soul
      name: dsh-soul

UI language

The host UI has supported zh / en / ja / es / fr / de / ru / pt since DSH 0.2.2 (it appends the last six via addLanguage at runtime). This plugin's own UI strings (settings page, sidebar and friends, 438 keys) ship in all eight languages — Chinese / English / Русский / 日本語 / Español / Français / Deutsch / Português — i.e. every UI language DSH supports: switch to one and it applies immediately, with no extra plugin to install and no language falling back to Chinese / English.

Where the Russian strings come from: the ru dictionary was merged from the third-party language pack dsh-soul-ru-lang (MIT, Copyright (c) 2026 dsh-soul-ru-lang contributors) with the translations unchanged. Since 0.16.0 that pack is no longer needed; if you installed it, uninstalling is recommended — leaving it in place does no harm either, because registration is per language and the first registrant wins for that language.

The Japanese, Spanish, French, German and Portuguese dictionaries are maintained in this repo (drafted in 0.16.0). Every dictionary is key-for-key aligned, including {placeholders} — one missing key or a mangled placeholder turns npm run verify red.

UI language and "Output language" are two layers: the UI language only controls the settings page and sidebar text; the language the agent answers in comes from "Output language". Neither implies the other.

Compatibility

The plugin ships no DSH runtime packages; the host provides them all. DSH validates peerDependencies before loading, comparing against the DSH runtime version (the version of @deepseek-ai/dsh-app-boot), not the individual packages' versions:

Package Range
@deepseek-ai/dsh-llm >=0.1.1-rc.2 <0.3.0-0
@deepseek-ai/dsh-tools >=0.1.0-rc.6 <0.3.0-0
@deepseek-ai/cordis ^4.0.1 || ^4.0.5-alpha.1

So DSH 0.1.x and 0.2.x are supported, prereleases included. Run npm run verify:compat to check the declaration against your environment.

If DSH reports "dsh-soul@x.y.z is incompatible with DSH a.b.c", the plugin predates that DSH version — updating it is enough:

dsh plugin --profile <profile> update dsh-soul

Screenshots

Settings page (About you + Traits)

Settings page (upper part): About you & start of Traits

Settings page (Traits + Custom instructions)

Settings page (lower part): Traits, Output language & Custom instructions

/soul command prompt

`/soul` command autocomplete hint and input box

/soul command output (set nickname, show, enable, disable, reset)

Sample outputs of multiple `/soul` commands

Usage

After starting DSH, open the Personalization section on the settings page. About-you and Traits each have their own save button that submits only that section; the Interaction & UI group (confirmation mode, quick toggle, subagent inheritance, output language, quote, sidebar overview, input trail) applies immediately with no save needed. Reset to defaults lives under Advanced and asks for a second confirmation.

Subagent personas

Subagents (the helpers DSH sends out to do work) reuse your persona by default. If you want them to carry no personality or nickname at all, turn off "Subagents inherit persona" under Interaction & UI — they will then work from the task alone.

When one task needs different roles (one edits code, one reviews it), the main agent can assign a persona per subagent — no need to touch this settings page:

  • Queue before spawning: set_subagent_persona({ persona: 'Strict code reviewer', pending: true }) then spawn — the subagent is born with that role (spawning is task-in-hand, so setting it afterwards is a race).
  • Target a running subagent: set_subagent_persona({ session, customInstructions: 'Only flag issues' }).
  • Only subagents you spawned and that are still running can be targeted; once one has ended its persona cannot change — a persona is assembled once, when the subagent starts.

Slash commands

Slash commands are also available:

/soul show        Show current configuration (confirmation mode, persona count & delivery status)
/soul set k=v     Change config fields (e.g. /soul set style=humorous language=en; trail: trailColor=#679EFE trailSpeed=fast trailWidth=thick)
/soul save <name> Save the current persona as a preset (personality fields only, never "About you"; built-in names are reserved)
/soul use <name>  Apply a persona (built-in personas work the same way)
/soul list        List personas (✔ marks the active match; built-ins carry a [built-in] tag)
/soul del <name>  Delete a persona (delete / rm aliases; built-in personas cannot be deleted)
/soul confirm     Apply the pending persona proposal (confirmation mode)
/soul reject      Discard the pending persona proposal
/soul reset       Reset configuration (keeps the persona library; with a corrupt config this is the escape hatch — the bad file is moved aside as .corrupt first)
/soul enable      Enable personalization
/soul disable     Disable personalization
/soul Bob         Set nickname

Once saved, the configuration is synced to all active agents and takes effect on the next request in the current session; no-op saves inject nothing.

The agent can also use the set_persona tool to adjust your persona (nickname, style & tone, traits, reply language, custom instructions). The model only invokes this tool when you explicitly ask to change how it addresses or responds to you. With Require confirmation for persona changes (requireToolConfirmation) enabled, tool changes first raise the host's native approval panel above the composer (the same interaction the host uses for sandbox escalation and model switching), where you click "Allow once" or "Reject" — Enter allows, Esc rejects, and the decision is written to the session audit log. When the approval channel is unavailable (for example the session approval policy is never, or no web UI answerer is present) it degrades to a pending proposal handled with /soul confirm or /soul reject. Under a full-permission session (approval policy never) the panel never appears and every change requires a manual command, so turning this switch off is recommended.

Configuration File

The configuration is stored in the DSH user data directory:

soul-config.json

Example:

{
  "enabled": true,
  "nickname": "Bob",
  "occupation": "Software Engineer",
  "bio": "Interested in programming and technology",
  "style": "professional",
  "language": "en",
  "customInstructions": "Be concise and lead with the conclusion.",
  "requireToolConfirmation": false,
  "trailEnabled": true,
  "trailColor": "#679EFE",
  "trailSpeed": "slow",
  "trailWidth": "thin"
}

Your own personas are stored in the same file under the personas field: name → persona field snapshot (style / traits / reply length / custom instructions) + updatedAt. A persona never contains "About you" (nickname / occupation / bio) — those describe you, and switching a persona only changes how the agent talks. This is enforced structurally by PROFILE_FIELDS and PERSONA_FIELDS in lib/config.mjs: snapshotting, applying, ★ matching and on-disk normalisation all go through the PERSONA_FIELDS allow-list, so built-in and self-saved personas behave the same way. Persona library changes never touch the active config; a persona is applied to the config (and synced to sessions) only when used. Built-in personas are not persisted — they live in lib/personas.mjs — and listing / applying / match detection all go through the merged view of built-ins plus your own; on a name collision the built-in wins, and a built-in name can neither be saved over nor deleted.

Composer light trail fields: trailEnabled (on/off, default true), trailColor (6-digit hex, stored uppercase, default #679EFE), trailSpeed (slow / normal / fast, default slow), trailWidth (thin / normal / thick, default thin). These are appearance-only: they are persisted but never enter the system prompt and never trigger a session injection.

Length limits: nickname / occupation 50 chars, bio 500 chars, custom instructions 2000 chars; the color must be #rrggbb. Unknown fields are dropped; invalid or oversized fields reject the whole write (HTTP returns 400 with per-field error details).

How It Works

"Takes effect on the next request after saving" is guaranteed by two channels — both are required (see DEBUGGING.md 3.5).

Channel 1: the system-prompt section. The plugin compiles the config into a system prompt and registers it with DSH:

spCtx.systemPrompt.section({
  name: 'soul:persona',
  order: 0,
  // Host prompt interpolation is disabled: with it on, any complete {{…}} pair in your
  // custom instructions makes assembly throw — and that throw happens at the top of
  // agent.step() with no try/catch, so every single turn fails.
  interpolate: false,
  text: () => compilePrompt(configCache || DEFAULT_CONFIG)
})

The host re-assembles the prompt before every step, does not cache function-form text providers, and commits a new system snapshot whenever the text changes — so this channel updates on the next request.

Channel 2: injection into active sessions. After a config change the plugin walks every active agent and calls agent.inject() with a standard UserMessage:

agent.inject(createUserMessage({
  content: [{ type: 'text', text: `[dsh-soul personalization updated]\n…\n${prompt}` }],
  // Session format v4 requires producers to carry their own kind (the shared
  // kind:'plugin' + plugin field is rejected, failing every turn before step);
  // construction lives in lib/injection.mjs
  source: { kind: 'plugin:dsh-soul', form: 'snapshot', sections: [{ name: 'soul:persona', text: prompt }] }
}))

agent.inject() places the latest config into the agent's pending context so it takes effect on the next request; it does not trigger a new request and does not rewrite message history. It is also the visible carrier of "already updated": a [dsh-soul personalization updated] message shows up in the conversation.

Why both are needed: with channel 1 alone, changing the persona mid-conversation was measured not to take effect on the next turn (channel 2 was removed on that assumption during 0.7.1 development, then rolled back verbatim). npm run verify:host and npm run verify:e2e pin each channel down in place; re-run them after every DSH upgrade.

Diagnostics. Both channels fail silently with the same symptom — "I changed the config and nothing happened" — so the plugin records delivery honestly: the delivery line at the end of /soul show, GET /api/soul/status, and the banner on the settings page (configError = the config cannot be read; deliveryWarning = it cannot be delivered to active sessions).

Security boundary

Deployment model: single user, single instance. The plugin's auditing and isolation both assume "one DSH owned by one user, listening on 127.0.0.1." The host webServer binds loopback only by default — that is a security precondition, not an option. If you set it to 0.0.0.0 and expose it on a LAN, anyone who can reach the port can:

  • read the config: nickname / occupation / bio / custom instructions (GET /api/soul/config);
  • rewrite every session's persona, or inject arbitrary text into system prompts (POST /api/soul/config);
  • wipe the audit trail (POST /api/soul/history/clear).

Multi-user shared-instance isolation is out of scope — use reverse-proxy auth, or keep one DSH_HOME per user.

Defenses that are part of this plugin (0.13.0):

  • CSRF guard: every write endpoint requires Content-Type: application/json and rejects Sec-Fetch-Site: cross-site. The cross-site text/plain "simple request" (no CORS preflight) is therefore blocked.
  • UNC paths are not resolved: calling fs.realpath on \\server\share sends the current user's NTLM hash (Windows); bindings skip realpath for UNC entirely.
  • Sensitive file permissions: session sidecars and the change log contain personal data, kept under $DSH_HOME. On POSIX, ensure the directory is not 0777; on a multi-account machine, tighten the $DSH_HOME ACL.

License

MIT License — see LICENSE for the full text.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.