Skip to content

Latest commit

ย 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Memorizable

AI-assisted feature memory system for development projects

Captures and summarizes Claude Code interactions to track project features, key points, and rules.

npm version License: MIT Node.js Version

โœจ Features

  • ๐Ÿค– Automatic Claude Code Integration - Seamlessly captures AI conversations
  • ๐Ÿ“ Smart Summarization - Uses OpenAI to extract features and key insights
  • ๐ŸŽฏ Project Memory - Maintains up-to-date MEMORY.md with project state
  • โšก Real-time Processing - Processes messages as you work
  • ๐Ÿ”ง Configurable - Customizable message thresholds and file paths
  • ๐Ÿš€ Zero Friction - Set up once, works automatically

๐Ÿš€ Quick Start

1. Install globally

npm install -g memorizable

2. Start the server

memorizable server
# ๐ŸŒ Server running on http://localhost:3001

3. Set up your project

cd your-awesome-project
memorizable setup --project-name "my-app" --openai-key "sk-your-key-here"
# โœ… Hooks configured! Start using Claude Code.

4. Start coding with Claude!

Your conversations are now automatically captured and summarized! ๐ŸŽ‰

๐Ÿ“‹ Commands

๐Ÿ–ฅ๏ธ memorizable server

Start the Memorizable server (required for message capture)

memorizable server
# Options:
#   --port        Server port (default: 3001)
#   --data-dir    Data directory path

โš™๏ธ memorizable setup

Configure hooks for your project

memorizable setup --project-name "my-project" --openai-key "sk-..."

# ๐Ÿ“ Options:
#   --project-name    Unique name for your project (required)
#   --openai-key      OpenAI API key for summarization (required)  
#   --memory-path     Path to memory file (default: ./MEMORY.md)
#   --max-messages    Messages before summarization (default: 10)

๐Ÿ“Š memorizable status

Check current configuration and message count

memorizable status
# Shows:
# โœ… Project: my-awesome-app
# ๐Ÿ“ Messages: 7/10 (3 until next summary)
# ๐Ÿ“„ Memory file: ./MEMORY.md  
# ๐Ÿ”ง Config: .memorizable/config.json

๐Ÿ”„ memorizable summarize

Manually trigger summarization

memorizable summarize
# ๐Ÿค– Analyzing 8 messages...
# โœ… Memory updated: ./MEMORY.md

๐Ÿ—‘๏ธ memorizable remove

Remove hooks from your project

memorizable remove
# ๐Ÿงน Hooks removed from Claude Code configuration

๐Ÿงฉ How It Works

graph TD
    A[๐Ÿ‘จโ€๐Ÿ’ป You chat with Claude Code] --> B[๐ŸŽฃ Hooks capture messages]
    B --> C[๐Ÿ“จ Send to Memorizable server]
    C --> D{๐Ÿ“Š Reached message limit?}
    D -->|No| E[๐Ÿ’พ Store message]
    D -->|Yes| F[๐Ÿค– AI Summarization]
    F --> G[๐Ÿ“ Update MEMORY.md]
    G --> H[๐Ÿ—‘๏ธ Clear message buffer]
Loading
  1. ๐ŸŽฃ Message Capture: Claude Code hooks automatically capture all conversations
  2. ๐Ÿงฎ Smart Counting: Only counts user messages (excludes tool calls) for clean summaries
  3. ๐Ÿค– AI Summarization: After N messages, OpenAI analyzes and extracts:
    • ๐ŸŽฏ Project overview
    • ๐Ÿ—๏ธ Technical architecture
    • ๐Ÿ’ก Key insights
    • โœจ Feature requirements
  4. ๐Ÿ“„ Memory Update: Intelligently updates your MEMORY.md file

๐Ÿ“„ Memory File Structure

Your MEMORY.md maintains project knowledge in a clean format:

# ๐ŸŽฏ Project Overview
Brief description of your project and its goals

# ๐Ÿ—๏ธ Technical Architecture/Framework  
Technical stack, architecture decisions, and implementation details

# ๐Ÿ’ก Key Items
- Important decisions and patterns
- Technical insights and learnings
- Development guidelines

# โœจ Features (Product Requirements)
- ๐Ÿ” User Authentication: Secure login system with JWT
- ๐Ÿ“Š Dashboard: Real-time analytics and reporting
- ๐Ÿ”„ Data Sync: Background synchronization with external APIs

โš™๏ธ Configuration

Configuration lives in .memorizable/config.json:

{
  "projectName": "my-awesome-app",
  "openaiApiKey": "sk-...", 
  "userMemoryPath": "./MEMORY.md",
  "maxMessagesBeforeSummary": 10
}

๐Ÿ› ๏ธ Development

# Clone the repository
git clone https://github.com/AlexKlim/memorizable.git
cd memorizable

# Install dependencies
npm install

# Build TypeScript
npm run build

# Run in development mode
npm run dev

# Link for local testing
npm link

๐Ÿ› Troubleshooting

๐Ÿšซ Server not starting
  • Check if port 3001 is available: lsof -i :3001
  • Ensure Node.js 16+ is installed: node --version
  • Try a different port: memorizable server --port 3002
๐Ÿ“ต Messages not being captured
  • Verify server is running: memorizable server
  • Check hooks installation: memorizable status
  • Look at debug logs: /tmp/memorizable-debug.log
  • Restart Claude Code after setup
๐Ÿ”„ Summarization not triggering
  • Only user messages count (tool calls are excluded)
  • Check message count: memorizable status
  • Verify OpenAI API key: memorizable status
  • Manually trigger: memorizable summarize
๐Ÿ“ Memory file not updating
  • Verify file path in config: memorizable status
  • Check write permissions on memory file
  • Look for server errors in logs

๐Ÿ—๏ธ Architecture

  • ๐Ÿ–ฅ๏ธ Server: Express.js server handling message storage and processing
  • ๐ŸŽฃ Hooks: Claude Code integration for conversation capture
  • ๐Ÿ’พ Storage: JSON-based message storage in memorizable-data/
  • ๐Ÿค– AI Engine: OpenAI GPT-4 for intelligent conversation analysis
  • ๐Ÿ“ Memory Management: Smart Markdown file updates with conflict resolution

๐Ÿ“‹ Requirements

  • Node.js 16 or higher
  • npm or yarn package manager
  • OpenAI API key for summarization features
  • Claude Code for AI-assisted development

๐Ÿ“„ License

MIT ยฉ Alex Klim

๐Ÿค Contributing

Contributions welcome! Please read our contributing guidelines first.


Made with โค๏ธ for better AI-assisted development

Report Bug โ€ข Request Feature โ€ข Documentation

About

Captures AI-assisted coding sessions and keeps a running summary of what was decided and why. Published on npm.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages