// devtools · mksglu/context-mode

context-mode

context-mode é um projeto de ferramentas de desenvolvimento de código aberto de mksglu (mksglu/context-mode no GitHub). Tem 25.701 estrelas no GitHub e 1.856 forks, é publicado sob a licença Elastic License 2.0 e foi atualizado pela última vez no GitHub em 8 de outubro de 2026.

Context optimization for coding agents: sandbox tool output, keep sessions lean, remember more

★ 25,7 mil estrelas⑂ 1,9 mil forksElastic License 2.0atualizado out 2026
▦ visual: o README deste projeto não inclui nenhuma captura incorporável,
então aqui vai um marcador. O guia abaixo está completo mesmo assim.
// dados do projeto

Dados do projeto

Estrelas no GitHub
25.701
Forks
1.856
Licença
Elastic License 2.0
Última atualização no GitHub
8 de outubro de 2026
Tipo de ficha
Guia de instalação completo
Site oficial
Official site
// como funciona

Como funciona

  1. Clarify your goal

    Decide what you want to achieve with context-mode and check the README on GitHub for requirements before installing.

  2. Get the code

    Clone the repository from GitHub (or take the packaged install route in step 3 if the README offers one).

  3. Install and configure

    Follow the project's documented install commands — the Run section below lists the exact ones — and add any required API keys or models.

  4. Run your first task

    Work through the README's quickstart example end to end, then adapt it to your own project or data.

// recursos

Por que as pessoas gostam tanto

Tool-output sandboxing

Executes tools in a sandbox and returns summaries instead of raw dumps, cutting context burn dramatically (up to 98% per the project).

Session memory persistence

Keeps session knowledge in a searchable knowledge base so agents retain context across a long task.

Smart retrieval

The knowledge base uses reciprocal rank fusion, proximity reranking and fuzzy correction to fetch the right snippets.

Routing enforcement across 17 platforms

Hooks and MCP config steer supported agents (Claude Code, Codex, Cursor, Copilot, Gemini and others) to use the sandbox consistently.

Session continuity

Designed so work survives context resets and session restarts.

Privacy-conscious architecture

The README documents its privacy/security model, including project-boundary containment and hardened network fetching.

Advertisement
// execute você mesmo

Execute você mesmo

  1. Clone the repository

    Get the Context Mode source and platform guides.

    git clone https://github.com/mksglu/context-mode.git
    cd context-mode
  2. Install globally

    Install the context-mode binary globally from npm.

    npm install -g context-mode
  3. Register with your agent

    For Claude Code, add the MCP server, then restart your agent so hooks and the server load.

    claude mcp add context-mode -- npx -y context-mode
// casos de uso

O que você pode criar

  • Keep a long refactoring session inside the context window without constant re-explaining
  • Cut token costs on agents that run verbose test suites and build logs
  • Give a team of agents shared, persistent project memory
  • Standardize context hygiene across Claude Code, Cursor and Codex users on a team
Advertisement
// perguntas frequentes

Perguntas frequentes

Who maintains context-mode?

context-mode is maintained by the mksglu organization/account on GitHub, together with open-source contributors, in the public repository mksglu/context-mode.

Is context-mode free to use?

Yes — the code is open source under the Elastic License 2.0 license. Check the repository's LICENSE file for the exact terms before commercial use.

Does context-mode need a paid API key?

Context Mode itself has no API key; it sits between your existing coding agent (with its own model access) and its tools.

How does context-mode compare to manual context management / bigger windows?

Bigger context windows postpone the problem and cost more; Context Mode attacks the waste itself — sandboxing output and indexing memory so less context is needed.

How do I get started with context-mode?

Clone the repository from GitHub, follow the install commands in the Run section (taken from the project's README), and complete the documented quickstart example before adapting it to your own use case.

// continue explorando

Ferramentas semelhantes

Ferramentas de desenvolvimento

memorax-code

Shared memory for coding agents: lessons, repo knowledge, and your preferences, carried across sessions.

★ 2,1 mil estrelasMIT
Ver o guia →
Ferramentas de desenvolvimento

lean-ctx

LeanCTX — the Rust context gateway that controls what your AI coding tools can see.

★ 3,9 mil estrelasApache-2.0
Ver o guia →
Ferramentas de desenvolvimento

OpenContext

Personal context store for AI coding agents — your skills, always loaded.

★ 1,3 mil estrelasMIT
Ver o guia →
Ferramentas de desenvolvimento

ripwire

The ripgrep of AI context — a zero-dependency C++23 CLI + MCP server that maps your repo for coding agents

★ 2,4 mil estrelasApache-2.0
Ver o guia →
Ferramentas de desenvolvimento

abtop

Like htop, but for AI coding agents — watch Claude Code and Codex sessions in real time.

★ 3,7 mil estrelasMIT
Ver o guia →
Ferramentas de desenvolvimento

herdr

The terminal runtime your coding agents live on — a Rust multiplexer built for agent sessions

★ 42,9 mil estrelasApache-2.0
Ver o guia →
// alternativas

Alternativas em Ferramentas de desenvolvimento

Os outros projetos de Ferramentas de desenvolvimento com mais estrelas no catálogo do LibreAI — a lista realista de alternativas se context-mode não for o ideal para você.

  • OpenCode★ 211,6 mil

    The open source coding agent

  • Transformers★ 166,9 mil

    The model-definition framework behind modern AI — thousands of pretrained transformers for text, vision, and audio.

  • claude-code★ 149,7 mil

    Anthropic's agentic coding tool that lives in your terminal and works across your whole codebase

  • cc-switch★ 141,3 mil

    Cross-platform desktop all-in-one manager for Claude Code, Codex, OpenCode and other coding agents

  • codex★ 128,2 mil

    OpenAI's lightweight coding agent that runs locally in your terminal

// mais em devtools

Mais em Ferramentas de desenvolvimento

Projetos de Ferramentas de desenvolvimento próximos no catálogo, os mais próximos em estrelas de context-mode: continue explorando dos dois lados dele.

  • ai★ 27,2 mil

    Vercel's AI SDK: the TypeScript toolkit for building AI apps and agents with any model provider

  • toon★ 25,5 mil

    TOON: a compact, human-readable serialization of JSON that saves tokens in LLM prompts

  • Kilocode★ 27,5 mil

    Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent

  • FlashAttention★ 25,2 mil

    FlashAttention — fast, memory-efficient exact attention that lets transformers handle long sequences, BSD-3-Clause

  • vibe-kanban★ 28,3 mil

    A kanban board for coding agents — plan tasks, run Claude Code or Codex in parallel, review diffs

  • dbx★ 25,2 mil

    A 25MB database client for 100+ databases — with a built-in AI assistant, MCP server and CLI

Baixe o context-mode

Grátis e aberto: pegue o código-fonte, dê uma estrela no repositório e comece a criar.