agentleFS
rongarederongarede/claude-skills-orchestration/skills/agent-memory/CLAUDE.md

claude-skills-orchestration / agent-memory

CLAUDE.md1 starsChanged 8 months agoMITView on GitHub

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    TDD: Write tests FIRST, then implement

    line 14
  2. Distinctive:

    All tests must pass: before marking a step complete

    line 15
  3. Distinctive:

    Update plan.md: Check off completed steps

    line 17

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

Agent Memory Project

Overview

Associative memory system for Claude Code subagents. Fuses A-MEM (Zettelkasten) + Generative Agents (3D scoring) + BM25.

Architecture

  • scripts/memory_store.py — Memory dataclass + JSONL store
  • scripts/retriever.py — BM25 + recency/importance/relevance scoring + spreading activation
  • scripts/associator.py — Bidirectional link management
  • scripts/extractor.py — Claude API memory extraction (K/G/X/importance)
  • tests/ — Unit tests (run with python3 tests/test_retriever.py)

Development Rules

  • TDD: Write tests FIRST, then implement
  • All tests must pass before marking a step complete
  • Gate checks: Each phase has verification gates — don't skip them
  • Update plan.md: Check off completed steps
  • Update project log: Append progress to Obsidian project homepage

Key APIs

from scripts.memory_store import Memory, MemoryStore
from scripts.retriever import retrieve, format_for_prompt
from scripts.associator import link_memory

store = MemoryStore("path/to/memories.jsonl")
results = retrieve("query", store, top_k=3, spread=True)
prompt_text = format_for_prompt(results)

Testing

cd ~/.claude/skills/agent-memory
python3 tests/test_retriever.py
python3 tests/test_extractor.py  # after Phase 2

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.