博客
HarnessRouter 博客。
关于智能体运行框架、LLM 路由、模型 × 运行框架基准测试、智能体 API、沙箱、执行追踪和成本优化的实用指南。

How usage-based agent APIs meter tokens, tools and runtime, how to estimate cost per task, and how to cap spend across models and providers in production.
- 对比2026年12月4日Four agent harnesses, one task
Claude Code, Codex, Hermes and the DeepSeek Harness ran the same data task three times each. All 12 runs got the right answer; the traces show where the time and money went, and that the fastest harness changes at every step.
EN - 洞察2026年12月3日AI Agent Lifecycle: Stages, Session Runtime, Retirement
The AI agent lifecycle from design to retirement, plus how to manage session and runtime state, with owners, gates and exit tests for each stage.
EN - 洞察2026年12月3日Agent memory should belong to you
Every big AI vendor now imports your memory, and the way out is still a prompt. Why an agent should get memory the way a person gets access: grants on the memory, groups by the same rule as people, and an agent that chooses its path but never its reach.
EN - 教程2026年12月2日AI Agent Integration: Models, Tools and Harnesses
How to integrate AI agents into production: connection patterns, security boundaries, multi-model routing, coding agents, and how one API for harnesses cuts the work.
EN - 洞察2026年12月2日Vectors and graphs in one engine
Most agent memory glues a vector database to a graph database. Why similarity and traversal belong in one engine, why no standard graph query language can say "similar to this", why the language for agents should grow out of Gremlin's steps, and why part of the optimizer moves up to the agent.
EN - 教程2026年12月1日How to Add AI Agents to Your SaaS Product
A practical guide to adding AI agents to a SaaS product: pick the first workflow, design the integration boundary, route models, and ship with controls.
EN - 洞察2026年12月1日Knowledge graph vs property graph
Everyone says knowledge graph, but production runs property graphs. Why agent memory belongs in a property graph, why reasoning belongs in the model rather than the data layer, and why the ontology should become a write schema.
EN - 洞察2026年11月30日Scaling AI Agents: Architecture, Cost and Reliability
How to scale AI agents in production: when more agents help, how to route models and tools, handle concurrency, and measure cost and reliability.
EN - 洞察2026年11月30日Two graphs in every agent stack
Graph engineering and graph memory are two different graphs. Richard draws the line at the harness, compares them on ten dimensions and looks at what six graph memory products store.
EN - 洞察2026年11月29日AI Agent Plugins: Architecture, Setup and Security
How AI agent plugins work, how they differ from tools and skills, how to add and test them across models, and how to keep them secure and reliable.
EN - 洞察2026年11月29日How to evaluate a graph of agents
Every agent passed its own tests and the overall score barely moved, yet a handoff bug retired 133 of 176 preferences. Richard explains how to evaluate a graph of agents.
EN - 教程2026年11月28日Codex and Claude Code Integration: Four Ways to Combine Them
How to connect Codex and Claude Code: the official plugin, the Codex SDK and app server, and one API for both harnesses, with setup, limits and production controls.
EN - 洞察2026年11月28日Agent Workspace Management: Isolation, State and Cost
How to manage an AI agent workspace in production: layers, file layout, permissions, sandbox isolation and cost control, and how one API keeps it manageable.
EN - 洞察2026年11月28日Harness Engineering Is a Commodity. What Should You Own?
As agent harnesses converge, the durable assets are your verifiers, skills, memory and workflow graph. Choose the execution engine for the job.
EN - 洞察2026年11月27日Open Source Agent Runtime: What It Is and How to Run One
What an open source agent runtime does, how it differs from a framework, what to isolate and budget for when self-hosting, and how to run agents in production.
EN - 洞察2026年11月27日Why the reviewer agent approved the bug
A clean diff and passing tests can still miss the ticket. Richard explains how edge contracts change what crosses between the writer and reviewer agents.
EN - 洞察2026年11月26日Agent memory: from naive RAG to knowledge graphs
Richard maps agent memory from the KV cache to long-term facts, explains three generations of RAG, and shows why the write path matters.
EN - 洞察2026年11月25日Agent Failover Platform: How to Keep Agent Sessions Alive
What an agent failover platform does, which failures it must catch, and how to preserve session state across models, providers and harnesses in production.
EN - 洞察2026年11月25日Agent Benchmark Platform: What It Is and How to Choose One
What an agent benchmark platform does, which metrics and environments matter, why scores mislead, and how to run reproducible benchmarks across harnesses and models.
EN - 洞察2026年11月25日Agent Provider Routing: How It Works and How to Set It Up
Agent provider routing explained: how a router picks the harness, model and provider per task, with fallbacks, cost controls, credentials and tracing.
EN - 洞察2026年11月25日From prompt engineering to graph engineering
Richard traces five shifts in AI engineering, from prompts and context to harnesses, loops and graphs, and explains why the next bottleneck is composition.
EN - 洞察2026年11月21日Cloud Agent Orchestration: Architecture, Patterns and Cost
How cloud agent orchestration works: routing across agents, models and tools, the patterns that fit each workload, observability, and how to cut cost.
EN - 洞察2026年11月21日Multiple Agent Backends: How to Run and Route Them in Production
How to run multiple agent backends behind one API: when to add them, how to route and fail over, how to compare them, and how to operate them in production.
EN - 教程2026年11月20日How to Switch AI Models Through One API Without Rewriting Code
Switch AI models through one API: how model routing works, how to move traffic safely, handle keys, fallbacks and cost, and what to measure after each change.
EN - 教程2026年11月20日Serverless AI Agents: Architecture, Limits and Deployment
How serverless AI agents work, where function time limits and statelessness break them, and how to deploy and scale agents without managing servers.
EN - 洞察2026年11月20日AI Agent Reliability: How to Measure and Improve It
AI agent reliability means repeatable success, bounded failures and cheap recovery. Learn the metrics, failure modes and controls that make agents dependable in production.
EN - 洞察2026年11月20日Multi-Model Agents: Architecture, Routing and Cost
How multi-model agents assign different models and harnesses to different steps, what it costs, and how to build one without locking into a single vendor.
EN - 洞察2026年11月20日AI API Management: Routing, Cost Control and Governance
AI API management explained for developers: what gateways control, how to route across models, track token spend, and manage agent harnesses through one API.
EN - 教程2026年11月15日Deploy Hermes Agent: Self-Host or Run It Through One API
How to deploy Hermes Agent in production: the VPS and Docker routine, model setup, security hardening and what to hand to HarnessRouter's one-API runtime.
EN - 洞察2026年11月14日AI Agent Architecture: Components, Patterns, and Design Decisions
A practical guide to AI agent architecture: core components, design patterns, single vs multi-agent tradeoffs, API routing and production controls for builders.
EN - 洞察2026年11月13日Generative AI SaaS: Architecture, Costs and Build Choices
What generative AI SaaS is, how it differs from model APIs and AI features, what drives its costs, and how teams build it on a unified agent layer.
EN - 洞察2026年11月12日LLM Inference Costs: What They Include and How to Cut Them
What LLM and AI inference costs include, the formulas to calculate them per request and per month, and the levers that cut the bill without hurting quality.
EN - 洞察2026年11月12日Bring Your Own API Key: How BYOK Works for AI Agents
What bringing your own API key means, how to connect and secure provider keys, who pays for usage, and how BYOK works with agent harnesses in production.
EN - 洞察2026年11月11日Multi-Tenancy: Architecture, Isolation Models and Risks
Multi-tenancy explained for developers: how tenants share one instance, the silo, bridge and pool isolation models, key risks, and how to build agent products.
EN - 教程2026年11月11日AI Model Benchmarking: How to Test Models on Your Own Workload
A practical guide to AI model benchmarking: what public scores miss, how to build a task set, which metrics to track, and how to compare agent harnesses.
EN - 教程2026年11月11日Claude Code Integration: IDEs, CI, MCP and the Agent SDK
How to integrate Claude Code: VS Code, JetBrains, CI, Slack, MCP and the Agent SDK, with prerequisites, permission modes and multi-tenant limits.
EN - 洞察2026年11月11日Zero Data Retention for AI APIs and Agents: What It Covers
Zero data retention (ZDR) explained for AI APIs and agents: what it covers, what it excludes, how to request it, and what to verify across your stack.
EN - 洞察2026年11月11日Infrastructure for AI Agents: Layers, Setup and Operating Costs
What infrastructure for AI agents includes, the layers of the stack, how to deploy, secure and monitor agents, and how to keep operating costs under control.
EN - 洞察2026年11月11日LLM Cost Optimization: A Practical Guide for Agent Teams
Cut LLM spend without losing quality: measure cost per successful task, route by difficulty, cache stable context, and benchmark every change before rollout.
EN - 教程2026年11月11日Hermes Agent Integration: Setup, Tools and One API
How to integrate Hermes Agent into a product: install, credentials, MCP tools, API server security, and how DeepSeek and Pi fit behind one Agent API.
EN - 洞察2026年11月11日AI Agent Observability: What to Trace, Measure, and Audit
AI agent observability explained for engineering teams: what to trace, which metrics to alert on, how to debug multi-agent runs, and how to protect data.
EN - 洞察2026年11月11日Unified LLM API: How It Works and How to Choose One
What a unified LLM API does, how routing and fallbacks work, how to compare cost and reliability, and how to benchmark agents before you commit to a stack.
EN - 教程2026年11月11日Agent State Management: A Practical Guide for Production
Learn what agent state is, what it should hold, and how to checkpoint, persist and recover it across steps, tool calls and sessions in production.
EN - 教程2026年11月11日Deploying AI Agents: From Prototype to Production
A technical guide to deploying AI agents: pre-launch validation, hosting architecture, staging to production steps, monitoring, rollback and cost control.
EN - 洞察2026年11月11日Open Source AI Gateway: What It Does and How to Choose One
What an open source AI gateway does, which capabilities to require, how self-hosting compares with managed, and how to evaluate one before production.
EN - 洞察2026年11月10日AI Agents in Production: Architecture, Controls, Costs
What it takes to run AI agents in production: how they differ from demos, which controls to ship first, how to monitor them, and where costs come from.
EN - 教程2026年11月8日AI Model Selection: A Method for Matching Models to Tasks
A practical method for AI model selection: define requirements, classify tasks, test on real workloads, compare cost per successful task, and route safely.
EN - 洞察2026年11月5日LLM Proxy: What It Does, Where It Stops, and When You Need More
An LLM proxy puts many model providers behind one API. Learn what it does, how it differs from a gateway or router, and what agent products need beyond it.
EN - 洞察2026年11月5日Models and Harnesses Evolve Together
Models and harnesses will keep evolving together. Stronger models absorb old scaffolding and open up new tasks. Harnesses put those capabilities to work through tools, actions, and feedback, and help shape the next round of progress.
EN - 洞察2026年10月26日Claude Code as a service
Claude Code as a service means one isolated, persistent Claude Code session per user. This page covers what each session needs and three ways to run it, checked against the docs in October 2026.
EN - 对比2026年10月12日Build your own agent stack?
Adding an agent to a product no longer has to start with a custom agent backend. Which layer you start at decides what your team builds and operates. Both paths side by side, layer by layer.
EN - 教程2026年9月28日System One integration pitfalls
The criteria field takes a different shape for each of the three question types, and the field name never changes. That and five more, checked against TypeSafe's documentation and against code we run in production, plus four circulating warnings we could not verify.
EN - 洞察2026年9月22日What can a System One model do?
Eight System One model use cases, ranked by how many people have built each one. Plus the four Jev numbers everyone quotes, checked against what the sources actually say.
EN - 洞察2026年9月20日What is System One?
System One is the half of AI that decides without writing. You give a model the answers it is allowed to give, and it picks one instead of writing a sentence. System Two is the other half, the models that think out loud. Both names are borrowed from psychology.
EN - 洞察2026年9月20日What is a System One agent?
A System One agent is a model that picks the next action, plus a loop that keeps asking it until the job is done. This one ships an order in five steps, with a probability behind every one, and the loop that ran it is open source.
EN - 洞察2026年9月20日What is a System One harness?
A System One harness is the loop around a decision model: it holds the state, offers the actions that are possible right now, gates on the probability that comes back, and stops for a reason it can name.
EN - 洞察2026年9月20日What is a System One model?
A System One model answers typed questions with values and probabilities instead of writing text. Here is what it guarantees, what it does not, and how to read the numbers around it.
EN - 公告2026年9月20日System One Harness is open source
System One Harness is our open-source controller for System One models: it drives an environment one typed decision at a time, each carrying the probability the loop gates on. Apache 2.0, conformant at the Unified Harness Protocol core class, and measured on the live model.
EN - 教程2026年9月16日Why Claude Code gets expensive
Claude Code resends the full conversation on every turn, so cost compounds with session length. The documented mechanics, the nine actions that invalidate your prompt cache, and which savings levers are measured rather than folklore.
EN - 教程2026年9月15日Compact vs new session
When should you /compact and when should you /clear and start fresh? The decision rule, what compaction preserves and loses in Claude Code, Codex, and six other harnesses, and the emerging externalized-state alternative to recursive summaries.
EN - 洞察2026年9月14日Thin model, thick harness
Five 2026 studies put fixed-weight models under different harnesses and harness configurations: swings from a few points to roughly 10x, each within its stated setting. The evidence for harness engineering, numbers scoped.
EN - 洞察2026年9月13日Agent SDK, Managed Agent, Agent CLI
There are several ways to bring an AI agent into a product: build with an SDK, call a managed service, or integrate an existing agent through its CLI. What each approach provides, what remains your responsibility, and where HarnessRouter fits.
EN - 洞察2026年9月5日AI agent protocols in 2026
A practical map of MCP, A2A, AG-UI, MHS, and UHP: what each standardizes, where each fits, and when to use which in a real agent stack.
EN - 教程2026年9月5日Claude Code hooks
Learn Claude Code hooks with PreToolUse and PostToolUse examples for blocking risky commands, running tests, and enforcing policy safely.
EN - 教程2026年9月5日Codex full auto
Learn what Codex full auto does now, why codex exec --full-auto is deprecated, how --yolo differs, and which sandbox settings are safer.
EN - 教程2026年9月5日Claude Code bypass permissions
Learn Claude Code bypass permissions: the --dangerously-skip-permissions flag, permission modes, safer allowlists and hooks, and safe sandboxed use.
EN - 洞察2026年9月4日Best AI coding agents
The best AI coding agent in 2026 depends on the task. Ten agents profiled from maker documentation, ranked by task class with live usage data and a measured same-task benchmark.
EN - 洞察2026年9月4日Harness rankings: August 2026
August 2026 agent harness rankings by observed routed-token volume: the 30-day leaders, seven-day movements, the new entrant, and the method behind the numbers.
EN - 洞察2026年9月3日AI agent portability
AI agent portability is the ability to change your model, your harness, or where the whole layer runs without rebuilding your product. The three layers, the exit-cost test, and where the protocols fit.
EN - 洞察2026年9月3日AI agent sandboxing
AI agents that run code and touch files need sandboxed execution. The real decision is who operates it: sandbox infrastructure you assemble, or a managed harness layer that isolates every run.
EN - 洞察2026年8月31日Same model, different products
Two products can run the same AI model and deliver completely different results. The difference is the agent harness around the model: what it can see, do, retain, and verify.
EN - 洞察2026年8月31日What are managed agents
Managed agents are AI agents that run on infrastructure a vendor operates for you. What a managed-agent service actually manages, how a task runs through one, and what to check before you commit.
EN - 公告2026年8月31日OpenCode, Qwen Code, and Cline are live
OpenCode, Qwen Code, and Cline are now supported agent harnesses on HarnessRouter, joining Codex, Claude Code, Hermes, Pi, and DeepSeek Harness for eight in total. Run every one through the same create-and-run API.
EN - 洞察2026年8月30日What is the Model Hardware Standard (MHS)?
Anthropic's Model Hardware Standard (MHS), explained: how AI agents discover and operate lab and factory equipment, what the spec covers, how it relates to MCP, and what it means for agent builders.
EN - 公告2026年8月30日Open-source launch coverage
Explore HarnessRouter's August 14, 2026 open-source launch and 168 publication links for the Unified Harness Protocol and Community Edition.
EN - 对比2026年8月25日Best Agent Harnesses in 2026: Ranked by Real Tasks
Find the best agent harness for your workload. Compare Codex, Claude Code, Hermes, Pi and DeepSeek by task, cost and latency.
EN - 教程2026年8月25日Run Multiple Coding Agents
How to run multiple coding agents in parallel: the local playbook with git worktrees and its real limits, and the production answer, running agents server-side in sandboxes with sessions, streaming, and artifacts behind one API.
EN - 公告2026年8月25日Introducing Harness Arena
Harness Arena runs the same production task across agent harness and model configurations, so you can gate on success first, compare cost and latency second, and send your traffic to the winner.
EN - 洞察2026年8月25日The harness configuration engineer
My prediction: in most agent teams, the harness engineer job disappears in 2026, and a new job takes its place. The harness configuration engineer tunes instruction, model, skills, and tools so teams ship features faster, not infrastructure.
EN - 洞察2026年8月25日The agent harness layer
The agent harness layer is forming: the industry now agrees agents need a harness, but a layer only becomes real when it has a shared contract. Here is what that contract must cover.
EN - 洞察2026年8月25日The backend for AI agents
A backend for AI agents is more than an isolated place to execute. Here is the full set of layers a production agent feature needs, and how to decide which to build and which to adopt.
EN - 洞察2026年8月22日Naming the Unified Harness Protocol
The story behind the Unified Harness Protocol name: how UHP became the name for an open standard of the agent harness layer, the nine names weighed, and why Unified holds the contract together.
EN - 公告2026年8月21日DeepSeek Harness and Pi are live
DeepSeek Harness and Pi are now supported agent harnesses on HarnessRouter, bringing the total to five: Codex, Claude Code, Hermes, Pi, and DeepSeek Harness. Run every one through the same create-and-run API.
EN - 洞察2026年8月12日AI product infrastructure
The four infrastructure layers behind an AI product: the model layer, the context layer, the harness layer, and the unified interface above it, with a build-or-adopt call for each.
EN - 教程2026年8月12日Model evals
A practical guide to model evals: build evals from your real tasks, grade with exact checks and LLM-as-a-judge, run candidates fairly, and extend evaluation to the full harness and model configuration.
EN - 教程2026年8月12日How to build an agent harness
A complete walkthrough of building an agent harness: the execution loop, context management, tools, sandboxing, the production infrastructure most guides skip, and how to decide between building and adopting one.
EN - 对比2026年8月11日Managed agents, compared
Managed agents run on vendor-operated infrastructure. Compare Claude Managed Agents, Gemini API managed agents, Amazon Bedrock AgentCore, and the multi-harness approach.
EN - 洞察2026年8月11日Agent as a service
Agent as a service (AaaS) means AI agents delivered as a service: through an API on managed infrastructure, or as finished digital workers. Definition, examples, and the stack underneath.
EN - 洞察2026年8月11日Harness as a service
Harness as a service (HaaS) is cloud infrastructure that runs agent harnesses for you: hosted sessions, sandboxes, streaming, and artifacts behind one API.
EN - 洞察2026年8月10日What is a meta-harness
A meta-harness has two recognized senses: operating many harnesses or optimizing one. Both are capabilities of the Unified Harness Protocol (UHP).
EN - 对比2026年8月10日Harness vs model
Developers are swapping the model behind their favorite coding harness while refusing to give up the harness itself. What that reveals about agent architecture, and your product.
EN - 对比2026年8月10日Codex vs Claude Code as an API
Codex vs Claude Code from a product builder's view: what a same-task benchmark shows about cost and quality, and how to run both agent harnesses through one API.
EN - 对比2026年8月10日AgentAPI vs HarnessRouter
AgentAPI wraps terminal coding agents in an HTTP API you operate. HarnessRouter is the hosted alternative: Codex, Claude Code, and Hermes behind one product-grade API.
EN - 洞察2026年8月4日The AI agent stack
A practical guide to the AI agent stack, from energy and compute to models, agent harnesses, runtime infrastructure, and customer applications.
EN - 教程2026年8月4日What is an LLM router?
Learn how LLM routers select models by cost, quality, latency, and availability, how they compare with AI gateways, and where agent routing fits.
EN - 公告2026年8月3日The unified interface for agent harnesses
HarnessRouter is the world's first unified interface for agent harnesses. One API and control plane let developers run, trace, compare, and scale Codex, Claude Code, Hermes, Pi, DeepSeek Harness, and future harnesses inside AI products.
EN