Context Engineering Middleware for Claude Code — intelligent codebase indexing, token-efficient file selection, and session persistence via local MD files
$git clone https://github.com/openanalystinc/10x-code-contextInstalls into the current project.
Install 10x-code-context by running `git clone https://github.com/openanalystinc/10x-code-context`, then use it for the current task and follow its documentation at https://github.com/openanalystinc/10x-code-context.
| 1 | <p align="center"> |
| 2 | <img src="https://10x.in/logo.png" alt="10x.in" width="120" /> |
| 3 | </p> |
| 4 | |
| 5 | <h1 align="center">10x-Code</h1> |
| 6 | |
| 7 | <p align="center"> |
| 8 | <strong>Context Engineering Middleware for Claude Code</strong><br/> |
| 9 | Intelligent codebase indexing, token-efficient file selection, and session persistence — all via local MD files |
| 10 | </p> |
| 11 | |
| 12 | <p align="center"> |
| 13 | <a href="https://10x.in">Website</a> · |
| 14 | <a href="#installation">Install</a> · |
| 15 | <a href="#slash-commands">Commands</a> · |
| 16 | <a href="#how-it-works">How It Works</a> · |
| 17 | <a href="#agents">Agents</a> |
| 18 | </p> |
| 19 | |
| 20 | --- |
| 21 | |
| 22 | > **Proprietary Software of [10x.in](https://10x.in)** — Designed, developed, and maintained by the **10x Team**. This plugin is the intellectual property of 10x.in. All rights reserved. |
| 23 | |
| 24 | --- |
| 25 | |
| 26 | ## What is 10x-Code? |
| 27 | |
| 28 | **10x-Code** is a production-grade context engineering middleware built by the **10x Team** that sits between your queries and Claude Code. It ensures every interaction has precisely the right context — no wasted tokens exploring irrelevant files, no losing track of what changed. |
| 29 | |
| 30 | **Before 10x-Code:** Claude Code explores your codebase from scratch on every query, reading files it doesn't need, losing context when the window fills up. |
| 31 | |
| 32 | **With 10x-Code:** Your codebase is indexed once, only relevant files are read per query, and everything is tracked in local MD files that persist across sessions. |
| 33 | |
| 34 | ### Key Highlights |
| 35 | |
| 36 | - **23 slash commands** across 6 categories — context, workflow, testing, research, git, operations |
| 37 | - **6 specialist agents** — context builder, test runner, code auditor, git tracker, knowledge guide, team lead |
| 38 | - **Dependency-aware indexing** — files ranked by import centrality, not just name matching |
| 39 | - **Zero-token context injection** — Glob + Grep lookups cost no API tokens |
| 40 | - **Session persistence** — commit-style task logging in local MD files |
| 41 | - **Hook system** — automated lifecycle hooks for session management and path protection |
| 42 | - **MCP server integration** — remote tools endpoint at `10x.in/api/mcp` |
| 43 | - **Cross-model optimized** — Haiku for scanning, Sonnet for coding, Opus for reasoning |
| 44 | |
| 45 | ## Installation |
| 46 | |
| 47 | ### npx (recommended) |
| 48 | |
| 49 | ```bash |
| 50 | npx 10x-code init |
| 51 | ``` |
| 52 | |
| 53 | ### bun |
| 54 | |
| 55 | ```bash |
| 56 | bunx 10x-code init |
| 57 | ``` |
| 58 | |
| 59 | ### Global install |
| 60 | |
| 61 | ```bash |
| 62 | npm install -g 10x-code |
| 63 | ccs init |
| 64 | ``` |
| 65 | |
| 66 | ### Manual |
| 67 | |
| 68 | ```bash |
| 69 | git clone https://github.com/10x-Anit/10x-Code-Context.git |
| 70 | # Copy each skill as its own directory (Claude Code requires one level deep) |
| 71 | for d in 10x-Code-Context/skills/*/; do |
| 72 | name=$(basename "$d") |
| 73 | cp -r "$d" ".claude/skills/ccs-$name/" |
| 74 | done |
| 75 | # Copy shared resources |
| 76 | cp -r 10x-Code-Context/{agents,templates,references} .claude/skills/_ccs/ |
| 77 | # Copy MCP config |
| 78 | cp 10x-Code-Context/.mcp.json .mcp.json |
| 79 | ``` |
| 80 | |
| 81 | > **Important:** Skills must be at `.claude/skills/<name>/SKILL.md` (one level deep). Do NOT nest deeper — Claude Code won't discover them. |
| 82 | |
| 83 | ## Slash Commands |
| 84 | |
| 85 | ### Context Management |
| 86 | |
| 87 | | Command | Description | |
| 88 | |---------|-------------| |
| 89 | | `/ccs-init` | Deep-research the codebase, generate project-map, architecture, file-index, conventions | |
| 90 | | `/ccs-status` | Show what's indexed, staleness, file counts, token savings estimate | |
| 91 | | `/ccs-refresh` | Rebuild index (full, incremental, or session-based) | |
| 92 | | `/ccs-query [question]` | Preview which files would be selected for a given query | |
| 93 | |
| 94 | ### Workflow |
| 95 | |
| 96 | | Command | Description | |
| 97 | |---------|-------------| |
| 98 | | `/ccs-plan [task]` | Plan a task with full dependency-aware context | |
| 99 | | `/ccs-build [task]` | Create/implement with tracked context and commit-style logging | |
| 100 | | `/ccs-refactor [scope]` | Scope a refactor — identify all affected files and dependencies | |
| 101 | | `/ccs-fix [issue]` | Fix bugs with dependency tracking, root-cause analysis, and verification | |
| 102 | | `/ccs-team [task]` | Spawn an agent team for complex multi-part tasks | |
| 103 | |
| 104 | ### Testing & Quality |
| 105 | |
| 106 | | Command | Description | |
| 107 | |---------|-------------| |
| 108 | | `/ccs-test [scope]` | Run tests, track results locally, suggest and auto-fix failures | |
| 109 | | `/ccs-audit [scope]` | Audit code for security, performance, patterns, accessibility, dead code | |
| 110 | | `/ccs-review [scope]` | Code review with full context — style, logic, security, performance | |
| 111 | |
| 112 | ### Research & Docs |
| 113 | |
| 114 | | Command | Description | |
| 115 | |---------|-------------| |
| 116 | | `/ccs-research [query]` | Search official docs, resolve errors, check deps, find best practices | |
| 117 | |
| 118 | ### Setup |
| 119 | |
| 120 | | Command | Description | |
| 121 | |---------|-------------| |
| 122 | | `/ccs-connect` | Set up MCP server — creates/updates .mcp.json, verifies connection | |
| 123 | |
| 124 | ### Git Workflow |
| 125 | |
| 126 | | Command | Description | |
| 127 | |---------|-------------| |
| 128 | | `/ccs-branch` | Create/switch branches with auto-generated context reference files | |
| 129 | | `/ccs-pr` | Prepare PR with full context — title, summary, blast radius, review areas | |
| 130 | | `/ccs-merge` | Merge with dependency checking — conflict prediction, resolution context | |
| 131 | | `/ccs-diff` | Smart diff with impact analysis — dependency chains, blast radius | |
| 132 | | `/ccs-sync` | Pull/rebase/push with conflict context and resolu |