agentleFS
funky-eyesfunky-eyes/best-copilot/.claude/CLAUDE.md

best-copilot

CLAUDE.md12 starsChanged 6 months agoApache-2.0View on GitHub

This project supports structural code intelligence through whichever MCP tools are actually exposed in the current Claude Code session. A locally installed binary is not enough: prefer codebase-memory-mcp only when its mcp__codebase-memory-mcp__* tools are visible; otherwise fall back in order. Priority: mcp__codebase-memory-mcp__* → mcp__gitnexus__* → mcp__codegraph__* → built-in Read/Grep/Glob + shell rg Use code intelligence for structural questions — what calls what, what would break, where is X defined, what is X's signature. Use native grep/read only for literal text…

The file

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

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use code intelligence for structural questions — what calls what, what would break, where is X defined, what is X's signature.

    line 17
  2. Distinctive:

    Answer directly — don't delegate exploration: Use 2-3 code intelligence calls max.

    line 32
  3. Very specific:

    Don't grep first: when looking up a symbol by name.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md
<!-- CODEGRAPH_GITNEXUS_START -->

Code Intelligence (codebase-memory-mcp / GitNexus / CodeGraph)

This project supports structural code intelligence through whichever MCP tools are actually exposed in the current Claude Code session. A locally installed binary is not enough: prefer codebase-memory-mcp only when its mcp__codebase-memory-mcp__* tools are visible; otherwise fall back in order.

Priority: mcp__codebase-memory-mcp__* → mcp__gitnexus__* → mcp__codegraph__* → built-in Read/Grep/Glob + shell rg

Availability check

  • codebase-memory-mcp: mcp__codebase-memory-mcp__* tools present → use get_graph_schema, search_graph, trace_path, detect_changes, get_code_snippet, get_architecture, etc.
  • GitNexus: mcp__gitnexus__* tools present → use gitnexus_query, gitnexus_context, gitnexus_impact, etc.
  • CodeGraph: mcp__codegraph__* tools present → use codegraph_search, codegraph_context, codegraph_impact, etc.
  • None: fall back to built-in Read/Grep/Glob plus shell rg. Do not block.

When to prefer code intelligence over native search

Use code intelligence for structural questions — what calls what, what would break, where is X defined, what is X's signature. Use native grep/read only for literal text queries (string contents, comments, log messages) or after you already have a specific file open.

Questioncodebase-memory-mcp ToolGitNexus ToolCodeGraph Tool
"Where is X defined?"search_graphgitnexus_querycodegraph_search
"What calls/does Y call?"trace_pathgitnexus_contextcodegraph_callers / codegraph_callees
"How does X reach Y?"trace_path / query_graphgitnexus_context / graph trace when exposedcodegraph_trace
"What would break if I changed Z?"detect_changes / trace_pathgitnexus_impactcodegraph_impact
"Focused context for area"get_architecture / search_graphgitnexus_contextcodegraph_context
"See several symbols' source"get_code_snippetgitnexus_query + gitnexus_contextcodegraph_explore
"Check what changed"detect_changesgitnexus_detect_changes—
"Is the index healthy?"index_status / get_graph_schemanpx gitnexus statuscodegraph_status

Rules of thumb

  • Answer directly — don't delegate exploration. Use 2-3 code intelligence calls max. The index IS the pre-built search layer — spawning a file-reading sub-agent repeats work it already did.
  • Trust structural results. They come from AST + graph analysis. Do NOT re-verify with grep.
  • Don't grep first when looking up a symbol by name. search_graph, gitnexus_query, or codegraph_search is faster.
  • Index lag: file watchers may debounce behind writes; don't re-query immediately after editing a file in the same turn.

If index doesn't exist

  • codebase-memory-mcp: run codebase-memory-mcp config set auto_index true once, or ask the exposed MCP tools to index the current project when available.
  • GitNexus: run npx gitnexus analyze to build the index.
  • CodeGraph: run codegraph init -i to build the index.
<!-- CODEGRAPH_GITNEXUS_END -->

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.