claude-agent-sdk-go
An unofficial Go SDK for integrating with the Claude Code CLI. It offers an idiomatic Go API for code understanding, secure file operations and external tool integration.
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 Code
$ npx -y skills add severity1/claude-code-auto-memory --agent claude-code
Codex
$ npx skills add severity1/claude-code-auto-memory -a codex
Cursor
$ npx skills add severity1/claude-code-auto-memory -a cursor
Gemini CLI
$ npx skills add severity1/claude-code-auto-memory -a gemini-cli
GitHub Copilot
$ npx skills add severity1/claude-code-auto-memory -a github-copilot
OpenCode
$ npx skills add severity1/claude-code-auto-memory -a opencode
Windsurf
$ npx skills add severity1/claude-code-auto-memory -a windsurf
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-dev
/auto-memory:initInitialize CLAUDE.md structure for your project with an interactive wizard.
/auto-memory:init
The wizard will:
/auto-memory:calibrateForce a full recalibration of all CLAUDE.md files.
/auto-memory:calibrate
/auto-memory:syncSync 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:
git diff)git diff --cached)git ls-files --others)/auto-memory:statusShow 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 -->
project-description - Project overviewbuild-commands - Build, test, lint commandsarchitecture - Directory structure, componentsconventions - Code standards, naming patternspatterns - AI-detected coding patternsgit-insights - Decisions from commit historybest-practices - From official Claude Code docsOptional 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:
/path/to/file [hash: message]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
An unofficial Go SDK for integrating with the Claude Code CLI. It offers an idiomatic Go API for code understanding, secure file operations and external tool integration.
Enriches vague prompts for Claude Code with targeted research and clarifying questions before execution. It injects relevant context at prompt submit, tool use, and subagent start so Claude has what it needs before acting.
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
Gives Claude Code long-term memory through Hindsight. It recalls relevant past context before answering, retains durable facts as the agent learns them, and reflects over stored memory.
Local-first memory for Claude Code. It stores conversations verbatim in a private palace you can search before answering about past work, people, projects, or decisions, with optional shared-brain hub setup.
Gives Claude Code a private memory that stays on your machine. It stores past conversations word for word, so you can ask what was decided, what happened before, or who was involved and get the original context back. It can also hand tasks to other agents.
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. Install it with the command on its page. It includes codebase-analyzer, memory-processor. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it