Repository avatar
AI Tools
v1.1.0
active

polycracker-ecu

io.github.parrot-software-bc/polycracker-ecu

Local-first deterministic token compression and context-drift telemetry for LLM and MCP payloads.

Documentation

🏎️ Polycracker ECU

PyPI version Platform Execution Interface License

Stop letting blind, one-size-fits-all pruners chop up your context and bill you for the wreckage.

Most context harnesses hand you a bloated middleware suite with a static trimmer—or worse, an opaque auto-router that uses a second AI model to guess which lines of your code and JSON don't matter. When lossy trimming drops a critical detail, their fallback is hoping the LLM notices and pays for a retrieval tool call. Instead, the model hallucinates, fails checks, and falls into retry loops and extra agent turns. Every extra turn re-sends conversation history, busts your KV-cache, and generates expensive output tokens—quietly ballooning your monthly bill even while a dashboard brags about 90% token savings.

Polycracker ECU is a precision instrument that puts you in the driver's seat. Drop it in front of anything via the universal local proxy (127.0.0.1:8000) or plug it straight into your coding agent over stdio MCP. No platform sprawl, no cloud relays, no extra tokens burned—just a surgical, zero-bloat local binary delivering strictly deterministic Python AST-to-IR compression and real knock detection *(measuring context drift upfront so you catch when aggressive compression is about to strip critical meaning and make the LLM misfire)*—running 100% on your machine.

We don't sell dashboard vanity metrics or ask you to take 95% claims on faith. Run it against your own repo, your own prompts, and your own provider invoice. Every byte in and every byte out is verifiable.

It ships ready to rip out of the box with a free 30-day Stage 2 Track Spec base tune—no account required. When you want full manual control instead of auto-magic guessing, sign up for a free $0 Sandbox account (includes $5 in Polycracker credits), open the Tuning House to test 8 macro sliders, 36 micro-dials, raw JSON trimming, and the live Polydyno Simulator, and upgrade whenever you're ready to export custom offline Ed25519-signed tune.jwt maps.


🔌 Universal Local Hookup

Polycracker ECU isn't locked to one IDE or one agent framework. Route any API client, script, or agent through the local proxy, or connect directly over stdio MCP—your code never leaves your machine.

┌──────────────────────────────────────────────────────────┐
│   ANY IDE / Coding Agent / Script / API Client           │
└───────────────────┬──────────────────────┬───────────────┘
                    │ Universal Local Proxy │ stdio MCP
                    â–¼                       â–¼
┌──────────────────────────────────────────────────────────┐
│  Polycracker-ECU.exe  (100% Local on Your Machine)       │
│  • Deterministic AST-to-IR Compression                   │
│  • Offline Ed25519-Signed tune.jwt Calibration Map       │
│  • Knock Detection (Upfront Context-Drift Telemetry)     │
└──────────────────────────────┬───────────────────────────┘
                               │ Compressed IR (Zero Extra LLM Burn)
                               â–¼
                   Your LLM Provider / Local Model

📊 The Dyno Sheet (Live Capture)

Same prompt, same enterprise_tools_manifest.json payload, running live inside Cursor IDE over stdio MCP—comparing Stock Bypass vs. the included Stage 2 Track Spec map:

Workload:         Cursor IDE -> Polycracker MCP read (enterprise_tools_manifest.json)
Stock Bypass:     6,638 -> 6,638 tokens  |  0.0% reduction   |  289.2 ms  |  $0.0000 saved
Stage 2 Tuned:    6,638 -> 2,994 tokens  |  54.9% reduction  |  296.5 ms  |  $0.0109 saved (+3,644 tokens)
Overhead:         +7.3 ms deterministic AST-to-IR pass (0 secondary LLM tokens spent)
Stock Bypass (BYPASS - STOCK)Stage 2 Track Spec (TUNING ACTIVE)
Stock Bypass Live DynoStage 2 Tuned Live Dyno

âš¡ Why Polycracker ECU?

DimensionTypical Context Harnesses & ProxiesPolycracker ECU
Architecture & FootprintSprawling middleware suites (content routers, shared memory layers, heavy proxies)Precision instrument—a surgical, zero-bloat local binary (Polycracker-ECU.exe) that stays out of your way
Compression EngineOpaque auto-magic routers mixing heuristics with secondary ML models to guess what to dropDeterministic Python AST-to-IR compression—zero secondary ML guessing, zero extra LLM token burn
Handling Broken ContextCuts blind and relies on a retrieval tool—hoping the LLM notices missing context and pays for a recovery round-tripPrevent the misfire upfront—real knock detection (context-drift telemetry that flags breakage risk before the model hallucinates or loops)
Real Invoice ImpactLoud headline claims ("60–95% fewer tokens") that often backfire via retry loops, extra turns, and higher billsAnti-hype, invoice-first—verify exact token deltas and real provider billing on your own codebase
KV-Cache ProtectionPassive—warns about volatile prefixes without addressing prefix churnPrefix-aware—treats per-turn tax and KV-cache prefix stability as core invoice drivers
Execution & PrivacyHeavy middleware, cloud relays, or remote APIs100% local on your machine via Universal Proxy + stdio MCP—zero cloud code upload
Calibration & ControlStatic, one-size-fits-all defaults or black-box auto-routingExplicit control—you are the tuner with 8 macro sliders + 36 micro-dials exported as offline tune.jwt maps

🛠️ Why One-Size-Fits-All Breaks

Nobody puts a locked, factory-stock fuel map on a built engine—so why let an opaque auto-router apply the same static trimmer across completely different workloads?

  • Fragile Legacy Refactors: Aggressive blind pruning strips comments, type hints, or structural cues, triggering context knock and expensive retry loops that erase any input-token savings. Flash a conservative Daily Driver tune to keep maximum structural fidelity.
  • Noisy Agent & Tool Dumps: Agents dumping massive raw JSON payloads and repetitive logs burn through context windows in minutes. Dial up raw JSON trimming and aggressive AST stripping to crush per-turn bloat.
  • High-Frequency Multi-Turn Loops: Unstable prompt prefixes destroy KV-cache hit rates and quietly inflate your bill. Tune your map to protect prefix stability while compressing the payload that actually changes.

🚀 Quick Start (Windows x64)

  1. Install the open-source CLI wrapper:
pip install polycracker-ecu
  1. Download, SHA-256 verify, and extract Polycracker-ECU.exe + provision your free 30-day Stage 2 Track Spec trial tune:
polycracker-ecu install
  1. Start the local ECU (System Tray / Universal Proxy / stdio MCP):
polycracker-ecu run

(Testing from a local clone? Run pip install -e . in step 1.)

Security Note — Unsigned v1.1.0 Binary (SmartScreen / Defender / Smart App Control): Polycracker-ECU.exe is an unsigned initial release (no Authenticode code-signing certificate yet). polycracker-ecu install automatically verifies the download against the official SHA-256 checksum (SHA256SUMS.txt on GitHub Releases), and the v1.1.0 hashes have been submitted to Microsoft Security Intelligence for analysis.

  • Windows SmartScreen: Because the binary is unsigned, Windows may still show "Windows protected your PC" until the file builds download reputation. Click More info → Run anyway after verifying the SHA-256 hash.
  • Windows Defender: If Defender still flags or quarantines Polycracker-ECU.exe while Microsoft's review propagates, allow it or add an exclusion for %USERPROFILE%\.polycracker-ecu.
  • Windows 11 Smart App Control: If Smart App Control is enabled in strict On mode (typically off on dev machines), Windows blocks unsigned executables until the binary is code-signed.

One-Click IDE Auto-Wiring & Local Proxy Settings

Open the Settings tab inside the local ECU dashboard (127.0.0.1:8000) to auto-wire Cursor and Windsurf in one click, copy the Universal MCP Config for Zed, Cline, Continue, JetBrains, or Claude Desktop, and configure local OpenAI, Anthropic, or Ollama upstream URLs with keys stored strictly on disk in vault.json:

IDE Auto-Wiring & Universal MCPLocal API Key Vault & Upstream URLs
IDE Auto-Wiring and MCPAPI Key Vault and Upstream URLs

🎛️ The Tuning House & tune.jwt

Out of the box, polycracker-ecu install provisions a free, balanced 30-day Stage 2 Track Spec base tune so you can start testing locally right away—no signup required.

When you want explicit control over every parameter instead of black-box auto-magic:

  1. Sign up for the Free $0 Sandbox: Creating an account at Polycracker automatically places you on the $0 Sandbox with $5 in Polycracker credits—no credit card needed to explore.
  2. Test-Drive the Tuning House & Polydyno Simulator: Inside the Tuning House, you get full access to 8 Master ECU Sliders, 36 Tier-2 Micro-Dials, and the two-way synced Raw JSON Map Editor, paired with the Polydyno Simulator to preview token shred and knock risk before flashing.
  3. Export Offline tune.jwt Maps (Paid Plans): Exporting and downloading custom Ed25519-signed tune.jwt calibration files (Stage 1 Master Dials, Stage 2 +36 Micro-Dials, or Stage 3 Raw JSON + Auto-Renew) is available on paid subscription tiers. Once exported, your tune.jwt runs 100% offline on your machine—no phone-home required.
  4. Flash a Custom Map in Seconds:
polycracker-ecu tune --file .\Downloads\tune.jwt
8 Master ECU Sliders & 36 Micro-DialsRaw JSON Editor, Polydyno Simulator & tune.jwt Mint
8 Master Sliders and 36 Micro-DialsRaw JSON Editor and Polydyno Simulator
Preview Base Map Presets & Stage 1 / 2 / 3 Calibration Tiers

Base Map Presets and License Tiers


🔄 Reopen & Uninstall

Exiting from the system tray stops the active process without deleting your installation or your tune.jwt.

  • Reopen after closing the tray:
polycracker-ecu run
  • Delete Polycracker-ECU.exe and its installed files (close from the tray first):
Remove-Item "$env:USERPROFILE\.polycracker-ecu" -Recurse -Force
  • Remove the Python CLI wrapper as well:
pip uninstall polycracker-ecu

⚖️ License

  • CLI wrapper (src/polycracker_ecu/): MIT License.
  • Compiled binary & release assets (Polycracker-ECU.exe, EULA.txt, PRIVACY.txt): Proprietary — Parrot Integrated Software Development.
PYPI
polycracker-ecu
Install Command
pip install polycracker-ecu