Skip to content

About

CodeMode plugin for Google Antigravity — batch workspace, shell, and MCP tool calls into a single isolated JS/TS execution turn.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agy-codemode logo

agy-codemode v2.0.0

Token-first CodeMode plugin for Google Antigravity — collapse workspace discovery, symbol-sliced reads, multi-file edits, test checks, Git, and MCP calls into a single atomic JS/TS turn.

English · Русский · Architecture · API Reference · Changelog

Antigravity Plugin v2.0.0 · Node.js 18+ · 0 Dependencies · MIT


Highlights in v2.0

  • Single-Turn Pipeline Architecture (inspect + execute): Cuts tools/list schema footprint in half while steering models to combine locate -> readSymbol -> batchEdit -> check in one atomic call instead of splitting read/edit/test across multiple turns (legacy edit_files, run_checks, and git_ops aliases remain supported on tools/call).
  • Declarative Batch Primitives:
    • outline() now extracts JS/TS class methods, arrow functions, and exact line..endLine boundaries.
    • readSymbol(path, "Class.method") reads only the target method/function with line numbers.
    • grep(query, { filesOnly: true, contextLines: 2 }) avoids follow-up readMany() turns.
    • batchEdit([...]) applies fuzzy-aware replacements across N files atomically with a compact digest.
    • check("npm test") strips passing test spam and extracts structured { file, line, message } diagnostics + tail on failure.
  • Zero 2x Serialization Bloat & Head+Tail Output Slicing: Non-enumerable .text/.absolutePath getters cut read/readMany, fetch, and JSON MCP/Serena return payloads by 50%+; utf8HeadTailSlice preserves trailing stack traces on truncation; verifySyntax: true auto-rolls back broken JS/TS/JSON edits.

Quick Start

git clone https://github.com/danzerzine/agy-codemode.git ~/.gemini/config/plugins/codemode
node ~/.gemini/config/plugins/codemode/scripts/cli.mjs doctor
node ~/.gemini/config/plugins/codemode/tests/verify-plugin.mjs
node ~/.gemini/config/plugins/codemode/tests/benchmark.mjs

Monitor live Desktop file/shell actions or view cumulative token savings:

node ~/.gemini/config/plugins/codemode/scripts/cli.mjs watch
node ~/.gemini/config/plugins/codemode/scripts/cli.mjs stats

License

MIT

About

CodeMode plugin for Google Antigravity — batch workspace, shell, and MCP tool calls into a single isolated JS/TS execution turn.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages