# Session Buddy - Quick Start Guide
Get up and running with the Session Management MCP server in under 5 minutes.
## What You'll Get
- **π One-command session initialization** with project analysis and dependency management
- **π§ Cross-session memory** with semantic search through all your conversations
- **π Quality monitoring** with automatic checkpoints and workflow optimization
- **π§ Zero-configuration setup** that works with any project structure
## Installation
### Option 1: From Source (Recommended)
```bash
# Clone and install
git clone https://github.com/lesleslie/session-buddy.git
cd session-buddy
uv sync
# Or install with development/testing tools
uv sync --group dev
# Verify installation
python -c "from session_buddy.server import mcp; print('β
Ready to go!')"
```
### Option 2: With pip
```bash
# Install from PyPI
pip install session-buddy
```
## Search Capabilities
Session Buddy includes two search modes for finding past conversations:
**Text Search (Default β
)**
- Fast keyword-based search using DuckDB FTS5
- Works out of the box with no additional setup
- Highly effective for most use cases
**Semantic Search (Optional β
)**
- Concept-based search using AI embeddings
- **No PyTorch required** - uses pre-converted ONNX models
- Enhanced for finding conceptually similar content
**Setup for Semantic Search:**
```bash
python scripts/download_embedding_model.py
```
This downloads the Xenova/all-MiniLM-L6-v2 model (~100MB) for semantic search.
**Note**: Text search is the default and works excellently. Semantic search is an optional enhancement that provides conceptual understanding beyond keywords.
## Configure Claude Code
Add to your `.mcp.json` configuration:
```json
{
"mcpServers": {
"session-buddy": {
"command": "python",
"args": ["-m", "session_buddy.server"],
"cwd": "/path/to/session-buddy",
"env": {
"PYTHONPATH": "/path/to/session-buddy"
}
}
}
}
```
> **π‘ Pro Tip**: Use absolute paths to avoid configuration issues
## First Session
### 1. Initialize Your Session
```
/session-buddy:start
```
This single command:
- β
Analyzes your project structure and health
- β
Syncs all dependencies (UV, npm, etc.)
- β
Sets up conversation memory system
- β
Configures automated quality checkpoints
### 2. Work Normally
Code, debug, and develop as usual. The MCP server silently:
- π§ **Remembers everything** - All conversations are stored with semantic search
- π **Monitors quality** - Tracks project health and workflow efficiency
- π§ **Reduces friction** - Learns your permissions to minimize prompts
### 3. Get Smart Recommendations
```
/session-buddy:checkpoint
```
Every 30-45 minutes, get:
- Real-time quality scoring and optimization tips
- Workflow drift detection and corrections
- Automatic git checkpoints with progress tracking
### 4. Search Your History
```
/session-buddy:quick_search how did I implement authentication last week?
```
Instantly find:
- π― **Relevant conversations** using semantic similarity (not just keywords)
- π
**Recent context** with time-decay prioritization
- π **Cross-project insights** from related work
### 5. End Gracefully
```
/session-buddy:end
```
Automatic cleanup with:
- π Final quality assessment and session summary
- π§ Learning capture with insights extraction
- π Handoff documentation for next session
- π§Ή Complete cleanup of session artifacts
### Complete User Experience Flow
```mermaid
flowchart TD
Start([π Start Claude Code]) --> Config{Session Buddy<br/>Configured?}
Config -->|No| Install[Install & Configure]
Config -->|Yes| Detect{Git Repo?}
Install --> Detect
Detect -->|Yes| Auto[Auto-Initialize]
Detect -->|No| Manual[/start Command]
Auto --> Setup[Session Setup]
Manual --> Setup
Setup --> Init[β
Project Analysis<br/>β
Dependency Sync<br/>β
Memory Setup<br/>β
Shortcuts Created]
Init --> Work[π» Development Work]
Work --> Monitor{Quality Monitoring}
Monitor -->|Normal| Work
Monitor -->|Checkpoint| CP[Run Checkpoint]
CP --> Quality[π Quality Score<br/>π§ Optimization Tips<br/>π Git Commit]
Quality --> Work
Work --> Search{Need Context?}
Search -->|Yes| Query[Search History]
Search -->|No| Work
Query --> Results[π― Semantic Results<br/>π
Time-Ordered<br/>π Cross-Project]
Results --> Work
Work --> End{Session End?}
End -->|Yes| Final[Run /end]
End -->|No| Work
Final --> Cleanup[π§Ή Auto Cleanup<br/>π Final Assessment<br/>π§ Extract Insights<br/>π Handoff Doc]
Cleanup --> Complete([β
Session Complete])
style Start fill:#e1f5ff
style Setup fill:#c8e6c9
style Work fill:#fff9c4
style CP fill:#ffccbc
style Query fill:#b2dfdb
style Cleanup fill:#f8bbd9
style Complete fill:#c8e6c9
```
### Key User Interactions
```mermaid
sequenceDiagram
participant User as π€ Developer
participant SB as Session Buddy
participant Memory as π§ Memory System
participant Quality as π Quality Monitor
participant Git as π§ Git Integration
Note over User: First Time Setup
User->>SB: /start
SB->>SB: Analyze Project
SB->>SB: Sync Dependencies
SB-->>User: β
Session Ready
Note over User,SB: Development Loop
loop Every 30-45 min
User->>Quality: /checkpoint
Quality->>Quality: Calculate Score
Quality->>Git: Create Commit
Quality-->>User: π Quality Report
end
Note over User,Memory: Need Context
User->>Memory: Search "authentication"
Memory->>Memory: Semantic Search
Memory-->>User: π― Ranked Results
Note over User: Session End
User->>SB: /end
SB->>Memory: Extract Insights
SB->>Quality: Final Assessment
SB-->>User: π Handoff Document
```
## Advanced Features
- π **Handoff documentation** for session continuity
- π **Learning capture** across key insight categories
- π§Ή **Workspace optimization** and memory persistence
## Essential Commands
| Command | Purpose | When to Use |
|---------|---------|-------------|
| `/session-buddy:start` | Full session setup | Start of every session |
| `/session-buddy:checkpoint` | Quality monitoring | Every 30-45 minutes |
| `/session-buddy:quick_search` | Search conversations | When you need past context |
| `/session-buddy:store_reflection` | Save important insights | After solving tough problems |
| `/session-buddy:end` | Session cleanup | End of every session |
## Power User Features
### Smart Memory System
- **Local embeddings** - No external API calls, complete privacy
- **Vector search** - Semantic similarity, not just text matching
- **Cross-project history** - Find insights across all your repositories
- **Automatic tagging** - Content is intelligently organized
### Workflow Intelligence
- **Quality scoring** - Real-time project health monitoring
- **Permission learning** - Reduces repetitive permission prompts
- **Context preservation** - Maintains state across interruptions
- **Git integration** - Automatic checkpoints with meaningful commit messages
### Advanced Search
```
/session-buddy:quick_search Redis caching strategies
/session-buddy:search_by_file src/auth/middleware.py
/session-buddy:search_by_concept "error handling patterns"
```
## Troubleshooting
### Memory/Embeddings Not Working
```bash
# Ensure all dependencies are installed (embeddings are included by default)
uv sync
# Or reinstall with pip
pip install session-buddy
```
### Server Won't Start
```bash
# Check imports
python -c "import session_buddy; print('Import successful')"
# Verify path in .mcp.json
ls /path/to/session-buddy/session_buddy/server.py
```
### No Conversations Found
- Run `/session-buddy:start` first to initialize the database
- Check `~/.claude/data/` directory exists and is writable
## What's Next?
- π **[MCP Tools Reference](MCP_TOOLS_REFERENCE.md)** - Complete guide to all available commands
- ποΈ **[Architecture Guide](../developer/ARCHITECTURE.md)** - Deep dive into how it all works
- π§ **[Configuration Reference](CONFIGURATION.md)** - Advanced setup options
- π€ **[Integration Guide](../developer/INTEGRATION.md)** - Connect with your existing tools
## Support
- π **Issues**: [GitHub Issues](https://github.com/lesleslie/session-buddy/issues)
- π¬ **Discussions**: [GitHub Discussions](https://github.com/lesleslie/session-buddy/discussions)
- π **Documentation**: [Full Documentation](../../README.md)
______________________________________________________________________
**Ready to supercharge your Claude Code sessions?** Run `/session-buddy:start` and experience the difference! π