memctx
Health Uyari
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Uyari
- process.env — Environment variable access in artifacts/api-server/src/index.ts
- process.env — Environment variable access in artifacts/api-server/src/lib/logger.ts
Permissions Gecti
- Permissions — No dangerous permissions requested
This tool provides autonomous session memory for Claude Code, automatically capturing your development sessions and generating AI-powered summaries. It features a local dashboard for searching and browsing your conversation history.
Security Assessment
The overall risk is Low. The tool accesses environment variables (`process.env`), which is standard practice for configuring ports, logging levels, or local API keys. However, the automated scanner flagged a missing license file in the repository, even though the README claims it is MIT-licensed—a common discrepancy often caused by an accidentally omitted or misnamed `LICENSE` file. There are no dangerous permissions requested, no evidence of hardcoded secrets, and no signs of executing unauthorized shell commands.
Quality Assessment
The project is very new and currently has low visibility with only 6 GitHub stars, meaning it has not yet undergone significant community review or testing. However, it is actively maintained, with the most recent code push happening today. While the lack of an explicit license file in the repository is a moderate concern for open-source compliance, the active maintenance and lack of dangerous code indicate a functional, early-stage project.
Verdict
Use with caution due to low community adoption and a missing repository license file, but the underlying code appears safe and standard.
Autonomous session memory for Claude Code. Never lose context, never repeat yourself. AI-powered summaries, searchable history, and automatic context injection.
🧠 MemCTX
Autonomous Session Memory for Claude Code
Never lose context. Never repeat yourself. Your AI pair programmer, now with perfect memory.
🚀 Quick Start • 📖 Documentation • ✨ Features • 🎯 Demo • 💬 Community
🎯 What is MemCTX?
MemCTX transforms Claude Code into a context-aware development companion by automatically capturing, analyzing, and intelligently injecting your development history. Think of it as giving Claude a photographic memory of your entire project journey.
😫 Before MemCTX
|
✨ With MemCTX
|
✨ Features
🧠 Smart MemoryAutomatically captures every Claude Code session with full context preservation |
🤖 AI SummariesClaude analyzes each session and generates structured summaries with key insights |
📊 Beautiful DashboardModern, responsive UI to browse, search, and analyze your development history |
🔍 Full-Text SearchLightning-fast search across all sessions, conversations, and code snippets |
📈 Live MonitoringReal-time view of active sessions with WebSocket updates |
🎯 Context InjectionAutomatically injects relevant history into new sessions for perfect continuity |
🏷️ Tags & BookmarksOrganize sessions with custom tags and bookmark important moments |
📝 Session NotesAdd custom notes and annotations to any session |
🌓 Dark/Light ThemeBeautiful themes that adapt to your preference |
🚀 Quick Start
📦 Installation
# Install globally with npm
npm install -g memctx
# Or with pnpm (recommended)
pnpm add -g memctx
# Or with yarn
yarn global add memctx
Current Version: 1.0.4 | Node Required: >=18.0.0
⚡ Setup (30 seconds)
# 1. Install and configure hooks
memctx install
# 2. Start the service
memctx start
# 3. Open the dashboard
memctx open
That's it! 🎉 MemCTX is now capturing your Claude Code sessions automatically.
🔧 Configuration
Settings Dashboard (Recommended)
Open http://localhost:9999/settings and configure:
- API Provider: Direct (Anthropic) or Proxy (9router, etc.)
- API Key: Your Anthropic or proxy API key
- Model: Choose Claude Opus, Sonnet, Haiku, or AWS default
- Disable Summaries: Toggle to save API costs
Environment Variables (Alternative)
# Required for AI summaries
export ANTHROPIC_API_KEY="sk-ant-..."
# Optional: Use proxy
export ANTHROPIC_BASE_URL="https://your-proxy.com/v1"
# Optional: Custom port (default: 9999)
export MEMCTX_PORT=8080
# Optional: Custom database location
export MEMCTX_DB_PATH="/path/to/db.sqlite"
💻 CLI Commands
| Command | Description |
|---|---|
memctx install |
Install hooks and start daemon |
memctx start |
Start the worker daemon |
memctx stop |
Stop the worker daemon |
memctx restart |
Restart the worker daemon |
memctx status |
Show daemon status and health check |
memctx open |
Open dashboard in browser |
memctx search <query> |
Search sessions from terminal |
memctx export |
Export all sessions as markdown |
memctx config |
Show configuration |
memctx uninstall |
Remove hooks and stop daemon |
🎯 Demo
Dashboard Overview
Session Details
Search & Filter
🏗️ How It Works
graph LR
A[Claude Code CLI] -->|Hooks| B[MemCTX Worker]
B -->|Store| C[SQLite Database]
B -->|Summarize| D[Anthropic API]
D -->|AI Summary| C
C -->|Serve| E[React Dashboard]
B -->|Inject Context| F[CLAUDE.md]
F -->|Auto-load| A
style A fill:#4A90E2
style B fill:#50C878
style C fill:#FFB347
style D fill:#9B59B6
style E fill:#E74C3C
style F fill:#3498DB
📋 Detailed Flow
- Session Start: Claude Code session begins →
session-starthook fires - Capture: MemCTX worker creates session record in SQLite
- Observe: Every tool use is captured via
post-tool-usehook - End: Session ends →
stophook fires - Summarize: Worker sends transcript to Claude for AI analysis
- Store: Summary stored in database
- Inject: Next session auto-loads relevant context from
CLAUDE.md - Browse: View everything in the beautiful dashboard
📖 Documentation
📚 For Users |
🛠️ For Developers |
🔧 Requirements
System Requirements
|
Build Tools (for installation)
|
🔨 Installing Build Tools
Linux (Ubuntu/Debian):
sudo apt install build-essential python3
macOS:
xcode-select --install
Windows:
Install Visual Studio Build Tools
🎨 Dashboard Features
📊 Projects ViewBrowse all projects and their sessions organized by directory |
🔍 SearchFull-text search with filters, tags, and date ranges |
📈 Live MonitorReal-time view of active sessions with WebSocket updates |
📝 Session DetailsView full conversation history, summaries, and observations |
🏷️ Tags & NotesOrganize with custom tags and add notes to sessions |
📊 MetricsSystem performance, API usage, and statistics |
🌓 ThemesBeautiful dark and light themes |
⌨️ ShortcutsKeyboard shortcuts for power users (press |
📤 ExportExport sessions as markdown or screenshots |
🚨 Troubleshooting
Service won't start
# Check if port is in use
lsof -i :9999
# Check logs
tail -f /tmp/memctx.log
# Restart service
memctx restart
Hooks not working
# Verify hooks are registered
cat ~/.claude/settings.json | grep memctx
# Reinstall hooks
memctx uninstall
memctx install
SQLite compilation errors
# Rebuild native modules
npm rebuild better-sqlite3
# Or reinstall
npm uninstall -g memctx
npm install -g memctx
AI summaries not working
# Check API key is set
echo $ANTHROPIC_API_KEY
# Set API key
export ANTHROPIC_API_KEY="sk-ant-..."
# Or configure in dashboard
memctx open
# Navigate to Settings
🤝 Contributing
We love contributions! MemCTX is open source and community-driven.
🐛 Report Bugs |
💡 Request Features |
🔧 Submit PRs |
Development Setup
# Clone repository
git clone https://github.com/bbhunterpk-ux/memctx.git
cd memctx
# Install dependencies
pnpm install
# Build
pnpm run build
# Link locally
npm link
# Test
memctx install
memctx start
💬 Community
💬 GitHub DiscussionsAsk questions, share ideas |
💭 DiscordReal-time chat with the community |
Follow for updates and tips |
📊 Stats
🗺️ Roadmap
| ✅ v1.0 (Current) | 🚧 v1.1 (Next) | 🔮 v2.0 (Future) |
|---|---|---|
|
|
|
📄 License
MemCTX is MIT licensed.
MIT License
Copyright (c) 2026 Fahad Aziz Qureshi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
🙏 Acknowledgments
Built with ❤️ using:
Special thanks to:
🤖 AnthropicFor Claude AI |
👥 CommunityThe Claude Code community |
🙌 ContributorsAll our contributors and users |
📞 Support
|
|
🌐 Website |
🐛 Issues |
💬 Discussions |
⭐ Star us on GitHub — it motivates us a lot!
Made with ❤️ by Fahad Aziz Qureshi
Empowering developers with perfect AI memory
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi