惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
J
Java Code Geeks
U
Unit 42
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
L
LangChain Blog
D
Docker
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
I
InfoQ
The Cloudflare Blog
小众软件
小众软件
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
P
Proofpoint News Feed
V
V2EX
月光博客
月光博客
Martin Fowler
Martin Fowler

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why your local agent keeps dropping brackets (and how Her...
Gabe Dev · 2026-05-18 · via DEV Community

If you’ve tried running a local agent loop using standard frameworks, you know exactly when it breaks: loop 3 or 4, right when the model needs to call a tool.

Most frameworks force you to dump massive JSON schemas of your entire tool repository directly into the system prompt. While this works fine when you're burning OpenAI credits on a massive cloud model, the moment you drop down to local hardware (like a quantized 8B or 32B model running on a consumer GPU), two things happen: your context window gets eaten alive by structural boilerplate, and the model eventually drops a closing brace } mid-generation, completely crashing your regex parser.

While hacking on Hermes Agent for the DEV challenge, I realized its biggest architectural win isn't the slick integration list—it's how it completely bypasses this JSON parsing tax.

**The JSON Schema Tax on Local VRAM
**When an agent framework uses passive prompt coercion, it passes your Python functions through a serializer to generate something like this in your system prompt:

JSON

{
  "name": "query_db",
  "description": "Lookup user records",
  "parameters": { "type": "object", "properties": { "user_id": { "type": "integer" } } }
}

Enter fullscreen mode Exit fullscreen mode

Multiply that by five or ten tools, and you’re wasting thousands of tokens just explaining how to format a response. On local hardware, this context bloat dilutes the model’s actual reasoning attention and spikes your Time-to-First-Token (TTFT) latency.

**How Hermes Shifts to Native Token Steering
**Hermes doesn't try to bully a raw text model into outputting valid JSON via heavy system prompting. Instead, it leverages the fact that the underlying Nous Hermes models are natively fine-tuned to treat tool execution as a structural token sequence using hardcoded XML tags.

Instead of parsing a massive prompt blocks, the framework expects and guides the model into a deterministic streaming state:

XML

<scratchpad>
Dependencies resolved. Need to check user status before updating the record.
</scratchpad>
<tool_call>
{"name": "query_db", "arguments": {"user_id": 4022}}
</tool_call>

Enter fullscreen mode Exit fullscreen mode

The engineering win here is subtle but massive: State Isolation.

The is a sandbox: The model handles its internal reasoning tokens before it hits the tool execution tokens. This stops the "thinking" process from bleeding into the actual execution syntax.

Zero Prompt Bloat: Because the model's weight distribution naturally favors these tags for tool routing, you don't need a 400-token system prompt lecturing the model on bracket placement.

**The Bottom Line
**When you move tool routing from the prompt layer down to the token-generation layer, you save significant VRAM and eliminate the syntax degradation that plagues small models. It’s the reason you can run highly reliable, multi-step tool pipelines on a local 8B model inside Hermes that would normally require a massive, unquantized cloud API just to keep the JSON valid.

If you’re building an entry for the challenge, skip the massive prompt-engineering wrappers. Lean into the native XML schema, keep your system prompts minimalist, and let the model’s structural tuning do the heavy lifting.