toolkit-ai 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: reads ~/.codex or $CODEX_HOME, but also the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/barleviatias/toolkit-ai/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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00981 $0.00981
Sonnet 5 $0.00392 $0.00392
Haiku 4.5 $0.00196 $0.00196

Measured 6d ago against content hash 328554d9aef5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 5d ago), licensed MIT. It adds 1,961 tokens to every session, about $0.0098 per session on Opus 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.