Agent harnesses.
A Python interface.
Keep the native agent loop.
Give your application a clear execution boundary.
python -m pip install --pre ohkitOne boundary. Explicit ownership.
ohkit is an independent Python programming interface for agent harnesses. Its design separates conversation continuity, foreground work, and the file and process operations used by a native agent.
Pre-alpha implementation: this source checkout implements typed asynchronous Thread/Run execution and Codex app-server control. Earlier published bootstrap releases expose version metadata only. Typed Workspace I/O and an application-hosted Codex executor are also available for new Threads in explicitly unsandboxed mode. ACP supplies stable protocol execution and optional Workspace callbacks. Claude supplies ordinary SDK execution and history continuation, without a Workspace bridge.
Start here
- Getting started: install from source and run a configured Codex backend.
- Execution: streams, terminal results, active control, and live decisions.
- Codex: native options, transport ownership, and tested compatibility.
- Workspace: provider contracts, resource lifetime, and supported modes.
- History and workspace continuation: resume, native fork, and selected copy/inject strategies across backends.
- Application-hosted executor: runnable authenticated hosting and multiple project routes.
- Documentation maintenance: preview, validate, and deploy this site.
- Releasing: prepare and publish Python artifacts.
Design boundaries
Native harnesses own their agent loops, tools, Turns, and native history. ohkit owns the common execution boundary and protocol adapters. Applications own policy, durable scheduling, persistence, deployment, and Workspace providers.
A Thread preserves conversation continuity. A Run represents one accepted unit of foreground work and may span native Turns. A Workspace supplies file and process operations; it is not an agent loop or a virtual operating system.
The accepted specifications own these contracts. Unimplemented target contracts do not imply backend compatibility; the Codex guide owns the current implementation boundary and validation evidence.
Project
Wh1isper maintains ohkit as an independent public project. Browse the repository or read the contribution guide.