CommandMate: Instructions file for Codex

AGENTS.md

CommandMate AGENTS.md is an instructions file for Codex, OpenCode from Kewton/CommandMate. It costs 594 tokens per session, scanned A, original, MIT.

Repository instructions for CommandMate, a Next.js and TypeScript application with a SQLite database. They define the project context, coding rules, testing expectations, and main source directories.

In plain words
What is it for?
Use them when changing CommandMate’s application code, libraries, components, database-related logic, or tests.
Why use it?
They give coding agents consistent guidance for making focused changes that fit the existing architecture and avoid unrelated refactoring.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kewton/commandmate/agents-md"><img src="https://agentmods.dev/badge/instructions/kewton/commandmate/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 594 This file is loaded in full into every session.
When invoked 594 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.00594 $0.00594
Opus 5.5 $0.00238 $0.00238
Sonnet 5.5 $0.00119 $0.00119
Haiku 4.5 $0.00059 $0.00059

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

Security

Grade A, and why

CommandMate 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 7d 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 · 81 lines

How it starts

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

AGENTS.md

This document provides repository-level guidance for coding agents (including Codex) working in CommandMate.

Scope

  • Applies to the entire repository.
  • This file is the primary entry point for agent behavior in this repo.
  • For detailed background and implementation history, refer to README.md, docs/, and CLAUDE.md.

Project Context

  • Project: CommandMate
  • Stack: Next.js 15, React 19, TypeScript, Tailwind CSS 4, SQLite (better-sqlite3)
  • Runtime: Node.js 22+
  • Main areas:
    • src/app: App Router pages and API routes
    • src/lib: core business logic and utilities
    • src/components: UI components
    • tests/unit, tests/integration, tests/e2e: test suites

Working Principles

  1. Keep changes issue-focused and minimal.
  2. Preserve existing architecture and naming patterns.
  3. Prefer small, reviewable commits over large refactors.
  4. Do not introduce unrelated cleanups in the same change.
  5. If behavior changes, add or update tests in the same PR.

Coding Rules

  • Use strict TypeScript types; avoid any unless unavoidable.
  • Reuse existing utilities in src/lib before adding new helpers.
  • Keep API validation explicit and defensive.
  • Follow existing React/Next.js patterns in the touched module.
  • Keep comments short and meaningful; avoid obvious comments.

Safety And Boundaries

  • Do not perform destructive operations (git reset --hard, broad file deletion) unless explicitly requested.
  • Do not overwrite user-authored files unexpectedly.
  • Treat auth/security-related paths with extra care:
    • src/lib/auth.ts
    • src/middleware.ts
    • src/lib/env-sanitizer.ts
    • src/lib/ip-restriction.ts

Validation Checklist

Before finishing, run relevant checks for changed scope:

# unit tests
npm run test:unit

# integration tests when API/DB behavior changes
npm run test:integration

# lint when editing TS/React broadly
npm run lint

For small fixes, run targeted tests first, then expand only if needed.

Read the full file on GitHub · 81 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. 7d ago Changed · +6 tokens per session 4aaacefb2f67
  2. 1mo ago First seen · 81 lines · 588 tokens per session scan A c13ee401a391

Subscribe to this mod's changes

CommandMate AGENTS.md is an instructions file published in the GitHub repository Kewton/CommandMate (44 stars, last pushed today), licensed MIT. It adds 594 tokens to every session, about $0.0024 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-30.

Related

Other instructions, from other repositories