ai-devkit: Instructions file for Codex

AGENTS.md

ai-devkit AGENTS.md is an instructions file for Codex, OpenCode from codeaholicguy/ai-devkit. It costs 335 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for an AI development toolkit, covering where tests belong, how packages are built and published, and how workspace versions are managed.

In plain words
What is it for?
They are for following test placement rules, building packages, preparing published artifacts, and keeping dependency versions aligned.
Why use it?
They keep an agent from putting tests in build inputs, publishing unwanted files, or using mismatched package versions.

Instructions file for CodexOpenCode

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

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

About the project

AI DevKit is a local-first control layer that gives multiple AI coding agents shared configuration, a terminal dashboard, cross-agent messaging, local memory retrieval, and reusable engineering workflows. It is for developers and teams supervising agents such as Claude Code, Codex CLI, Gemini CLI, OpenCode, Pi, Cursor, Copilot, or Devin. The catalogue entries are composable skills and plugin components used within that agent-management system.

codeaholicguy/ai-devkit · 1,675 stars · on GitHub · ai-devkit.com

Reuse

Borrowing it

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

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 ai-devkit AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/codeaholicguy/ai-devkit/agents-md"><img src="https://agentmods.dev/badge/instructions/codeaholicguy/ai-devkit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 335 This file is loaded in full into every session.
When invoked 335 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.00335 $0.00335
Opus 5.5 $0.00134 $0.00134
Sonnet 5.5 $0.00067 $0.00067
Haiku 4.5 $0.00034 $0.00034

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

Security

Grade A, and why

ai-devkit 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 18d 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 · 31 lines

What it actually says

AGENTS.md — ai-devkit repository conventions

Essential rules for AI agents working in this repository.

Test placement (mandatory)

  • Unit and integration tests always live in packages/<pkg>/tests/ — never inside src/. The build input is src/ only; nothing test-related may compile into dist/ or ship in a published tarball.
  • E2E tests always live in the repository-root e2e/ folder (*.e2e.ts), with their own e2e/vitest.config.ts. Run them with npx vitest run --config e2e/vitest.config.ts. Never mix E2E tests into package test folders — the default per-package vitest run must stay a unit/integration run.

Published packages

  • Each publishable package uses a files allowlist; the published artifact contains runtime code, declarations, and source maps (intentionally shipped for debuggable stack traces) — but never compiled tests, which the tests/ placement guarantees structurally (tests are never in the build input).
  • Versions are exact-pinned across workspace dependencies; bump them together (cli pins the other packages exactly).

Build

  • swc src -d dist compiles only src/; dependency packages must be built before running a package's tests in a fresh worktree (npm run build at the root, or npx nx run-many -t test).
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. 18d ago First seen · 31 lines · 335 tokens per session scan A d54d07a86d34

Subscribe to this mod's changes

ai-devkit AGENTS.md is an instructions file published in the GitHub repository codeaholicguy/ai-devkit (1,675 stars, last pushed 2d ago), licensed Apache-2.0. It adds 335 tokens to every session, about $0.0013 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-11-13.

Related

ai-devkit AGENTS.md compared with instructions from other repositories

ai-devkit AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-devkit AGENTS.mdcodeaholicguy/ai-devkitInstructions file1.7k2d agoApache-2.0A335Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot