Understanding context
AI models have limited context windows — the amount of information they can process at once. As you use more of the context window, costs increase, latency increases, and response quality can degrade. Managing context effectively is essential for getting the best results from Workshop. Additionally, as projects grow and span multiple conversations, maintaining consistent understanding of what you’ve built becomes crucial for continued success.The /compact command
The /compact command is the primary tool for managing long conversations. It summarizes your current conversation and automatically continues in a new child conversation, carrying forward the essential context.
How it works
Trigger compact
Type
/compact in the conversation input. Optionally add focus text to guide what gets prioritized in the summary.Workshop summarizes
Workshop analyzes your conversation history and creates a condensed summary of key decisions, progress, and current state.
New conversation starts
A new child conversation is created with the summary injected as context. You continue working seamlessly.
Usage examples
When to use /compact
- Your conversation is getting long and responses are slowing down
- Workshop warns you about approaching the context window limit
- You want to continue a task with a fresh, focused context
- You’ve completed a major milestone and want to start fresh for the next phase
Workshop monitors your context window usage and will proactively prompt you when you’re approaching the limit. The usage indicator at the bottom right of the app shows how much of the context window your current conversation is using.
Other slash commands
| Command | Description | Example |
|---|---|---|
/compact [focus] | Condense and continue in new conversation | /compact key decisions |
/context [guidance] | Update project context from conversation | /context focus on API patterns |
/summarize [focus] | Summarize the current conversation | /summarize action items |
Project context files
Project context files give Workshop persistent knowledge about your project that carries across all conversations. These live in the.memex/ directory at your project root.
.memex/context.md
The primary project context file. Workshop reads this at the start of every conversation to understand your project’s architecture, current state, and conventions.
How to update it:
- Using
/context: Type/contextin any conversation. Workshop analyzes your project files and conversation history, then updatescontext.mdwith an intelligent summary. - With custom focus: Type
/context focus on API patternsto steer what gets emphasized. - Manually: Edit
.memex/context.mddirectly to add or correct information.
- After completing a major feature or milestone
- Before starting a new conversation in an existing project
- When Workshop seems to have forgotten important project details
- Before making complex changes that require deep project understanding
.memex/rules.md
Project-specific rules that guide Workshop’s behavior. Use this for coding standards, naming conventions, framework preferences, and any other guidelines Workshop should follow consistently.
.memex/skills/ directory
Custom skills are reusable instruction sets for specialized tasks. They extend Workshop’s capabilities for project-specific workflows like deployment, testing patterns, or domain operations.
Custom instructions
Custom Instructions in Agent Settings apply across all your conversations and projects. Think of them as global preferences that Workshop always follows.Context file precedence
Workshop loads project context using a precedence order. The first valid file found is used:| Priority | File | Description |
|---|---|---|
| 1 (highest) | .memex/context.md | Workshop’s native context format |
| 2 | .memex/rules.md | Workshop’s rules file |
| 3 | .cursor/rules/*.mdc | Cursor-compatible rules (all .mdc files concatenated) |
| 4 (lowest) | .cursorrules | Legacy Cursor rules file |
Context window management tips
Keep conversations focused
Each conversation should have a clear purpose — one feature, one bug fix, one exploration thread. Starting new conversations for different tasks keeps context clean and relevant.Use /compact proactively
Don’t wait for Workshop to warn you. If a conversation has been going for a while and you’ve completed a logical milestone, compact and continue.
Maintain your context.md
A well-maintained context.md means Workshop starts every conversation with a solid understanding of your project. This reduces the need to re-explain architecture, conventions, and current state.
Provide files strategically
When giving Workshop files for context:- Drag and drop files into the chat (Desktop) to include their path
- Use the file upload feature (Cloud) to add files to your project VM
- Specify whether the file is for Workshop to read and understand (context) or to include in what it builds (content)