Harness Router
<p> Fast AI tool routing powered by Jev. </p> <p> <a href="https://www.producthunt.com/products/harness-103?utm_campaign=producthunt-atom-posts-feed&utm_medium=rss-feed&utm_source=producthunt-atom-posts-feed">Discussion</a> | <a href="https://www.producthunt.com/r/p/1262277?app_id=339">Link</a> </p>
Working when we checked on .
What is Harness Router?
Harness Router is an open-source decision layer for agent harnesses that chooses the next tool call for coding agents. It targets developers using harnesses like Codex, Claude Code, ohmypi, Antigravity, or DeepSeek. It routes via a cache for repeated states, a Jev model choice through OpenRouter, and optional MCTS look-ahead over a supplied simulator. Installation is via uv with Python 3.11+ and an OpenRouter API key, and it is MIT licensed.
Harness Router pricing
Pricing model: Free
Free and MIT open source; requires a Jev/TypeSafe AI or OpenRouter API key (Jev input ~$0.042/MTok, output free)
Harness Router pros
- Open source and MIT licensed
- Supports five harnesses: Codex, Claude Code, ohmypi, Antigravity, DeepSeek
- Three-tier decision stack: cache, Jev, optional MCTS look-ahead
- Python API, CLI, and MCP server available for custom loops
- Installer merges settings and backs up changed files
- Requires only Python 3.11+ and an OpenRouter API key
Harness Router cons
- Requires an OpenRouter API key, implying external API costs
- MCTS is optional and requires a user-supplied simulator
- Codex and Claude Code installs need additional manual adapter file downloads
- No managed pricing or support plans documented
Frequently asked questions about Harness Router
What does Harness Router do?
It acts as a decision layer for agent harnesses, choosing the next tool call, using the result, and keeping the agent moving through decide, execute, and observe steps.
Which harnesses does it integrate with?
It supports Codex, Claude Code, ohmypi, Antigravity, and DeepSeek via native hooks, extensions, a hook bridge, and hooks plus MCP, respectively.
Who is Harness Router for?
It is for developers building or running coding agents with harnesses like Codex or Claude Code who want smarter next-tool routing without giving up their harness's planning and permissions.
How does the routing decision work?
It uses a three-tier stack: a cache reuses decisions for matching states, Jev resolves a closed choice among available tools via OpenRouter, and optional MCTS searches a side-effect-free state graph when downstream outcomes matter.
Is MCTS required?
No, MCTS is optional and needs a simulator. If unavailable, a fallback hands the choice back to the planner.
What are the requirements to run it?
Python 3.11 or newer and an OpenRouter API key, which must be available to the harness process before starting a session.
How is it installed?
Install with 'uv tool install' from the GitHub repository, set the OPENROUTER_API_KEY environment variable, then run the hook installer script for your chosen provider such as Codex.
Is Harness Router open source?
Yes, it is MIT licensed and hosted on GitHub under Protocol-Lattice/harness-router, including a README and a benchmark file.
Can it be used outside the supported harnesses?
Yes, the router can be called directly through the Python API, CLI, or an MCP server for custom agent loops.
Does the harness keep control over execution?
Yes, the harness keeps its planning, permissions, approvals, and execution policy; the router only selects the next tool.