CommandMate AGENTS.md

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

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/kewton/commandmate/agents-md
Clone the repo
git clone --depth 1 https://github.com/Kewton/CommandMate

Made for: Codex, OpenCode.

Per session 588 This file is loaded in full into every session.
When invoked 588 The same file — it is already loaded in full.
Security scan A 0 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 $0.00588 $0.00588
Opus 5 $0.00294 $0.00294
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured yesterday against content hash c13ee401a391, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 14, TypeScript, Tailwind CSS, 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.

Change Policy For Agent Docs

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. yesterday 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 (39 stars, last pushed yesterday), licensed MIT. It adds 588 tokens to every session, about $0.0029 per session on Opus 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.