agentify: Instructions file for Codex

AGENTS.md

agentify AGENTS.md is an instructions file for Codex, OpenCode from harindukavishka/agentify. It costs 371 tokens per session, scanned A, a copy of agentify AGENTS.md, MIT.

Repository instructions for Agentify, a TypeScript tool that converts OpenAPI specifications (descriptions of web APIs) into agent-facing outputs such as MCP servers, skills, and instruction files. They describe the build commands, architecture, coding rules, security checks, and tests.

In plain words
What is it for?
Use them when changing Agentify's parser, generators, security scanner, shared data model, command-line interface, or Vitest tests.
Why use it?
They give contributors a consistent way to build and test the project while ensuring generated code is checked for dangerous patterns and input fields are sanitized.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/harindukavishka/agentify/agents-md"><img src="https://agentmods.dev/badge/instructions/harindukavishka/agentify/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 371 This file is loaded in full into every session.
When invoked 371 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 100% copy Near-identical to another mod 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.00371 $0.00371
Opus 5.5 $0.00148 $0.00148
Sonnet 5.5 $0.00074 $0.00074
Haiku 4.5 $0.00037 $0.00037

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

Security

Grade A, and why

agentify 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 2mo 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.

Origin

This is a copy

100% identical to agentify AGENTS.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 45 lines

What it actually says

AGENTS.md

Agentify is an Agent Interface Compiler that transforms OpenAPI specifications into multiple agent-consumable formats (MCP Server, Skills, CLAUDE.md, .cursorrules, AGENTS.md, llms.txt, A2A Card).

Build & Run

npm install
npm run build        # Build with tsup
npm run dev          # Dev mode with tsx
npm test             # Run tests with Vitest
npm run lint         # TypeScript type check

Architecture

  • Parser (src/parser/): OpenAPI spec parsing + input sanitization
  • Generator (src/generator/): Pluggable emitters for each output format
  • Security (src/security/): Generated code scanning for dangerous patterns
  • IR (src/types.ts): Canonical intermediate representation (AgentifyIR)
  • CLI (src/cli.ts): Commander.js CLI entry point

Code Conventions

  • TypeScript strict mode (all strict flags enabled)
  • Immutable data patterns — never mutate objects, always spread
  • Small files: 200-400 lines typical, 800 max
  • Emitter interface: implement emit(ir, options) => EmitterResult
  • All OpenAPI spec fields must pass through sanitizer before use
  • Generated code must pass security scanner before output

Testing

  • Framework: Vitest
  • Coverage target: 80%+
  • Test files: test/*.test.ts
  • Integration tests use live Petstore API

Security

  • Input sanitization blocks: eval, exec, Function constructor, require/import in descriptions
  • Handlebars template injection prevention
  • Prompt injection pattern detection
  • Generated code scanner checks for critical patterns before writing files
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. 2mo ago First seen · 45 lines · 371 tokens per session scan A 6bb2965e72bb

Subscribe to this mod's changes

agentify AGENTS.md is an instructions file published in the GitHub repository harindukavishka/agentify (5 stars, last pushed 25d ago), licensed MIT. It adds 371 tokens to every session, about $0.0015 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to agentify AGENTS.md, differing in 0 lines, and is treated as a copy.

Related

agentify AGENTS.md compared with instructions from other repositories

agentify AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentify AGENTS.mdharindukavishka/agentifyInstructions file525d agoMITA371Codex, 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