Package Exports
- @akashkobal/contextmemory
- @akashkobal/contextmemory/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@akashkobal/contextmemory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ContextMemory 🧠
Persistent AI coding context memory for developers and teams.
Git tracks your code history. ContextMemory tracks your intent history.
Never re-explain your architecture, decisions, or progress to AI assistants again.
The Problem
When working with AI coding tools like:
- ChatGPT
- Cursor
- Claude
- Copilot
- Windsurf
Context is lost between sessions.
You repeatedly explain:
- Architecture
- Decisions
- Current progress
- What you already tried
This reduces productivity.
The Solution
ContextMemory is a CLI tool that:
- Saves your coding context
- Restores it instantly
- Works across sessions, machines, and teams
- Works with any programming language
Spring Boot, React, Node, Python — all supported.
Installation
Install globally:
npm install -g contextmemoryOr install from source:
git clone https://github.com/AkashKobal/contextmemory.git
cd contextmemory
npm install
npm run build
npm linkQuick Start
Initialize in your project:
contextmemory initSave your context:
contextmemory saveQuick save:
contextmemory save "Implemented multi-model execution"Resume context:
contextmemory resumeThis copies a formatted prompt to your clipboard.
Paste it into ChatGPT, Cursor, or Claude.
Example Workflow
Start work:
contextmemory resumeWork normally on your code.
End work:
contextmemory save "Added parallel execution using CompletableFuture"Next day:
contextmemory resumeContinue immediately.
Project Structure
ContextMemory creates:
.contextmemory/
├── context.json
├── history/
│ ├── entry-1.json
│ ├── entry-2.jsonStores:
- Task
- Goal
- Decisions
- Approaches
- Current state
- Next steps
Commands
Core Commands
Initialize:
contextmemory initSave context:
contextmemory saveQuick save:
contextmemory save "message"Resume context:
contextmemory resumeView history:
contextmemory logShow git diff summary:
contextmemory diffAutomation Commands
Auto-save on file changes:
contextmemory watchInstall git hook:
contextmemory hook installTeam handoff:
contextmemory handoff @usernameExample: Spring Boot Project
Initialize:
contextmemory initAfter implementing services:
contextmemory save "Implemented ModelRouterService and model integrations"Next day:
contextmemory resumeAI understands your architecture instantly.
MCP Integration (Optional)
Add to your MCP configuration:
{
"mcpServers": {
"contextmemory": {
"command": "npx",
"args": ["-y", "contextmemory", "mcp"]
}
}
}Exposes tools:
- contextmemory_save
- contextmemory_resume
- contextmemory_log
Supported Environments
Works with:
- Spring Boot
- React
- Node.js
- Python
- Microservices
- Monorepos
Works with AI tools:
- ChatGPT
- Cursor
- Claude
- Copilot
- Windsurf
License
MIT License
Author
Akash Kobal
GitHub:
https://github.com/AkashKobal/contextmemory
Contributing
Pull requests are welcome.
Roadmap
- Cloud sync
- Team dashboards
- VS Code extension
- Enterprise edition