agentleFS
timohaatimohaa/scopewalker-mcp/AGENTS.md

scopewalker-mcp

AGENTS.md1 starsChanged 50 days agoMITView on GitHub

MCP server providing codebase analysis tools for AI assistants. It is a thin orchestration layer over external parsing, file discovery, and line counting via tokei. Use the project's own MCP tools to understand and validate code. For source/test changes, enforce docs/code-quality.md before completion or committing. Fix actionable findings in scope and rerun the detecting tools; unresolved findings or incomplete scans cannot pass. If LSP tools are available in your session, prefer them (workspaceSymbol, findReferences, goToDefinition, hover) over Grep/Read for code…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository9 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the project's own MCP tools to understand and validate code.

    line 16
  2. Very specific:

    If LSP tools are available in your session, prefer them (workspaceSymbol, findReferences, goToDefinition, hover) over Grep/Read for code …

    line 20
  3. Distinctive:

    Write the minimum code that solves the problem.

    line 25
  4. Very specific:

    Use $create-tool, $create-test <file-path>, $review-changes [full], or $polish [full].

    line 42
  5. Distinctive:

    If new entrypoints do not appear, restart Codex in this repository.

    line 44
  6. Very specific:

    Treat Claude frontmatter (model, tools, argument-hint, disable-model-invocation) as source metadata.

    line 48
  7. Very specific:

    Use available shell, file-editing, and search tools for Bash, Read, Write, Edit, Glob, and Grep.

    line 49
  8. Distinctive:

    Ask only for requirements missing from the task and repository context.

    line 54
  9. Very specific:

    When auditing instructions, distinguish Claude's @path imports from Codex's AGENTS.md discovery.

    line 56
  10. Distinctive:

    No antithesis filler ("it's not X, it's Y", "isn't just X, it's Y") — implies a distinction without stating one.

    line 64
  11. Distinctive:

    No preamble that announces insight instead of giving it ("here's the thing", "the real question is", "worth noting", "to be clear", "let me …

    line 65
  12. Distinctive:

    No closing aphorisms ("that's the whole game", "that's the tell").

    line 66
  13. Distinctive:

    No sentence fragments used for emphasis, no sentence that exists only for rhythm.

    line 67
  14. Distinctive:

    No vague jargon standing in for a plain claim ("load-bearing", "surface area", "first-class", "at scale", "does the heavy lifting").

    line 68
  15. Distinctive:

    Do not use "gate" or "gating" as generic verbs or metaphors.

    line 69
  16. Distinctive:

    No intensifiers propping up a claim that should stand on its own ("genuinely", "truly", "actually", "honestly").

    line 70
  17. Distinctive:

    No rule-of-three or "two things:" list where an item is filler.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

What

MCP server providing codebase analysis tools for AI assistants. It is a thin orchestration layer over external parsing, file discovery, and line counting via tokei.

How

npm run build          # Build
npm run check          # Version sync + lint + typecheck (run before committing)
npm run test           # Run tests
npm run test:coverage  # Tests with coverage

Use the project's own MCP tools to understand and validate code. For source/test changes, enforce docs/code-quality.md before completion or committing. Fix actionable findings in scope and rerun the detecting tools; unresolved findings or incomplete scans cannot pass.

If LSP tools are available in your session, prefer them (workspaceSymbol, findReferences, goToDefinition, hover) over Grep/Read for code navigation; otherwise use Grep for text/pattern searches.

Behavior

  • For ambiguous requests, sketch a short plan and state assumptions and tradeoffs before editing.
  • Write the minimum code that solves the problem. Avoid speculative abstractions, drive-by renames, and unrelated cleanup.
  • Define a success criterion before starting and loop until it passes. Verify tool output with the tool itself or its tests; npm run check alone is insufficient.
  • Pass every target file to one command (npx vitest run a.test.ts b.test.ts, npx markdownlint-cli f1 f2, or one grep -nE across all files).
  • Never create _enhanced, _v2, or _new duplicate file variants; edit the original file.

Reference Docs

  • TOOLS.md: tool reference
  • docs/: tool documentation and enforcement requirements; check docs/known-bugs.md before chasing unexpected output
  • .claude/skills/create-tool, .claude/skills/create-test: workflows and code examples for adding tools/tests
  • /polish, /review-changes: quality-pipeline slash commands (see .claude/skills/ for the rest)
  • .claude/agents/: specialized agents for standards, testing, docs, and code-quality enforcement (see directory for the full list)

Codex Workflows

Codex entrypoints live in .agents/skills/ and .codex/agents/. They load the shared workflows in .claude/; edit those sources to update behavior. Use $create-tool, $create-test <file-path>, $review-changes [full], or $polish [full]. Polish remains explicit-only. Ask for a specialized agent by its filename stem. If new entrypoints do not appear, restart Codex in this repository.

Apply these adapters when following a shared Claude workflow in Codex:

  • Treat Claude frontmatter (model, tools, argument-hint, disable-model-invocation) as source metadata. Codex entrypoints control invocation policy; agents inherit the session model and permissions.
  • Use available shell, file-editing, and search tools for Bash, Read, Write, Edit, Glob, and Grep. Map Scopewalker tools by operation name, regardless of MCP server prefix. Use available documentation or web tools when Context7 is unavailable.
  • Translate /skill invocations to $skill, preserving arguments such as full.
  • Translate Agent and subagent_type into the available Codex delegation API. Select the matching custom agent when supported. Otherwise, pass its .claude/agents/<name>.md path and these adapters to a general subagent.
  • Preserve pipeline order and waits. Run polish steps 4a/4b concurrently when supported. If delegation is unavailable, read each agent definition and run the steps sequentially; report that fallback.
  • Resolve workflow commands and paths from this repository root. Read applicable nested AGENTS.md instructions before editing subprojects.
  • Ask only for requirements missing from the task and repository context. Shared workflows do not override user instructions or authorize unrelated work.
  • Include .agents/skills/ and .codex/agents/ in documentation audits. Verify entrypoint references as well as shared sources.
  • When auditing instructions, distinguish Claude's @path imports from Codex's AGENTS.md discovery. Verify Codex behavior against official OpenAI documentation; preserve both clients' working entrypoints.

Discovery and configuration follow the official skills and subagents documentation.

Writing Style

Applies to chat responses, commit messages, PR descriptions, and docs. Ban the rhetorical move, not just the phrase — restating it in new words is still banned.

  • No antithesis filler ("it's not X, it's Y", "isn't just X, it's Y") — implies a distinction without stating one.
  • No preamble that announces insight instead of giving it ("here's the thing", "the real question is", "worth noting", "to be clear", "let me be direct").
  • No closing aphorisms ("that's the whole game", "that's the tell").
  • No sentence fragments used for emphasis, no sentence that exists only for rhythm.
  • No vague jargon standing in for a plain claim ("load-bearing", "surface area", "first-class", "at scale", "does the heavy lifting").
  • Do not use "gate" or "gating" as generic verbs or metaphors. Reserve them for actual gates, such as physical, noise, or logic gates.
  • No intensifiers propping up a claim that should stand on its own ("genuinely", "truly", "actually", "honestly").
  • No rule-of-three or "two things:" list where an item is filler.
  • Lead with the action, not the topic: "I'd skip the architecture doc," not "The architecture doc is the bit I'd skip."
  • One idea per sentence; prefer sentences under ~20 words.

Examples:

  • "Two honest caveats, because they are the actual insight." -> "Note that"
  • "Watch what dissolves. Each piece of the current machinery becomes a line of ordinary code." -> "The current machinery simplifies to"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.