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
fix(runner): skills go where each CLI's own loader looks
richard-epsilla50039eaf4357
diff --git a/runner/server.py b/runner/server.pyindex 43aacdf3..01ab06ed 100644--- a/runner/server.py+++ b/runner/server.py@@ -621,13 +621,28 @@ def _write_skills(cwd: str, skills: list[dict], backend: str = "claude") -> listthe same SKILL.md this product already stores).Each skill: {name, files:[{path, content}]} (or {content} -> SKILL.md).Returns [{name, desc, entry}] for the skills actually installed (entry = SKILL.md path)."""+ # EVERY CLI WITH A SKILL LOADER GETS ITS SKILLS WHERE THAT LOADER LOOKS. The CLI then presents+ # each skill to the model with its directory and its own rules about relative paths, which is+ # the mechanism that makes skills work at all. Codex and hermes used to get a directory of+ # our own invention (.harness/skills) plus prose in AGENTS.md; a weaker model read the+ # SKILL.md at the path we gave it, then ran its "test.py" in the workspace root, twice, and+ # `rg --files` never showed it the file because the tree was hidden (2026-08-23).if backend == "claude":rootrels = [".harness/home/.claude/skills", ".claude/skills"]entryroot = ".claude/skills"elif backend == "pi":rootrels = [".harness/home/.pi/agent/skills"]entryroot = ".harness/home/.pi/agent/skills"+ elif backend == "codex":+ # $CODEX_HOME/skills/<name>/SKILL.md, and CODEX_HOME is redirected into the workspace+ rootrels = [".harness/home/.codex/skills"]+ entryroot = ".harness/home/.codex/skills"+ elif backend == "hermes":+ # $HERMES_HOME/skills/<name>/SKILL.md: the <available_skills> index hermes builds itself+ rootrels = [".harness/home/.hermes/skills"]+ entryroot = ".harness/home/.hermes/skills"else:+ # dsh has no skill loader; the AGENTS.md block below is the only doorrootrels = [".harness/skills"]entryroot = ".harness/skills"installed: list[dict] = []diff --git a/runner/tests/test_session_uids.py b/runner/tests/test_session_uids.pyindex 95530789..b604259e 100644--- a/runner/tests/test_session_uids.py+++ b/runner/tests/test_session_uids.py@@ -142,7 +142,7 @@ def test_a_skill_keeps_the_name_its_author_gave_it(tmp_path):server._write_skills(str(tmp_path), [{"name": "test-skill","files": [{"path": "SKILL.md", "content": "---\nname: test-skill\n---\nRun test.py"},{"path": "test.py", "content": "print('hi')"}]}], "codex")- d = tmp_path / ".harness" / "skills" / "test-skill"+ d = tmp_path / ".harness" / "home" / ".codex" / "skills" / "test-skill" # where codex itself looksassert (d / "SKILL.md").exists() and (d / "test.py").read_text() == "print('hi')"@@ -156,4 +156,16 @@ def test_the_agent_doc_says_a_skill_s_files_sit_beside_its_skill_md(tmp_path):doc = (tmp_path / "AGENTS.md").read_text()assert "relative to THAT SKILL'S FOLDER" in doc# the folder is absolute and complete: a bare filename in the skill is one join from working- assert f"files in `{tmp_path}/.harness/skills/test-skill/`" in doc+ assert f"files in `{tmp_path}/.harness/home/.codex/skills/test-skill/`" in doc+++def test_each_cli_gets_skills_where_its_own_loader_looks(tmp_path):+ sk = [{"name": "s", "files": [{"path": "SKILL.md", "content": "---\nname: s\n---\nx"}]}]+ for backend, where in (("codex", ".harness/home/.codex/skills/s/SKILL.md"),+ ("hermes", ".harness/home/.hermes/skills/s/SKILL.md"),+ ("pi", ".harness/home/.pi/agent/skills/s/SKILL.md"),+ ("claude", ".harness/home/.claude/skills/s/SKILL.md"),+ ("dsh", ".harness/skills/s/SKILL.md")):+ d = tmp_path / backend+ server._write_skills(str(d), sk, backend)+ assert (d / where).exists(), backend