openapi: Instructions file for Codex

AGENTS.md

openapi AGENTS.md is an instructions file for Codex, OpenCode from pachca/openapi. It costs 1,795 tokens per session, scanned A, original, MIT.

Repository instructions for Pachca’s OpenAPI monorepo, a codebase containing several related packages and apps. They explain its structure, build checks, and where generated files come from.

In plain words
What is it for?
Use them when working on Pachca’s API specification, command-line tool, SDK generator, parser, documentation site, or related packages.
Why use it?
They help coding agents change the correct source files and avoid editing generated output directly. They also provide the project’s standard build and verification commands.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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 openapi AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pachca/openapi/agents-md"><img src="https://agentmods.dev/badge/instructions/pachca/openapi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,795 This file is loaded in full into every session.
When invoked 1,795 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.01795 $0.01795
Opus 5.5 $0.00718 $0.00718
Sonnet 5.5 $0.00359 $0.00359
Haiku 4.5 $0.00179 $0.00179

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

Security

Grade A, and why

openapi 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 3d 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 · 72 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working in this repository. (Using the Pachca API instead of contributing here? See https://dev.pachca.com/skill.md, https://dev.pachca.com/llms.txt, the MCP server https://mcp.pachca.com/mcp, or the plugin in plugins/pachca/ — not this file.)

What this repo is

Monorepo (Turborepo + bun) for the Pachca API platform. TypeSpec is the single source of truth; everything else is generated from it.

Path What
packages/spec TypeSpec (typespec.tsp) → openapi.yaml; English overlay → openapi.en.yaml; MCP tool manifest (mcp-manifest.json), examples
packages/cli oclif CLI @pachca/cli, generated from OpenAPI
packages/generator Multi-language SDK generator
packages/openapi-parser Shared OpenAPI parser
packages/mcp-manifest npm package @pachca/mcp-manifest: the MCP tool manifest and its JSON Schema, copied from packages/spec by the build
apps/docs Next.js 16 docs site (dev.pachca.com): content/ MDX, lib/, scripts/ generators, public/ generated artifacts
plugins/pachca The Pachca plugin for Claude Code, the Claude app, Codex, VS Code and GitHub Copilot, and Cursor: hand-written skills, MCP configs and one manifest per host
integrations/n8n n8n community node

Build & check

npx turbo build      # compiles TypeSpec + builds all packages + regenerates generated files
npx turbo check      # lint + typecheck + knip + format:check + test — MUST pass before commit (CI runs this)
bun turbo dev        # docs dev server (Next.js 16)

Standard loop: edit source → npx turbo build → npx turbo check → review generated diffs → commit. Branch from origin/main; open a PR (never push to main).

Do NOT hand-edit generated files — edit the generator

Generated Source of truth
packages/spec/openapi.yaml packages/spec/typespec.tsp (then npx turbo build --filter=@pachca/spec --force)
packages/spec/openapi.en.yaml packages/spec/overlay.en.yaml + scripts/apply-overlay.ts (a changed Russian text also needs bun run overlay:fingerprints in packages/spec)
packages/spec/mcp-manifest.json the spec + packages/spec/mcp-core.ts, mcp-tools.ts, scripts/generate-mcp-manifest.ts (then bun run generate-mcp in packages/spec)
packages/mcp-manifest/mcp-manifest.json, mcp-manifest.schema.json copies of packages/spec/mcp-manifest.json and mcp-manifest.schema.json (npx turbo build --filter=@pachca/mcp-manifest); a changed manifest needs a new version on top of packages/mcp-manifest/CHANGELOG.md and in its package.json, and a release entry with product mcp and that version in apps/docs/data/releases.json (the package itself is not there)
apps/docs/public/llms*.txt, public/**/*.md, Postman collection apps/docs/scripts/generate-llms.ts
apps/docs/public/skill.md, public/.well-known/**, public/skills/*.zip, plugins/pachca/evals/mocks/pachca/_tools.json, and the version in plugins/pachca/plugin.json, .codex-plugin/plugin.json, .claude-plugin/plugin.json, .cursor-plugin/plugin.json (recorded in apps/docs/scripts/skills/plugin-version.json) the hand-written plugin in plugins/pachca/, checked and published by apps/docs/scripts/skills/generate.ts (links, MCP tool and CLI command names, size, manifests in step; the version is one patch above the one in main once the plugin files change)
packages/cli/src/commands/** (except auth/config), packages/cli/CHANGELOG.md packages/cli/scripts/generate-cli.ts; src/data/changelog.json
n8n node files integrations/n8n/scripts/generate-n8n.ts
AGENTS.md (this file) apps/docs/scripts/skills/generate.ts (generateAgentsMd())

Read the full file on GitHub · 72 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. 3d ago Changed · -7 tokens per session e8d4a1caff48
  2. 5d ago Changed · +34 tokens per session 350f675f900f
  3. 8d ago Changed · +4 lines · +287 tokens per session e0113f1e3ecd
  4. 17d ago Changed · +4 lines · +260 tokens per session ef1c990a11b7
  5. 2mo ago First seen · 64 lines · 1,221 tokens per session scan A 03d15746eae4

Subscribe to this mod's changes

openapi AGENTS.md is an instructions file published in the GitHub repository pachca/openapi (11 stars, last pushed 2d ago), licensed MIT. It adds 1,795 tokens to every session, about $0.0072 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

openapi AGENTS.md compared with instructions from other repositories

openapi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openapi AGENTS.mdpachca/openapiInstructions file112d agoMITA1,795Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode