{"slug": "building-openharness-every-part-of-the-agent-harness-yours", "title": "Building OpenHarness: Every Part of the Agent Harness, Yours", "summary": "Prakhar Gurunani released OpenHarness, an MIT-licensed web app that lets users configure all 14 components of an AI agent harness, test it with their own model key, and download it as a single binary for macOS, Linux or Windows that serves an OpenAI-compatible API. OpenHarness comprises about 5,700 lines of Go with no third-party dependencies, 3,200 lines of hand-written HTML/CSS/JS with no build step, and 1,800 lines of Python test fixtures, and it compiles a JSON HarnessSpec into a native executable in about a second. The project follows DeepSeek's August open-sourcing of its plugin-based agent harness, whose community whitepaper counts 26 seams, 52 built-in tools and 44 session event types; Gurunani mapped those seams down to the 14 components that make sense for an agent behind an HTTP API.", "body_md": "# Building OpenHarness: Every Part of the Agent Harness, Yours\n\n# What if you could compile your own agent harness?\n\nIn [the last post](https://prakhargurunani.com/blog/building-an-agentic-coding-server-in-go/) I built\n**harness-api**: one opinionated coding agent behind an OpenAI-compatible\nendpoint. Every decision in it was mine: the tools, the context strategy, the\nguards, the loop. That’s fine for a coding agent. But each time someone asked\nfor a variation (“can it remember things across chats?”, “can it call our\ninternal API?”, “can it check its own answer first?”), the answer was the same:\n*fork it and change the Go*.\n\nIn August, DeepSeek open-sourced [its agent harness](https://github.com/deepseek-ai/deepseek-harness)\nbuilt on a single idea: **everything is a plugin**. The model adapter, the tool\nregistry, the session log, the agent loop itself: all of them are replaceable from\nconfiguration. Reading it raised the obvious next question. If every part of a\nharness can be swapped, why does assembling one still require writing code?\n\nSo I built [**OpenHarness**](https://openharness.prakhargurunani.com): a web app\nwhere you walk through every component of a harness, change whatever you want,\nchat with the result, and download it as **one binary for macOS, Linux or\nWindows** that serves an OpenAI-compatible API. Optionally, you also get a\nDockerfile to run it in a container.\n\nIt’s about 5,700 lines of Go with no third-party dependencies, 3,200 lines of hand-written HTML/CSS/JS with no build step, and 1,800 lines of Python test fixtures. The interesting parts were:\n\n- deciding what a “component” actually is\n- turning a JSON document into a native executable in about a second\n- letting strangers run agents on my server without handing them my server\n\n## Getting started\n\n- **App:**[openharness.prakhargurunani.com](https://openharness.prakhargurunani.com)\n- **Source:**[github.com/FirePing32/OpenHarness](https://github.com/FirePing32/OpenHarness) , MIT licensed\n\nPick a preset (Minimal, Research assistant, Coding agent, Support agent), walk\nthrough the 14 component steps, test it on the **Test** step with your own model\nkey, then pick your OS on **Build & download**. Run what you get:\n\n```\nchmod +x ./research-agent-darwin-arm64\nexport DEEPSEEK_API_KEY=sk-...\n./research-agent-darwin-arm64\n```\n\nAnd talk to it with the SDK you already have:\n\n``` python\nfrom openai import OpenAI\n\nclient = OpenAI(base_url=\"http://127.0.0.1:8080/v1\", api_key=\"unused\")\nresp = client.chat.completions.create(\n    model=\"research-agent\",\n    messages=[{\"role\": \"user\", \"content\": \"What changed in Go 1.26?\"}],\n)\nprint(resp.choices[0].message.content)\n```\n\nThe client sends one request. Inside, the agent may plan, call a dozen tools, delegate to a sub-agent and check its own answer before replying.\n\n### The shape of the system\n\nThere are two programs and one document. The **builder** is a Go server with an\nembedded UI. It edits, tests and compiles a **HarnessSpec**. The **agent binary**\nruns that spec. Both use the same `runtime` package, so the agent you chat with\nin the browser is the one you download.\n\n## What is a harness, exactly?\n\nLangChain’s definition is the cleanest I’ve found: the harness is *every piece\nof code, configuration and execution logic that isn’t the model itself*. That is\ntrue, but it isn’t a list you can build a UI from.\n\nDeepSeek Harness gives a better starting point. It’s built on a small kernel\ncalled Cordis, where plugins contribute services, typed events and reversible\neffects to a shared context. Each capability is a **seam** with three roles: an\ninterface (`ctx.llm`), one or more providers (` llm-deepseek`), and consumers. The\ncommunity whitepaper counts 26 seams, 52 built-in tools and 44 session event\ntypes.\n\nNot all of those make sense for an agent that lives behind an HTTP API. A web UI\nseam, an LSP client or a terminal multiplexer don’t. After mapping every seam, I\nended up with **14 components**, each of which became one step in the builder:\n\n| Component | DeepSeek seam | What you can change | \n|---|---|---|\n| Identity & API | `ctx.webServer` | name, port, model id, bearer auth, CORS | \n| Model adapter | `ctx.llm` | provider, sampling, retries, **fallback chain** | \n| System prompt | `ctx.systemPrompt` | sections, date, tool summary, client policy | \n| Tools | `ctx.tools` ,`ctx.mcpManager` | built-ins, HTTP tools, MCP servers, truncation | \n| Skills | `ctx.skills` | progressive or eager loading | \n| Memory | `ctx.storage` | static notes, persistent store, per-user scope | \n| Sessions | `ctx.sessions` | stateless, or server-side JSONL history | \n| Context | `ctx.compaction` | sliding window or summarise, tool-result pruning | \n| Agent loop | `ctx.agentLoop` | ReAct / plan-then-execute / single shot, budgets, self-check | \n| Sub-agents | `ctx.subagents` | specialists with their own prompt, model and tools | \n| Permissions | `ctx.approval` | allow/deny per tool, webhook approval, workspace jail | \n| Guardrails | waterfall listeners | block / redact / warn rules, PII redaction | \n| Hooks | `agent/pre-step` ,`tools/*` | webhooks that observe, inject or veto | \n| Observability | `ctx.sessionTelemetry` | log level, JSONL traces, usage | \n\nEach step in the builder shows its DeepSeek equivalent and a one-line “why it matters”. The UI doubles as documentation for the research.\n\n## The spec is the product\n\nDeepSeek composes plugins through layered patch files: profile, then bundles,\nthen a home patch, then `--patch` overlays. That’s powerful, and it’s the wrong\nshape for a form. OpenHarness collapses it into **one declarative JSON document**.\nEvery field in the UI is a path into it, `model.temperature` or\n`loop.selfCheck.maxRevisions`, and nothing else exists.\n\nThree rules kept it honest:\n\n**Defaults are layered under whatever you send.** `spec.Parse` decodes your JSON\non top of `spec.Default()`, so `{\"name\": \"x\", \"loop\": {\"maxSteps\": 3}}` is a\ncomplete, valid agent. Imports, presets and the `--spec` flag all go through the\nsame path.\n\n**Validation returns every problem, not the first.** `Validate()` returns a list\nlike `loop.maxSteps: must be >= 1`, `model.baseUrl: required` and so on. The UI\nmaps each prefix back to its step, so the sidebar shows an error badge on the\nright component and the Build step links straight to it.\n\n**One set of Go types everywhere.** The builder server, the preview, the\ncompiled binary and the validation all use `spec.Spec`. The UI is the only\nconsumer that isn’t Go, and it works from the same JSON and the same catalog\nendpoint.\n\n## The runtime\n\nThe runtime is the part that actually runs agents, and the same code serves the browser preview and the downloaded binary.\n\n### One loop, three strategies\n\nThe default is a ReAct loop: call the model, run any tools it asks for, feed the\nresults back, repeat. **Plan-then-execute** adds a planning call with no tools.\n**Single shot** removes the loop entirely and turns the harness into a smart\nproxy. **Self-check** wraps any of them with a review pass that either replies\n`APPROVED` or returns a corrected answer, up to `maxRevisions` times.\n\nOne detail took two tries. The plan goes in as a system message, and at first I\nappended it after the user’s request. That left every model call ending on the\nharness’s own note instead of on what the user asked. It now goes **just before\nthe latest user message**, so the request stays last.\n\nEvery loop has three budgets: steps, total tool calls and wall-clock time. When one runs out, the agent either makes a final no-tools call (“reply with your best answer and say what’s unfinished”) or returns an error, whichever you chose.\n\n### Tools are a pipeline, not a function call\n\nEvery tool call goes through the same stages, in order:\n\n1. look up the tool\n2. check permissions (tool name, then group such as `mcp:github` , then the default)\n3. run `pre_tool` hooks, which can veto the call\n4. execute it with a timeout\n5. truncate the result, keeping head and tail with a marker in between\n6. run `post_tool` hooks\n\nBuilt-in tools, HTTP tools, MCP tools, skills, memory and sub-agents all look\nthe same to the loop. The only differences are where `Run` comes from and which\npermission group they’re in.\n\nThe tools a client sends in its OpenAI request (`tools: [...]`) **pass\nthrough**. If the model calls one, the turn ends with `finish_reason: tool_calls` and the client runs it, exactly like the OpenAI API. That’s what\nlets LangChain’s `bind_tools` work against a harness that also has its own\nserver-side tools.\n\n### Streaming has two channels\n\nOpenAI chunks carry `content`. The harness also streams **agent activity**:\nplans, tool calls and results, compaction, self-check verdicts. It sends these\nas `reasoning_content`, the field reasoning models already use, so clients that\ndon’t know about it simply ignore it.\n\nStreaming the answer token by token is only safe when nothing will change it afterwards. With self-check on, or any output guardrail that can redact or block, the answer is buffered and sent once it’s final. Otherwise a draft would leak before the review rewrote it, or a phone number would stream out before the redaction matched.\n\n### Sessions on a stateless API\n\nThe OpenAI API is stateless: clients resend the whole transcript every time.\nThat’s the default here too. In **server mode** the harness keeps an\nappend-only JSONL log per session (from an `X-Session-Id` header or the `user`\nfield), so clients can send just the new message, and internal tool calls\nsurvive between turns.\n\nThe hard part is that clients don’t tell you which kind they are. The rule that works: compare the incoming user messages against the stored ones. If the stored history is a prefix, the client sent the full transcript and only the tail is new. Otherwise everything is new.\n\nThe QA fixtures (more below) found the hole in that rule. A client that sends\nonly the latest message and says *“continue”* twice looked like a re-sent\ntranscript, and the second *“continue”* was silently dropped. The fix: **a lone\nuser message with no assistant messages is always new.**\n\n### Context: prune before you summarise\n\nTwo mechanisms, applied before every model call:\n\n- **Pruning:** tool results older than the last*N* are cut to a few thousand\ncharacters. That’s cheap and often enough on its own.\n- **Compaction** , when the estimated size crosses a ratio of the budget, has\ntwo modes:\n  - **sliding window:** drop the oldest messages behind a note;\n  - **summarise:** make one extra model call to condense them.\n The cut never lands between an assistant’s tool call and its results. If the summary call fails, it falls back to the sliding window instead of failing the turn.\n\n### Two providers, one message type\n\nInternally there’s one `Message` type that round-trips the OpenAI wire format,\nincluding multimodal content arrays. The Anthropic adapter converts at the edge:\n\n- system messages are hoisted into `system` ;\n- tool calls become `tool_use` blocks, and tool results become user`tool_result` blocks;\n- consecutive same-role turns are merged;\n- a conversation that starts with the assistant gets a placeholder user turn.\n\nFallbacks can cross providers. If the DeepSeek primary keeps returning 500s after its retries, a Claude fallback answers, and the client never knows.\n\n## Compiling a spec into a binary\n\nMy first idea was code generation: render a `main.go` per agent. It’s the wrong\nabstraction. The runtime is fixed; only the data changes. So the spec rides\ninto a prebuilt runtime as a **link-time string**:\n\n```\ngo build -trimpath \\\n  -ldflags \"-s -w -X main.embeddedSpec=<gzip+base64 of the spec>\" \\\n  -o research-agent-linux-amd64 ./cmd/harness\n```\n\nAt start-up, the binary decodes `embeddedSpec`, layers it over the defaults,\nvalidates it and serves. `--spec file.json` replaces it, `--print-spec` shows it,\nand `--check` validates it without starting.\n\nTwo details make this fast and portable:\n\n- **The builder embeds the runtime’s own source** (`//go:embed go.mod spec/*.go runtime/*.go cmd/harness/*.go` ). On first use it extracts the source to a\ndirectory named after a hash of its contents. That keeps paths stable, so\nGo’s build cache stays warm: a build takes about a second, and only the link\nstep differs between agents.\n- **`CGO_ENABLED=0` plus `GOOS`/` GOARCH`** gives six static targets from one\nmachine: macOS on Apple Silicon and Intel, Linux x86-64 and ARM64, and\nWindows x64 and ARM64. Each is about 7 MB and needs nothing installed.\n\nSecrets never enter the binary. The spec stores the *name* of an environment\nvariable (`DEEPSEEK_API_KEY`), and the binary reads the value when it starts.\nHTTP tool headers work the same way: `Authorization: Bearer ${CRM_TOKEN}` is\nexpanded at call time.\n\n### The Docker option\n\nTurn on **Include a Dockerfile** and the download becomes a zip. The catch is\nthat containers run Linux even on a Mac or a Windows machine, so a Windows\nbinary is useless in an image. The zip contains:\n\n- the native binary you picked;\n- **both** Linux builds (`docker/linux-amd64/agent` and`docker/linux-arm64/agent` );\n- a Dockerfile that picks between them with BuildKit’s `TARGETARCH` :\n\n```\nARG TARGETARCH\nCOPY --chmod=0755 docker/linux-${TARGETARCH}/agent /usr/local/bin/agent\n```\n\nThe base image depends on what the agent does:\n\n- **Tool-free agents** get`distroless/static` , with no shell and no package\nmanager.\n- **Agents that run programs** (the shell tool or stdio MCP servers) get Debian\nwith the packages their allow-list needs:`git` ,`golang-go` ,`npm` ,`python3-pytest` , and so on. Commands it can’t map get a`# TODO: install` comment rather than a silent failure.\n\nA distroless image has no `curl`, so health checks call the binary itself:\n`agent --healthcheck`. `--chmod` matters on Windows, where unzipping loses the\nexecutable bit.\n\n## Letting strangers run agents on my server\n\nThe **Test** step runs the agent you configured, live, inside the builder\nprocess. Locally, that’s just convenient. On a public site it means running a\nstranger’s configuration on my server.\n\n*(The model in this screenshot is the scripted mock from the test fixtures,\nhence `TOOL_RESULT: 1024`. The plan, tool call and self-check lines are the real\nactivity stream.)*\n\nThe obvious risks are the `shell` tool and stdio MCP servers, which are literally\n“run this program”. The non-obvious one was worse. While I was designing public\nmode, I noticed **the spec decides which environment variables get read**. Set\n`model.apiKeyEnv` to the name of any secret on the server, point `baseUrl` at a\nURL you control, and the “API key” arrives in your logs. HTTP tool headers with\n`${VAR}` had the same problem.\n\nPublic mode (`--public`, the default in the image) closes each risk at its\nsource:\n\n| Risk | Mitigation | \n|---|---|\n| Spec reads server secrets | Env lookups go through `runtime.LookupEnv` , which returns`\"\"` in public mode. Visitors paste their own key, held in memory for that test instance only. | \n| Running programs | `shell` and stdio MCP servers are removed from previews, with a note telling the visitor. The downloaded binary keeps them. | \n| SSRF into the internal network | Every outbound connection is checked **after DNS resolution** . Loopback, private, link-local, CGNAT and multicast addresses are refused. | \n| Writing files anywhere | Workspace, memory, sessions and traces are moved into a per-preview temp dir, deleted when it ends. | \n| Abuse | Per-IP token buckets for builds, previews and messages; 2 previews per visitor; 30-minute idle expiry. | \n\nThe SSRF guard is short, and the important part is *where* it sits: on the\ndialer’s `Control` hook, which receives the address already resolved:\n\n```\nfunc guardControl(_, address string, _ syscall.RawConn) error {\n    host, _, _ := net.SplitHostPort(address)\n    ip := net.ParseIP(host)\n    if ip == nil || !publicIP(ip) {\n        return fmt.Errorf(\"%w: %s\", errBlockedAddr, host)\n    }\n    return nil\n}\n```\n\nChecking the hostname before resolving it is useless, because any public name\ncan resolve to `127.0.0.1`. Checking the connected address covers DNS rebinding\nfor free.\n\nThe rate limiter keys on the client IP, which behind a proxy means trusting\n`X-Forwarded-For`. It reads the **last** hop, the one my own proxy appended,\nand only when the proxy is trusted. Otherwise anyone could rotate a fake header\nand get unlimited builds.\n\n## Deploying on Coolify\n\nThe site runs on a small VPS with a self-hosted [Coolify](https://coolify.io):\n2 vCPUs, 4 GB of RAM, plus 4 GB of swap. Vercel and Cloudflare were never options.\nEvery download is a `go build`, so the server needs the Go toolchain at runtime,\nseconds of CPU per request, a warm build cache on disk, and a long-lived process\nfor previews. That’s a container, not a function.\n\n**One container, not two.** The UI is `go:embed`-ed into the builder binary, so\nthe frontend and backend deploy as a single Docker Compose service. The image is\n`golang:1.26-bookworm`, kept on purpose so the toolchain is there at runtime.\nIt runs as a non-root user, and a Docker volume at `/data` holds the build cache.\n\n**`expose`, not `ports`.** My first compose file had `ports: \"7070:7070\"`. On\nCoolify that publishes the app straight on the host, bypassing the HTTPS proxy.\nPlain HTTP would work on `<server-ip>:7070`, and because the rate limiter\ntrusts `X-Forwarded-For` from the proxy, anyone hitting the port directly could\nforge their IP. The production compose file uses `expose: [\"7070\"]`, so the\nproxy is the only way in. A separate `docker-compose.local.yml` adds a\nlocalhost-only port for running it on a laptop.\n\n**Size limits to the box.** The first compose file asked for 3 CPUs. On a\n2-CPU host, Docker refuses to start a container whose CPU limit is higher than\nthe host has, so the deploy would have built fine and then failed to start. The\nlimits are now:\n\n- 1.5 CPUs and 2.5 GB for the container, leaving Coolify’s own services about 1.5 GB;\n- one build at a time (`OPENHARNESS_BUILD_CONCURRENCY=1` );\n- 4 GB of swap, for the one-off spike when the image is built.\n\n**Pre-warm the cache in the image.** The Dockerfile ends with\n`RUN openharness --warm`, which compiles the runtime for all six targets once.\nWhen Coolify mounts a fresh named volume at `/data`, Docker seeds it with that\ncontent, so the first visitor’s build takes a second instead of six.\n\nA few Coolify specifics I learnt along the way:\n\n- **Domain:** in the domain dialog, the**Port** field is the container port\n(`7070` ). The public URL stays plain`https://…` .\n- **Volumes:** with the Docker Compose build pack, volumes and health checks\ncome from the compose file and the Dockerfile. Coolify shows the volume as\nread-only, and there is no Healthcheck tab.\n- **Environment variables** set in Coolify’s UI reach the container only if the\ncompose file references them. Settings like`OPENHARNESS_GA_ID` (opt-in\nGoogle Analytics) are declared as`${OPENHARNESS_GA_ID:-}` , which is empty\nunless you set it.\n- **Reload Compose File** after changing it, or Coolify keeps using its stored\ncopy.\n\n**Link previews need the real domain.** Sharing the link on WhatsApp showed\nnothing at first, because the page had no Open Graph tags. Those need an\n**absolute** image URL, which isn’t known when the image is built. The server now\nrenders `index.html` per request, taking the domain from\n`OPENHARNESS_PUBLIC_URL`, or else from the proxy’s `X-Forwarded-Proto` and\n`X-Forwarded-Host`. It validates the host before using it, so a forged `Host`\nheader can’t inject markup.\n\n## Testing it\n\nThe QA plan is 345 written test cases across 27 areas:\n\n- every spec parameter;\n- all six export targets and the Docker bundle;\n- OpenAI SDK compatibility;\n- public-mode security;\n- the deployment itself.\n\nBut most agent behaviour can’t be tested reliably against a real model. You can’t make GPT fail exactly once to test retries.\n\nSo the repository includes a **scriptable mock LLM**: about 350 lines of\nstandard-library Python. It speaks both the OpenAI and Anthropic APIs, with\nstreaming. Its behaviour is driven by directives in the user message:\n\n```\n[[tool:calculator {\"expression\":\"2^10\"}]]   call a tool, then report the result\n[[fail-once:500]] [[say:ok]]                fail the first request, then answer (retries)\n[[echo-system]]                             reply with the system prompt it received\n[[subagent:mathwhiz]]                       delegate to a sub-agent\n```\n\nModel names like `fail-500-primary` always fail, which tests fallback chains.\nA webhook server stands in for hooks, approvals, HTTP tools and MCP over HTTP,\nand an 80-line stdio MCP server completes the set. With those, every case in\nthe plan has an exact expected output.\n\nWriting the expected results found four real bugs before any tester did:\n\n1. **Sessions:** the repeated*“continue”* bug above.\n2. **Hooks:**`turn_start` hook injections went into the same list as the\nclient’s system messages, so they obeyed the*client’s* policy. With`ignore` they vanished; with`replace` they wiped out the base prompt. They\nnow get their own prompt section.\n3. **PII redaction:** it redacted`3.14159265358979` as a card number and\nswallowed the space after real ones. Cards now need a valid Luhn checksum,\nphone numbers need a`+` or separators, and decimals are skipped.\n4. **Traces:** they logged an empty model name, so after a fallback you\ncouldn’t tell which model had answered.\n\n36 of those cases run automatically as `qa/ci_smoke.py`: a real agent binary\nagainst the fixtures, in about ten seconds. GitHub Actions runs it on every\npush, alongside race-enabled unit tests and cross-compilation of both binaries\nfor all six targets. A Docker job builds the production image, starts it in\npublic mode, exports a distroless bundle and a Debian bundle **through the live\nAPI**, builds both, and checks they come up healthy. That job is the only place\nthe full chain from spec to running container is exercised end to end.\n\n## How it was built\n\nI built it over two days, pairing with Claude Code. The order of the work mattered more than the tooling:\n\n1. **Research first.** The 14 components came from mapping DeepSeek’s seams,\nnot from guessing. The research doc is[in the repo](https://github.com/FirePing32/OpenHarness/blob/main/docs/RESEARCH.md) ,\nalong with what I deliberately did differently.\n2. **The spec before anything else.** Once`spec.Spec` existed, the UI and the\nruntime could be built in parallel against it, and they were.\n3. **Run the real thing early.** The first compiled binary served`/v1/models` within the first few hours. Everything after was building out a pipeline\nthat already worked end to end.\n4. **Let the tests find the bugs.** Each of the bugs above was found by writing\na precise expected result and then running it, not by reading code.\n\n### The stack\n\n- **Runtime and builder:** Go 1.26, standard library only.`net/http` routing,`log/slog` ,`embed` ,`archive/zip` ; no OpenAI or Anthropic SDK.\n- **UI:** plain HTML, CSS and ES modules, embedded in the binary. Light and dark\nthemes, keyboard-accessible, works on a phone.\n- **QA:** Python 3 standard library only. CI is GitHub Actions; deployment is\nDocker Compose on a self-hosted Coolify.\n\n## What it doesn’t do (yet)\n\n- **Previews are in-process.** File tools are jailed to a temp directory, but\nthat’s a path check, not a VM. The stronger design is a microVM per preview,\nwith the builder as a router.\n- **No agent teams, scheduling or code mode.** DeepSeek has seams for shared\ntask boards (`ctx.agentTeams` ), cron-style triggers (`ctx.schedule` ) and a mode\nwhere the model writes code that calls tools (`ctx.ptcRuntime` ). None of them\nare components here yet.\n- **Approvals are webhooks.** An HTTP API has no human to click*Approve* . A\nwebhook that decides (and fails closed) is the honest equivalent, but it’s\nless friendly than a prompt.\n- **MCP auth is headers only.** No OAuth flows for remote MCP servers.\n\n## Five things worth knowing\n\nIn rough order of how surprising they were:\n\n1. **“Everything is a plugin” becomes “everything is a field”.** For a builder,\none declarative document with good defaults beats a plugin graph. The graph\nstill exists; it’s just compiled in.\n2. **Configuration is an attack surface.** The most dangerous bug in this\nproject wasn’t in the code that runs tools. It was that a config field could\nname a secret.\n3. **Check addresses after DNS, not names before it.** Any SSRF check that runs\nbefore resolution is decoration.\n4. **A link-time string is a perfectly good packaging format.** No codegen, no\ntemplates, and builds in about a second.\n5. **Write the expected output before you run the test.** Four of the bugs above\nwere found by writing down what should happen, not by running anything.\n\nThe code is on GitHub: [**FirePing32/OpenHarness**](https://github.com/FirePing32/OpenHarness),\nMIT licensed. Try it at\n[**openharness.prakhargurunani.com**](https://openharness.prakhargurunani.com):\nbuild an agent, download it, and point your favourite OpenAI client at it.\n\nIf you find a component that should exist and doesn’t, or a place where the reasoning above is wrong, open an issue.", "url": "https://wpnews.pro/news/building-openharness-every-part-of-the-agent-harness-yours", "canonical_source": "https://prakhargurunani.com/blog/building-openharness/", "published_at": "2026-11-27 06:30:00+00:00", "updated_at": "2026-11-27 09:45:08.039255+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["OpenHarness", "Prakhar Gurunani", "DeepSeek", "harness-api", "Cordis", "LangChain", "GitHub"], "also_reported_by": [], "takeaway": "OpenHarness compiles a JSON HarnessSpec into a single native binary that serves an OpenAI-compatible endpoint, so existing OpenAI SDK clients can call a custom 14-component agent by pointing base_url at http://127.0.0.1:8080/v1.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/building-openharness-every-part-of-the-agent-harness-yours", "markdown": "https://wpnews.pro/news/building-openharness-every-part-of-the-agent-harness-yours.md", "text": "https://wpnews.pro/news/building-openharness-every-part-of-the-agent-harness-yours.txt", "jsonld": "https://wpnews.pro/news/building-openharness-every-part-of-the-agent-harness-yours.jsonld"}}