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/yuji-hatakeyama/opencode-gpt-imagegen/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.svg" alt="Measured on agentmods" 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.01107 | $0.01107 |
| Opus 5 | $0.00553 | $0.00553 |
| Sonnet 5 | $0.00221 | $0.00221 |
| Haiku 4.5 | $0.00111 | $0.00111 |
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 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 — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Project Shape
- Bun is the package manager/runtime; use
bun install --frozen-lockfilewith the committedbun.lock. - The plugin entry is
src/index.ts(plugin wiring + tool schema); helpers live in role-based modules —src/types.ts(shared types),src/auth.ts(auth resolution),src/input-image.ts(reference image reading),src/output-image.ts(non-overwriting save + message),src/codex.ts(Codex backend call + SSE parsing). bun run buildbundlessrcinto a single self-containeddist/index.jsviabun build --target node --format esm --packages external(dependencies, including the@opencode-ai/pluginpeer dep, 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/(helper-module unit tests) andtests/e2e/(one file per auth path, e.g.subscription.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:e2e_subscriptionsetsOPENCODE_MODEL=openai/gpt-5.5and runstests/e2e/subscription.test.ts(ChatGPT subscription / OAuth path). It can take minutes because it callsopencode runand generates real images. The future API-key path gets its owntest:e2e_apikeyscript +tests/e2e/apikey.test.ts.- Each e2e path is its own script (its own
bun testprocess), which also avoids the unit-testprocess.envleak into the single-process e2eopencodespawn. - CI runs
bun run typecheck,bunx biome ci ., andbun run test. The e2e suites are not run in CI's default checks (they need real auth + generations); they are invoked separately via theirtest:e2e_*scripts.
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 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 (75 stars, last pushed yesterday), licensed MIT. It adds 1,107 tokens to every session, about $0.0055 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
openai-cookbook AGENTS.md
AGENTS.md instructions for openai/openai-cookbook, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.
openagent CLAUDE.md
Claude Code instructions for the-open-agent/openagent, covering claude.md, commands, architecture, backend (go / beego) and frontend (react).
gptme AGENTS.md
AGENTS.md instructions for gptme/gptme, covering agent instructions for gptme, git workflow, code style, testing and project structure.
gpt_image_playground AGENTS.md
AGENTS.md instructions for CookSleep/gpt_image_playground, covering agent instructions for gpt-image-playground, 项目概况, 常用命令, 代码风格(强制) and 简单优先.
awesome-ChatGPT-repositories CLAUDE.md
Claude Code instructions for taishi-i/awesome-ChatGPT-repositories, covering awesome-chatgpt-repositories — claude code guide, repository structure, plugin skill (when installed via /plugin), local standalone command (when repo is cloned) and compact data format (plugins/awesome-chatgpt-search/data/).
azure-search-openai-demo bicep.instructions.md
Infrastructure as Code with Bicep.