mksglu/context-mode
Free, local plugin that keeps tool output out of your coding agent's context window. Sandbox and SQLite FTS5 search, 99% fewer bytes in context. Works with Claude Code, Codex, Pi, OpenCode, Gemini CLI, Copilot CLI and 4 more agents. Zero telemetry.
7164222 ↗TypeScript★ 33,307 (+151 today)lists: typescriptvitest-dedup 0.9.0
- Tests analyzed
- 4,411
- in 210 files
- Compared
- 87.9%
- 535 tests could not be compared
- Findings
- 334
- 332 warnings
- Exact duplicates
- 2
- error severity
Top candidates
The largest findings, linked to the analyzed commit. Review them before changing any test: identical bodies can still run under different setups the analyzer does not model.
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
detectPlatform > returns opencode when OPENCODE=1 is set
tests/adapters/detect.test.ts:119–124 ↗detectPlatform > does NOT return kilo when KILO is unset and only OPENCODE is set
tests/adapters/detect.test.ts:209–214 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
routePreToolUse > unknown tools > returns null for Glob
tests/hooks/core-routing.test.ts:817–820 ↗routePreToolUse > External MCP tools (#529) > does NOT match plain Bash/Read/etc as external MCP
tests/hooks/core-routing.test.ts:961–967 ↗
- Duplicate suitewarning
2 suites have identical bodies under an equivalent context; per-test findings between the copies are suppressed, not repeated.
OpenCodeAdapter for KiloCode > buildNodeCommand opts parameter for in-process plugin platforms
tests/adapters/opencode.test.ts:706–737 ↗OpenCodeAdapter for KiloCode > buildNodeCommand opts parameter for in-process plugin platforms
tests/adapters/opencode.test.ts:739–770 ↗
- Near-duplicate testwarning
5 tests execute the same behavior events in the same order under an equivalent context, but their normalized bodies differ; a supported normalization may explain the similarity, but equivalence is not proven, so the likely remedy is to cons.
Bash structurally-bounded allowlist (#463) > pwd / whoami / hostname / date — no nudge
tests/core/routing.test.ts:115–121 ↗Bash structurally-bounded allowlist (#463) > echo / printf / which / type / command -v — no nudge
tests/core/routing.test.ts:123–135 ↗Bash structurally-bounded allowlist (#463) > git read-only subcommands — no nudge
tests/core/routing.test.ts:137–159 ↗Bash structurally-bounded allowlist (#463) > --version / -V probes — no nudge
tests/core/routing.test.ts:161–172 ↗
and 1 more
- Near-duplicate testwarning
2 tests execute the same behavior events with at least one different ordering under an equivalent context; if the reordered statements are independent this may be redundant coverage, but equivalence is not proven, so the likely remedy is to.
detectPlatform > returns kilo when KILO and OPENCODE both set (Kilo is OpenCode fork — fork listed before parent)
tests/adapters/detect.test.ts:173–179 ↗detectPlatform > returns kilo when OPENCODE set first then KILO (assignment order must not matter)
tests/adapters/detect.test.ts:181–187 ↗
Findings by rule
- Parameterization candidate324
- Near-duplicate test7
- Duplicate test2
- Duplicate suite1
Not compared
- context could not be resolved139
- imported helper unreadable396
No finding is reported for these tests, which does not mean they have no duplicates.
Appearances
| Day | Rank | Commit | Version | Tests | Compared | Findings | Duplicates |
|---|---|---|---|---|---|---|---|
| 2026-11-03 | 8 | 7164222 | 0.9.0 | 4,411 | 87.9% | 334 | 2 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/mksglu/context-mode.git
cd context-mode
git checkout 7164222685f71510e26bc0f60b177300fa370f4f
npx [email protected] .