Overview Version History Q & A Rating & Review
Context Shed
Context reduction and tagging for LLM handoff
Intelligently compress chat context into compact, reusable markdown files
Context Shed is a VS Code/Cursor extension that helps you manage long AI chat sessions by "shedding" context into structured markdown files. Instead of losing important context when your chat gets too long, create a compressed summary that captures the essential information.
Features
🗜️ Context Compression : Take a long chat session and compress it into a structured markdown file
📋 Smart Extraction : Uses LLM to intelligently extract key information:
Summary of work done
Files modified with their purposes
Key technical decisions and rationale
Current state and progress
Next steps and blockers
📝 Changelog Tracking : Track changes over time with timestamped entries
🔄 Workflow Phases : Visual workflow tracking (Planning → Implementation → Testing → Review → Complete)
♻️ Reusable Context : Load compressed context into new chat sessions
Installation
Clone this repository
Run npm install
Run npm run compile
Press F5 to launch the extension in development mode
Configuration
Open VS Code settings and search for "Context Shed":
Setting
Description
Default
contextShed.llmProvider
LLM provider (openai or anthropic)
anthropic
contextShed.openaiApiKey
Your OpenAI API key
-
contextShed.anthropicApiKey
Your Anthropic API key
-
contextShed.openaiModel
OpenAI model to use
gpt-4o
contextShed.anthropicModel
Anthropic model to use
claude-sonnet-4-20250514
contextShed.outputFolder
Folder for context files
.context
contextShed.detailLevel
Level of detail (minimal/standard/detailed)
standard
contextShed.workflowPhases
Custom workflow phases
Planning, Implementation, Testing, Review, Complete
Commands
Command
Description
Context Shed: Create/Update Context
Create new or update existing context file
Context Shed: Load Context to Clipboard
Copy a context file to clipboard
Context Shed: Add Changelog Entry
Quick-add changelog entries
Context Shed: Update Workflow Phase
Change the current workflow phase
Usage
Creating Context
Open Command Palette (Cmd/Ctrl+Shift+P)
Run "Context Shed: Create/Update Context"
Choose input method:
Clipboard : Paste chat content from clipboard
Editor : Open a temporary editor to paste content
File : Select a text file
Wait for LLM to process
Context file is saved and opened
Loading Context
Run "Context Shed: Load Context to Clipboard"
Select a context file
Choose action:
Copy to clipboard (paste into new chat)
Open file
Insert at cursor
Example Output
# Context: Auth System Refactor
**Created:** 01/09/2026, 10:15 AM | **Updated:** 01/09/2026, 02:32 PM | **Status:** Implementation
## Workflow
[Visual mermaid diagram showing current phase]
## Summary
Building JWT auth with refresh tokens. Middleware complete, testing pending.
## Files Index
| File | Purpose | Status |
|------|---------|--------|
| `src/auth/jwt.ts` | Token generation/validation | ✅ Complete |
| `src/middleware/auth.ts` | Route protection | ✅ Complete |
## Key Decisions
- **Using RS256 over HS256** - Security requirement for token signing
## Changelog
### 01/09/2026, 02:32 PM
- Added refresh token rotation logic
- Fixed middleware error handling
## Current State
✅ JWT service complete
🔧 Refresh token rotation (in progress)
## Next Steps
1. Complete token rotation
2. Add rate limiting
Development
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch mode
npm run watch
# Lint
npm run lint
License
MIT
context-shed