AI-Native Excel Automation Engine for Autonomous Agents and Data Pipelines.
Python
4
13 commits
updated Oct 12, 2026
The Enterprise-Grade, AI-Native Excel Automation Engine for Autonomous Agents & Data Pipelines.
The Problem • Key Features • Quickstart • CLI Interface • Comparison Matrix • Contributing
Building autonomous AI agents (LangChain, AutoGen, CrewAI, MCP Sidecars) or robotic process automations that interact with Microsoft Excel is notoriously fragile:
0x8001010A): Classic COM libraries immediately crash with RPC_E_SERVERCALL_RETRYLATER if a user is actively typing in a cell.EXCEL.EXE processes in background memory, locking files forever.Antigravity Excel Engine completely eliminates these friction points with an adaptive Dual-Core runtime, automated Token Compression, self-healing COM lock recovery, and a guaranteed Zero-Leak process lifecycle.
Ctrl+Z Undo history.#VALUE!, #REF!, #DIV/0!, #N/A, #NAME?) before saving or reporting back to agents.--json flags for zero-friction integration into agentic workflows and tool-calling frameworks.flowchart TD
Agent[🤖 Autonomous AI Agent / Data Pipeline] --> Engine[Antigravity Excel Engine API]
Engine --> Detector{Target Workbook Open in Excel?}
Detector -- Yes --> COM[🚀 Live COM Engine\nwin32com.client]
Detector -- No --> Headless[⚡ Headless Engine\nOpenPyXL]
COM --> Guardian[🛡️ Self-Healing Backoff Guardian\n0x8001010A Auto-Recovery]
Guardian --> LiveOps[Real-time Recalculation & Undo Support]
Headless --> FastOps[High-Speed In-Memory File Processing]
LiveOps --> Streamer[📉 Token-Optimized CSV Streamer\n-75% LLM Context Overhead]
FastOps --> Streamer
Streamer --> Agent
# Clone the repository
git clone https://github.com/FranciscoGrandon/antigravity-excel-engine.git
cd antigravity-excel-engine
# Install dependencies
pip install -r requirements.txt
from antigravity_excel_core import AntigravityExcelEngine
# Initialize (auto-detects Live COM vs Headless OpenPyXL)
engine = AntigravityExcelEngine(mode="auto", file_path="financial_model.xlsx")
# 1. Read token-optimized stream (ideal for LLM prompt context)
csv_stream = engine.get_range_as_csv("A1:D50")
print(csv_stream)
# 2. Apply declarative atomic updates with styles & formulas
engine.set_cells({
"A1": {
"value": "Total Revenue",
"cellStyles": {"fontWeight": "bold", "backgroundColor": "#0E2E63", "fontColor": "#FFFFFF"}
},
"B1": {
"formula": "=SUM(B2:B10)",
"cellStyles": {"numberFormat": "$#,##0.00"}
},
"A2": {
"value": "Autonomous Agent Note",
"note": "Audited and verified by Antigravity Engine"
}
}, autofit=True)
# 3. Audit for broken formulas
errors = engine.check_formula_errors("A1:B10")
if errors:
print(f"⚠️ Formula errors found: {errors}")
# 4. Commit changes safely
engine.save()
Every command supports deterministic --json output, making it directly compatible with subagents, bash scripts, and tool-calling orchestrators:
# Inspect Excel environment and active workbooks
python antigravity_excel_cli.py status --json
# Extract range as token-dense CSV stream
python antigravity_excel_cli.py get-csv A1:D50 --file "data.xlsx" --json
# Apply batch cell updates from JSON payload with auto-fitting
python antigravity_excel_cli.py set-cells --input-file payload.json --autofit --json
# Audit formulas for evaluation anomalies
python antigravity_excel_cli.py check-errors A1:Z100 --file "model.xlsx" --json
| Feature | Antigravity Excel Engine | xlwings | openpyxl | Pure win32com |
|---|---|---|---|---|
| AI Prompt Token Optimization | ✅ Yes (-75%) | ❌ No | ❌ No | ❌ No |
| Dual-Core (Live COM + Headless) | ✅ Automatic | ❌ Live only | ❌ Headless only | ❌ Live only |
Self-Healing COM Locks (0x8001010A) | ✅ Built-in | ❌ Crashes | N/A | ❌ Crashes |
| Formula Error Sentinel | ✅ Built-in | ❌ Manual | ❌ No evaluation | ❌ Manual |
| Guaranteed Zero Zombie Leaks | ✅ Yes | ⚠️ Occasional | ✅ Yes | ❌ Prone to leaks |
| Deterministic CLI for Agents | ✅ Native JSON | ❌ No | ❌ No | ❌ No |
Contributions, issue reports, and feature suggestions are highly appreciated! Please consult our CONTRIBUTING.md guide before submitting a Pull Request.
Developed with pride by Francisco Grandón Vergara.
Released under the MIT License.
AI-Native Excel Automation Engine for Autonomous Agents and Data Pipelines.
Python
4
13 commits
updated Oct 12, 2026
The Enterprise-Grade, AI-Native Excel Automation Engine for Autonomous Agents & Data Pipelines.
The Problem • Key Features • Quickstart • CLI Interface • Comparison Matrix • Contributing
Building autonomous AI agents (LangChain, AutoGen, CrewAI, MCP Sidecars) or robotic process automations that interact with Microsoft Excel is notoriously fragile:
0x8001010A): Classic COM libraries immediately crash with RPC_E_SERVERCALL_RETRYLATER if a user is actively typing in a cell.EXCEL.EXE processes in background memory, locking files forever.Antigravity Excel Engine completely eliminates these friction points with an adaptive Dual-Core runtime, automated Token Compression, self-healing COM lock recovery, and a guaranteed Zero-Leak process lifecycle.
Ctrl+Z Undo history.#VALUE!, #REF!, #DIV/0!, #N/A, #NAME?) before saving or reporting back to agents.--json flags for zero-friction integration into agentic workflows and tool-calling frameworks.flowchart TD
Agent[🤖 Autonomous AI Agent / Data Pipeline] --> Engine[Antigravity Excel Engine API]
Engine --> Detector{Target Workbook Open in Excel?}
Detector -- Yes --> COM[🚀 Live COM Engine\nwin32com.client]
Detector -- No --> Headless[⚡ Headless Engine\nOpenPyXL]
COM --> Guardian[🛡️ Self-Healing Backoff Guardian\n0x8001010A Auto-Recovery]
Guardian --> LiveOps[Real-time Recalculation & Undo Support]
Headless --> FastOps[High-Speed In-Memory File Processing]
LiveOps --> Streamer[📉 Token-Optimized CSV Streamer\n-75% LLM Context Overhead]
FastOps --> Streamer
Streamer --> Agent
# Clone the repository
git clone https://github.com/FranciscoGrandon/antigravity-excel-engine.git
cd antigravity-excel-engine
# Install dependencies
pip install -r requirements.txt
from antigravity_excel_core import AntigravityExcelEngine
# Initialize (auto-detects Live COM vs Headless OpenPyXL)
engine = AntigravityExcelEngine(mode="auto", file_path="financial_model.xlsx")
# 1. Read token-optimized stream (ideal for LLM prompt context)
csv_stream = engine.get_range_as_csv("A1:D50")
print(csv_stream)
# 2. Apply declarative atomic updates with styles & formulas
engine.set_cells({
"A1": {
"value": "Total Revenue",
"cellStyles": {"fontWeight": "bold", "backgroundColor": "#0E2E63", "fontColor": "#FFFFFF"}
},
"B1": {
"formula": "=SUM(B2:B10)",
"cellStyles": {"numberFormat": "$#,##0.00"}
},
"A2": {
"value": "Autonomous Agent Note",
"note": "Audited and verified by Antigravity Engine"
}
}, autofit=True)
# 3. Audit for broken formulas
errors = engine.check_formula_errors("A1:B10")
if errors:
print(f"⚠️ Formula errors found: {errors}")
# 4. Commit changes safely
engine.save()
Every command supports deterministic --json output, making it directly compatible with subagents, bash scripts, and tool-calling orchestrators:
# Inspect Excel environment and active workbooks
python antigravity_excel_cli.py status --json
# Extract range as token-dense CSV stream
python antigravity_excel_cli.py get-csv A1:D50 --file "data.xlsx" --json
# Apply batch cell updates from JSON payload with auto-fitting
python antigravity_excel_cli.py set-cells --input-file payload.json --autofit --json
# Audit formulas for evaluation anomalies
python antigravity_excel_cli.py check-errors A1:Z100 --file "model.xlsx" --json
| Feature | Antigravity Excel Engine | xlwings | openpyxl | Pure win32com |
|---|---|---|---|---|
| AI Prompt Token Optimization | ✅ Yes (-75%) | ❌ No | ❌ No | ❌ No |
| Dual-Core (Live COM + Headless) | ✅ Automatic | ❌ Live only | ❌ Headless only | ❌ Live only |
Self-Healing COM Locks (0x8001010A) | ✅ Built-in | ❌ Crashes | N/A | ❌ Crashes |
| Formula Error Sentinel | ✅ Built-in | ❌ Manual | ❌ No evaluation | ❌ Manual |
| Guaranteed Zero Zombie Leaks | ✅ Yes | ⚠️ Occasional | ✅ Yes | ❌ Prone to leaks |
| Deterministic CLI for Agents | ✅ Native JSON | ❌ No | ❌ No | ❌ No |
Contributions, issue reports, and feature suggestions are highly appreciated! Please consult our CONTRIBUTING.md guide before submitting a Pull Request.
Developed with pride by Francisco Grandón Vergara.
Released under the MIT License.