Introduction¶
When using dsh-git-manager within DeepSeek Harness (DSH) for write operations such as committing, pushing, opening PRs, or writing issues, each tool pops up a separate approval card. The tool names include git_commit, git_push, github_pr_create, github_pr_merge, github_issue_create, github_issue_comment, github_pr_comment, and github_pr_review. Clicking a few times occasionally is acceptable, but over a whole day, this often leads to dozens of repetitive confirmations. More troublesome is that the git-manager’s pre-approval table is a pure in-memory Map; after a DSH restart, the approval-free status for all eight tools resets to zero, making it look like “I clearly set it before, why do I have to click them one by one again?”
Below, we introduce the community plugin dsh-codex-panel (Maintainer: qianai05233, Category: Client). It provides a floating control panel in the Web interface: a master switch or per-tool switches to pre-approve git/GitHub write operations, persisting selections to disk and automatically restoring them upon startup. It also reads the cost-meter ledger to display the balance and today’s spending.
What is this¶
dsh-codex-panel is a floating control panel designed for DSH Codex-style workflows: it manages git-manager pre-approvals for the eight write tools mentioned above with a single click (or via individual switches) and displays the live balance. The plugin is released under the MIT license, with the current package version at 1.0.0; the GitHub repository has 0 stars (based on directory page information). It does not alter the DSH core; it only bridges the git-manager pre-approval interface and adds persistence, solving the two issues of “popup approvals one by one” and “status loss after restart.”
Core Features¶
One-click Approve and Per-tool Switches¶
The floating capsule displays a count similar to Codex 8/8, indicating how many write tools are currently approval-free. Expanding it allows toggling the eight tools individually; there is also a Master Switch to turn them all on or off at once.
Automatic Restoration After Restart¶
This is the primary raison d’être emphasized in the README. The dsh-git-manager pre-approval table resides in memory (the README references the preApprovals Map at lib/index.js:2438) with zero persistence, clearing the status every time DSH restarts.
This plugin writes the selection to:
$DSH_HOME/storages/dsh-codex-panel/preapproved.json
The host restores the settings approximately 3 seconds after startup (to avoid conflicts with git-manager route registration). On the first run, if the preference file does not exist, it silently skips, without arbitrarily granting permissions for you.
Balance Display¶
The panel reads the current balance and today’s spending from the cost-meter ledger, making it easy to glance at consumption directly on the Web end.
Security Boundaries (Plugin Description)¶
- Pre-approval only applies to git-manager write operations and does not involve the file system or shell.
- The panel only returns masked data and does not expose tokens.
- You can use the one-click “All Off” in the panel at any time to restore individual approvals.
Installation and Activation¶
Prerequisites:
- DSH
>= 0.1.7-rc.1 - Requires dsh-git-manager (the panel reads its pre-approval status; if absent, the panel still displays, but switches are ineffective)
Installation command (from the official README):
dsh plugin --profile web add github:qianai05233/dsh-codex-panel
Restart dsh web after installation. A Codex capsule should appear in the top right corner of the interface.
Typical Usage¶
- Open DSH Web and confirm the
Codexcapsule is visible in the top right. - Click the capsule to view the eight write tool switches and the master switch; turn them all on or select specific tools (e.g., only pre-approve
git_commitandgit_push) as needed. - When letting the agent perform git/GitHub write operations, pre-approved tools will no longer pop up approval cards one by one.
- After restarting DSH, wait a few seconds; the panel will automatically restore the previous switch states based on
preapproved.json(if previously saved). - To restore strict approvals, use the master switch in the panel to turn All Off.
The rough interaction between the host and the browser (illustrated in the README): The browser pulls git-manager pre-approval states and the cost-meter ledger via fetch('/dsh-codex-panel/api/snapshot'); for the master switch, it sends POST .../toggleAll {approved:true}, and the host then initiates multiple POST /gitm/preapprove requests to git-manager.
When writing plugins, you can refer to two points in the README: Bridge APIs should not be placed under DSH’s /api (as they will be intercepted by client-connection’s admission and POST JSON conventions); Web clients in npm package form cannot rely on dynamic package host / styles injection, so communication with the host must go via HTTP.
Use Cases and Notes¶
Who it is for: Developers who frequently use agents in DSH Web to batch git commits, pushes, and PR/issue operations, and want to reduce repetitive approval clicks while retaining pre-approval settings after restarts.
Notes:
- The plugin runs with the permissions of the current dsh process; before installation, it is recommended to read the GitHub Source Code and the MIT license to ensure the pre-approval scope complies with your security policy.
- Pre-approval only covers the eight git-manager write tools mentioned above and cannot replace your overall management of repository and GitHub permissions.
- The community plugin directory SkillHub page for dsh-codex-panel and GitHub are independent information sources and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin,” and the directory site is a community aggregation, not an official app store.
The maintainer also provides companion plugins: dsh-codex-preset (Codex-style five-stage workflow agent preset) and dsh-freeapi-panel (aggregation of multiple legitimate free LLM providers), which can be explored together as needed.
Conclusion¶
Through the steps above, you can use dsh-codex-panel on the Web end to consolidate the approval of eight git/GitHub write tools into a single master switch and persist the selection to $DSH_HOME/storages/dsh-codex-panel/preapproved.json, reducing the burden of repetitive configuration after restarts.
- Directory Page: https://www.skillhub.cn/plugins/qianai05233/dsh-codex-panel
- GitHub: https://github.com/qianai05233/dsh-codex-panel