agentleFS
hybridlabor-apihybridlabor-api/aos/skills/codebase-memory/SKILL.md

codebase-memory

Skill9 starsChanged 21 days agoApache-2.0View on GitHub

Code research over an indexed codebase with minimal context: graph queries, call chains, architecture overview, dead code. Context minimisation.

  • Pipes a download into a shell
  • Installs packages

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use caveman.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    caveman

    Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the server is absent, ask the user to install it per docs/codebase-memory.md.

    line 17
  2. Very specific:

    Prefer graph queries over file reads: when the question is structural: get_architecture (one call for the whole repo), trace_path (call …

    line 24

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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
SKILL.md

codebase-memory — indexed code knowledge graph over MCP

codebase_memory_mcp is the MCP server for the third-party codebase-memory-mcp binary: it indexes a repository into a persistent, local SQLite knowledge graph and answers structural queries in-process. Everything stays on the machine — no cloud calls, no API keys. Prerequisite: requires the codebase-memory-mcp binary on PATH. Install with: curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash (or npm install -g codebase-memory-mcp). If the server is absent, ask the user to install it per docs/codebase-memory.md; do not pretend to have graph access.

Core workflow

  1. Index once: say "index this project" or run codebase-memory-mcp cli index_repository '{"path": "."}' before deep dives.
  2. Prefer graph queries over file reads when the question is structural: get_architecture (one call for the whole repo), trace_path (call chains), search_graph (regex/label search), detect_changes (git-diff impact). Only open a file to confirm the findings you already have.
  3. Context minimisation: one graph query replaces dozens of grep/read cycles (~99% fewer tokens). Never paste file contents to "explore"; query the graph and read only the cited file, then cite it in your answer.

Synergy with the AOS local stack

  • memB: the graph holds structure, memB (memb-mcp) holds project memory and conversation semantics — query memB for "what we decided", the graph for "how the code is wired".
  • Synapse: Synapse visualises the codebase spatially (synapse map <repo>); use the graph for precise symbol-level questions and Synapse for spatial orientation, then the source files for verbatim confirmation.

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.