🌮 Nacho Flow v1.4.1: Automated Profile Auto-Tuner, Pre-Tuned Presets, 3-Lane Stream Normalizer & Config Schema Versioning #65
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.4.1: Automated Profile Auto-Tuner, Pre-Tuned Presets, 3-Lane Stream Normalizer & Config Schema Versioning
v1.4.1 is a stability and performance patch release building on v1.4.0. It upgrades the rule synthesis engine to pure AST tree-walking, eliminates heap allocations in Agent Shield fallback evaluation, and stabilizes the bare-metal benchmark suite under extreme concurrency.
🛠️ What's New in v1.4.1
pkg/tuner): Replaced regex string-splicing with pure recursiveexpr/asttree-walking for safe and robust context variable rewriting across complex boolean expressions.pkg/router/shield,pkg/zeroalloc): Eliminated heap allocation inRuleEngine.Evaluateon trailing prose without question marks, and promoted ASCII case-insensitive search topkg/zeroalloc.ContainsFoldASCII(0 B/op, 0 allocs/op@ 4.4 ns/op).cmd/util/nacho_bench): Bounded connection pooling (MaxConnsPerHost: 2000) to eliminate Windows loopback socket thread exhaustion under 1,000-worker concurrency tests, modernized benchmark loops to Go's idiomaticb.Loop(), and refreshed documentation metrics (95.6% statement coverage, 29.8k req/s peak).🚀 What's New in v1.4.0
🎛️ 1. Traffic-Based Profile Auto-Tuner (
nacho-flow tune,pkg/tuner)Tokens < 20000, run an agent, and quickly hit real-world failure modes:nacho-flow tunereads your real session history (traffic.jsonl) and replays it through an in-memory simulation engine (replaying 1,000,000 statements in 25ms with zero heap allocations) to calculate exactly what candidate rules would have cost and how many retries they would have prevented before touching your configuration.--vram-gb=16or via the dashboard dropdown) so the tuner never suggests local context limits that exceed your card's physical memory capacity.client_id): Automatically detects whether traffic originated from Zoo Code, Cline, Cursor, or Aider via/api/v1/telemetry/clients. You can filter logs by agent in the dashboard and tune rules specifically for Zoo Code without Cline's sessions polluting the thresholds.when: "false"if an escalation tier uses a model with lower coding benchmarks than the tier before it, and halts escalation when an agent hits an unresolvable plateau.🎯 2. Pre-Tuned Presets for Zoo Code & Cline (
profile1.yaml,profile2.yaml,profile3.yaml)z-ai/glm-5.3-flashfor Tier 2 ($0.65/M), Gemini 3.8 Flash for Tier 3, a 16,384 thinking-token ceiling with adjusted repetition detection (8-word n-gram, 12 repeats max so tables don't get cut off), andSessionKickstarted && Retries < 3to power past initial read-only exploration loops.qwen/qwen3-coder-plusfor Tier 2 ($0.65/M), Gemini 3.8 Flash for Tier 3, a 4,096 thinking-token limit (6 repeats), and a tight kickstart threshold (Retries < 1 && SessionKickstarted) tailored for Cline's XML tool calling syntax.🌮), spawning the daemon with clean--configprocess isolation.🌊 3. 3-Lane SSE Stream Normalizer & Delimiter Leak Defense (
pkg/server,pkg/zeroalloc)<|channel|>thought,<think>,<|"|>}) split across fragmented SSE streaming chunks. In long agent sessions, these delimiter fragments leaked into tool argument payloads, corrupting editor file writes or causing V8 JSON parser crashes (position 515errors) that froze the client extension.<think>), and Tool Arguments.StripSubslicesInPlace,ReplaceSubslicesInPlace) that strip trailing control delimiters at line boundaries with zero heap allocations (📋 4. Config Schema Versioning & Default Template Diffs (
pkg/config, Extension)config.yamlwas missing new fields or using deprecated options, and restoring defaults meant manually copying YAML from the repository.nacho-flow.compareProfileWithTemplate) to see exactly what changed, and a safe reset command (nacho-flow.resetProfileToDefault) that makes a timestamped.bakbackup before restoring defaults.🧪 Verification Matrix
cover-sync)vet)go vet ./...)test-race)go test -race ./...)gosec)gosec -exclude=G706)main📦 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.4.1: Automated Profile Auto-Tuner, Pre-Tuned Presets, 3-Lane Stream Normalizer & Config Schema Versioning.
All reactions