| name | context-mode |
| description | Use context-mode (via supercli MCP) for large codebase analysis (50+ files), long command outputs, or repeated searches. Reduces token usage by up to 98%. NOT for simple commands or small file sets. |
context-mode Decision Guide
context-mode is an MCP server accessed via supercli. It maintains a persistent knowledge base across sessions.
Quick Decision Tree
Task size?
- Small (1-10 files, < 500 lines output) → Use direct bash/read_file
- Large (50+ files, 1000+ lines output) → Use context-mode via supercli
Will you search the same content multiple times?
- Yes → Use context-mode (index once, search many times)
- No → Use direct tools
Most Common Workflow (via supercli)
sc mcp list --json
sc mcp call --mcp-server context-mode --tool ctx_doctor --input-json '{}' --json
sc mcp call --mcp-server context-mode --tool ctx_batch_execute --input-json '{
"commands": [
{"label": "Structure", "command": "find . -type f -name \"*.js\" | head -100"},
{"label": "Package", "command": "cat package.json"}
],
"queries": ["entry point", "dependencies", "routes"]
}' --json
sc mcp call --mcp-server context-mode --tool ctx_search --input-json '{
"queries": ["search terms"]
}' --json
Tool Selection Guide
- ctx_batch_execute: Default for exploration - runs commands, indexes, searches in one call
- ctx_index + ctx_search: When you'll search the same content repeatedly