toolkit-ai: Instructions file for Codex

AGENTS.md

toolkit-ai AGENTS.md is an instructions file for Codex, OpenCode from barleviatias/toolkit-ai. It costs 1,961 tokens per session, scanned C, original, MIT.

Repository guidelines for toolkit-ai, a command-line and terminal interface that installs and manages coding-agent add-ons such as skills, subagents, and MCP servers. They cover its TypeScript source layout, builds, tests, and conventions.

In plain words
What is it for?
Use them when changing toolkit-ai commands, its terminal interface, installation logic, source catalog, tests, or build process.
Why use it?
They show where each part belongs and help prevent edits to generated output or changes that leave the build, tests, or documentation out of sync.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/barleviatias/toolkit-ai/agents-md"><img src="https://agentmods.dev/badge/instructions/barleviatias/toolkit-ai/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,961 This file is loaded in full into every session.
When invoked 1,961 The same file — it is already loaded in full.
Security scan C 2 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.01961 $0.01961
Opus 5.5 $0.00784 $0.00784
Sonnet 5.5 $0.00392 $0.00392
Haiku 4.5 $0.00196 $0.00196

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

Security

Grade C, and why

toolkit-ai AGENTS.md scanned grade C with 2 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

The install policy is **alert, never block** — scanner findings surface to the user (TUI consent dialog, CLI log output) but do not refuse the install. The CLI `--strict` flag (`InstallOptions.strict`) opts in to hard-fa

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- **No shell strings** — use `spawnSync(bin, [args], ...)` with array arguments; never `{shell: true}`
AGENTS.md · 124 lines

How it starts

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

Repository Guidelines

Conventions for contributors and AI coding agents (Claude Code, Codex, Copilot, Cursor). Pairs with CLAUDE.md (architecture) and README.md (user docs).

Project Structure & Module Organization

src/ contains all application code for the CLI and Ink TUI:

  • src/commands/ — command entrypoints (headless.ts, init.ts)
  • src/core/ — install / update / remove / catalog / scanner / sources / platform logic
  • src/components/ — shared UI pieces (ItemRow, ItemList, DetailView, TypeFilter, …)
  • src/tabs/ — top-level TUI screens (CatalogTab, InstalledTab, SourcesTab)
  • src/hooks/ — React hooks (useCatalog, useFilteredItems)

Static data lives in resources/ (default sources manifest); repo-level utilities live in scripts/. Build output is written to bin/ai-toolkit.mjs — do not hand-edit generated files.

Build, Test, and Development Commands

Command Purpose
npm install Install dev dependencies (ink, react, tsup, typescript)
npm run build Production bundle into bin/ai-toolkit.mjs (publish only)
npm run build:dev Local verification build — stamps a git build number into the UI / --version; use this to verify changes manually
npm run dev tsup --watch for iterative development
npm test tsc --noEmit typecheck, then run all tests/*.test.mjs via node:test
npm link Link the CLI globally for local testing (toolkit, ai-toolkit, toolkit-ai)

Tests are authored against the compiled build in .test-dist/ (see tests/run.mjs). Fixtures live in tests/fixtures/*.mjs and communicate results as JSON via stdout.

Manual / TUI verification must use npm run build:dev, never npm run build. The dev build stamps a build number (git short SHA, +-dirty) into the Logo and --version, e.g. toolkit-ai v2.1.13 dev build · adb1edd. This matters because the global toolkit command may resolve to the published npm copy in node_modules, not your repo build — both print the same version, so a stale global silently runs old code. Run npm link first so the global commands point at the repo build, then confirm the build number in the UI before trusting any manual verification.

Read the full file on GitHub · 124 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 First seen · 124 lines · 1,961 tokens per session scan C 328554d9aef5

Subscribe to this mod's changes

toolkit-ai AGENTS.md is an instructions file published in the GitHub repository barleviatias/toolkit-ai (12 stars, last pushed 1mo ago), licensed MIT. It adds 1,961 tokens to every session, about $0.0078 per session on Opus 5.5. A static security scan graded it C with 2 findings (tells the agent never to refuse, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

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 · 9,715 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,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens