Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

Merge branch 'main' into feat/claude-plugin-dir

Ray Fatahi17aab41d4c99
diff --cc runner/server.py
index 7d611a60,10a9a1db..563b4144
--- a/runner/server.py
+++ b/runner/server.py
@@@ -2785,11 -2929,10 +3009,12 @@@ def turn(req: TurnReq, identifier: str
tools_disabled=req.tools_disabled, vision=bool(req.vision))
else:
mcp_config = _write_mcp_config_claude(cwd, req.mcp_servers)
+ plugin_dirs = _write_plugins(cwd, req.plugins)
cmd = _build_claude(req.provider, auth, model, req.prompt, req.max_turns, cwd, env,
resume_session_id=req.resume_session_id, mcp_config=mcp_config,
- disallowed_tools=req.tools_disabled, partial=bool(req.partial_messages))
+ disallowed_tools=req.tools_disabled, partial=bool(req.partial_messages),
+ plugin_dirs=plugin_dirs)
+ _isolate_session(cwd) # everything the runner just wrote into the session is the session's now
turn_id = "turn" + uuid.uuid4().hex
with _turns_lock:
# Double-check under the lock: a concurrent retry with the same key may have raced past the