Code Context by dotnetpowerNative VS Code source context for your coding agent on Linux, native Windows ( ResourcesRepository · Setup · Tool reference · Benchmark report · Issues · License VS Code's native right-hand Resources panel uses Marketplace metadata. For VSIX-only installations, use the links above instead. Performance &
|
| Task | CCTX off | CCTX on, warm | Off / on |
|---|---|---|---|
| Filename discovery | 4.724 ms | 0.304 ms | 15.54× |
| Literal search | 5.574 ms | 0.273 ms | 20.41× |
| Search + context | 5.680 ms | 0.319 ms | 17.80× |
| Known read + hash | 0.085 ms | 0.234 ms | 0.36× — slower |
| Fixed mixed suite | 4.246 ms | 0.284 ms | 14.92× |
| Token & agent acceleration suite | Baseline (rg + view) |
With CCTX (code_context / code_read) |
Savings / speedup |
|---|---|---|---|
| Rust 6-symbol lookup tokens | 15,028 tok (100L) / 25,133 tok (200L) | 4,031 tok (6 calls vs 20, 10.3× faster) | -73.2% to -84.0% tokens |
| Python 6-symbol lookup tokens | 13,997 tok (100L) / 24,609 tok (200L) | 2,141 tok (13.16× faster) | -84.7% to -91.3% tokens |
Rich documents (.pptx/.docx/.md #toc & #slide-N) |
Full-document read | Virtual #toc + #slide-N-M (5.4× faster DEFLATE) |
-86.3% to -98.9% tokens |
| Copilot A/B agent turns & cost | 7.00 calls / 5.00 turns / 20.31 s | 2.67 calls / 3.67 turns / 15.30 s | -50.0% tok · -25.4% AIU · -24.7% time |
Live status bar & cctx usage telemetry |
Unmonitored | Per-model tokens, 98.6% warm hit & AIC/$USD savings | -10% to -39% session bill |
Auto-loaded instructions & cctx prompt |
9,127 B / 2,048 tok prose | BPE-aligned formula spec (756 tok, EN/KO --compress) |
-63.1% instruction tokens |

Eight daemon sessions and 8,960 correctness-checked pairs; OS cache warm in both arms. Known small reads were slower through CCTX. Cold misses fall back instead of waiting. Full method, cold-start chart, raw data, and reproduction
Install
Preview · Local backend required. Supports native Windows (
cctx.exe, no WSL needed), Linux, WSL, or Linux SSH with stable Rust and ripgrep. VS Code 1.140+ is required; agent instructions (applyTo: "**") attach automatically.
1. Install the backend (Linux/WSL/SSH or native Windows):
git clone https://github.com/dotnetpower/code-context.git && cd code-context
bash scripts/install.sh && ~/.local/bin/cctx ping
# Native Windows (PowerShell): cargo build --locked --release; copy target\release\cctx.exe $HOME\.local\bin\cctx.exe
2. Download the VSIX. In VS Code choose Extensions → … → Install from VSIX….
3. Run Code Context: Getting Started in a trusted workspace (hover the CCTX N status bar item or run cctx usage --hours 24 to view live LLM model, token, cache hit, and AIC/$ cost savings).
On Windows local folders (C:\...), cctx.exe daemon starts automatically in the background:
Use
#cctxNativeFilesto find*Service*, then#cctxNativeContextfor nearby source.
No proposed API flags are needed. Marketplace publication is separate
from the downloadable VSIX. Windows, WSL, and troubleshooting details are in the setup guide.
The cache is optional: CACHE_MISS is not an empty search; continue with permitted host tools.