DSH-better-sidebar: Instructions file for Codex

AGENTS.md

DSH-better-sidebar AGENTS.md is an instructions file for Codex, OpenCode from omdsh-dev/DSH-better-sidebar. It costs 4,075 tokens per session, scanned A, original, MIT.

A repository rulebook for a Better Sidebar plugin that extends DSH, a host application with a sidebar and plugin system.

In plain words
What is it for?
Use it when building, packaging, testing, mounting, or publishing the plugin, especially when checking compatibility with DSH's alpha release channel.
Why use it?
It prevents changes that would modify the host application directly or violate the checks required for safe plugin packaging and real mounting.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is omdsh-dev/DSH-better-sidebar's own configuration. It tells Codex and OpenCode how to work on DSH-better-sidebar itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DSH-better-sidebar configures →

About the project

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.

omdsh-dev/DSH-better-sidebar · 4,928 stars · on GitHub

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/omdsh-dev/DSH-better-sidebar/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/omdsh-dev/DSH-better-sidebar

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for DSH-better-sidebar AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/omdsh-dev/dsh-better-sidebar/agents-md/github.svg)](https://agentmods.dev/instructions/omdsh-dev/dsh-better-sidebar/agents-md)
Your own site
<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.

agentmods 80×15 button for DSH-better-sidebar AGENTS.md

Your own site · 80×15
<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>
Per session 4,075 This file is loaded in full into every session.
When invoked 4,075 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash 0b7be0a58d23, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 86 lines

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 打 tag vX.Y.Z,release.yml 自动发 npm(版本号含 - → alpha dist-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。

Read the full file on GitHub · 86 lines

Changes

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.

  1. yesterday Changed · +250 tokens per session 0b7be0a58d23
  2. 9d ago Changed 81a983303df2
  3. 10d ago Changed 23e1d86a5507
  4. 20d ago Changed · +5 lines · +425 tokens per session 4b136a0b745c
  5. 21d ago Changed · -63 lines · -16,278 tokens per session d5f59e433eae
  6. 23d ago Changed · +1 lines · +2,119 tokens per session b3825145e33e
  7. 28d ago Changed · +3 lines · +1,314 tokens per session 18458d68d077
  8. 1mo ago Changed · +13 lines · +1,501 tokens per session 93ed5098b4b8
  9. 1mo ago Changed · +17 lines · +2,027 tokens per session 67dbdc7efa43
  10. 1mo ago First seen · 110 lines · 12,717 tokens per session scan A 32b386c8eaa8

Subscribe to this mod's changes

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.

Related

DSH-better-sidebar AGENTS.md compared with instructions from other repositories

DSH-better-sidebar AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
DSH-better-sidebar AGENTS.mdomdsh-dev/DSH-better-sidebarInstructions file4.9kyesterdayMITA4,075Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode