
Context mode
Guides agents to index large codebases and long outputs through the context-mode MCP
Context mode is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 58
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Context mode
This skill is a decision guide for choosing between direct shell and file reads and the context-mode MCP server, which keeps a persistent knowledge base across sessions. It recommends context-mode when a task touches many files, produces long command output, or needs the same content searched repeatedly, and tells the agent to stay with plain tools for small jobs.
The workflow goes through the supercli command line: listing available MCP servers, running a health check on context-mode, batching exploration commands so their output is indexed and searched in one call, and then running targeted searches over that indexed content. It also covers which context-mode tool fits which situation, such as batch execution for exploration, index and search for repeated lookups, single execution for long builds or tests, fetching external documentation, purging the knowledge base and checking token savings.
The skill expects supercli to be installed and the context-mode server to be installed through npm and registered in the agent's MCP configuration. The examples are shell commands and JSON tool inputs.
When your agent uses it
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (2 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/context-mode to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/javimosch/supercli.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/context-mode &&
cp -R "$tmp/.agents/skills/context-mode" ~/.claude/skills/context-mode &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/context-mode inside it instead.
Copy the skill folder to ~/.agents/skills/context-mode to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/javimosch/supercli.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/context-mode &&
cp -R "$tmp/.agents/skills/context-mode" ~/.agents/skills/context-mode &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/context-mode inside it instead.
Copy the skill folder to ~/.cursor/skills/context-mode to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/javimosch/supercli.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/context-mode &&
cp -R "$tmp/.agents/skills/context-mode" ~/.cursor/skills/context-mode &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/context-mode inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/javimosch/supercli.git --path .agents/skills/context-modeOr copy the folder to ~/.gemini/skills/context-mode yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/context-mode:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/javimosch/supercli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/context-mode &&
cp -R "$tmp/.agents/skills/context-mode" ~/.copilot/skills/context-mode &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/context-mode inside it instead.
Get the folder:
git clone --depth 1 https://github.com/javimosch/supercli.gitThen copy supercli/.agents/skills/context-mode into your agent's skills folder as context-mode. Agents that support SKILL.md read one folder per skill.
What it does
- Task size decision tree
- Helps the agent decide between direct tools and context-mode based on file count, output length and repeated searches.
- Batched codebase exploration
- Runs several shell commands and searches over their output in a single context-mode call.
- Indexed repeated search
- Indexes content once so later search queries can reuse it across the session.
- Tool selection guide
- Summarizes which context-mode tool suits exploration, repeated search, long commands, external docs and cleanup.
- Health and savings checks
- Shows how to verify the server is running and review token savings statistics.
Good for
- Analyze a large codebase with dozens of files before refactoring
- Summarize the output of a long test or build run
- Search the same project content many times during a session
- Index external API documentation for later lookups
- Clear accumulated context between unrelated tasks
Context mode FAQ
What does the agent need before using Context mode?
The supercli command line, the context-mode MCP server installed via npm as context-mode, and that server added to the harness MCP configuration.
When should the agent not use context-mode?
For simple commands like ls or cat on package.json, checking one to ten files, quick duplicate checks, simple grep, or output under about 500 lines.
How does the agent start the server?
The skill's health check command reports that the daemon starts automatically.
How do I install Context mode in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/context-mode to use it in all your projects, or to .claude/skills/context-mode in one project.
Does Context mode run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Context mode?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Context mode?
The closest alternatives to Context mode are MCP CLI, Entroly context control, Manage context, Context strategy and Context engineering.
Where this comes from
- Description: from the skill's own SKILL.md.
More from javimosch/supercli

Makes the agent reply in terse, token-saving fragments without losing technical accuracy
- Open source
- 58 GitHub stars
- AI models and LLM tooling

Walks the agent through a structured six-phase loop for diagnosing hard bugs
- Open source
- 58 GitHub stars
- Developer tools

Makes the agent interview you one question at a time to stress-test a plan
- Open source
- 58 GitHub stars
- Productivity

Stress-tests a plan against your project's domain language and documented decisions
- Open source
- 58 GitHub stars
- Developer tools

Condenses the current conversation into a handoff document for a fresh agent
- Open source
- 58 GitHub stars
- Developer tools

Guides agents to fetch secrets from humanenv safely without logging or dumping them
- Open source
- 58 GitHub stars
- Security





