Local Codebase Indexing for AI Coding Tools
Agent-to-Agent Context • AST .cube Sidecars

Use up to 99% fewer cloud AI tokens while keeping your source code on your machine.

AST .cube sidecar memory, local GGUF routing, and SHA-256 + Ed25519 receipts.

A2AC indexes your project locally so AI coding tools look up only the exact lines they need instead of re-reading entire files on every step. That drops a typical 15-step coding task from $1.64 to $0.016, keeps your raw source files on your computer, and saves a verifiable usage receipt after each run.

A2AC builds AST .cube sidecars alongside repository files (545,145 → 4,182 cloud tokens, 130.4x reduction, 107 verified AST functions), routes file extraction to Python AST (--mode local-ast) or local Gemma 4 E4B Q4_K_M GGUF, and seals every execution turn with a canonical SHA-256 + Ed25519 receipt.

curl -fsSL https://a2ac.ai/downloads/a2ac.py -o a2ac.py && python3 a2ac.py bench .
Runs 100% locally with Python 3.9+ (zero dependencies, zero signup, zero code leaves your machine).

Interactive Token & Cost Slider

Interactive Token & Cost Simulator (tiktoken:cl100k_base)

Drag the slider to compare standard cloud AI file reads against A2AC indexed lookups.

Scaled from the verified 15-step repository benchmark (545,145 → 4,182 cloud tokens, 130.4x reduction).

Task Size (AI Coding Steps) Agent Execution Depth (Steps Across 5-Module Repo) 15 steps • ~15 file lookups
Without A2AC (Standard Cloud AI)
$1.64 545,145 tokens
Re-reads full source files into the cloud prompt on every step.
Re-ingests raw module bodies on every agent turn (100% cloud tokens).
With A2AC (Local .cube Index)
$0.016 4,182 tokens
Reads a local index first and sends only the exact lines needed.
Queries AST .cube sidecars locally; sends surgical line slices only.
Saved this task: $1.63 (99.2% fewer cloud tokens) At 20 tasks/day: $986.70 → $9.72 / mo

    

Simple, Transparent Pricing

Licensing & Cloud Deployment Tiers

Start free on your own machine, upgrade to Pro for full IDE + MCP automation, or deploy across your team.

Run the free local benchmark CLI, unlock Pro MCP + GGUF workstation routing, or provision private Azure/GCP/AWS team memory.

STARTER / CLI

Starter / CLI

$0 / forever
  • Standalone a2ac.py CLI + local MCP server
  • Run a 5-second token benchmark on your own repo
  • Works with Claude Code, Cursor & VS Code
  • 100% local — source files never leave your disk
  • Single-file a2ac.py AST + MCP stdio server
  • Python AST & TS/JS/Go/Rust symbol .cube sidecars
  • tiktoken:cl100k_base side-by-side verifier
  • Zero external dependencies, 100% local execution
Best for trying A2AC on your own repo right now with zero signup.
Get Free CLI & MCP
TEAM & CLOUD

Team & Cloud

$500 / mo
  • 10 developer seats included ($25/extra seat)
  • Shared team context memory across projects
  • Private deployment in Azure, GCP, or AWS
  • Central audit log of token spend & receipts
  • 10 developer seats ($25/extra seat)
  • Shared Firestore + .cube team context memory
  • Private Azure VNet, GCP VPC, or AWS VPC deploy
  • Rule 3 Merkle receipt ledger & compliance export
Built for engineering orgs cutting multi-dev LLM spend and enforcing local code privacy.

How It Works

1. Local Project Index

A2AC creates a compact map of your folders and functions right on your own computer. Your AI tool reads only the exact piece of code needed for the current step.

2. Source Files Stay Local

Your raw source files remain on your machine. Routine file reading runs locally at $0.00 cloud API cost, so cloud models only receive small, targeted excerpts.

3. Verifiable Usage Receipts

Every completed run records a signed usage receipt showing how many cloud tokens were used, how many were saved, and the exact cost of the task.

1. AST .cube Sidecar Indexes

Each source module has a companion .cube JSON sidecar listing AST function signatures, line ranges, imports, and SHA-256 digests (107 verified functions across 5 modules) so agents request surgical line slices.

2. Python AST & Gemma 4 E4B GGUF

Run zero-LLM deterministic indexing with --mode local-ast or local semantic offload on Gemma 4 E4B Q4_K_M GGUF (--mode chimera) at $0.00 cloud API cost, reserving frontier cloud calls for synthesis.

3. SHA-256 + Ed25519 Receipts

Every execution turn appends a canonical JSON .cube receipt containing cloud_api_tokens_used, local_tokens_used, cloud_tokens_avoided, and est_cloud_usd, verified by SHA-256 and Ed25519.

Verified Savings Benchmark

15-Step Repository Benchmark (tiktoken:cl100k_base)

Measured across a 15-step review of a 5-file Python codebase. Full step-by-step numbers, a monthly cost calculator, and the receipt checker are on the Benchmark page.

Measured across 15 execution steps on a 5-module Python workspace (48.9 KB source, 107 AST functions) using tiktoken:cl100k_base and Claude Sonnet ($3/1M in, $15/1M out). See Benchmark for the live interactive receipt and a2ac_token_benchmark.py source.

Metric Standard Cloud AI With A2AC
Cloud Tokens Used (15 Steps) 545,145 4,182
Estimated Cloud Cost (Claude Sonnet) $1.6445 $0.0162
Cloud Token Reduction Baseline (1.0x) 99.2% Saved (130.4x)

Simple Setup

Step 1

Add A2AC to Your Tool

Paste the A2AC entry into your AI editor or Claude Desktop configuration so it can query your local project index.

Step 2

Index Your Project Locally

Generate the lightweight local index once; A2AC maps functions and files without uploading raw source code.

Step 3

Review Usage Receipts

After any task, inspect or verify the saved receipt on the Benchmark page to confirm exact token and dollar savings.

Download the single-file CLI + MCP server (a2ac.py), benchmark your repo, and auto-write your .mcp.json for Claude Code, Cursor, or VS Code in 10 seconds. See Docs for full schemas and HTTP endpoints.

curl -fsSL https://a2ac.ai/downloads/a2ac.py -o a2ac.py
python3 a2ac.py bench .
python3 a2ac.py setup --client claude --write   # or --client cursor / --client vscode
{
  "mcpServers": {
    "a2ac-local": {
      "command": "python3",
      "args": ["a2ac.py", "mcp", "."]
    }
  }
}

Developer FAQ

Doesn’t Claude / OpenAI prompt caching already make context cheap?

Prompt caching only discounts unchanged prefixes and invalidates whenever you switch files or edit earlier turns. A2AC shrinks what enters the context window in the first place — stacking on top of prompt caching while keeping model accuracy high.

Does any of my source code leave my machine?

No. Both the free CLI/MCP server and Pro’s local GGUF engine run locally over stdio on your computer. Your raw files stay on disk; only the small targeted function slices you send to your own LLM provider leave your machine.

What languages and editors work today?

Python (full AST), TypeScript, JavaScript, TSX/JSX, Go, Rust, Java, C#, and Ruby. Works out of the box with Claude Code, Cursor, Windsurf, VS Code, and any MCP-compatible coding agent.

How do I know it saves money on my codebase before paying?

Run python3 a2ac.py bench . on your own repo for free in 5 seconds. If you upgrade to Pro ($149/mo), you’re covered by a 14-day money-back guarantee and can cancel anytime.