Context Mode

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.

57 stars 5 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add javimosch/supercli --skill context-mode
Manual install
git clone --depth 1 https://github.com/javimosch/supercli.git /tmp/supercli
mkdir -p ~/.claude/skills
cp -r /tmp/supercli/.agents/skills/context-mode ~/.claude/skills/context-mode

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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)

```bash
# 1. Verify context-mode is available
sc mcp list --json

# 2. Verify installation (daemon auto-starts)
sc mcp call --mcp-server context-mode --tool ctx_doctor --input-json '{}' --json

# 3. Explore codebase
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

# 4. Search indexed content (if needed)
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
- **ctx_execute**: Single long-running command (npm test, build)
Read the full skill on GitHub

Details

Skill name
context-mode
Path
.agents/skills/context-mode/SKILL.md
License
MIT
Repo updated
2 November 2026

FAQ

What does the Context Mode skill do?

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.

How do I install the Context Mode skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add javimosch/supercli --skill context-mode. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Context Mode popular?

It lives in javimosch/supercli, which has 57 GitHub stars and 5 forks, and is included in 1 curated skill list.

Related skills

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.