agentleFS
juancruzmunozalbelojuancruzmunozalbelo/swarmclaw/CLAUDE.md

swarmclaw

CLAUDE.md1 starsChanged 9 months agoMITView on GitHub

Personal Claude assistant. See README.md for philosophy and setup. See docs/REQUIREMENTS.md for architecture decisions. Single Node.js process that connects to WhatsApp, routes messages to Claude Agent SDK running in Apple Container (Linux VMs). Each group has isolated filesystem and memory. Run commands directly—don't tell the user to run them. Service management: Apple Container's buildkit caches the build context aggressively. --no-cache alone does NOT invalidate COPY steps — the builder's volume retains stale files. To force a truly clean rebuild: Always…

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Run commands directly—don't tell the user to run them.

    line 34
  2. Very specific:

    Always verify after rebuild: container run -i --rm --entrypoint wc nanoclaw-agent:latest -l /app/src/index.ts

    line 57

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

NanoClaw

Personal Claude assistant. See README.md for philosophy and setup. See docs/REQUIREMENTS.md for architecture decisions.

Quick Context

Single Node.js process that connects to WhatsApp, routes messages to Claude Agent SDK running in Apple Container (Linux VMs). Each group has isolated filesystem and memory.

Key Files

FilePurpose
src/index.tsOrchestrator: state, message loop, agent invocation
src/channels/whatsapp.tsWhatsApp connection, auth, send/receive
src/ipc.tsIPC watcher and task processing
src/router.tsMessage formatting and outbound routing
src/config.tsTrigger pattern, paths, intervals
src/container-runner.tsSpawns agent containers with mounts
src/task-scheduler.tsRuns scheduled tasks
src/db.tsSQLite operations
groups/{name}/CLAUDE.mdPer-group memory (isolated)
container/skills/agent-browser.mdBrowser automation tool (available to all agents via Bash)

Skills

SkillWhen to Use
/setupFirst-time installation, authentication, service configuration
/customizeAdding channels, integrations, changing behavior
/debugContainer issues, logs, troubleshooting

Development

Run commands directly—don't tell the user to run them.

npm run dev          # Run with hot reload
npm run build        # Compile TypeScript
./container/build.sh # Rebuild agent container

Service management:

launchctl load ~/Library/LaunchAgents/com.nanoclaw.plist
launchctl unload ~/Library/LaunchAgents/com.nanoclaw.plist

Container Build Cache

Apple Container's buildkit caches the build context aggressively. --no-cache alone does NOT invalidate COPY steps — the builder's volume retains stale files. To force a truly clean rebuild:

container builder stop && container builder rm && container builder start
./container/build.sh

Always verify after rebuild: container run -i --rm --entrypoint wc nanoclaw-agent:latest -l /app/src/index.ts

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.