Repository navigation
Releases
Intelligent Semantic Chunking & Complete Code Context
Version 2.0.0 — The Semantic Intelligence Update - Major update!
Release Date: November 21, 2026
🌟 Headline: Intelligent Semantic Chunking & Complete Code Context
Prior to v2.0, large files were cut into chunks based on fixed line and byte boundaries. While fast, this occasionally split functions in half or separated an error message from its stack trace.
v2.0.0 introduces an AST-aware semantic chunking engine (lib/chunker.js). Instead of cutting text arbitrarily, Context Mode understands the structure of code, configs, logs, and prose—ensuring agents receive complete, unbroken methods and sections.
✨ What’s New in 2.0.0
1. Language-Aware Semantic Chunking (15+ Languages)
Context Mode now includes dedicated syntax parsers that respect logical block boundaries:
- JavaScript & TypeScript (JSX / TSX): Keeps full class bodies, methods, async functions, arrow functions, and JSDoc comment blocks together.
- Python: Tracks indentation levels, class definitions, method stacks, and docstrings without separating decorators from their functions.
- Systems & OOP (Java, C#, C, C++, Go, Rust, PHP, Swift, Kotlin, Scala): Tracks brace depth, namespaces, annotations, and struct/implementation blocks.
- Shell & PowerShell: Preserves function declarations, parameter blocks, and pipeline filters.
- SQL: Intelligently chunks at statement boundaries (
CREATE TABLE,SELECT, stored procedures).
2. Hierarchical Markdown & Document Sectioning
- Chunks Markdown by heading level (
# H1down to###### H6). - Prepends breadcrumb navigation context (e.g.
# Architecture > ## Storage Engine > ### SQLite Schema). - Never splits fenced code blocks, tables, or itemized lists across chunks.
3. Structured Configurations & Markup
- JSON & JSONC: Chunks on top-level keys or array slices, preserving valid JSON objects.
- YAML: Splits along document dividers (
---) and root-level keys. - TOML & INI: Keeps section headers (
[database]) and key-value groups intact. - HTML/XML & CSS/SCSS: Preserves structural tags and stylesheet rules.
4. Stack Trace & Error Log Grouping
- In log files, multi-line error traces (such as Java, Python, or Node.js
at ...,Caused by:) are guaranteed to remain grouped with their originating timestamp and error header in a single chunk.
5. Context-Rich Search Results (ctx_search)
- Complete Method Delivery: When a matched function or section fits within the 2,048-byte snippet budget,
ctx_searchreturns the entire method intact—no truncated snippets or missing lines. - Line Range Metadata: Every search result now includes explicit
startLine,endLine, andcontextscope breadcrumbs (e.g.,Lines 42–65 | class FlightComputer > calculateDeltaV()), giving agents instant orientation.
6. SQLite Schema v4
- Virtual tables
chunks(BM25) andchunks_tri(Trigram) now feature unindexed metadata columns for zero-overhead structural tracking, with automatic database migration from previous versions.
📊 Release Summary Matrix
| Feature / Capability | v1.4.0 | v1.5.0 | v2.0.0 |
|---|---|---|---|
| Tool Read Cutoff & Hook Interception | ✅ Dynamic line scaling | ✅ Auto-index on hook | ✅ Auto-index on hook |
| File Exemption Controls | ✅ 1-click category pills | ✅ Injected into agent context | ✅ Injected into agent context |
| Indexing Model | Manual (ctx_index) |
✅ Just-In-Time (ctx_search) |
✅ Just-In-Time (ctx_search) |
| MCP Tool Surface | 8 tools (with ctx_index) |
✅ 7 streamlined tools | ✅ 7 streamlined tools |
| Log Search Strategy | Standard | ✅ Reverse / Tail-First | ✅ Tail-First + Stack Trace Grouping |
| Chunking Engine | Byte & line buckets | Byte & line buckets | ✅ AST & Syntax-Aware Semantic Engine |
| Code Structure Preservation | Partial | Partial | ✅ 15+ Languages, Classes & Methods Intact |
| Markdown Chunking | Line-based | Line-based | ✅ Heading Breadcrumbs (# H1 > ## H2) |
| Search Result Snippets | Centered window slice | Centered window slice | ✅ Complete Intact Method (up to 2 KB) |
| Search Metadata | Score & source | Path & score | ✅ Lines X–Y, Enclosing Scope Context |
| SQLite Schema | Schema v2 | Schema v3 (path PK) |
✅ Schema v4 (Unindexed Scope Metadata) |
v1.5.0
Version 1.5.0 — The Zero-Effort Search & Auto-Index Update
Release Date: November 21, 2026
🌟 Headline: Just-In-Time Indexing & Unified File Search
In v1.5, we eliminated the friction of manual indexing. Agents no longer have to run ctx_index before searching. You simply search any file, directory, or URL, and Context Mode handles the rest automatically.
✨ What’s New in 1.5.0
1. Just-In-Time (JIT) Auto-Indexing (ctx_search)
- Simply pass any file path, directory, or URL to
ctx_search(queries: [...], path: "path/to/target"). - Context Mode inspects the target's disk modification time (
mtime). If unindexed or updated, it indexes it automatically on-demand before running the search.
2. Streamlined 7-Tool Catalog (Retirement of ctx_index)
- Retired the obsolete
ctx_indextool and replaced internal surrogatesourceIdnumbers with intuitive workspace file paths. - The plugin surface is now a focused suite of 7 dedicated MCP tools:
ctx_search,ctx_execute,ctx_batch,ctx_resume,ctx_stats,ctx_doctor, andctx_purge.
3. Automatic Indexing Redirection on Hook Interception
- When an agent attempts an unbounded file read or command dump (
cat,Get-Content,type) exceeding the 8 KB cutoff, thePreToolUselifecycle hook automatically indexes the file into SQLite FTS5 (up to 50 MB) and points the agent toctx_search.
4. Tail-First Log Search (reverse: true)
- Added
reverse: truetoctx_search. When inspecting server logs or debug traces, this sorts chunks in reverse chronological order so agents see the most recent errors and fatal crashes first.
5. Dynamic Agent Transparency Notices
- Automatically informs the LLM at session start of the active read limit (e.g. 8 KB) and exempt file extensions, clarifying that the cutoff applies to single tool reads and is not the model’s context window.
- Mid-session adjustments in the sidecar dashboard immediately update the agent on its next turn.
6. Sidecar Max Auto-Index Selector
- Added a dropdown in the dashboard (
1 MB,5 MB,10 MB,50 MB,100 MB,Off) to customize the maximum file size automatically indexed during hook interceptions.
Version 1.4.0 — The Custom Controls & Subagent Unification Update
Release Date: November 18, 2026
🌟 Headline: One-Click Category Controls & Multi-Agent Parity
v1.4 modernized the sidecar dashboard controls and ensured that subagents invoked by Antigravity adhere to the same context-budgeting rules and share telemetry with the primary workspace.
✨ What’s New in 1.4.0
1. 1-Click File Category Exemption Pills
- Replaced cluttered file extension lists with clean, one-click category pills in the sidecar UI:
- Images (
.png,.jpg,.svg, etc.) — Enabled by default - Documents (
.pdf,.docx,.xlsx, etc.) — Enabled by default - 3D Models (
.blend,.fbx,.obj, etc.) — Enabled by default - Media (
.mp3,.mp4,.wav, etc.) — Enabled by default - Archives (
.zip,.tar,.gz, etc.) — Enabled by default - Source Code (
.js,.py,.rs,.go, etc.) — Protected by default
- Images (
2. Custom File Extensions Manager
- Easily add or remove custom project extensions (e.g.
.parquet,.arrow,.csv,.dump) directly in the sidecar UI, persisting immediately in SQLite.
3. Unified Subagent Lifecycle Protection
- Subagents now share the exact same
PreToolUselifecycle gates as primary agents, preventing spawned subagents from dumping massive files. - Subagent metrics and interceptions link directly into the parent conversation dashboard with identifiable subagent badges.
4. Dynamic Line Slicing
- Replaced hardcoded line limit warnings (
head -n 50) with dynamic maximum thresholds that scale automatically with the active cutoff limit (e.g., 2 KB allows $\le$50 lines, 8 KB allows $\le$200 lines, 32 KB allows $\le$800 lines).
5. Path Sanitization & Safe Quoting
- Strips enclosing quotes (
"...",'...'), handles Windows backslash paths cleanly, and decodes URI schemes (file:///) to prevent false interceptions.
Subagent & Primary Agent Unified Lifecycle Hooks. Lifetime Cutoff Propagation to New Sessions and Conversations
[1.3.0] - 2026-11-15
Added
- Subagent & Primary Agent Unified Lifecycle Hooks:
PreToolUsenow evaluates all lifecycle checks (un-paged file reads, unbounded command dumps, active cutoffs, and file category exemptions) identically across both primary agents and subagents. - Shared Conversation Dashboard for Subagents: Interceptions and metrics generated by subagents now resolve to the root/parent conversation ID (
resolveSharedSessionId), feeding directly into the active conversation dashboard in real-time. Added dedicated subagent badges in the recent activity feed to indicate which subagent triggered the event. - Session Lifecycle Overrides Reset: Added
clearSessionOverrides()toContextModeStore. Wired into theSessionStarthook and server process initialization so that when a new application session begins (app restart), transient session overrides are cleared and the session starts fresh with the Lifetime default. - Direct Indexing Telemetry (
ctx_index):ctx_indexnow records an event in theeventsjournal upon successful indexing, immediately updating dashboard call counts and crediting kept-out tokens.
Fixed
- Lifetime Cutoff Propagation to New Sessions and Conversations: Changing the cutoff in Lifetime scope (
"all","lifetime", ornull) now updatescutoff:globalin SQLite and clears any transient session-level (cutoff:session:app) and fallback default (cutoff:session:default) overrides. New sessions and new conversations automatically inherit the new Lifetime cutoff as their default. - Accurate Context Saved Calculations (Eliminated Double-Counting): Refactored
getStats()to prevent execution outputs from being counted twice acrossevents(sandbox_bytes) andsources(bytes_total). Raw, returned, and kept-out bytes are now computed on a per-event basis withMAX(sandbox_bytes, bytes, returned_bytes), ensuring passthrough commands with full returns do not penalize the savings of other tools. - MCP Server Root Session Binding:
server.jsandcreateToolsnow bind session ID resolution toprocess.env.ANTIGRAVITY_ROOT_CONVERSATION_IDandprocess.env.ANTIGRAVITY_PARENT_CONVERSATION_ID, ensuring MCP tool calls from subagents share indexed chunks and search states with the primary conversation.
Cosmetic tweaks, Fixed concurrent test runner issue
[1.2.1] - 2026-11-15
Fixed
- CI Test Database Contention (
CONTEXT_MODE_DB_PATH): UpdatedgetDefaultDbPath()inlib/store.jsto respectprocess.env.CONTEXT_MODE_DB_PATH, and configuredtests/test_mcp.jsandtests/test_hooks.jsto run in dedicated isolated temporary directories. Prevents database lock contention (SQLITE_BUSY) during concurrent test execution on multi-core CI runners. - SQLite Busy Timeout: Added
PRAGMA busy_timeout = 5000;to database initialization with fallback handling to ensure robust concurrency when multiple processes interact with SQLite in WAL mode. - Category Exemption Group Toggles: Replaced the long list of individual file exemption chips in the dashboard with clean, one-click category pills (
Images,Documents,3D Models,Music,Video,Archives, andSource Code). All binary categories default to enabled, with Source Code disabled by default. Added optimistic UI state switching intoggleCategory()for instant feedback upon click. - Streamlined Custom File Types: Restricted the dashboard's exemption tags container to only display user-added custom file types (e.g.
.csv,.parquet,.log) with quick removal buttons (×). - Status Banner Cleanup: Replaced
"Live Telemetry"with"Showing stats for: <SCOPE>"and removed distracting animations (animate-ping,animate-pulse) for steady, non-blinking visual indicators. - Dynamic Upper-Right Version Badge: Displays the active plugin version badge (
v1.2.1) in the top-right header cluster of the dashboard, populated dynamically frompackage.jsonvia/api/stats. - Documentation & Formatting Polishing: Removed all LaTeX math syntax from
README.md, replacing it with standard Unicode (≤ 50 lines,≤ 200 lines,≤ 800 lines), and consolidated redundant configuration tables.

Fixed quoted filename bug. Major overhaul of dashboard.
[1.2.0] - 2026-11-15
Fixed
-
Quoted Path Stripping in
PreToolUse: Added path argument sanitization to strip enclosing quotes ("...",'...'), decode URI schemes (file:///), and trim line anchor fragments (#L...), preventingfs.existsSyncfailures on Windows when tool calls pass quoted file paths. -
Interception Journaling & Telemetry: Added event journaling on all blocked
read_fileandrun_commandtool calls directly into SQLite (eventstable). Interceptions now immediately updatetokensPreserved,keptOutBytes,reductionRate, and the Prompt Payload Comparison bar in the sidecar dashboard. -
Dynamic Command Inspection (No Hardcoded Extension Whitelist): Refactored
run_commandinPreToolUse(inspectCommand) to eliminate hardcoded extension regexes completely. Commands invokingcat,type,Get-Content, orgcnow dynamically extract target paths, check them against the active SQLite cutoff, and respect user-configured exemptions. Safe small files ($\le$ cutoff) and bounded commands (-Head,| Select-Object -First) are allowed, while wildcard and unpaged dumps are blocked. -
UTF-16 & Known Text Exemption Safeguard: Added
KNOWN_TEXT_EXTENSIONScheck and UTF-16/UTF-8 BOM header inspection to prevent text and code files (such as.csand.md) containing null bytes from being misidentified as binary files and bypassing size cutoffs. -
Live Interception Feed in Dashboard: Updated the "Recent Indexed Sources & Interceptions" dashboard panel to display blocked calls (
🛡️ Blocked <tool>: <path>) with exact saved token metrics alongside indexed FTS5 sources. -
Renamed 'Sandbox Cap' to 'Preview Limit': Replaced the confusing "Sandbox Cap" label with
PREVIEW LIMIT, clearly indicating the maximum preview slice of command and script output returned into the chat. -
Clickable 'Active' / 'Paused' Toggle: Turned the status badge into an interactive toggle button. Users can click to switch Context Mode between Active (pulsing green dot) and Paused (amber dot). When paused, the
PreToolUsehook allows all tool calls through without size checks or command interception, persisting the paused state across active scopes in SQLite. -
Fixed Feed Width Truncation: Removed the hardcoded
max-w-[210px]container constraint and arbitrary string slice in the dashboard feed, replacing it with responsivemin-w-0 flex-1flex sizing and clean path formatting (formatItemPath) so file and command paths scale dynamically to the full width of the dashboard panel. - Reformatted Metric Rows & Sidebar Layout: Redesigned the 4 performance metrics into sleek, compact horizontal key-value rows inside a single card (labels on the left, values right-aligned) with subtle hairline dividers. This replaces the tall vertical 12-line card stack in normal sidebars with an information-dense, space-efficient ~140px card that naturally scales to 2 columns on wide screens without wrapping or wasting space.
-
Unified Lifecycle Gates & System Health (Moved to Bottom): Combined
Active Lifecycle GatesandEngine & Storage Healthinto a single cohesive reference card with an inlineHEALTHYbadge, streamlined gate checkmarks, and compact engine specs. Moved this card to the very bottom of the dashboard so actively changing interactive panels (metrics, exemptions, search, and the live interception feed) remain prominently visible at the top. -
Dual-Color Single Progress Bar: Consolidated the separate raw dump and sandboxed slice progress bars into a single, compact dual-color progress bar placed directly beneath the Live Telemetry status banner. It visually depicts % of context saved in emerald green (
#00e599) and prompt payload in rose (#f43f5e), with live% savedtext. Removed the redundant middle comparison card and sub-labels since the metric cards directly below inform the user of all exact figures. -
User-Friendly Dashboard Terminology: Replaced cryptic architecture jargon (such as
"SQLite FTS5 Reciprocal Rank Fusion & Sandbox Execution","Porter BM25 + Trigram RRF", and"Tokens diverted from LLM") with clear, value-focused explanations highlighting token savings, context reduction, and keeping LLMs smart, focused, and less forgetful. -
Context-Focused Language & Removal of Log Fixation: Changed card sub-labels from confusing "prompt bloat" phrasing to
"Context reduced by <size>"and"Context window preserved", clarifying that user prompts are never deleted or truncated. Removed all narrow fixations on "logs" throughout tooltips, input placeholders, and lifecycle gates to accurately represent all large files, code, and terminal outputs.
Major improvements and enhanced dashboard
[1.1.0] - 2026-11-14
Added
- 3-Way Telemetry Scope Toggle: Added seamless switching between Conversation (active chat UUID), Session (current application run since app restart), and Lifetime (all-time cumulative database metrics).
- Interactive Cutoff Dropdown: Scoped cutoff selector (
2 KB,4 KB,8 KB,16 KB,32 KB,64 KB,none) with persistent SQLite storage and fallback hierarchy. - Dynamic Line Slice Gating:
PreToolUseline limit scales dynamically with the cutoff setting (e.g. 2 KB: $\le$50 lines, 4 KB: $\le$100 lines, 8 KB: $\le$200 lines, 16 KB: $\le$400 lines, 32 KB: $\le$800 lines, 64 KB: $\le$1600 lines, none: unrestricted). - Dynamic Sandbox Preview Cap:
ctx_executereturned preview text automatically scales to double the active cutoff setting. - Default MS Office Exemptions: Added
.docx,.doc,.xlsx,.xls,.pptx,.pptalongside.pdf, images, and audio/video files to default exemptions. - Clickable Recent Sources: Click any indexed source in the dashboard to immediately open and view its raw chunks in the Search Inspector.
- Exemptions Management Panel: Live tag editor to add/remove custom file extensions with persistence note and default reset.
- Tooltips on Dashboard Metrics: Added rich context tooltips across all metric cards, lifecycle gates, and SQLite health indicators.
- Automated LRU Database Pruning: Capped stored sources (50 per session, 200 total) to prevent unbounded SQLite growth over long-term use.
Fixed
- Fixed sidecar token authentication and added dual
GET&POSTendpoint support for/api/cutoff,/api/exemptions, and/api/purgeto prevent 401/405 errors inside aux pane webviews. - Fixed MCP tool server defaulting to generic session instead of binding to
process.env.ANTIGRAVITY_CONVERSATION_ID. - Fixed dashboard metrics crashing on string formatted numbers by adding explicit numeric coercion.

Initial release
[1.0.1] - 2026-11-14
Added
- Added screenshot of sidecar dashboard to README.md
[1.0.0] - 2026-11-14
Added
-
Native Antigravity App Plugin Bundle: Complete manifest and customization suite (
plugin.json,hooks.json,mcp_config.json). -
Stdio MCP Server: Zero-dependency JSON-RPC server implementing the 8 core context tools (
ctx_execute,ctx_batch,ctx_index,ctx_search,ctx_resume,ctx_stats,ctx_doctor,ctx_purge). -
SQLite FTS5 Storage Engine: Native database layer using Node.js
DatabaseSync(node:sqlite) with WAL mode, chunked source storage, and session journaling. -
Hybrid Search & Ranking: Combined Porter BM25 stemming and Trigram full-text search merged via Reciprocal Rank Fusion (
$RRF_{k=60}$ ). -
Antigravity Lifecycle Hooks:
-
PreToolUse: Automated gating that blocks unbounded log dump commands (cat,Get-Contenton raw.log) and un-paged file reads over 8 KB. -
SessionStart: Injects session state continuity and active context protection advice.
-
-
Configurable Cutoffs via Environment Variables:
-
CONTEXT_MODE_MAX_READ_BYTES: Configurable ceiling for un-paged file reads (defaults to 8 KB / 8,192 bytes). -
CONTEXT_MODE_MAX_LINE_RANGE: Maximum allowed line range slice without pagination rejection (defaults to 200 lines).
-
-
Auxiliary Pane Sidecar Web UI: Dedicated sidecar dashboard (
sidecars/dashboard/):-
sidecar.jsonconfigured forSIDECAR_UI_ENTRYPOINT_AUX_PANE. -
server.mjsbackend powered bysidecar_sdkwith fallback standalone HTTP server. -
index.htmlreal-time telemetry dashboard featuring reduction rate metrics, volume compression visualization, an interactive FTS5 search inspector, recent sources, and session purge controls.
-
-
Agent Skill & Behavioral Rules: Bundled
skills/context-mode/SKILL.md(Thinking in Code) andrules/AGENTS.md(context budgeting laws). -
Test Suite: Native
node:testtest harness covering storage, execution sandbox, tools, hooks, and MCP JSON-RPC protocol with 100% pass rate. -
CI/CD Automation: Automated
publish.ymlGitHub Actions workflow for npm and GitHub Releases.