cortex-mcp: Instructions file for Codex

AGENTS.md

cortex-mcp AGENTS.md is an instructions file for Codex, OpenCode from lidless-labs/cortex-mcp. It costs 450 tokens per session, scanned A, original, MIT.

Repository instructions for contributing to a specific software project, including required agent attribution and verification commands. The instructions explain how to identify the model and tools used in issues, pull requests, and reviews.

In plain words
What is it for?
Use them when changing the project, writing GitHub issues or comments, preparing pull requests, or reporting which model performed implementation and verification work.
Why use it?
They prevent project contributions from missing required checks or attribution details. They also provide the project's own command for running its type checks, tests, and build.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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 cortex-mcp AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lidless-labs/cortex-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/lidless-labs/cortex-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 450 This file is loaded in full into every session.
When invoked 450 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.00450 $0.00450
Opus 5.5 $0.00180 $0.00180
Sonnet 5.5 $0.00090 $0.00090
Haiku 4.5 $0.00045 $0.00045

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

Security

Grade A, and why

cortex-mcp 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 11d 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 · 26 lines

What it actually says

Repository instructions

GitHub agent attribution

Every issue body, pull request body, and GitHub comment an agent writes or edits on Solomon's behalf in this repository ends with this block. Keep the human author identity. Use the actual model, harness, and client. Credit only work performed, include the provider if a model name is ambiguous, and list each review pass. Report the exact checks and observed results above the block. Credit verification to the model that ran the checks.

Sent on behalf of Solomon by <orchestrator model> via <harness> in <client>
Models used:
- Implementation/build: <model> via <harness>, or none
- Test/verification: <model> via <harness> (checks: listed above), or not run
- Review: <model> via <harness> for each pass, or none

Every agent-written review comment and review summary on Solomon's behalf also includes Review by <model> via <harness> in <client>.

Working on cortex-mcp

Run npm ci after checkout and ./scripts/verify before submitting changes. The script runs the type checker, the offline tests and the build in the same order as CI.

The MCP entry point lives in src/index.ts. src/client.ts wraps the Cortex API. Tool modules live in src/tools/ and are registered by the entry point. Update the README tool table and count when adding or removing a tool.

Keep ordinary tests offline with mocks or loopback servers. Use placeholders in examples. Live tests require an explicitly configured disposable Cortex instance. Test mutations also require CORTEX_TEST_MUTATIONS=true, CORTEX_MODE=write and CORTEX_ALLOW_DESTRUCTIVE=1.

Preserve the read-only default, CORTEX_MODE=write for state changes, CORTEX_ALLOW_DESTRUCTIVE=1 and explicit confirmation for destructive tools, CORTEX_FILE_BASE_DIR for local file analysis, and CORTEX_MAX_FANOUT for bulk analysis. Apply API access checks in the client so both tools and command-line entry points enforce them.

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. 11d ago First seen · 26 lines · 450 tokens per session scan A 6fa856c720fc

Subscribe to this mod's changes

cortex-mcp AGENTS.md is an instructions file published in the GitHub repository lidless-labs/cortex-mcp (1 stars, last pushed 2d ago), licensed MIT. It adds 450 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-11-23.

Related

cortex-mcp AGENTS.md compared with instructions from other repositories

cortex-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cortex-mcp AGENTS.mdlidless-labs/cortex-mcpInstructions file12d agoMITA450Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot