memorylens-mcp: Instructions file for Codex

AGENTS.md

memorylens-mcp AGENTS.md is an instructions file for Codex, OpenCode from MarcelRoozekrans/memorylens-mcp. It costs 2,101 tokens per session, scanned C, original, MIT.

Project instructions for MemoryLens MCP, a server that examines the memory use of a running .NET program and reports rule-based findings with suggested code fixes.

In plain words
What is it for?
It is for developing and testing a .NET tool, its command-line and npm launchers, its Docker image, and its MCP server.
Why use it?
It documents the project layout, supported packages, test projects, and build details so contributors know how the parts fit together.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/marcelroozekrans/memorylens-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/marcelroozekrans/memorylens-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,101 This file is loaded in full into every session.
When invoked 2,101 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.02101 $0.02101
Opus 5.5 $0.00840 $0.00840
Sonnet 5.5 $0.00420 $0.00420
Haiku 4.5 $0.00210 $0.00210

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

Security

Grade C, and why

memorylens-mcp AGENTS.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 16d 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.

Recursive force deletehighDestructive command

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

rm -rf artifacts
AGENTS.md · 135 lines

How it starts

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

AGENTS.md: memorylens-mcp

MemoryLens MCP is an MCP server that profiles the heap of a running .NET process in-process over EventPipe and returns rule-based findings with code fix suggestions. It ships as the MemoryLens.Mcp .NET global tool on NuGet, as the memorylens-mcp npm launcher, as a Docker image, and as a Claude Code plugin that runs the tool through dnx.

Layout

  • src/MemoryLens.Mcp is the only packable project, on net10.0 and net11.0.
  • tests/MemoryLens.Mcp.Tests is the unit suite. tests/MemoryLens.Mcp.IntegrationTests starts the server over stdio and attaches to tests/MemoryLens.Mcp.LeakyApp, a child process it copies into its output folder. LeakyApp targets only net10.0 with RollForward set to Major, so it runs under both test target frameworks. tests/MemoryLens.Mcp.TestSupport is shared helper code.
  • npm/ is a launcher with no server code that installs the NuGet tool at its own version, so it is published after the NuGet push. Its test, cd npm && node --test test/*.test.js, runs in no CI job.
  • src/MemoryLens.Mcp/.mcp/server.json is a committed 0.0.0 placeholder. The StampMcpServerJsonVersion target in the csproj writes the real PackageVersion into a copy under obj/ and packs that copy. Never edit the version in the source file and never make the target write back over it.
  • A version is bumped only by release-please. The files it rewrites are declared in release-please-config.json extra-files: root server.json (three fields), npm/package.json, .claude-plugin/marketplace.json (two fields) and plugins/memorylens/.claude-plugin/plugin.json (the version and the dnx version argument). Adding another file that carries the version means adding it there too. Do not edit those versions by hand.
  • Dockerfile publishes net11.0 only and deliberately does not copy global.json: the floating sdk:11.0 tag would hard-break against the pin once it rolls past the 11.0.1xx band.

Read the full file on GitHub · 135 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. 16d ago First seen · 135 lines · 2,101 tokens per session scan C 269481ed80f0

Subscribe to this mod's changes

memorylens-mcp AGENTS.md is an instructions file published in the GitHub repository MarcelRoozekrans/memorylens-mcp (11 stars, last pushed 2d ago), licensed MIT. It adds 2,101 tokens to every session, about $0.0084 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

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

memorylens-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memorylens-mcp AGENTS.mdMarcelRoozekrans/memorylens-mcpInstructions file112d agoMITC2,101Codex, OpenCode
plan-forge api-patterns.instructions.mdsrnichols/plan-forgeInstructions file628d agoMITA2,049GitHub Copilot
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