DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

thirsty5034 /

dsh-git-forge

Verified

DSH community plugin: GitHub/Gitea accounts, project grants, push policy (better-sidebar)

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@6f8be17b

dsh-git-forge

English | 简体中文

DeepSeek Harness community plugin: forge accounts + per-project grants + push policy in dsh-better-sidebar.

  • Account library: GitHub / Gitea / GitLab / Gitee / Bitbucket
  • Project grants (projectPathKey = workspace cwd)
  • Push guard: blocks bash git push / git remote add|set-url to non-granted hosts
  • Tokens in $DSH_HOME/git-forge/secrets.json (0600) — never in model context
  • Model tool GitForge (read-only policy)
  • UI aligned with dsh-ssh-tunnel

Does not replace system gh auth / SSH. The plugin decides where a project may push.

Requirements

  • DSH web profile with dsh-better-sidebar (≥ 0.12)
  • Node.js 18+

Install

macOS / Linux (Git Bash / WSL on Windows also works):

curl -fsSL https://raw.githubusercontent.com/thirsty5034/dsh-git-forge/main/scripts/install.sh | bash

Windows (PowerShell 5.1+ / pwsh):

irm https://raw.githubusercontent.com/thirsty5034/dsh-git-forge/main/scripts/install.ps1 | iex

Or via DSH CLI directly (GitHub source until the package is on npm):

export DSH_HOME=${DSH_HOME:-$HOME/.dsh}
dsh plugin --profile web add "dsh-git-forge@github:thirsty5034/dsh-git-forge"
dsh --profile web --dump-config | grep git-forge

After install: restart DSH web, then hard-refresh the browser (Cmd/Ctrl+Shift+R).

Options / local link / npm (later)
# pin ref
curl -fsSL .../install.sh | bash -s main --restart
bash scripts/install.sh --from npm 0.1.1   # after npm publish

# local checkout
dsh plugin --profile web add "dsh-git-forge@link:/path/to/dsh-git-forge"
# or: ./scripts/sync-to-dsh.sh && dsh plugin add "dsh-git-forge@link:$DSH_HOME/local-plugins/dsh-git-forge"

Discoverability

  • GitHub topics: dsh-plugin, deepseek-harness, dsh (required for dsh.so auto-index)
  • Install from GitHub (current): see Install above
  • Store listings may lag crawlers; source of truth is this repository

Data

Under $DSH_HOME/git-forge/:

File Purpose
accounts.json Account metadata (no tokens)
secrets.json Tokens (0600)
grants.json projectPathKey → accountIds[] + enforce policy

Sidebar

  1. Project access — accounts for the current project + enforce push
  2. Accounts — CRUD, API token probe
  3. Policy — allowed gitHosts; unbound-project default

Model tool

GitForge action=get_policy
GitForge action=list_project_accounts
GitForge action=check_remote url=git@github.com:org/repo.git

Security

  • Tokens never appear in tool/API results or model context
  • Push policy is enforced in Host tools.guard
  • With no project grants, push is not blocked by default (progressive enablement)

Development

npm test
npm run check
./scripts/sync-to-dsh.sh   # optional: copy into $DSH_HOME/local-plugins

License

MIT — see LICENSE.

—/ 5

No ratings yet

Verified DSH bundle

Commit 6f8be17bd6f0

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout