Borrowing it
Nothing to install: this file belongs to LeXwDeX/OpenCode-GraphAgent. 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/LeXwDeX/OpenCode-GraphAgent/main/AGENTS.mdgit clone --depth 1 https://github.com/LeXwDeX/OpenCode-GraphAgentWrote 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/lexwdex/opencode-graphagent/agents-md)<a href="https://agentmods.dev/instructions/lexwdex/opencode-graphagent/agents-md"><img src="https://agentmods.dev/badge/instructions/lexwdex/opencode-graphagent/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/lexwdex/opencode-graphagent/agents-md"><img src="https://agentmods.dev/badge/instructions/lexwdex/opencode-graphagent/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.04020 | $0.04020 |
| Opus 5.5 | $0.01608 | $0.01608 |
| Sonnet 5.5 | $0.00804 | $0.00804 |
| Haiku 4.5 | $0.00402 | $0.00402 |
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 6d 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 — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidance for coding agents in GraphAgent, an opencode fork with a DAG workflow engine. This file records repository facts and secondary development constraints. Apply the nearest nested AGENTS.md to each changed package. Verify factual claims against current source, package scripts, and workflows; do not treat a development rule as proof that a check has passed.
Scope and layout
- GraphAgent v1 is in focused maintenance, as described in
README.md: DAG configuration, curated workflow templates, and reproducible defect fixes. Stability and data-integrity defects may receive narrow compatibility patches. Keep changes within this scope. - Bun workspace + Turbo. Runtime pins have one source each: Bun in
package.json(packageManager), Node in.node-version, Go inconfig_assistant/go.mod.bun run toolchain:checkand.husky/pre-pushreject any differing runtime patch; CI and container builds read the same pins. Electron owns its embedded Node runtime; VSCode extension host types retain their own compatibility major. packages/core: DAG engine primitives (src/dag/— store/projector/sql, exported as./dag/core/*and./dag/*) plus DB schema/migrations ownership.packages/opencode: agent runtime. Services compose inAppLayer(src/effect/app-runtime.ts). Effect v4 (beta) rules,makeRuntime/InstanceState, tool-schema, and module-shape contracts are owned bypackages/opencode/AGENTS.md(pattern reference:packages/opencode/specs/effect/migration.md).- Curated workflow YAML, composable blocks, and reusable worker prompts live in
LeXwDeX/opencode-dag-config. Release builds embed its snapshot throughDAG_TEMPLATES_DIR(packages/opencode/script/generate.ts). Local builds without that variable omit builtin templates and use project/global libraries. Curated configuration-only changes belong in the configuration repo; runtime routing and policy prompts still live here.
Secondary development constraints
- Before behavior changes, record Why, Scope, Approach, and Acceptance. Read the affected package rules and existing regression tests. Keep fixes focused; do not combine unrelated cleanup or dependency upgrades.
- Keep database schemas and migrations in
packages/core. Generate schema changes withbun run migrationthere. Include the migration undersrc/database/migration/,schema.json,src/database/migration.gen.ts, andsrc/database/schema.gen.tstogether. Preserve existing data and test both new databases and upgrades. - Persist DAG lifecycle changes through the existing Dag/EventV2 path. Keep projectors limited to database writes. Preserve replay idempotency and keep projection guards consistent with the transition tables.
- Preserve workflow locking, execution-attempt identity, directory ownership, and pause/cancel/recovery behavior. Cover affected stale completion, restart, deletion, and lease-release paths. Do not assume cross-process locking or exactly-once execution.
- Use
InstanceStatefor state owned by a directory. Bind subscriptions, child processes, and background work to scopes with finalizers. Preserve application-scoped supervision that must survive directory disposal. Test resource release when changing lifecycle behavior. - Preserve public HTTP shapes, event identities, and durable event versions. Update producers, consumers, manifests, generated clients, and scenarios together when changing a contract. Provide explicit compatibility handling for persisted formats.
- Keep tool parameter schemas object-rooted. Validate arguments and apply the tool's permission policy before side effects. Preserve interruption and defect propagation. Follow the relevant tool rules in
packages/opencode/AGENTS.mdorpackages/core/src/tool/AGENTS.md. - Keep dependency manifests, the workspace catalog, lockfiles, overrides, and patches consistent. Match native wrappers to their platform packages. Change runtime pins at their declared sources and verify affected CI, containers, and Nix builds. Use real Nix builds to regenerate hashes.
- Use isolated sessions, temporary data, and task-owned test processes. Preserve the user's active chats, configuration, and running services. Keep credentials out of logs and fixtures. Security audits use model reasoning over business logic and source; do not use external DayBreak tools.
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.
- 6d ago Changed · +1 lines · +135 tokens per session b9a0ac8b416e
- 9d ago Changed · -24 lines · -323 tokens per session 164d0ee481e8
- 11d ago Changed · +5 lines · +209 tokens per session b9296485aeb8
- 12d ago Changed · +1 lines · +47 tokens per session 135713b51480
- 14d ago Changed · +35 lines · +169 tokens per session c2315c414ccb
- 18d ago Changed · +26 lines · +990 tokens per session 6d19ff16617b
- 20d ago Changed · +23 lines · +827 tokens per session 78404d2afa30
- 23d ago Changed · +1 lines · +90 tokens per session cdd55d04c00f
- 24d ago Changed · +5 lines · +111 tokens per session 22f899aac13b
- 1mo ago First seen · 69 lines · 1,765 tokens per session scan A 02361ec977b6
OpenCode-GraphAgent AGENTS.md is an instructions file published in the GitHub repository LeXwDeX/OpenCode-GraphAgent (114 stars, last pushed yesterday), licensed MIT. It adds 4,020 tokens to every session, about $0.0161 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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.