VS Code Extension

Query your documentation directly from VS Code with the RLM Context extension. Get AI-optimized context without leaving your editor.

Features

Ask Questions

Query documentation with natural language directly from your editor

Smart Search

Regex-powered search across all your indexed documentation

Context Management

Inject, view, and manage session context for better results

Sidebar View

Browse results and navigate to relevant documentation sections

Installation

From VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "RLM Context"
  4. Click Install

From VSIX

  1. Download the .vsix file from GitHub Releases
  2. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  3. Run "Extensions: Install from VSIX..."
  4. Select the downloaded file

Configuration

Quick Setup

  1. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Run "RLM: Configure API Key"
  3. Enter your API key from the RLM Dashboard
  4. Enter your project ID

Settings Reference

Or configure in settings.json:

{
  "rlm.apiKey": "your-api-key",
  "rlm.projectId": "your-project-id",
  "rlm.serverUrl": "https://mcp.rlm.dev",
  "rlm.maxTokens": 4000,
  "rlm.searchMode": "hybrid"
}
SettingDefaultDescription
rlm.apiKey-Your RLM API key
rlm.projectId-Your RLM project ID
rlm.serverUrlhttps://mcp.rlm.devMCP server URL
rlm.maxTokens4000Maximum tokens for context queries
rlm.searchModehybridSearch mode: keyword, semantic, or hybrid

Commands

CommandShortcutDescription
RLM: Ask QuestionCtrl+Shift+RQuery your documentation
RLM: Search Documentation-Search with regex pattern
RLM: Show Current Context-View session context
RLM: Clear Context-Clear session context
RLM: Inject Context-Add session context
RLM: Configure API Key-Set up API credentials

Usage

Asking Questions

  1. Press Ctrl+Shift+R (or Cmd+Shift+R on Mac)
  2. Type your question (e.g., "How does authentication work?")
  3. View results in the RLM sidebar
  4. Click on a result to view the full content

Injecting Context

Session context improves query relevance by providing background information:

  1. Select text in your editor (optional)
  2. Run "RLM: Inject Context" from Command Palette
  3. Choose to replace or append to existing context
  4. Future queries will use this context for better results

Pro Tip

Inject context like "Working on: user authentication" to get more relevant results for your current task.

Sidebar Views

Results View

Shows query results with relevant documentation sections. Click on a section to view its full content. Results include file path, line numbers, and relevance scores.

Session Context View

Displays the current session context that's being used to enhance query results. Manage context from here.

Troubleshooting

Extension says "not configured"

Make sure you've set both rlm.apiKey and rlm.projectId in settings. Run "RLM: Configure API Key" to set them up.

Queries return errors

Check that your API key is valid and hasn't expired. Verify the project ID matches an active project. Check the Output panel (View > Output > RLM Context) for detailed error messages.

Results don't seem relevant

Try using the "hybrid" search mode for best results. Inject context about what you're working on. Make sure your documentation has been indexed and synced.

Support