agnes-image-mcp: Instructions file for Codex

AGENTS.md

agnes-image-mcp AGENTS.md is an instructions file for Codex, OpenCode from hskelp9527-pixel/agnes-image-mcp. It costs 467 tokens per session, scanned A, original, MIT.

Repository-specific instructions for the agnes-image-mcp project, a local add-on that lets MCP clients generate images through the Agnes service. They describe the project’s boundaries, code structure, editing rules, and checks.

In plain words
What is it for?
Updating the server, keeping its model-facing tool descriptions accurate, checking reference-image behavior, and running the project’s self-test.
Why use it?
They give a coding agent the project context and rules it needs to make changes without guessing. They also record limits such as no web interface, gallery, batch queue, or managed API keys.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is hskelp9527-pixel/agnes-image-mcp's own configuration. It tells Codex and OpenCode how to work on agnes-image-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agnes-image-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hskelp9527-pixel/agnes-image-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hskelp9527-pixel/agnes-image-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/hskelp9527-pixel/agnes-image-mcp

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for agnes-image-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hskelp9527-pixel/agnes-image-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/hskelp9527-pixel/agnes-image-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/hskelp9527-pixel/agnes-image-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/hskelp9527-pixel/agnes-image-mcp/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.

agentmods 80×15 button for agnes-image-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hskelp9527-pixel/agnes-image-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/hskelp9527-pixel/agnes-image-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 467 This file is loaded in full into every session.
When invoked 467 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00467 $0.00467
Opus 5 $0.00234 $0.00234
Sonnet 5 $0.00093 $0.00093
Haiku 4.5 $0.00047 $0.00047

Measured 8d ago against content hash 777a07bedbc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

agnes-image-mcp AGENTS.md scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- 依赖只允许 `mcp`。HTTP 用标准库 `urllib`,不要引 `requests` / `httpx`。
AGENTS.md · 43 lines

What it actually says

agnes-image-mcp

给任意 MCP 客户端加生图能力。用户填自己的 Agnes API key,图直接返回到对话里。

这个项目的边界

:一个 stdio MCP server,暴露生图和列模型两个 tool。 不做:不做图片编辑器、不做画廊、不做 web UI、不代管 key、不做 batch 队列。

开源分享用,不承诺维护。README 必须写明这一点,不要给用户「有人会修 bug」的暗示。

结构

src/agnes_image_mcp/server.py   全部逻辑,单文件
pyproject.toml                  发布配置
README.md                       给使用者看的,最重要的文件

单文件够用。不要拆成 client.py / models.py / config.py——总共不到 150 行,拆开只会让读的人多跳三次。

改代码的规矩

  • 依赖只允许 mcp。HTTP 用标准库 urllib,不要引 requests / httpx
  • tool 的 docstring 是给模型看的说明书,不是给人看的注释。改行为必须同步改 docstring,否则模型会按旧描述调用。
  • 参考图那条规则(0/1/6 张的后果)是这个项目的核心价值,写在 docstring 里,不要挪到 README 就算了。
  • 不加 API key 之外的配置项。能用环境变量解决的不要做配置文件。

验证

改完必须跑:

python -m agnes_image_mcp --selftest    # 不需要 key,只验 JSON-RPC 握手和 tool schema

要验真实出图再手动跑一次带 key 的 generate_image

上游风险

Agnes 免费额度是「拿使用数据换免费」,约 20 RPM,无 SLA,随时可能改。 不要在代码里做重试规避限流,让错误如实抛给用户。README 里说清楚。

Changes

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.

  1. 8d ago First seen · 43 lines · 467 tokens per session scan A 777a07bedbc6

Subscribe to this mod's changes

agnes-image-mcp AGENTS.md is an instructions file published in the GitHub repository hskelp9527-pixel/agnes-image-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 467 tokens to every session, about $0.0023 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

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.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

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.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens