mnema: Instructions file for GitHub Copilot

.github/instructions/mnema-instructions.instructions.md

mnema mnema-instructions.instructions.md is an instructions file for GitHub Copilot from felipesauer/mnema. It costs 648 tokens per session, scanned C, original, Apache-2.0.

A repository instruction file for Mnema, a system that keeps signed records of project decisions in `.mnema/`. It tells agents how to load rules, record accepted choices, and mark replaced decisions.

In plain words
What is it for?
Use it when an agent works in a repository that has Mnema tools connected and needs to follow its decision-recording process.
Why use it?
It keeps decisions, rejected alternatives, and the reason for each choice available for later review instead of relying on memory.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions subagents.

This is felipesauer/mnema's own configuration. It tells GitHub Copilot how to work on mnema 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 mnema configures →

Reuse

Borrowing it

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

Made for: GitHub Copilot.

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 mnema mnema-instructions.instructions.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/felipesauer/mnema/mnema-instructions"><img src="https://agentmods.dev/badge/instructions/felipesauer/mnema/mnema-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 648 This file is loaded in full into every session.
When invoked 648 The same file — it is already loaded in full.
Security scan C 1 finding. 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.00648 $0.00648
Opus 5.5 $0.00259 $0.00259
Sonnet 5.5 $0.00130 $0.00130
Haiku 4.5 $0.00065 $0.00065

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

Security

Grade C, and why

mnema mnema-instructions.instructions.md scanned grade C with 1 finding 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 26d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- mnema:begin v4 (written by mnema; `mnema instructions --remove` takes it out) -->
.github/instructions/mnema-instructions.instructions.md · 31 lines

What it actually says

Recording the work (mnema)

This repository keeps a signed record of its decisions in .mnema/. Where the mnema tools are connected:

  • At the start of a session, call bootstrap: it opens with what is in force, what awaits a judgement and the work in flight.
  • Before changing a file, call governing_rules with its path.
  • When a choice is settled, with the person or alone, that someone could later question (a library, an approach, a trade-off, an option turned down), call record_decision in that turn, with the rationale and, in alternatives, what was turned down and why. Record it even when it is also written in a plan, a ledger, this file or your own memory.
  • A decision is born proposed; once it is accepted it is in force here. If the person dictated it, or chose it among options you offered (a recommended one included), accept it now with decision_transition and a note quoting their answer; one you concluded alone waits for the person. An agent’s acceptance is recorded as an agent’s, and mnema switch off agent-accepts leaves every acceptance to a person.
  • A decision is not edited once it is recorded. When a new one replaces an earlier one, record the new one and then call decision_transition on the earlier one with action supersede, the new decision’s id in by and the reason; the new one is then read as replacing the earlier one, which it names.
  • A subagent records no decision: it hands its decisions back in its final reply, and the session that started it records them.
  • When you learn something about this project that its code does not show, call capture_memory, also when you keep it in your own memory.
  • Work in flight is a task (create_task), and handing work to another agent is a handoff on it (record_handoff), with its brief: the short text, and the path of a file where the brief is long.
  • Not for the record: each step taken, a credential, personal data, what the code or git already says.
  • Commit .mnema/ with the work it describes: the record changes as the work does, through these tools and the mnema command. Never edit or reformat its files by hand.

Where the tools are not connected and the mnema command is installed, the shell does the same. This records a decision, with what was turned down:

mnema decision record "Use pnpm for the workspace" "The lockfile and the workspace scripts already assume it." --alternatives "npm: no workspace protocol; yarn: a second lockfile to keep"

And this one says a new decision replaces an earlier one:

mnema decision supersede <old-id> <new-id> --reason "<why>"
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. 26d ago Changed · +42 tokens per session 34d50355d5b0
  2. 1mo ago First seen · 31 lines · 606 tokens per session scan C dc68e7869082

Subscribe to this mod's changes

mnema mnema-instructions.instructions.md is an instructions file published in the GitHub repository felipesauer/mnema (4 stars, last pushed 25d ago), licensed Apache-2.0. It adds 648 tokens to every session, about $0.0026 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.

Related

mnema mnema-instructions.instructions.md compared with instructions from other repositories

mnema mnema-instructions.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mnema mnema-instructions.instructions.mdfelipesauer/mnemaInstructions file425d agoApache-2.0C648GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144kyesterdayMITA7,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
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode