Borrowing it
Nothing to install: this file belongs to badai147/dsh-global-rules. 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/badai147/dsh-global-rules/main/AGENTS.mdgit clone --depth 1 https://github.com/badai147/dsh-global-rulesWrote 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/badai147/dsh-global-rules/agents-md)<a href="https://agentmods.dev/instructions/badai147/dsh-global-rules/agents-md"><img src="https://agentmods.dev/badge/instructions/badai147/dsh-global-rules/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/badai147/dsh-global-rules/agents-md"><img src="https://agentmods.dev/badge/instructions/badai147/dsh-global-rules/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.00978 | $0.00978 |
| Opus 5.5 | $0.00391 | $0.00391 |
| Sonnet 5.5 | $0.00196 | $0.00196 |
| Haiku 4.5 | $0.00098 | $0.00098 |
Grade A, and why
dsh-global-rules AGENTS.md scanned grade A with 1 finding 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 20d ago.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- The route is authenticated: an unauthenticated `curl` returns 401/403 by design — use DevTools. How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Agent-facing guide to this repository. Complements README.md and CONTRIBUTING.md — do not duplicate them.
Project overview
dsh-global-rules is a DeepSeek Harness (DSH) plugin: a settings page that reads and writes the
user-global instruction file $DSH_HOME/AGENTS.md (default ~/.dsh/AGENTS.md) over the host's
/api Fetch channel. Two halves, no shared code:
lib/index.js— Host, plain Node ESM. RegistersGET/POST /api/global-rulesthroughctx.connection.fetch.register(256 KiB body cap).lib/client.js— Client, hand-writtenwindow.__ModuleLoader__bundle. Registers thesettings.sectionpage.cordis.patch.yml— bundle patch inserting theglobal-ruleslayer.package.json—dsh.bundle.patch,dsh.client.inject,files.
Build, test, lint
There is no toolchain, deliberately: no dependencies, no build step, no linter, and no scripts in
package.json. Do not add one. Verify by hand instead:
dsh plugin --profile web add . # run from the repo root; relative specs resolve against the invocation dir
Restart dsh web, then open Settings → 全局规则.
- Host change (
lib/index.js): restartdsh web. - Client change (
lib/client.js): reload the page — the host re-reads a bundle whose mtime or size changed. Restart if the old UI persists. - Display metadata (
icon.svg,locale/*.json): reload the page and reopen Plugins; both are read per list request. A newexportssubpath still needs adsh webrestart — Node caches each package'sexportsmap for the life of the process.
node test.js runs a zero-dependency self-check (dictionary parity plus the slot/locale
registration shape) with no package script. It is not published to npm.
Manual test checklist: CONTRIBUTING.md.
Code style
- Match the file you edit:
lib/index.jsuses 2-space indentation,lib/client.jsuses tabs. - Source comments and JSDoc are English. User-facing panel strings come from the
global-ruleslocale namespace registered throughctx.locale.register(ns, { zh, en })— add a key to both dictionaries, never a literal string in the render tree. - Conventional Commits (
feat,fix,docs,ci,chore), subject in Chinese or English, one logical change per commit. Branch offmain.
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.
- 20d ago Changed · +3 lines · +74 tokens per session ed70be9e8638
- 1mo ago Changed · +4 lines · +67 tokens per session 84ded4f313ca
- 1mo ago First seen · 69 lines · 837 tokens per session scan A b3ae08336c2e
dsh-global-rules AGENTS.md is an instructions file published in the GitHub repository badai147/dsh-global-rules (15 stars, last pushed 20d ago), licensed MIT. It adds 978 tokens to every session, about $0.0039 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.
dsh-global-rules AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dsh-global-rules AGENTS.mdbadai147/dsh-global-rules | Instructions file | 15 | 20d ago | MIT | A | 978 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |