Skip to content

bleshinsky/msp-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

msp-model

MSP - Mandatory Session Protocol

Never lose context again. A developer productivity tool for the context engineering era.

License: MIT Neo4j Compatible

What is MSP?

MSP (Mandatory Session Protocol) is a model for context engineering that ensures you never lose track of your development work. It enforces structured session management across your entire toolchain, creating a persistent knowledge graph of your project's evolution.

The Problem: Vibe Coding

Vibe Coding (noun): The practice of using AI assistants through unstructured, conversational interactions without persistent context, resulting in:

  • 🀯 Context Amnesia: Every conversation starts from zero
  • πŸ”„ Repeated Work: " Context hallucination results in code debt
  • πŸ€– Shallow AI Help: "Let me explain my entire project again..."
  • πŸ“‰ Inconsistent responses: Different answers to similar questions
  • Lost decisions: You've switched integration but your AI assistant only remembers the old one

The Vibe Coding Loop of Doom

Start new chat β†’ Explain context β†’ Get answer β†’ Close chat β†’ Forget everything β†’ Repeat

The Solution: Context Engineering

Context Engineering (noun): The systematic practice of capturing, structuring, and maintaining development context to enable deep, consistent, and evolving AI assistance.

How MSP Helps

MSP implements the looping *RΒ³ Framework (Route-Recall-Record) to create a memory-augmented development workflow:

    ROUTE β†’ RECALL β†’ RECORD
      ↑                    ↓
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Quick Start

Option 1: MSP Lite (5 minutes)

Zero dependencies. Just PowerShell.

# Download and start
iwr -Uri "https://github.com/msp-model/msp/raw/main/lite/msp-lite.ps1" -OutFile "msp.ps1"
.\msp.ps1 start

Option 2: MSP Standard (Recommended)

Full context engineering with Neo4j, Obsidian, and Linear.

NOTE: You can switch any of these out for your tool of choice. The important thing is to have all three functions covered. Go to http://sessionprotocol.dev to find out more.

# Clone and setup
git clone https://github.com/msp-model/msp-model.git
cd msp/standard
.\setup.ps1

Option 3: MSP Advanced (COMING SOON)

Enterprise features, team collaboration, custom integrations.

Core Features

🧠 Knowledge Graph

Every session, decision, and progress update becomes a queryable node in Neo4j. Your project's entire history at your fingertips.

πŸ€– AI Context Export

Feed complete project context to any AI with one command. Claude, GPT, or Copilot get instant understanding.

πŸ“Š Progress Tracking

Quantify your work with granular progress updates. Know exactly where you are and what's next.

πŸ’‘ Decision History

Never wonder "why did we do it this way?" again. Every architectural choice is documented with rationale.

πŸ”„ Session Recovery

Start where you left off with complete context.

πŸ“ Tool Integration

  • Neo4j: Knowledge graph and relationships
  • Obsidian: Markdown documentation
  • Linear: Issue tracking and planning
  • Git: Version control integration

How It Works

1. Start Your Session

.\msp.ps1 start

# MSP loads your context:
# β†’ Current project state
# β†’ Recent decisions
# β†’ Active blockers
# β†’ Progress metrics

2. Track As You Work

.\msp.ps1 update "Implemented OAuth flow" 45
.\msp.ps1 decide "Using JWT with 15min expiry - better security"
.\msp.ps1 block "CORS issues with refresh endpoint"

3. End With Context Captured

.\msp.ps1 end

# MSP saves everything:
# β†’ Session duration and progress
# β†’ All decisions with rationale
# β†’ Generated Neo4j queries
# β†’ Updated documentation
# β†’ Automated validation across the three tools - knowledge graph, task/project management and documentation - ensures everything is in sync and errors are not creeping in.

Version Comparison

Feature MSP Lite MSP Standard MSP Advanced (COMING SOON)
Session Tracking βœ… JSON files βœ… Neo4j βœ… Neo4j + Custom
Progress Tracking βœ… Basic βœ… Full βœ… Team metrics
AI Context Export βœ… βœ… βœ… Custom formats
Obsidian Integration ❌ βœ… βœ…
Linear Integration ❌ βœ… βœ…
Team Features ❌ ❌ βœ…
Setup Time 5 min 45 min Custom
Dependencies None Neo4j, etc Varies

Documentation

Examples

Check the examples/ directory for real-world usage:

  • solo-developer/ - Individual productivity workflows
  • small-team/ - Team collaboration patterns (COMING SOON)
  • enterprise/ - Large-scale implementations (COMING SOON)

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Development Setup

# Clone the repo
git clone https://github.com/msp-model/msp-model.git
cd msp-model

License

MSP is open source under the MIT License.


Ready to never lose context again?

# Your journey starts here
.\msp.ps1 start

About

MSP - Mandatory Session Protocol: Never lose context again

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors