dsh-better-sidebar is an extensible sidebar workspace for DeepSeek Harness that provides file viewing and editing, terminals, Git tools, web pages, model conversations, and sub-agent task views. It is used by developers working with coding agents, and third-party extensions can add sidebar tabs and file viewers.
Borrowing it
Nothing to install: this file belongs to omdsh-dev/DSH-better-sidebar. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/omdsh-dev/DSH-better-sidebar/main/AGENTS.mdgit clone --depth 1 https://github.com/omdsh-dev/DSH-better-sidebarWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/omdsh-dev/dsh-better-sidebar/agents-md)<a href="https://agentmods.dev/instructions/omdsh-dev/dsh-better-sidebar/agents-md"><img src="https://agentmods.dev/badge/instructions/omdsh-dev/dsh-better-sidebar/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/omdsh-dev/dsh-better-sidebar/agents-md"><img src="https://agentmods.dev/badge/instructions/omdsh-dev/dsh-better-sidebar/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04075 | $0.04075 |
| Opus 5.5 | $0.01630 | $0.01630 |
| Sonnet 5.5 | $0.00815 | $0.00815 |
| Haiku 4.5 | $0.00407 | $0.00407 |
Grade A, and why
DSH-better-sidebar AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
dsh-better-sidebar 仓库规则(AGENTS)
本文只含每次都要遵守的规则。深度参考不放在这里:接入 API → docs/external-plugin-guide.md;宿主契约(原 §3.4 第 1–13 条)与历史线沿用至今的约束 → docs/host-contracts.md;逐特性设计史与历次 DSH 适配记录 → docs/plans/;用户可见变更 → CHANGELOG.md。
0. 分支模型:dev 集成 / main 只收发版
- 功能与修复先进
dev:主题分支(feat|fix|chore|docs|test/*)从dev切出、合回dev;main只在发版时从dev合入。回填贡献者 PR 沿用对方分支名。 - 不要用
dev/前缀命名分支:本地已有refs/heads/dev,dev/x会撞 ref 冲突(cannot lock ref)。 - 发版:
dev→main后从main打 tagvX.Y.Z,release.yml 自动发 npm(版本号含-→alphadist-tag,否则latest)。 - 仅纯文档改动(README / AGENTS.md / docs/)允许不切分支直接提交(
main或dev均可)。 - CI 的 push 触发覆盖
main与dev;pull_request与 base 无关,合进dev的每一批都有门禁。 - 并行开发用
.worktrees/(每槽独立node_modules),集成只在单一 worktree 串行做。
1. 仓库硬约束
- 禁止修改 DSH 源码(官方 checkout
~/.dsh/source/current零写入)。 - 非文档改动必须走分支并合入
dev:外部贡献者走gh pr create+ review;维护者本地的批量整合可以直接git merge --no-ff进dev,但每批都要跑门禁。 - 挂载只走
cordis.patch.yml+ profile 机制,插件作为独立包被 profile 引用,不反向侵入 DSH。 - 市场受管安装约束:
dependencies/peerDependencies/optionalDependencies一律不得出现cordis;scripts不得含preinstall/install/postinstall/prepare(tests/market-manifest.spec.ts守护)。 - 缺能力时用 DSH 现成只读/公开 API 或插件自有路由(后台任务已有宿主客户端
ctx.jobs,别再自建回放路由);做不到先向用户说明取舍,不改 DSH。
2. CI 门禁:挂载冒烟(plugin-mount / pnpm test:mount)
pnpm build && pnpm pack → scripts/e2e-mount.sh 装进全新 scratch profile、起真实 dsh web(keyless,--port 0)→ Playwright 断言。它钉住的几条:插件挂载且无 pageerror / console 错误;原生右侧栏 guide 里宿主自己的终端条目必须恰好 1 条(多于 1 条 = 插件又在遮蔽宿主);browser 条目显式断言缺席(web profile 不该有);文件树经 files 接管能打开 seed 文件并加载 editor chunk;native-reload.e2e.ts 触发页面内条目替换,断言替换前后都无 native register … error(唯一能在部署层复现「id 被孤儿化」的用例,机制见 host-contracts 第 9 条)。同 lane 还有搜索引擎门禁(pnpm check:engines)。
本地:pnpm build && pnpm pack && pnpm exec playwright install chromium && pnpm test:mount。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed · +250 tokens per session 0b7be0a58d23
- 9d ago Changed 81a983303df2
- 10d ago Changed 23e1d86a5507
- 20d ago Changed · +5 lines · +425 tokens per session 4b136a0b745c
- 21d ago Changed · -63 lines · -16,278 tokens per session d5f59e433eae
- 23d ago Changed · +1 lines · +2,119 tokens per session b3825145e33e
- 28d ago Changed · +3 lines · +1,314 tokens per session 18458d68d077
- 1mo ago Changed · +13 lines · +1,501 tokens per session 93ed5098b4b8
- 1mo ago Changed · +17 lines · +2,027 tokens per session 67dbdc7efa43
- 1mo ago First seen · 110 lines · 12,717 tokens per session scan A 32b386c8eaa8
DSH-better-sidebar AGENTS.md is an instructions file published in the GitHub repository omdsh-dev/DSH-better-sidebar (4,928 stars, last pushed yesterday), licensed MIT. It adds 4,075 tokens to every session, about $0.0163 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
DSH-better-sidebar AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| DSH-better-sidebar AGENTS.mdomdsh-dev/DSH-better-sidebar | Instructions file | 4.9k | yesterday | MIT | A | 4,075 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |