llm-vision-mcp: Instructions file for Codex

AGENTS.md

llm-vision-mcp AGENTS.md is an instructions file for Codex, OpenCode from me9rez/llm-vision-mcp. It costs 566 tokens per session, scanned A, original, MIT.

Project instructions for llm-vision-mcp, a Node.js package that provides an MCP service and command-line tools for sending local images to an OpenAI-compatible vision service for analysis. They describe its commands, configuration, image checks, security rules, and tests.

In plain words
What is it for?
Use them when changing the image-analysis tools, MCP service, command-line interface, configuration, or Vitest tests.
Why use it?
They explain how to run and test the service while preserving image validation and the machine-readable communication used by MCP.

Instructions file for CodexOpenCode

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

This is me9rez/llm-vision-mcp's own configuration. It tells Codex and OpenCode how to work on llm-vision-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 llm-vision-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to me9rez/llm-vision-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/me9rez/llm-vision-mcp/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/me9rez/llm-vision-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 llm-vision-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/me9rez/llm-vision-mcp/agents-md.svg)](https://agentmods.dev/instructions/me9rez/llm-vision-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/me9rez/llm-vision-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/me9rez/llm-vision-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 566 This file is loaded in full into every session.
When invoked 566 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00566 $0.00566
Opus 5 $0.00283 $0.00283
Sonnet 5 $0.00113 $0.00113
Haiku 4.5 $0.00057 $0.00057

Measured 7d ago against content hash 0fb0bb6fa5bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

llm-vision-mcp 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 7d 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.

AGENTS.md · 27 lines

What it actually says

仓库说明

常用命令

  • 使用 npm install 安装依赖;这是一个独立的 Node.js 包,要求 Node.js >=18
  • npm testvitest run)运行完整测试套件;用 npm run smoke 运行无需 API Key 的验证冒烟测试。
  • npm startnode index.js mcp)启动本地 MCP stdio 服务;直接 CLI 分析为 node index.js <tool> <image-path> [prompt]
  • 项目没有配置构建、lint、格式化、类型检查或代码生成步骤;不要自行引入这些作为必要验证。

目录结构

  • index.js 是唯一的运行时入口:mcp 选择 stdio MCP 服务,其余参数都走 CLI。
  • src/tools.js 是工具名称、提示词以及 MCP/CLI 工具过滤的唯一事实来源;复用这里,不要重复定义工具元数据。
  • src/config.js 在模块导入时读取环境变量;测试中修改配置后必须重置模块再重新导入。
  • src/vision.js 在把 base64 数据发送给 OpenAI 兼容 API 前校验本地图片;src/mcp.js 通过 MCP 注册同样的工具。

配置与安全

  • 运行时配置来自 API_KEYBASE_URLVISION_MODELTEMPERATUREMAX_TOKENS 以及仅 MCP 模式生效的 TOOLS.envindex.js 加载,且已被 Git 忽略。
  • MCP 使用 stdio,不能用 stdout 写日志或其他非协议输出。
  • 图片输入有意限制为 src/config.js 中的扩展名和魔数前缀,并受 src/validation.js 的 20 MiB 大小限制;修改图片处理逻辑时保留这些检查。
  • MCP 模式下 --tools 优先于 TOOLS 环境变量;工具名接受 snake_case 或 kebab-case,未知名称会被忽略并给出警告。

测试

  • 测试是 tests/ 下的 Vitest 文件;只迭代某一区域时用聚焦命令,如 npx vitest run tests/validation.test.js
  • 测试使用临时目录和 mock 的 OpenAI 调用;整个测试套件和冒烟测试都不需要真实 API Key。MCP 子进程测试会走一遍 JSON-RPC stdio 握手。
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. 7d ago First seen · 27 lines · 566 tokens per session scan A 0fb0bb6fa5bd

Subscribe to this mod's changes

llm-vision-mcp AGENTS.md is an instructions file published in the GitHub repository me9rez/llm-vision-mcp (4 stars, last pushed 1mo ago), licensed MIT. It adds 566 tokens to every session, about $0.0028 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-31.

Related

Other instructions, from other repositories

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,182 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

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

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

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

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens