Introduction¶
In DeepSeek Harness (DSH), the user-level AGENTS.md is injected into the system prompt on every request via @deepseek-ai/dsh-agent-instructions, acting as a “global persona” across sessions. If users are restricted to manually editing ~/.dsh/AGENTS.md, the path is unintuitive, and it is easy to become disconnected from other configurations in the Web interface. The community plugin dsh-global-persona (maintained by hunbujiu) provides a viewing and editing interface under Settings → Global Persona, writing changes back to the same file. This article describes its location, installation, and behavioral boundaries based on the repository README. The DSH ecosystem is moving in the direction of “everything is a plugin”; the SkillHub directory page serves as a community collection and has no official affiliation with DeepSeek or Quantilla (High-Flyer).
What is this¶
dsh-global-persona is a client-side plugin for DSH: it registers a “Global Persona” section in the Web settings’ settings.section, reading and writing the user-level AGENTS.md (path: $DSH_HOME/AGENTS.md, default: ~/.dsh/AGENTS.md). It is classified as a client-side plugin; the repository currently has about 1 star on GitHub. The license is MIT (see package.json).
Which file does it change and when does it take effect¶
The README specifies that @deepseek-ai/dsh-agent-instructions injects the aforementioned user-global file into the system prompt on every request. After saving:
- The next request in a new session will include the new content;
- Sessions already running will retain the baseline from when they started, and the persona will not change mid-session.
Core Features¶
Settings Page¶
The browser-side client.js registers “Global Persona” to the settings, providing a viewing and editing interface; the host-side index.js parses the file path and registers a local-access-only HTTP read/write interface. Text is provided in Chinese and English via locale/*.json; the plugin is integrated into the profile via cordis.patch.yml.
HTTP Interface (Loopback only)¶
GET /api/dsh-global-persona/document → { ok, value: { path, exists, content, version, bytes, updatedAt } }
POST /api/dsh-global-persona/document ← { content, expectedVersion? }
→ { ok, value } | { ok: false, error, conflict? }
Key points (all from the README):
- Only accepts loopback requests (
127.0.0.1/::1/localhost), preventing exposure of the global persona to the local network. expectedVersionis anmtimeMs:sizefingerprint; providing it allows for optimistic concurrency control. If the file has been changed elsewhere, it returnsconflict: true, and the interface prompts to “Re-read” first, preventing mutual overwrites between multiple windows.- Writes adopt a “temp file + rename” strategy to avoid partial content being written to disk.
- Single write limit is 1 MiB.
Installation and Activation¶
Install from GitHub (official command):
dsh plugin add github:hunbujiu/dsh-global-persona --profile desktop
For local development, you can use link: to point to a working copy (the README example path is for Windows; replace it with your local directory):
dsh plugin add link:D:/20761/Documents/dshwork/dsh-global-persona --profile desktop
After modifying code: the host side (e.g., index.js) requires restarting dsh web; if only client.js is changed, simply refreshing the page is sufficient.
Typical Usage¶
- Install the plugin for the
desktopprofile using the command in the previous section, and restartdsh webif necessary. - Open DSH Web and navigate to Settings → Global Persona.
- Modify the Markdown content in the editor and save; the content is written to
$DSH_HOME/AGENTS.md(default~/.dsh/AGENTS.md). - Start a new session or verify in the next request of a new session whether the Agent responds according to the new persona; do not expect an ongoing session to switch personas mid-way.
- If a conflict warning appears upon saving, click “Re-read” before editing to sync the
expectedVersion.
Use Cases and Notes¶
Who it’s for: Developers who need to maintain a long-term user-level Agent description (style, constraints, common context) within DSH and want it in the same entry point as graphical settings.
Permissions and Security: The plugin runs with the permissions of the current dsh process. Before installation, please review the source code and the MIT license yourself. Although the read/write interface is restricted to loopback, it is equivalent to allowing the local user to modify the global persona file.
Development Method: The README notes that the code and documentation for this project are partially developed by AI (primarily generated and modified by a coding Agent within the Harness), with human authors responsible for requirements, review, and release; AI-generated code has not undergone independent formal verification, so please audit it yourself before deployment in critical environments. Issues can be reported via Issues.
Conclusion¶
dsh-global-persona integrates the user-level AGENTS.md into Settings → Global Persona, aligning with the DSH instruction injection pipeline, and features version fingerprinting and a loopback-only API to reduce risks of accidental overwrites and local network exposure. For further information, visit the SkillHub directory page and the GitHub repository.