mcp-explorer: Instructions file for Codex

AGENTS.md

mcp-explorer AGENTS.md is an instructions file for Codex, OpenCode from MausRundung/mcp-explorer. It costs 1,151 tokens per session, scanned A, original, MIT.

A set of repository instructions for exploring a codebase with the project-explorer tool. It explains which tool calls to make first and how to inspect files, searches, and dependencies.

In plain words
What is it for?
It helps agents scan project structure, find imports and symbols, search files, check outdated npm packages, and perform approved file renames.
Why use it?
It gives an agent a map of the project before it changes code, reducing the need to inspect files one by one or work outside the allowed directories.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mausrundung/mcp-explorer/agents-md"><img src="https://agentmods.dev/badge/instructions/mausrundung/mcp-explorer/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,151 This file is loaded in full into every session.
When invoked 1,151 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.01151 $0.01151
Opus 5.5 $0.00460 $0.00460
Sonnet 5.5 $0.00230 $0.00230
Haiku 4.5 $0.00115 $0.00115

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

Security

Grade A, and why

mcp-explorer 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 1mo 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 · 95 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working in this repository.

Start of every chat

At the start of every chat, call explore_project on the project root (registered in opencode as project-explorer_explore_project) to understand the project structure, imports/exports/functions, and dependency graph before doing anything else.

explore_project({ "directory": "." })

Use project-explorer_list_allowed_directories first if you are unsure of the working directory scope. Follow up with search_files for anything you need to inspect in detail.

Tools

This MCP server (project-explorer) exposes 6 tools. In opencode every tool is prefixed with the server name: project-explorer_<tool>.

list_allowed_directories

  • Purpose: Returns the sandboxed directories the server may access. Call it first to confirm scope before any operation.
  • Args: none.
  • Note: if the list is empty, the server has unrestricted filesystem access.

explore_project

  • Purpose: Full project scan. Lists every file with size, detects config files, parses imports/exports/functions for code files, and builds a local dependency graph (edges, most-imported/importing files) resolved via tsconfig baseUrl/paths for JS/TS and via pubspec.yaml for Dart/Flutter (package: URIs, path: dependencies, part/part of codegen links). Reports a ## Dart / Flutter Packages section when pubspec.yaml exists.
  • Args:
    • directory / path (string): target dir, relative to the first allowed dir or absolute. Defaults to allowedDirectories[0].
    • subDirectory (string): optional subdir joined onto directory.
    • includeHidden (boolean): include dot-files, default false.
  • Always excluded: .next, node_modules, #export, .git, dist, build, .vscode, .gradle, .idea, .dart_tool, ephemeral, Pods, .symlinks.

search_files

  • Purpose: Advanced full-text/regex search across files in allowed dirs, with size/date/extension filters and comment/string exclusion.
  • Args:
    • pattern (string, required): text or regex to match. No implicit default.
    • searchPath / path (string): directory to search, default first allowed dir.
    • extensions / excludeExtensions (string[]): include/exclude file types (dot-prefixed).
    • excludePatterns (string[]): filename patterns to skip (simple wildcards).
    • regexMode (boolean): treat pattern as regex.
    • caseSensitive, wordBoundary, multiline (boolean): matching behavior.
    • minSize / maxSize (integer): byte-size range for files.
    • modifiedAfter / modifiedBefore (string): ISO 8601 mtime window.
    • maxDepth (integer): recursion depth limit.
    • followSymlinks (boolean): traverse symlinks.
    • includeBinary (boolean): also search binary files.
    • snippetLength (integer, default 50): chars around each match.
    • maxResults (integer, default 100): result cap.
    • sortBy (string): relevance | file | lineNumber | modified | size.
    • groupByFile (boolean): group output per file.
    • excludeComments (boolean): skip language-aware comments.
    • excludeStrings (boolean): skip string literals.
    • excludeGenerated (boolean): skip generated Dart parts (*.g.dart, *.freezed.dart, *.mocks.dart, *.gr.dart, *.i18n.dart).
    • outputFormat (string): text | json.

Read the full file on GitHub · 95 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. 1mo ago Changed · +5 lines · +116 tokens per session 5eca75843e4b
  2. 1mo ago Changed · -3 tokens per session 226aaabf34a9
  3. 1mo ago First seen · 90 lines · 1,038 tokens per session scan A 6f573aa88024

Subscribe to this mod's changes

mcp-explorer AGENTS.md is an instructions file published in the GitHub repository MausRundung/mcp-explorer (2 stars, last pushed 1mo ago), licensed MIT. It adds 1,151 tokens to every session, about $0.0046 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-09-05.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens