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.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.548748-04:00","type":"team_info","available_agents":[{"name":"root","description":"the harness turn","provider":"openai","model":"anthropic/claude-haiku-5.5","execution_capabilities":{"mode":"native","tool_execution":"docker-agent","tool_approval":"docker-agent-policy","budget_supported":true,"compaction_supported":true,"mid_turn_steering_supported":true,"prompt_hook_context_supported":true}}],"current_agent":"root"}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.549174-04:00","type":"mcp_init_started"}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.555777-04:00","type":"mcp_init_finished"}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.55578-04:00","type":"toolset_info","available_tools":13,"loading":false}
{"timestamp":"2026-10-16T01:12:59.555948-04:00","type":"user_message","message":"Read the file e2e.txt and then tell me in two full sentences what it contains and what you did.","session_id":"hr-fixture-1","session_position":0}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.55595-04:00","type":"stream_started","session_id":"hr-fixture-1"}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.555953-04:00","type":"mcp_init_started"}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.556481-04:00","type":"mcp_init_finished"}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.556481-04:00","type":"toolset_info","available_tools":13,"loading":false}
{"timestamp":"2026-10-16T01:12:59.556484-04:00","type":"agent_info","agent_name":"root","model":"openai/anthropic/claude-haiku-5.5","description":"the harness turn"}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.556668-04:00","type":"hook_started","session_id":"hr-fixture-1","hook_event":"turn_start"}
{"agent_name":"root","timestamp":"2026-10-16T01:12:59.557334-04:00","type":"hook_finished","session_id":"hr-fixture-1","hook_event":"turn_start","duration_ms":0,"allowed":true}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.032714-04:00","type":"agent_choice","content":"E","session_id":"hr-fixture-1","message_id":"2ce17cd3-506f-4e8a-957b-7352efb7b238"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.032721-04:00","type":"agent_choice","content":"2EDA","session_id":"hr-fixture-1","message_id":"2ce17cd3-506f-4e8a-957b-7352efb7b238"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.032723-04:00","type":"agent_choice","content":" Let","session_id":"hr-fixture-1","message_id":"2ce17cd3-506f-4e8a-957b-7352efb7b238"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.032851-04:00","type":"agent_choice","content":" me read the file.","session_id":"hr-fixture-1","message_id":"2ce17cd3-506f-4e8a-957b-7352efb7b238"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.033007-04:00","type":"partial_tool_call","tool_call":{"id":"toolu_01681W5WFyGPSoRiVCZhVJ4x","type":"function","function":{"name":"read_file"}},"tool_definition":{"name":"read_file","category":"filesystem","description":"Read the contents of a file from the file system. By default the complete file is returned; for text files the optional line (1-based start line) and limit (maximum number of lines) arguments select a line range. Supports text files and images (jpg, png, gif, webp). Images are returned as image content that you can view directly.","parameters":{"additionalProperties":false,"properties":{"path":{"description":"File to read","type":"string"},"line":{"description":"1-based line number to start reading from (text files only; defaults to the first line)","type":["null","integer"]},"limit":{"description":"Maximum number of lines to read (text files only; defaults to reading through the end of the file)","type":["null","integer"]}},"required":["path"],"type":"object"},"annotations":{"idempotentHint":false,"readOnlyHint":true,"title":"Read"},"outputSchema":{"type":"string"}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.03301-04:00","type":"partial_tool_call","tool_call":{"id":"toolu_01681W5WFyGPSoRiVCZhVJ4x","type":"function","function":{"name":"read_file","arguments":"{\"path\": \"e2e.txt"}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.033046-04:00","type":"partial_tool_call","tool_call":{"id":"toolu_01681W5WFyGPSoRiVCZhVJ4x","type":"function","function":{"name":"read_file","arguments":"\", \"line\": null"}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.033129-04:00","type":"partial_tool_call","tool_call":{"id":"toolu_01681W5WFyGPSoRiVCZhVJ4x","type":"function","function":{"name":"read_file","arguments":", \"limit\": null"}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.033247-04:00","type":"partial_tool_call","tool_call":{"id":"toolu_01681W5WFyGPSoRiVCZhVJ4x","type":"function","function":{"name":"read_file","arguments":"}"}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.038365-04:00","type":"message_added","session_id":"hr-fixture-1","has_tool_calls":true}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.038369-04:00","type":"token_usage","session_id":"hr-fixture-1","usage":{"input_tokens":2765,"output_tokens":108,"context_length":2873,"context_limit":0,"cost":0,"last_message":{"input_tokens":2765,"output_tokens":108,"cached_input_tokens":0,"cached_write_tokens":0,"Cost":0,"Model":"openai/anthropic/claude-haiku-5.5","finish_reason":"tool_calls"}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.042124-04:00","type":"hook_started","session_id":"hr-fixture-1","hook_event":"tool_input_transform"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.042312-04:00","type":"hook_finished","session_id":"hr-fixture-1","hook_event":"tool_input_transform","duration_ms":0,"allowed":true}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.042798-04:00","type":"tool_call","tool_call":{"id":"toolu_01681W5WFyGPSoRiVCZhVJ4x","type":"function","function":{"name":"read_file","arguments":"{\"path\": \"e2e.txt\", \"line\": null, \"limit\": null}"}},"tool_definition":{"name":"read_file","category":"filesystem","description":"Read the contents of a file from the file system. By default the complete file is returned; for text files the optional line (1-based start line) and limit (maximum number of lines) arguments select a line range. Supports text files and images (jpg, png, gif, webp). Images are returned as image content that you can view directly.","parameters":{"additionalProperties":false,"properties":{"path":{"description":"File to read","type":"string"},"line":{"description":"1-based line number to start reading from (text files only; defaults to the first line)","type":["null","integer"]},"limit":{"description":"Maximum number of lines to read (text files only; defaults to reading through the end of the file)","type":["null","integer"]}},"required":["path"],"type":"object"},"annotations":{"idempotentHint":false,"readOnlyHint":true,"title":"Read"},"outputSchema":{"type":"string"}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.139052-04:00","type":"hook_started","session_id":"hr-fixture-1","hook_event":"tool_response_transform"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.139227-04:00","type":"hook_finished","session_id":"hr-fixture-1","hook_event":"tool_response_transform","duration_ms":0,"allowed":true}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.139233-04:00","type":"tool_call_response","tool_call_id":"toolu_01681W5WFyGPSoRiVCZhVJ4x","tool_definition":{"name":"read_file","category":"filesystem","description":"Read the contents of a file from the file system. By default the complete file is returned; for text files the optional line (1-based start line) and limit (maximum number of lines) arguments select a line range. Supports text files and images (jpg, png, gif, webp). Images are returned as image content that you can view directly.","parameters":{"additionalProperties":false,"properties":{"path":{"description":"File to read","type":"string"},"line":{"description":"1-based line number to start reading from (text files only; defaults to the first line)","type":["null","integer"]},"limit":{"description":"Maximum number of lines to read (text files only; defaults to reading through the end of the file)","type":["null","integer"]}},"required":["path"],"type":"object"},"annotations":{"idempotentHint":false,"readOnlyHint":true,"title":"Read"},"outputSchema":{"type":"string"}},"response":"MADE\n","result":{"output":"MADE\n","meta":{"path":"e2e.txt","lineCount":2}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.139246-04:00","type":"message_added","session_id":"hr-fixture-1"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.141244-04:00","type":"mcp_init_started"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.142774-04:00","type":"mcp_init_finished"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.142775-04:00","type":"toolset_info","available_tools":13,"loading":false}
{"timestamp":"2026-10-16T01:13:01.142783-04:00","type":"agent_info","agent_name":"root","model":"openai/anthropic/claude-haiku-5.5","description":"the harness turn"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.142822-04:00","type":"hook_started","session_id":"hr-fixture-1","hook_event":"turn_start"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:01.143188-04:00","type":"hook_finished","session_id":"hr-fixture-1","hook_event":"turn_start","duration_ms":0,"allowed":true}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210295-04:00","type":"agent_choice","content":"E","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210347-04:00","type":"agent_choice","content":"2EDA The","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210387-04:00","type":"agent_choice","content":" file e","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210435-04:00","type":"agent_choice","content":"2e.txt contains a","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210483-04:00","type":"agent_choice","content":" single word, \"MADE\".","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210548-04:00","type":"agent_choice","content":" I read it with","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.21061-04:00","type":"agent_choice","content":" a single file","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210714-04:00","type":"agent_choice","content":"-","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210749-04:00","type":"agent_choice","content":"read call and","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210869-04:00","type":"agent_choice","content":" made","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210908-04:00","type":"agent_choice","content":" no chang","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210939-04:00","type":"agent_choice","content":"es to it or","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.210958-04:00","type":"agent_choice","content":" an","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.21102-04:00","type":"agent_choice","content":"ything else in","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.211022-04:00","type":"agent_choice","content":" the workspace.","session_id":"hr-fixture-1","message_id":"f4147736-32ec-479a-8f66-a23b7462a10b"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.211325-04:00","type":"message_added","session_id":"hr-fixture-1"}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.211328-04:00","type":"token_usage","session_id":"hr-fixture-1","usage":{"input_tokens":2882,"output_tokens":53,"context_length":2935,"context_limit":0,"cost":0,"last_message":{"input_tokens":2882,"output_tokens":53,"cached_input_tokens":0,"cached_write_tokens":0,"Cost":0,"Model":"openai/anthropic/claude-haiku-5.5","finish_reason":"stop"}}}
{"agent_name":"root","timestamp":"2026-10-16T01:13:02.211454-04:00","type":"stream_stopped","session_id":"hr-fixture-1","reason":"normal","finish_reason":"stop"}