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.
- CLAUDE.mdCLAUDE.md
- create-testSkill
- create-toolSkill
- polishSkill
- review-changesSkill
- create-testSkill
- create-toolSkill
- polishSkill
- review-changesSkill
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
- Distinctive: line 16
Use the project's own MCP tools to understand and validate code.
- Very specific: line 20
If LSP tools are available in your session, prefer them (workspaceSymbol, findReferences, goToDefinition, hover) over Grep/Read for code …
- Distinctive: line 25
Write the minimum code that solves the problem.
- Very specific: line 42
Use $create-tool, $create-test <file-path>, $review-changes [full], or $polish [full].
- Distinctive: line 44
If new entrypoints do not appear, restart Codex in this repository.
- Very specific: line 48
Treat Claude frontmatter (model, tools, argument-hint, disable-model-invocation) as source metadata.
- Very specific: line 49
Use available shell, file-editing, and search tools for Bash, Read, Write, Edit, Glob, and Grep.
- Distinctive: line 54
Ask only for requirements missing from the task and repository context.
- Very specific: line 56
When auditing instructions, distinguish Claude's @path imports from Codex's AGENTS.md discovery.
- Distinctive: line 64
No antithesis filler ("it's not X, it's Y", "isn't just X, it's Y") — implies a distinction without stating one.
- Distinctive: line 65
No preamble that announces insight instead of giving it ("here's the thing", "the real question is", "worth noting", "to be clear", "let me …
- Distinctive: line 66
No closing aphorisms ("that's the whole game", "that's the tell").
- Distinctive: line 67
No sentence fragments used for emphasis, no sentence that exists only for rhythm.
- Distinctive: line 68
No vague jargon standing in for a plain claim ("load-bearing", "surface area", "first-class", "at scale", "does the heavy lifting").
- Distinctive: line 69
Do not use "gate" or "gating" as generic verbs or metaphors.
- Distinctive: line 70
No intensifiers propping up a claim that should stand on its own ("genuinely", "truly", "actually", "honestly").
- Distinctive: line 71
No rule-of-three or "two things:" list where an item is filler.
≈ “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.
Files
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 coverageUse 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 checkalone is insufficient. - Pass every target file to one command (
npx vitest run a.test.ts b.test.ts,npx markdownlint-cli f1 f2, or onegrep -nEacross all files). - Never create
_enhanced,_v2, or_newduplicate 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, andGrep. Map Scopewalker tools by operation name, regardless of MCP server prefix. Use available documentation or web tools when Context7 is unavailable. - Translate
/skillinvocations to$skill, preserving arguments such asfull. - Translate
Agentandsubagent_typeinto the available Codex delegation API. Select the matching custom agent when supported. Otherwise, pass its.claude/agents/<name>.mdpath 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.mdinstructions 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
@pathimports from Codex'sAGENTS.mddiscovery. 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"
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
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.

