agentleFS
Peter-MoriartyPeter-Moriarty/claude-code-multi-machine-setup/claude.md

claude-code-multi-machine-setup

CLAUDE.md1 starsChanged 9 months agoMITView on GitHub

All auto-memory files MUST be symlinks to git-tracked files. Never create plain files in the auto-memory directory (~/.claude/projects/{key}/memory/). When creating a new topic file: 1. Create it in the repo: memory/new-topic.md 2. Symlink it: ln -s $(pwd)/memory/new-topic.md ~/.claude/projects/{key}/memory/new-topic.md 3. Git add: git add memory/new-topic.md 4. Add the filename to the TOPIC_FILES array in scripts/setup-memory.sh When updating MEMORY.md: - Keep it under 80 lines (it loads into every conversation and consumes context) - Use one-line pointers to topic files for detailed…

The file

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

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    All auto-memory files MUST be symlinks to git-tracked files.

    line 3
  2. Distinctive:

    When creating a new topic file:

    line 6
  3. Very specific:

    Create it in the repo: memory/new-topic.md

    line 7
  4. Very specific:

    Add the filename to the TOPIC_FILES array in scripts/setup-memory.sh

    line 10
  5. Distinctive:

    Keep it under 80 lines (it loads into every conversation and consumes context)

    line 13
  6. Distinctive:

    Use one-line pointers to topic files for detailed reference data

    line 14
  7. Distinctive:

    Never duplicate content that already exists in a topic file or child project memory

    line 15
  8. Distinctive:

    Before moving to a new machine:

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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

Memory Portability

All auto-memory files MUST be symlinks to git-tracked files. Never create plain files in the auto-memory directory (~/.claude/projects/{key}/memory/).

When creating a new topic file:

  1. Create it in the repo: memory/new-topic.md
  2. Symlink it: ln -s $(pwd)/memory/new-topic.md ~/.claude/projects/{key}/memory/new-topic.md
  3. Git add: git add memory/new-topic.md
  4. Add the filename to the TOPIC_FILES array in scripts/setup-memory.sh

When updating MEMORY.md:

  • Keep it under 80 lines (it loads into every conversation and consumes context)
  • Use one-line pointers to topic files for detailed reference data
  • Never duplicate content that already exists in a topic file or child project memory

Memory hierarchy:

  • MEMORY.md = guardrails + pointers (loaded every conversation)
  • Topic files in memory/ = reference data (read on-demand when relevant)
  • Child project memory/ = project-specific knowledge (loaded in child directory only)

Setup scripts for new machines:

  • ./scripts/setup-memory.sh - Create all MEMORY.md symlinks
  • ./scripts/setup-mcp.sh - Install and register all MCP servers
  • ./scripts/setup-subprojects.sh - Clone all child repos (multi-project setups)

Before moving to a new machine:

  • ./scripts/pre-flight.sh - Check for uncommitted/unpushed work and loose files

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.