code-reasoning: Instructions file for Codex

AGENTS.md

code-reasoning AGENTS.md is an instructions file for Codex, OpenCode from mettamatt/code-reasoning. It costs 438 tokens per session, scanned A, original, MIT.

A repository brief for a coding assistant, stored in an AGENTS.md file, that documents project names, commands, code style, and documentation locations.

In plain words
What is it for?
Use it to record build, start, test, lint, formatting, validation, naming, import, type, and error-handling rules.
Why use it?
It gives an assistant the project-specific instructions needed to work consistently instead of guessing how to build, test, format, or name code.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 code-reasoning AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mettamatt/code-reasoning/agents-md"><img src="https://agentmods.dev/badge/instructions/mettamatt/code-reasoning/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 438 This file is loaded in full into every session.
When invoked 438 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.00438 $0.00438
Opus 5.5 $0.00175 $0.00175
Sonnet 5.5 $0.00088 $0.00088
Haiku 4.5 $0.00044 $0.00044

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

Security

Grade A, and why

code-reasoning 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 2mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 37 lines

What it actually says

AGENTS.md (Coding Assistant Brief)

This file provides guidance to Codex CLI when working with code in this repository.

Naming Convention Note

This project was originally forked from the Sequential Thinking MCP Server but has been renamed to Code Reasoning MCP Server to better reflect its specialized focus on programming tasks. The tool has been renamed from "sequentialthinking" to "code-reasoning" for consistency. All configuration must use "code-reasoning" as the key - the "sequential-thinking" configuration key is not supported. The class previously named "SequentialThinkingServer" has been renamed to "CodeReasoningServer" for consistency.

Build/Test/Lint Commands

  • Build: npm run build
  • Start: npm run start, npm run debug
  • Test: npm run test (runs ESLint)
  • Lint: npm run lint, npm run lint:fix
  • Format: npm run format, npm run format:check
  • Validation: npm run validate (runs format, lint:fix, and build)

Code Style Guidelines

  • Parameters: snake_case (e.g., thought_number, not thoughtNumber)
  • Imports: ES Modules with .js extension
  • Types: Strict TypeScript with explicit types; avoid any where possible
  • Error Handling: Use structured logging with Logger class
  • Logging: Use logger.error/info/debug instead of console.log
  • Formatting: Prettier with singleQuotes, tabWidth: 2, printWidth: 100
  • Variables: Use descriptive names, camelCase for variables/functions

Always run npm run lint and npm run format before committing changes.

Documentation Locations

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. 2mo ago First seen · 37 lines · 438 tokens per session scan A da3b342a7770

Subscribe to this mod's changes

code-reasoning AGENTS.md is an instructions file published in the GitHub repository mettamatt/code-reasoning (257 stars, last pushed 9mo ago), licensed MIT. It adds 438 tokens to every session, about $0.0018 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

code-reasoning AGENTS.md compared with instructions from other repositories

code-reasoning AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reasoning AGENTS.mdmettamatt/code-reasoningInstructions file2579mo agoMITA438Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode