Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/zhinjs/zhin/zhin-plugingit clone --depth 1 https://github.com/zhinjs/zhinWhat 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 | $0.01018 | $0.01018 |
| Opus 5 | $0.00509 | $0.00509 |
| Sonnet 5 | $0.00204 | $0.00204 |
| Haiku 4.5 | $0.00102 | $0.00102 |
Grade A, and why
zhin zhin-plugin.instructions.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 3d 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.
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 — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Zhin Plugin Runtime authoring
Package contract
- Every Plugin is an npm package with
package.json#zhin,plugin.tsand optionalschema.json. plugin.tsdefault-exportsdefinePlugin()fromzhin.js(Feature package authors may import from@zhin.js/plugin-runtimedirectly); it owns lifecycle and Resources, not capability registration.- Child packages live one level below
plugins/*. Logical ancestry comes fromzhin.plugins, not nested directories. - Feature providers are explicit
zhin.featuresmounts. Apps that depend onzhin.jsinherit Stable Features viaplatformFeatures— do not separately install@zhin.js/command/@zhin.js/middleware/@zhin.js/handler/@zhin.js/adapter/@zhin.js/component.
Convention directories
adapters/**/*.ts defineAdapter() // import from zhin.js/adapter
commands/**/*.ts defineCommand() // import from zhin.js/command
components/**/*.ts defineComponent() // import from zhin.js/component
middlewares/**/*.ts defineMiddleware() // import from zhin.js/middleware
handlers/**/*.ts defineHandler() // import from zhin.js/handler; path `/` → event `.` when event omitted
tools/*.ts defineAgentTool()
skills/<name>/SKILL.md Markdown Skill SSOT
agents/<name>.agent.md Markdown Agent SSOT
mcp/*.ts defineMcp()
pages/*.ts|tsx definePage()
pages/$nav.tsx|$footer.tsx layout overrides
Each TypeScript capability default-exports exactly one definition. Do not call usePlugin(),
getPlugin() or add*() in new code. Migrate old code with
.github/skills/migrate-zhin-plugin-runtime.
Imports and native TypeScript
- Local imports use
.jsspecifiers. - Import Stable Feature
define*fromzhin.js/*facade subpaths when the app depends onzhin.js. Import IM execution contracts fromzhin.js/core/runtime(or@zhin.js/core/runtime). - Node-authored files must use erasable TypeScript syntax. Do not use enums, namespaces, constructor parameter properties or TSX in server capability directories.
- Browser
pages/*.tsxare compiled by the Client Build adapter and are not imported by Node.
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.
- 3d ago First seen · 99 lines · 1,018 tokens per session scan A 465b09ed7ad0
zhin zhin-plugin.instructions.md is an instructions file published in the GitHub repository zhinjs/zhin (135 stars, last pushed 6d ago), licensed MIT. It adds 1,018 tokens to every session, about $0.0051 per session on Opus 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.
Other instructions, from other repositories
eve AGENTS.md
Instructions for vercel/eve, covering agents.md, about eve, repository layout, git workflow and commands.
LobsterAI AGENTS.md
AGENTS.md instructions for netease-youdao/LobsterAI, covering agents.md, instruction scope, project snapshot, cowork vs openclaw and commands.
better-chatbot AGENTS.md
AGENTS.md instructions for keinsaasforever/better-chatbot, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.
AgentEval memory-benchmarks.instructions.md
Guidelines for working with AgentEval Memory module — benchmarks, reporting, HTML reports, and LongMemEval integration.
AgentEval copilot-instructions.md
Instructions for AgentEvalHQ/AgentEval, covering agenteval - ai coding agent instructions, architecture overview, environment setup, optional: secondary models for comparison and build & test commands.
AgentEval AGENTS.md
Instructions for AgentEvalHQ/AgentEval, covering agenteval development instructions, project overview, quick reference, build & test and key directories.