imroc/dsh-project-prompt

imroc★ 2JavaScriptLast synced: 2026-08-26

Open on GitHub

Private, per-project prompt rules for DeepSeek Harness — matched by git remote/repo/path, worktree-aware, never committed to the repo

README excerpt

dsh-project-prompt English 中文 Private, per-project prompt rules for DeepSeek Harness (DSH). Some agent instructions belong to your machine, not to the repository: environment-specific E2E procedures, internal-only endpoints, personal workflow preferences. AGENTS.md is committed and shared, so it is the wrong place for them. This plugin keeps such text in $DSH HOME , never in the repo , and injects it into every session whose workspace matches a rule — including every subagent and every git worktree of the repository. Features - Three matchers — match sessions by git remote URL (any clone, anywhere on disk), by local main-repo path, or by plain cwd prefix. Keys within a rule are OR-combined. - Worktree-aware — a linked worktree is traced back to its main repository through the .git file's gitdir: pointer, so a rule written once covers worktrees created later, and their subdirectories. - Two injection modes — section (a stable system-prompt segment, KV-cache friendly, supports {{cwd}} / {{model}} ) and inject (a first context message, no template interpolation — use it when the text contains literal {{...}} braces, e.g. Helm or Go templates). - Covers subagents — subagents inherit th…

View full README on GitHub →
Agentsagents-mdai-agentcordisdeepseek-harnessdsh-pluginprompt-injectionagent

Category