Code First. Local LLM Second.
Cloud Last.
Stop burning Cloud AI Agent quota on raw CI logs, crashed retries, and repetitive extraction loops.
With 1,488 tokens of one-time overhead, VieForge trims 91% of noisy CI logs in pure Python (8.3 ms), resumes interrupted jobs via SQLite WAL, and offloads short <4K extraction batches locally (97.4% live-verified on qwen3:8b) — while keeping Cloud LLMs for complex coding.
verify_telemetry_integrity() so numbers never pretend to be total machine quota.
Clone https://github.com/vieforge/vieforge, read AGENT_INSTALL.md, run python scripts/quick_setup.py, and show me the Savings Receipt in plain language.
Offline Harness Simulation vs. Live GPU Reality
The table below runs in 0.3s via python scripts/benchmark_token_savings.py (real output_trimmer.py + real SQLite WAL; mocked local LLM for CPU-only CI repeatability). Pass --live-ollama --model qwen3:8b --items 30 for unmocked GPU throughput & accuracy.
| Harness Workload | Cloud-Only Tokens | VieForge Cloud Tokens | Reduction Factor | Saved |
|---|---|---|---|---|
| One-time Session Overhead (SKILL.md 691 + AGENTS.md 477 + MCP 320) | 0 | 1,488 | — | Paid once |
| 100-Document Batch Classification & JSON Extraction (mock LLM offload) | 23,662 | 200 | 118.3x | -99.2% |
| Noisy CI / Pytest Log + Traceback Compression (389 lines, 100% real) | 11,150 | 998 | 11.2x | -91.0% |
| 50-Item Job Crashed at 30/50 + SQLite Resume (Cloud-only resume: -37.5%) | 17,920 | 457 | 39.2x | -97.4% |
| NET TOTAL (Mixed Batch + CI Simulation, incl. 1,488 overhead) | 52,732 | 3,143 | 16.8x | -94.0% |
Honest Expectations by Usage Tier (L0–L3)
Verified unmocked on RTX 3060 Ti 8 GB + Ollama 0.40.19 (qwen3:8b): pure-Python CI log trim -91.0% (8.3 ms) · live 30-doc JSON batch (4K ctx, think=false) -97.4% in 19.9s (69.3 tok/s, 30/30 exact) · live single-file coding check scored only 3/4 (and drops to 19–20 tok/s at 18K ctx). Keep complex coding on Cloud; offload loops & logs locally.
| Usage Tier | Target User Segment | Volume | Realistic Net Reduction | Recommended Stack |
|---|---|---|---|---|
| L0 — Casual | Quick Q&A, single-file edits | < 5 items | 0% (below break-even) | Call Cloud Agent directly |
| L1 — Solo Dev / Interactive Coding | Daily debugging, CI logs, small scripts | 5–50 / day | 30%–65% coding · 80%–91% CI logs | pip install vieforge && vieforge setup |
| L2 — Power Dev / Batch Pipelines | Multi-project devs, short <4K extraction batches (8–24 GB VRAM) | 51–500 / day | 70%–92% batches (30%–65% coding) | batch_session() + SQLite Cache + exclusive_gpu |
| L3 — High-Volume Batch / CI Workers | Schema-locked extraction, multi-repo CI triage, Docker workers | 500+ / day | 85%–97% batch & CI triage | Non-root Docker + PolicyGuard + OTel gen_ai.* |
Read the full live hardware verification & local 8B reality report on GitHub →
Interactive Workload Savings Calculator
Pick a preset or slide to match your real batch volume to see exact monthly Cloud token & USD savings.
3-Tier Hybrid Architecture
Every subtask runs on the lowest-cost tier that satisfies accuracy requirements — keeping Cloud Agents focused on high-leverage thinking.
Architecture & Approval Gates
Cloud Agents (Antigravity, Claude Code, Cursor, Windsurf, Codex) handle design, code edits, reviews, and root-cause debugging — never bulk loops.
SQLite WAL + Local LLM Leases
Deterministic Python, SHA-256 deduplication, per-item checkpoints, clean-room log trimming (-91%), and ref-counted Ollama / OpenAI-compat routing.
GPU Subprocess & Capped APIs
OS-isolated child processes with exclusive GPU locking for 8 GB+ cards, plus paid APIs guarded by --dry-run, MAX_RETRY <= 2, MAX_JOB_USD, and DAILY_USD_CAP.
Hardware Profiles (Auto-Detected by preflight_check.py)
| Profile | Workstation | Recommended Local Model | Tier 3 Strategy |
|---|---|---|---|
| CPU-Only | 8–16 GB RAM, No dGPU | qwen2.5:3b / --mock-llm | Deterministic Python + Capped Cloud APIs |
| 8 GB VRAM | RTX 3060 Ti / 4060 | qwen2.5:7b (4-bit) | Unload Ollama (keep_alive=0) → Exclusive GPU Subprocess |
| 12–16 GB VRAM | RTX 3060 12G / 4070 Ti | qwen2.5:14b | Stage-by-stage GPU isolation |
| 24 GB+ / Apple Silicon | RTX 3090/4090 / M-series 32GB+ | qwen2.5:32b | Concurrent Local LLM + Heavy Media Pipeline |
Engineered for Real-World Workstations
Commercial-safe, cross-platform verified across Linux, macOS & Windows, and built for concurrent multi-project workloads.
Multi-Project Concurrency & 3-OS Parity Gate
Run 3+ workspaces simultaneously without colliding job IDs, losing spend logs, or prematurely unloading another project's Ollama VRAM. Verified on real Ubuntu, macOS, and Windows CI runners.
100% MIT Clean-Room Core
Zero third-party dependencies in core/. Automated license_audit.py blocks BUSL-1.1, AGPL-3.0, and CC-BY-NC packages.
Ollama + OpenAI-Compatible Routing
Native Ollama keep_alive=0 VRAM hygiene plus automatic /v1/chat/completions routing for LM Studio, llama.cpp, vLLM, and OpenRouter.
Zero OS-Mutation + 44x Faster SQLite WAL
Never alters Windows Registry, OS services, network stacks, or pagefiles. Single-transaction batch checkpointing handles 1,000 items in ~29 ms and ships as a clean cross-OS wheel.
Radical Honesty: When VieForge Shines vs. When You Don't Need It
We prefer developer trust over hype. Here is the exact break-even reality.
Where VieForge Delivers Real Value
- Short <4K-context extraction, classification & JSON batches (10 to 5,000+ docs/tickets/CSV rows).
- Trimming noisy test suites, CI builds, or download logs (-91% in 8.3 ms pure Python) before Cloud debugging.
- Long multi-stage pipelines where crashes normally force full re-runs (SQLite WAL resumes from the exact failed item).
- Running 2–4 projects simultaneously on one 8 GB+ GPU workstation with hard USD caps and zero VRAM OOM crashes.
Do NOT Expect Magic Here (Skip or Keep on Cloud)
- Quick 1-turn Q&A or editing a single 50-line file (the 1,488-token session overhead won't pay back in 1 short chat).
- Replacing Cloud LLMs with a local 7B–8B model for complex multi-file coding (live RTX 3060 Ti test: 8B hit only 3/4 on simple CLI code and dropped to 19–20 tok/s under >10K agent prompts).
- Break-even rule: VieForge pays off its 1,488-token overhead after just 1 noisy CI log or 3–5 short batch items.
5 Real "Token Waste" Bottlenecks in Production Workflows
Use deterministic Python for mechanical work, local 7B–8B strictly for short <4K batch loops, and keep frontier Cloud models for architecture and complex coding.
Don't Use a PhD Brain to Do Pocket-Calculator Work
3 practical operating patterns showing where deterministic code and scoped local batching eliminate Cloud token waste without hurting quality.
Reliable harnesses beat raw hype when running AI workflows every day.
VieForge is the 100% MIT open-source execution harness that protects your budget, compresses noisy logs, checkpoints every batch, and keeps Cloud AI focused on high-leverage thinking.
Frequently Asked Questions
Straight engineering answers before you clone or install.
Do I need an expensive GPU to use VieForge?
qwen2.5:3b (or offline --mock-llm), and automatically adapts to 8 GB, 12–16 GB, 24 GB+ GPUs, and Apple Silicon via preflight_check.py.Does VieForge send my source code or private data to any server?
How is this different from just running Ollama directly?
Can I use VieForge in commercial or agency projects for free?
python -m core.license_audit automatically blocks AGPL-3.0, BUSL-1.1, and CC-BY-NC dependencies.Which local LLM servers and AI coding agents are supported?
keep_alive=0) plus any OpenAI-compatible server (LM Studio, llama.cpp, vLLM, OpenRouter), and installs skills/MCP configs for Antigravity, Claude Code, Cursor, Windsurf, and Codex CLI.