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/lexwdex/opencode-graphagent/agents-mdgit clone --depth 1 https://github.com/LeXwDeX/OpenCode-GraphAgentWhat 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.06953 | $0.06953 |
| Opus 5 | $0.03476 | $0.03476 |
| Sonnet 5 | $0.01391 | $0.01391 |
| Haiku 4.5 | $0.00695 | $0.00695 |
Grade A, and why
OpenCode-GraphAgent 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 — 393 lines — stays where its author put it; the contents beside it link to each section on GitHub.
- To regenerate the JavaScript SDK, run
./packages/sdk/js/script/build.ts. - The default branch in this repo is
main.
Git Workflow (铁律)
feat/**, fix/** ──PR(Typecheck + Unit Tests 门禁)──▶ dev ──push 触发全量测试──▶
dev ──手动 release-fork──▶ prerelease 测试版
dev ──PR(全量测试门禁)──▶ main ──手动 release-fork──▶ 正式版
分层门禁:dev 是快速集成层(Typecheck + Unit Tests (linux);E2E 不阻塞),main 是正式质量门禁(Typecheck + 全量 Unit Tests + E2E)。所有改动通过 PR 流转,禁止直推 main 和 dev(由 GitHub Rulesets 强制)。
| Branch | 直推 | PR 门禁 | CI 触发 | Purpose |
|---|---|---|---|---|
{type}/** |
✅ 允许 | — | push 不触发;PR 触发目标分支门禁 | 开发分支,频繁变更 |
dev |
❌ 禁止 | PR 必须通过 Typecheck + Unit Tests (linux) | ✅ push 触发 Typecheck + 全量测试 | 快速集成层 |
main |
❌ 禁止 | PR 必须通过 Typecheck + Unit Tests + E2E (linux + windows) + SpecGit Acceptance | ✅ push 触发全量 | 正式质量门禁 + 发版 |
流程:
- 从
main切出feat/**或fix/**分支开发 - PR →
dev(Typecheck + Unit Tests (linux) 门禁,快速合并) - push 到
dev自动触发全量测试验证 - 从
dev手动release-fork→ 产出 prerelease 测试版 - PR
dev→main(全量测试门禁:Typecheck + Unit Tests + E2E) - 合并到
main后手动release-fork→ 产出正式版
Rulesets(GitHub Settings → Rules → Rulesets):
protect-main:禁止直推/删除/force-push;PR 需通过 5 项检查(Typecheck、Unit Tests (linux)、E2E Tests (linux)、E2E Tests (windows)、SpecGit Acceptance)protect-dev:禁止直推/删除/force-push;PR 需通过 Typecheckbranch-naming:只允许创建feat/**、fix/**、chore/**、docs/**、refactor/**、test/**、release/**、hotfix/**前缀的新分支
CI 配置:
ci-typecheck.yml:push 到main/dev+ PR →main/dev时触发;除 lint + typecheck 外还跑test:dag-coreDAG 核心行为/覆盖率门禁(10min 超时)ci-test.yml:push 到main/dev+ PR →main/dev时触发全量测试(cancel-in-progress: false保证跑完);Linux unit-tests job 额外校验生成物新鲜度(packages/client与packages/sdk/js的check:generated)并跑 HttpAPI 契约门禁(test:httpapi:ci)specgit-accept.yml:仅 PR →main时触发;安装 pinned[email protected],等spec_git/policy.yamlrequired_checks全部到终态后运行specgit finish --json产出 SpecGit Acceptance 裁决release-fork.yml:手动workflow_dispatch是唯一真实构建路径(push 到main/dev仅注册不构建);从dev发布自动产出X.Y.Z-dev.Nprerelease,从main发布X.Y.Z并标 Latest
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 First seen · 393 lines · 6,953 tokens per session scan A 01607d5804c0
OpenCode-GraphAgent AGENTS.md is an instructions file published in the GitHub repository LeXwDeX/OpenCode-GraphAgent (111 stars, last pushed 3d ago), licensed MIT. It adds 6,953 tokens to every session, about $0.0348 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
plannotator AGENTS.md
Instructions for backnotprop/plannotator, covering plannotator, project structure, server runtimes, installation and environment variables.
solo AGENTS.md
Instructions for solo-agent/solo, covering project testing rules and project service lifecycle rules.
superset AGENTS.md
AGENTS.md instructions for superset-sh/superset, covering superset monorepo, project structure, exception: shadcn/ui components, database and releases.
untether GEMINI.md
Instructions for littlebearapps/untether, covering untether — gemini instructions, stack & conventions, architecture, key rules and testing.
agent-tools AGENTS.md
Instructions for kairyou/agent-tools, covering agent instructions, build and test, layout, settled decisions and docs.
awesome-copilot-id AGENTS.md
Instructions for GulajavaMinistudio/awesome-copilot-id, covering communication, explanation and documentation, markdown formatting, user communication style and workflow & methodology.