# Context Mode - AI 코딩 에이전트의 컨텍스트 윈도우를 98% 절약하는 MCP 서버

> Clean Markdown view of GeekNews topic #29106. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=29106](https://news.hada.io/topic?id=29106)
- GeekNews Markdown: [https://news.hada.io/topic/29106.md](https://news.hada.io/topic/29106.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2026-05-03T09:31:02+09:00
- Updated: 2026-05-03T09:31:02+09:00
- Original source: [github.com/mksglu](https://github.com/mksglu/context-mode)
- Points: 6
- Comments: 0

## Topic Body

- MCP 도구 호출이 컨텍스트 윈도우에 쏟아붓는 **원시 데이터를 절약**하고, 세션 지속 시간을 ~30분에서 ~3시간으로 연장  
- **컨텍스트 절약**: 원시 데이터를 **샌드박스로 격리**하여 315KB → 5.4KB로 **98% 감소**  
- **세션 연속성**: 파일 편집·git 작업·태스크·에러·사용자 결정 등 모든 이벤트를 SQLite+FTS5 에 저장 및 인덱싱한 뒤 BM25로 검색하여 세션 이벤트 추적·컴팩션 복구  
- **코드로 생각하기**: LLM이 데이터를 직접 읽는 대신 스크립트를 작성해 결과만 반환(함수를 세거나 할때, 컨텍스트 저장 없이 관련 코드를 작성해 실제 결과만 받아옴)  
- **출력 압축**: ~65-75% 출력 토큰 감소, 기술적 정확도 유지  
- **14개 플랫폼 지원**: Claude Code(플러그인 마켓플레이스), Codex CLI, Gemini CLI, Cursor, OpenCode, OpenClaw, Antigravity 등   
  - 각 플랫폼별 훅(PreToolUse, PostToolUse, SessionStart, PreCompact) 수준에 따라 세션 연속성 등급 차등 지원  
- **11개 MCP 도구** 제공: `ctx_execute`(11개 언어 런타임), `ctx_batch_execute`(다중 명령+검색 일괄 실행), `ctx_execute_file`(파일 샌드박스 처리), `ctx_index`/`ctx_search`(FTS5+BM25 기반 지식 베이스 인덱싱·검색), `ctx_fetch_and_index`(URL 페치·인덱싱·24시간 TTL 캐시), `ctx_stats`/`ctx_doctor`/`ctx_upgrade`/`ctx_purge`/`ctx_insight`  
- **보안**: Claude Code의 `permissions` 설정(deny/allow 패턴)을 MCP 샌드박스에도 동일 적용, 체이닝된 명령도 개별 분리 검사  
- **완전 로컬 실행**: 텔레메트리·클라우드 동기화·사용량 추적 없음, SQLite DB는 홈 디렉토리에 저장  
- Microsoft, Google, Meta, Amazon, NVIDIA, Stripe, Datadog 등 주요 기업 팀에서 사용 중  
- Elastic License 2.0(소스 공개, 호스팅 서비스 제공 금지)

## Comments



_No public comments on this page._
