context-mode v1.0.163
This release adds support for two new AI coding agents — bringing context-mode to 17 supported platforms — alongside a broad round of cross-platform reliability work, security hardening, and context-efficiency improvements. Roughly 30 merged changes across ~20 resolved issues from 14 community contributors since v1.0.162.
Our thanks to everyone who reported, reviewed, and contributed this cycle. The breadth of fixes below — especially across Windows, the Pi/OpenCode/Codex adapters, and session-resume — came directly from the community surfacing real first-run friction.
Headline: GitHub Copilot CLI and Antigravity CLI support
context-mode now integrates with GitHub Copilot CLI and Antigravity CLI (agy), taking supported platforms from 15 to 17 — each with full hook + MCP wiring verified against the upstream agent's own published contract.
- GitHub Copilot CLI — detected via
COPILOT_HOME/~/.copilot; all six hook events wired (preToolUse,postToolUse,sessionStart,userPromptSubmitted,agentStop,preCompact); MCP via~/.copilot/mcp-config.json. - Antigravity CLI (
agy) — detected via~/.gemini; config + MCP through~/.gemini/config/; statusline left untouched.
Adapter behavior was validated line-by-line against each agent's published source before merge.
Contributor spotlight: @ken-jo
This cycle was carried in large part by @ken-jo, who landed nine pull requests — the two-adapter headline plus a full round of Codex hardening:
| PR | Area |
|---|---|
| #787 | GitHub Copilot CLI + Antigravity CLI adapters (15 → 17 platforms) |
| #834 | Hooks respect per-subagent ctx tool availability |
| #826 | Preserve Git Bash path conversion for native git on Windows |
| #808 | String-aware JSONC stripping for OpenCode config |
| #833 | Server exits cleanly on a fatal uncaught-exception storm |
| #837 | Isolate full-suite test environment assumptions |
| #771 | Codex plugin-manager root resolution for doctor/upgrade |
| #772 | Fix mobile overflow on Insights persona cards |
| #851 | Codex hardening: MCP tool annotations, PreToolUse modify/context, sentinel namespacing (#844 #845 #846) |
Thank you, @ken-jo.
Bug fixes
Adapters
- #787 Add GitHub Copilot CLI + Antigravity CLI support (@ken-jo).
- #822 Pi: stop mutating
systemPrompt; inject via context hook to preserve the provider prefix cache (@xuli500177). - #813 Pi: lazily bootstrap the MCP bridge for agent turns, fixing CLI subcommand hangs (@Gandem).
- #778 Pi: detect the package server via
PI_CODING_AGENT(@NgoQuocViet2001). - #849 OpenCode: write into an existing
opencode.jsoncinstead of shadowing it with a newopencode.json(verified against OpenCode's config precedence). - #808 OpenCode: string-aware JSONC stripping via a shared util (@ken-jo).
- #815 OpenCode: preserve
ZodEffectspreprocess andZodTypecoerce in zod3-to-v4 conversion (@LeoNardo-LB). - #771 Codex: resolve the plugin-manager root for
doctorandupgrade(@ken-jo). - #851 Codex: add MCP tool annotations so
ctx_*tools auto-approve instead of being cancelled, restore PreToolUse modify/context (gated on a runtime Codex-capability check so older builds fail closed), and namespace the MCP-readiness sentinel against cross-PID-namespace deletion — resolving #844, #845, #846 (@ken-jo).
Windows and the execution sandbox
- #796 Windows shell runtime selection + PowerShell UTF-8 handling (@Niche-alchemy).
- #839 PowerShell Unicode path handling, including a UTF-8 BOM for reliable script detection (@pradigmaz).
- #826 Preserve Git Bash path conversion for native
git(@ken-jo). - #782 Maven (
mvn) on Windows: route the baremvntoken tomvn.cmd, bypassing the MinGW shell branch that left the classpath POSIX-formatted. - #788 Stop leaking
.ctx-mode-*temp directories on Windows (retry cleanup around SQLite WAL/SHM handles) and run non-shellctx_executein the project working directory.
Hooks and routing
- #834 PreToolUse respects per-subagent ctx tool availability, so subagents that cannot reach
ctx_*are no longer hard-blocked (@ken-jo). - #773 Capture Stop turn-ends as
turn_endevents (@pg-adm1n). - #817 Add an opt-in command-size threshold so small Bash calls skip the routing nudge.
Sessions and search
- #780 Session resume no longer re-injects prior-leg events as current; earlier-leg context is preserved but clearly partitioned.
- #840
Data Referencesnow reference large captured tool-outputs viactx_searchinstead of inlining them, restoring the context-saving guarantee on long sessions. - #827
ctx_searchreturns results again on Windows: project-scope filtering now normalizes path separators on both sides. - #769 Flood-guard counter is now per-subagent rather than process-global, so parallel multi-agent workflows no longer starve each other.
- #797 Statusline resolves the session id from the stdin payload so per-session KPIs render (@0reo).
- #785 Insight counts
git_commitevents in commit metrics (@daniel-enqz).
Core, server, and runtime reliability
- #841 Hooks survive a
mise/asdf/nvmNode patch upgrade: a liveness guard re-resolves the runtime when the pinnedexecPathno longer exists. - #833 Server exits on a fatal uncaught-exception storm instead of spinning (@ken-jo).
- #848 Prevent SIGPIPE from killing a child process on background detach (@gboddaer).
- #803 Liveness guard for
resolveJavascriptRuntimeafter a Homebrew Node upgrade (@ousamabenyounes). - #805 Canonicalize
cacheRootinhealCacheMidSessionfor symlinked~/.claude(@ousamabenyounes). - #789 Enforce
MAX_CHUNK_BYTESto prevent FTS5 database bloat (@ousamabenyounes). - #765 Pin Claude
ctx_executeworking directory to the session cwd (@NgoQuocViet2001). - #823 Leave a breadcrumb link when sweeping old version directories (@nyxst4ck).
Security
- #763 Harden shell-command evaluation (subshell/operator-aware deny surface, allow-list piggybacking prevention) and fix test isolation (@pg-adm1n).
Install and upgrade
- #810 Skip
settings.jsonwiring only for true plugin installs, so a standalone install is still wired and a plugin install is never over-written (@eejd). - #768 Version manifests derive from
package.jsonvia a single source of truth that fails loud on drift.
Product
- The
ctx_insightanalytics experience has moved from a local dashboard to a hosted product. - The landing site and shareable banners now reflect all 17 supported adapters.
Contributors
Community contributors this cycle: @ken-jo, @ousamabenyounes, @NgoQuocViet2001, @pg-adm1n, @gboddaer, @pradigmaz, @nyxst4ck, @xuli500177, @LeoNardo-LB, @Gandem, @eejd, @0reo, @Niche-alchemy, @daniel-enqz.
Thank you for making context-mode better for everyone.
Install
npx skills add mksglu/context-mode
Existing installs: /context-mode:ctx-upgrade.
Links
- Full changelog: v1.0.162...v1.0.163
- License: Elastic License 2.0 (ELv2)