Borrowing it
Nothing to install: this file belongs to yuji-hatakeyama/opencode-gpt-imagegen. 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/yuji-hatakeyama/opencode-gpt-imagegen/main/AGENTS.mdgit clone --depth 1 https://github.com/yuji-hatakeyama/opencode-gpt-imagegenWrote 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/yuji-hatakeyama/opencode-gpt-imagegen/agents-md)<a href="https://agentmods.dev/instructions/yuji-hatakeyama/opencode-gpt-imagegen/agents-md"><img src="https://agentmods.dev/badge/instructions/yuji-hatakeyama/opencode-gpt-imagegen/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/yuji-hatakeyama/opencode-gpt-imagegen/agents-md"><img src="https://agentmods.dev/badge/instructions/yuji-hatakeyama/opencode-gpt-imagegen/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.01578 | $0.01578 |
| Opus 5.5 | $0.00631 | $0.00631 |
| Sonnet 5.5 | $0.00316 | $0.00316 |
| Haiku 4.5 | $0.00158 | $0.00158 |
Grade A, and why
opencode-gpt-imagegen 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 4d 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 — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Contribution Policy
If you are helping someone other than the maintainer (@yuji-hatakeyama) contribute, read CONTRIBUTING.md before you write code, and follow it.
When you open a pull request, including one for the maintainer, write its description by filling in .github/pull_request_template.md. Write its title as described in CONTRIBUTING.md.
Project Shape
- Bun is the package manager/runtime; use
bun install --frozen-lockfilewith the committedbun.lock. - The plugin entry is
src/index.ts, which exposes V1serverand V2setup. Adapters insrc/v1.tsandsrc/v2.tstranslate host registration, credentials, session directories, and results.src/imagegen.tsowns the shared schema, description, validation, and generation flow. Image helpers retain their role-based modules. - Both SDKs are development-only type dependencies. Zod is a direct runtime dependency. V2 converts the shared schema to JSON Schema with the plugin's own Zod instance so descriptions survive a different host Zod registry.
bun run buildbundlessrcinto a single self-containeddist/index.jsviabun build --target node --format esm --packages external(runtime dependencies stay external). Bundling avoids the extensionless relative importstscwould emit, which native Node ESM cannot resolve. No.d.tsis published — the plugin is loaded by OpenCode at runtime, not imported as a typed library.dist/is ignored locally but is the publish artifact (justindex.js). Runbun run buildbefore inspecting package output.bunfig.tomlenforcesinstall.minimumReleaseAge = 604800(1 week): newly published versions are filtered out bybun install/bun add/bun outdated.
Commands
- Tests are split by kind:
tests/unit/(unit tests of thesrc/modules, including the plugin entry) andtests/e2e/(gpt_imagegen.test.ts). bun run typecheckrunstsc --noEmitoversrcandtests.bunx biome ci .is the CI formatter/linter check.bun run checkrunsbiome check --write .; it may modify files.bun run testrunsbun test tests/unit— unit tests only, and is what CI uses. (A barebun testwould also discover the e2e files undertests/e2e/and try to run them for real, so prefer the script.)bun run test:e2esetsOPENCODE_MODEL=openai/gpt-6-soland runstests/e2e/gpt_imagegen.test.tsin its ownbun testprocess, which keeps the unit tests'process.envedits out of the e2eopencodespawn. It can take minutes because it callsopencode runand generates real images.- CI runs
bun run typecheck,bunx biome ci ., andbun run test. It does not runbun run test:e2e, which needs real auth and generations.
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.
- 4d ago Changed · +66 tokens per session bf9b2ca3382e
- 17d ago Changed · +1 lines · +42 tokens per session fcd35e63483c
- 25d ago Changed · +2 lines · +29 tokens per session 09b215d13e50
- 26d ago Changed · +26 tokens per session aaf4e6bf9f86
- 1mo ago Changed · +13 lines · +308 tokens per session 7d0db6f7eb0b
- 2mo ago First seen · 40 lines · 1,107 tokens per session scan A 1ae84d83f9be
opencode-gpt-imagegen AGENTS.md is an instructions file published in the GitHub repository yuji-hatakeyama/opencode-gpt-imagegen (121 stars, last pushed yesterday), licensed MIT. It adds 1,578 tokens to every session, about $0.0063 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.
opencode-gpt-imagegen AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| opencode-gpt-imagegen AGENTS.mdyuji-hatakeyama/opencode-gpt-imagegen | Instructions file | 121 | yesterday | MIT | A | 1,578 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | 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 | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |