Automatically manages branch-specific CLAUDE.md files so Claude always has the right context for your current work. Switch branches without losing your development context, notes, or current progress.
git clone https://github.com/Davidcreador/claude-code-branch-memory-manager.gitClaude Code Branch Memory Manager solves the problem of losing development context when switching git branches. It stores and loads branch-specific CLAUDE.md files automatically, keeping separate memories for each branch in a .claude/memories/ directory. Works as a Claude Code plugin that intercepts git checkout and git switch commands, or as a standalone CLI tool. Install via npm and memories switch automatically—no manual intervention required. Ideal for developers juggling multiple feature branches who need Claude to remember the right context for each task.
Install via npm: npm install --save-dev claude-code-branch-memory-manager. Load as a plugin with claude --plugin-dir ./node_modules/claude-code-branch-memory-manager. Once installed, memories switch automatically when you run git checkout or git switch inside Claude Code. Alternatively, use the CLI with commands like branch-memory save, branch-memory switch, and branch-memory list to manage memories manually.
Switch between feature branches without losing Claude Code context and notes
Maintain separate development notes and progress tracking per branch
Automatically backup and restore branch-specific memories when checking out
Share branch context across team members by committing memories to git
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/Davidcreador/claude-code-branch-memory-managerCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a CLAUDE.md file for my current branch in the [REPOSITORY] repository. Include these key details: [KEY DETAILS]. Also, add these specific notes: [NOTES]. Make sure to reference the branch name [BRANCH NAME] in the file.
# CLAUDE.md for branch: feature/user-authentication ## Key Details - Repository: user-management-system - Branch: feature/user-authentication - Current Sprint: Sprint 42 - Assigned Developer: Jane Doe ## Context - Implementing OAuth 2.0 authentication flow - Integrating with Auth0 service - Updating user profile management ## Notes - **API Endpoints**: - POST /auth/login - GET /auth/user-profile - **Dependencies**: - auth0.js v9.12.1 - axios v0.21.1 - **Open Issues**: - Need to handle token refresh logic - UI team waiting on API endpoint confirmation ## Progress - Authentication flow implemented (80% complete) - Profile management updates in progress (30% complete) - Testing phase pending ## Next Steps 1. Complete token refresh implementation 2. Finalize profile management updates 3. Coordinate with UI team on endpoint confirmation 4. Begin testing phase
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan