| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Your CLAUDE.md, always in sync. Minimal tokens. Zero config. Just works.
A Claude Code plugin that watches what Claude Code edits, deletes, and moves - then quietly updates your project memory in the background. No manual maintenance needed.
CLAUDE.md files become stale as codebases evolve:
Manual maintenance is tedious and often forgotten.
claude-code-auto-memory automatically updates CLAUDE.md when Claude Code makes changes. Processing happens in an isolated agent, so it doesn't consume your main conversation's context window.
Claude Code edits code -> Plugin tracks changes -> Isolated agent updates memory -> Context stays fresh
claude plugin marketplace add severity1/severity1-marketplace
claude plugin install auto-memory@severity1-marketplace# Add local marketplace
claude plugin marketplace add /path/to/claude-code-auto-memory/.dev-marketplace/.claude-plugin/marketplace.json
# Install from local
claude plugin install auto-memory@local-devInitialize CLAUDE.md structure for your project with an interactive wizard.
/auto-memory:init
The wizard will:
Force a full recalibration of all CLAUDE.md files.
/auto-memory:calibrate
Sync CLAUDE.md with manual file changes detected by git. Use this when you've edited files outside Claude Code (in your IDE, terminal, etc.) and want to update memory without a full recalibration.
/auto-memory:sync
Detects:
Show current sync status and pending changes.
/auto-memory:status
sequenceDiagram
participant User
participant Claude as Claude Code
participant PostHook as PostToolUse Hook
participant DirtyFiles as dirty-files
participant StopHook as Stop Hook
participant Agent as memory-updater Agent
participant Skill as memory-processor Skill
User->>Claude: Edit files
Claude->>PostHook: Edit/Write/Bash operation
PostHook->>DirtyFiles: Append file path (zero tokens)
Note over PostHook: No output - pure tracking
User->>Claude: Continue working...
Claude->>PostHook: More edits
PostHook->>DirtyFiles: Append paths
Note over Claude: Turn ends
Claude->>StopHook: End of turn
StopHook->>DirtyFiles: Check for dirty files
alt Dirty files exist
StopHook->>Agent: Spawn isolated agent
Agent->>Skill: Invoke memory-processor
Skill->>Skill: Analyze changes
Skill->>Skill: Update CLAUDE.md sections
Agent-->>StopHook: Complete
StopHook->>DirtyFiles: Clear processed files
else No dirty files
Note over StopHook: No action needed
end
PostToolUse Hook (Edit|Write|Bash)
|
v (append file paths)
.claude/auto-memory/dirty-files
|
v (end of turn)
Stop Hook
|
v (spawn agent)
memory-updater Agent (isolated context)
|
v (invoke skill)
memory-processor Skill
|
v
CLAUDE.md updated
Auto-managed sections use HTML comment markers:
<!-- AUTO-MANAGED: section-name -->
Content automatically updated by plugin
<!-- END AUTO-MANAGED -->
<!-- MANUAL -->
Content never touched by plugin
<!-- END MANUAL -->Optional configuration is stored in .claude/auto-memory/config.json.
Control when auto-memory triggers CLAUDE.md updates:
{
"triggerMode": "default"
}| Mode | Behavior |
|---|---|
| default | Track file edits in real-time (Edit/Write/Bash operations). Best for most workflows. |
| gitmode | Only trigger on git commit. Best for developers who commit frequently. |
Note: If no config file exists, default mode is used.
When a git commit is detected (in both modes), auto-memory captures the commit context:
This helps CLAUDE.md updates reflect the intent behind changes, not just which files changed.
| File | Location | Purpose |
|---|---|---|
| dirty-files | .claude/auto-memory/ | List of files pending CLAUDE.md update |
| config.json | .claude/auto-memory/ | Trigger mode configuration |
# Install dev dependencies
uv sync --extra dev
# Run tests
uv run pytest
# Format code
uv run ruff format .
# Lint
uv run ruff check .
# Type check
uv run mypy .claude-code-auto-memory/ ├── .claude-plugin/ │ └── plugin.json # Plugin metadata ├── hooks/ │ └── hooks.json # Hook registration ├── scripts/ │ ├── post-tool-use.py # Track file changes │ └── stop.py # End-of-turn trigger ├── agents/ │ └── memory-updater.md # Orchestrator agent ├── skills/ │ ├── memory-processor/ # Update processing │ └── codebase-analyzer/ # Init wizard ├── commands/ │ ├── init.md # /auto-memory:init │ ├── calibrate.md # /auto-memory:calibrate │ ├── sync.md # /auto-memory:sync │ └── status.md # /auto-memory:status └── tests/
| Feature | claude-code-auto-memory | Other Solutions |
|---|---|---|
| Token overhead | Minimal (isolated agent) | Hook output adds tokens |
| External deps | None | SQLite, Vector DBs, Workers |
| Processing | Isolated agent | Inline or external service |
| Updates | Marker-based | Full file regeneration |
| Monorepo | Subtree CLAUDE.md | Root only |
| Config required | Optional (zero-config default) | Config files needed |
See also: memory-store-plugin, claude-mem, claude-code-branch-memory-manager
MIT
Keywords: Claude Code plugin, CLAUDE.md, automatic memory, memory management, context persistence, token-efficient, zero-config, monorepo, AI coding assistant
| Back | FazBrowse Home | New Git URL |