cf-mcp: Instructions file for Codex

AGENTS.md

cf-mcp AGENTS.md is an instructions file for Codex, OpenCode from pusewicz/cf-mcp. It costs 2,147 tokens per session, scanned A, original, MIT.

Repository instructions for CF::MCP, a Ruby server that indexes C and C++ game-framework headers and lets agents search documented functions, structs, and enums.

In plain words
What is it for?
Use it when developing or releasing the server, parsing header documentation, or running its tests and quality checks.
Why use it?
It records the commands for setup, testing, linting, local installation, tagging, and releasing the Ruby package.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pusewicz/cf-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/pusewicz/cf-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,147 This file is loaded in full into every session.
When invoked 2,147 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.02147 $0.02147
Opus 5.5 $0.00859 $0.00859
Sonnet 5.5 $0.00429 $0.00429
Haiku 4.5 $0.00215 $0.00215

Measured 1mo ago against content hash cbcec0dd6088, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cf-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 1mo 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 · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

CF::MCP is a Ruby gem that implements an MCP (Model Context Protocol) server for the Cute Framework, a C/C++ 2D game framework. It indexes header files, extracts documentation from comments, and provides search functionality for functions, structs, and enums.

Commands

# Install dependencies
bin/setup

# Run all tests
rake test

# Run a single test file
ruby -Ilib:test test/cf/mcp/parser_test.rb

# Run a specific test method
ruby -Ilib:test test/cf/mcp/parser_test.rb --name test_parse_function_doc

# Lint code with Standard Ruby
rake standard

# Auto-fix linting issues
rake standard:fix

# Validate signatures, type check with Steep, run tests under the runtime type checker
rake rbs

# Run tests, lint, type check, and generate manifest (default task)
rake

# Start interactive console
bin/console

# Install gem locally
bundle exec rake install

# Create git tag for current version
rake tag

# Create tag and push to origin
rake release:tag

# Release to RubyGems (creates tag, builds gem, pushes)
rake release

CLI Usage

# STDIO mode (for Claude Desktop integration)
cf-mcp stdio --root ~/Work/GitHub/pusewicz/cute_framework

# HTTP mode (web UI at /, MCP endpoint at /http, port 9292)
cf-mcp http --port 9292 --root /path/to/cute_framework

# Download headers from GitHub automatically
cf-mcp stdio --download

# Cache the parsed docs (~/.cache/cf-mcp, one file per root); re-run to pick up changes
cf-mcp index --root ~/Work/GitHub/pusewicz/cute_framework

# Every MCP tool is also a command (flags after the command belong to the tool)
cf-mcp search sprite --type function --limit 5
cf-mcp get_details CF_Sprite

Tool commands are found through Tools.all, read the cache and rebuild it when the headers change. Each root has its own cache file, and a command that names none uses the last one. --help goes without the index. SearchTool and ListCategory read the index's categories in CategoryEnum when their schema is asked for, so tool classes can load before the index is filled; CLI#take_source_options pulls --root/--download out of a tool command's arguments first because its flags are checked against those categories.

Read the full file on GitHub · 194 lines

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. 1mo ago Changed · +11 lines · +250 tokens per session cbcec0dd6088
  2. 1mo ago Changed · +28 lines · +585 tokens per session 2e899ca86338
  3. 1mo ago Changed · -2 lines · -49 tokens per session ba4811475b14
  4. 1mo ago Changed e4adf75ee2f7
  5. 1mo ago First seen · 157 lines · 1,361 tokens per session scan A 494564321748

Subscribe to this mod's changes

cf-mcp AGENTS.md is an instructions file published in the GitHub repository pusewicz/cf-mcp (2 stars, last pushed 4d ago), licensed MIT. It adds 2,147 tokens to every session, about $0.0086 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-31.

Related

Other instructions, from other repositories