Marvin: Instructions file for Codex

AGENTS.md

Marvin AGENTS.md is an instructions file for Codex, OpenCode from Josuebmota/Marvin. It costs 1,958 tokens per session, scanned D, original, MIT.

A repository instruction file describing the structure, commands, tests, documentation, and working rules for the Marvin project. Marvin is a script that organizes an AI system's memory, roles, routines, and cost routing.

In plain words
What is it for?
Use it when working on Marvin to find the canonical install and test commands, understand its files, and follow its memory and documentation conventions.
Why use it?
It gives an agent a single source of project-specific instructions, reducing guesses about which files and commands are authoritative.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/josuebmota/marvin/agents-md"><img src="https://agentmods.dev/badge/instructions/josuebmota/marvin/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,958 This file is loaded in full into every session.
When invoked 1,958 The same file — it is already loaded in full.
Security scan D 2 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.01958 $0.01958
Opus 5.5 $0.00783 $0.00783
Sonnet 5.5 $0.00392 $0.00392
Haiku 4.5 $0.00196 $0.00196

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

Security

Grade D, and why

Marvin AGENTS.md scanned grade D 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 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`~/.claude/settings.json`; se reaparecer, é outra máquina ou perfil)

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Junction:** `rm -rf` num junction pode apagar o destino; renomear a pasta quebra a
AGENTS.md · 108 lines

How it starts

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

Marvin

Script Node sem dependências que monta a carapaça da LLM: memória, equipe com papéis, cerimônias e roteamento de custo — uma equipe barata. Uso: README.md.

Fonte de verdade deste projeto, independente de ferramenta. O CLAUDE.md é ponteiro. Estado corrente: .marvin/Memoria/onde_paramos.md — versionado e público (por quê). Este arquivo carrega em toda sessão: regra de um assunto mora onde o assunto é lido.

Estrutura real

Arquivo O que é
marvin.mjs o script inteiro, zero dependência
teste.mjs smoke test dos invariantes, hermético (CI e portabilidade)
PROMPT.md o prompt que guia a escrita dos agentes (o script não escreve)
README.md / README.pt-BR.md documentação pública, inglês e português
.marvin/ferramentas.md ferramentas opcionais que ESTE repo usa e o alcance de cada uma

Comandos canônicos

Use exatamente estes — não adivinhe. Não há build.

O quê Comando De onde saiu
Instalar npm install no lockfile — npm is the default
Testar npm run test package.json > scripts.test

A coluna da direita impede a tabela de envelhecer em silêncio: mudou o package.json, é aqui que se confere. O pacote é marvin-kb, o comando é marvin (npx marvin é de outra pessoa); do clone, node marvin.mjs. O package.json existe só para dar bin e nunca terá dependencies (por quê).

Invariantes

1. Nunca destruir dado sem conferir antes. A migração de memória copia, confere a contagem e só então apaga. Se copiou menos do que a origem, aborta e não apaga nada.

2. Idempotente sempre. Rodar duas vezes não pode duplicar nem sobrescrever. Todo bloco de escrita é guardado por if (!fs.existsSync(...)).

3. Não inventar convenção de ferramenta. Adaptador de confiança média/baixa sai com aviso mandando conferir. Adaptador que não carrega falha em silêncio — pior que adaptador ausente.

Read the full file on GitHub · 108 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 · 108 lines · 1,958 tokens per session scan D a3d67c2d4c7c

Subscribe to this mod's changes

Marvin AGENTS.md is an instructions file published in the GitHub repository Josuebmota/Marvin (5 stars, last pushed 28d ago), licensed MIT. It adds 1,958 tokens to every session, about $0.0078 per session on Opus 5.5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

Marvin AGENTS.md compared with instructions from other repositories

Marvin AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Marvin AGENTS.mdJosuebmota/MarvinInstructions file528d agoMITD1,958Codex, OpenCode
data-scientist copilot-instructions.mdrealnghon/data-scientistInstructions file25mo agoMITA373GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot