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.

fix(gateway): QWEN.md is our instruction file, not a deliverable

richard-epsilla6d8958ed827d
diff --git a/gateway/app.py b/gateway/app.py
index 0fc54d71..e282454e 100644
--- a/gateway/app.py
+++ b/gateway/app.py
@@ -4911,7 +4911,10 @@ def _strip_internal(d: dict) -> dict:
# Harness-internal seed/config files the runner writes into the workspace to drive the agent
# (e.g. AGENTS.md surfaces installed skills for codex; CLAUDE.md is the claude equivalent). They are
# never user-facing artifacts, so they must never appear in a turn's output file list.
-_OUTPUT_EXCLUDE_NAMES = {"AGENTS.md", "CLAUDE.md"}
+# Instruction files WE write into the workspace — one per backend family. A new backend that
+# introduces a new context-file name must add it here or the harness's own instructions get
+# collected as a "produced" deliverable on the first turn (QWEN.md did, 2026-08-25).
+_OUTPUT_EXCLUDE_NAMES = {"AGENTS.md", "CLAUDE.md", "QWEN.md"}
def _is_internal_output(name: str) -> bool: