🌮 Nacho Flow v1.2.0: Zero-Alloc Token Saver (NTS), Agent Registry & Wire-Aligned Stream Supervisors #57
dixieflatline76
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🌮 Nacho Flow v1.2.0: Zero-Alloc Token Saver (NTS), Agent Registry & Wire-Aligned Stream Supervisors
Nacho Flow is an open-source, high-performance agent supervisor and model dispatcher written in pure Go. It sits between autonomous coding agents (Cline, Zoo Code, Cursor, OpenCode, Aider, Continue) and LLM providers to monitor token streams in real time, terminate runaway loops, unstuck frozen agents, and dynamically route prompts across local GPU models ($0.00) and cloud reasoning APIs.
🚀 What's New in v1.2.0
🗜️ 1. Nacho Token Saver (NTS): In-Flight Context Compaction (30%–60% Context Bloat Eliminated)
pkg/nts), reducing multi-turn payload volume by 30%–60% with sub-millisecond wire-speed Go latency:ansi.go,cr.go): In-place purge of raw ANSI escape sequences, colors, and terminal spinner animations (|/-\). In-place carriage return (\r) collapse folds overwritten terminal progress lines with zero heap allocations.stale_reads.go): When an agent inspects the same 1,000-line file across 20 turns, older reads become dead weight. NTS detects superseded file-reads and compacts them into structural notices ([Superseded read: 1,200 lines compacted]) while preserving the active turn fresh. Features configurable retention depth, offset/limit range support, and small-file eviction safeguards.boilerplate.go): Automatically prunes repetitive extension notices (Cline<notice>hints and runaway diff search<error_details>blocks) before they hit the upstream model.dedup.go,whitespace.go): Collapses runaway blank lines and identical log bursts using alphanumeric protection guards to keep ASCII tables, boxes, and diagrams intact.testdata/real_tool_samples.json).⚡ 2. Zero-Allocation Systems Core (
pkg/zeroalloc)pkg/zeroallocengine:sync.Pool).0 B/opheap churn across in-flight transformation passes, preserving wire-speed throughput under heavy agent workloads.🤖 3. Dynamic Agent Registry & Multi-Agent Protocol Adaptation (
pkg/agentregistry,data/agents/)<tool_call>, Mistral[TOOL_CALLS], Claude XML<invoke>, ReActAction:, or bare JSON). Hard-coded router logic struggled to differentiate between agent harnesses.HasWriteCapability,ToolFamily): Distinguishes active file-writing turns from passive exploration turns so runtime supervisors (like Kickstart) never trigger false-positive stall overrides during legitimate planning.🌊 4. Stream Normalization & Reasoning Preservation (
pkg/server)<think>): Intercepts SSE chunks from DeepSeek-R1, QwQ, Qwen 2.5, and Anthropic, cleanly normalizing thoughts into standard<think>...</think>tags for IDE UI accordions in real time.[DONE]events without trailing whitespace.HTTP 200headers, enabling transparent failover if an upstream local model crashes or produces an empty stream.@nacho:local,@nacho:cloud,@nacho:reasoning,@nacho:kickstart-off,@nacho:reset).🛡️ 5. 3-Lane Wire-Aligned Cycle Killer & Supervisor Upgrades (
pkg/router/shield)gemini-3.8-flashwith cooperative quality review formatting.📊 6. VS Code Extension & Flight Instruments Revamp (
extension/)v1.2.0), single-row supervisor brackets, and removed ambiguous+prefixes from savings values.Past 1 Hourrolling window to telemetry aggregator alongside Today, This Week, and All Time.🏛️ 7. Landing Page Architecture Symmetry & Specifications Ribbon (
site/,index.html)⚡ < 0.18ms Go Core Latency,🚀 30,284+ Peak Req / Sec,🗜️ 30%-60% In-Flight NTS Compactor,🛠️ 8 Formats Tool Normalizer,⏱️ < 3s Loop Interception,📦 Zero Deps Single Go Binary.🧪 Verification Matrix
test-cover)vet)go vet ./...)test-race)go test -race ./...)sec)gosec)cmd/nacho-flowWin32 resourcesSpicebox, Version:1.2.0.0📦 Installation & Quickstart
VS Code Companion Extension (Recommended)
Install directly from the VS Code Marketplace or via CLI:
🌮).http://127.0.0.1:8000/v1.Universal Shell Installer (Linux & macOS)
curl -fsSL https://raw.githubusercontent.com/dixieflatline76/nacho-flow/main/scripts/install.sh | bashWindows (Winget)
Homebrew (macOS)
Standalone Go Daemon (Build from Source)
This discussion was created from the release 🌮 Nacho Flow v1.2.0: Zero-Alloc Token Saver (NTS), Agent Registry & Wire-Aligned Stream Supervisors.
All reactions