# Context mode

> Context mode is an open-source agent skill for developer tools. Guides agents to index large codebases and long outputs through the context-mode MCP. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/javimosch/supercli/tree/master/.agents/skills/context-mode
- **Repository:** https://github.com/javimosch/supercli
- **GitHub stars:** 58
- **License:** MIT
- **Skill name:** context-mode
- **Collection:** https://github.com/javimosch/supercli
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-05

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/javimosch/supercli/tree/HEAD/.agents/skills/context-mode)
- [License: MIT](https://github.com/javimosch/supercli/tree/HEAD/.agents/skills/context-mode)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/context-mode` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/context-mode` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/context-mode` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/javimosch/supercli.git --path .agents/skills/context-mode
```

Or copy the folder to `~/.gemini/skills/context-mode` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/context-mode`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/javimosch/supercli.git
```

Then 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.

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

## Alternatives

- [MCP CLI](https://ai-powered.com/skills/mcp-cli): MCP CLI is an open-source agent skill for developer tools.
- [Entroly context control](https://ai-powered.com/skills/entroly-context-control): Entroly context control is an open-source agent skill for developer tools.
- [Manage context](https://ai-powered.com/skills/manage-context): Manage context is an open-source agent skill for developer tools.
- [Context strategy](https://ai-powered.com/skills/context-strategy): Context strategy is an open-source agent skill for developer tools.
- [Context engineering](https://ai-powered.com/skills/context-engineering): Context engineering is an open-source agent skill for developer tools.
- [MCP testing](https://ai-powered.com/skills/mcp-testing): MCP testing is an open-source agent skill for developer tools.
- [Onboard context matic](https://ai-powered.com/skills/onboard-context-matic): Onboard context matic is an open-source agent skill for developer tools.
- [Postman MCP server](https://ai-powered.com/skills/postman-mcp-server-postmanlabs): Postman MCP server is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/context-mode-javimosch
