A unified coding-agent harness protocol and web UI that translates Claude Code, Codex, OpenCode, and Antigravity into one contract, event stream, and session model.
Dirijen (Indonesian/Malay: orchestra conductor) is an open-source protocol and web-based control center for coding-agent harnesses. Instead of treating Claude Code, Codex, OpenCode, and Antigravity (agy) as completely separate terminal tools with incompatible outputs and flags, Dirijen translates all of them into one contract, one event stream, one session model, and one transcript.
I started this project because of two real frustrations in my daily workflow:
I took inspiration from tools like t3code, orca, and openbot—even though I had never actually used them yet! Rather than just adopting an existing tool, I wanted to design my own unifying protocol from scratch so that any coding-agent harness can live behind one web UI today, and eventually be controlled remotely from a web or mobile client anywhere.
Before writing the codebase, I sketched out the core idea: put a dedicated Wrapper in front of each harness (Claude, Codex, Opencode, or any custom harness where "custom wrapper should figure themselves out"), normalize them into a single Dirijen Protocol, and let clients consume that protocol to orchestrate or program the harnesses uniformly.

In the implementation, @dirijen/core strictly knows no specific harness. Each harness lives in its own adapter package, while @dirijen/web and @dirijen/cli consume the exact same core API (Interface B) that any future mobile app or orchestrator would use:
Each coding-agent CLI reinvents the same primitives—session IDs, event streams, permission prompts, resume flags, and model selection—just with different vocabularies. @dirijen/core solves this through four unifications:
AgentAdapter): Core never imports any adapter or mentions any harness name. Supporting a new harness means building an isolated wrapper package—either via @dirijen/acp (for ACP-speaking agents), @dirijen/exec's defineExecAdapter (for stdio/NDJSON CLIs), or a hand-written defineAdapter implementation.AsyncIterable spanning 28 frozen AgentEvent types.starting, idle, working, blocked, cancelled, exited, errored, unknown) and a unified AttentionRequest mechanism for human-in-the-loop approvals and questions.messages() folds the persisted event log into a clean chat thread projection, allowing any client UI to reopen sessions without re-running the underlying CLI.The repository is structured as a TypeScript monorepo running on Node.js (>=22.18) with strict boundary tests between the protocol core and its adapters:
| Package | Role |
|---|---|
@dirijen/core | The protocol library: adapter contract, lifecycle FSM, transcript projection, and persistence—with no HTTP server or UI. |
@dirijen/exec | Wrapper-side toolkit (defineExecAdapter) for stdio/NDJSON-based CLI harnesses. |
@dirijen/acp | Wrapper-side toolkit for harnesses that speak ACP (Agent Client Protocol). |
@dirijen/adapter-claude | Adapter wrapping Claude Code. |
@dirijen/adapter-codex | Adapter wrapping Codex (codex app-server and codex exec). |
@dirijen/adapter-opencode | Adapter wrapping OpenCode (opencode acp and opencode run). |
@dirijen/adapter-agy | Adapter wrapping Antigravity over ACP. |
@dirijen/adapter-example | Minimal reference adapter using defineAdapter for custom wrappers. |
@dirijen/web | Web chat UI (dirijen-web) built with node:http + SSE, React 19, and Tailwind CSS v4. |
@dirijen/cli | CLI client (dirijen), runOnce helper, and contract conformance runner. |
@dirijen/sample-web-client | Minimal vanilla-JS UI and node:http reference client over @dirijen/core. |
Dirijen is currently an active prototype (v0.1.0). The @dirijen/web server already enforces bearer-token authentication (--token / DIRIJEN_WEB_TOKEN) whenever bound to a non-loopback host (0.0.0.0), laying the groundwork for secure remote access.
Moving forward, the goal is to turn this unified foundation into a true remote-first workspace—making it effortless to switch harnesses when a subscription hits its limit, monitor long-running coding tasks from a phone, and build programmable multi-agent orchestration on top of one clean protocol.