Skip to main content

ohkit

A unified Python programming interface for agent harnesses.

Status

ohkit is a pre-alpha Python library. This checkout implements typed asynchronous Thread/Run execution and a concrete Codex app-server control backend: streaming, result-only execution, active steering, cancellation, native history resume/fork, and typed approvals/questions. It also supplies typed Workspace I/O and an application-hosted Codex executor for new Threads in explicitly unsandboxed mode. Stable ACP execution includes negotiated history continuation, native permission choices, and optional Workspace text/terminal callbacks. Ordinary Claude execution uses the official SDK, with history continuation and approval handling but no Workspace bridge. Neither new adapter advertises steering or fork. Earlier published bootstrap releases expose metadata only; these source capabilities are not a claim of a new release.

The repository, Python distribution, and import package are all named ohkit. Python 3.13 or newer is required. Both owned stdio control and connections to caller-owned WebSocket services are available in the default installation. Codex must be installed separately and configured for its native model provider.

The architecture specifications own the execution model and Workspace boundary. The getting-started guide and Codex guide describe runnable source APIs and the tested native version, rather than promising compatibility with every upstream release.

Quick start

Install this checkout with python -m pip install ., then use a configured Codex executable on PATH:

import asyncio

from ohkit.backends.codex import Codex


async def main() -> None:
    async with Codex() as backend:
        thread = await backend.new_thread(cwd="/path/to/project")
        result = await thread.run("Explain the project without changing files.")
        print(result.outcome, result.output)


asyncio.run(main())

The native harness owns tools, filesystem access, sandbox policy, and credentials. Entering Codex() owns one stdio app-server process; it is not a portable Workspace or application sandbox.

For application-supplied file/process I/O, see Workspace and the authenticated hosting example. The bridge borrows the provider; your application owns routing, authorization, and the listener. External executor history resume/fork is not supported by the pinned native protocol.

Development

git clone https://github.com/Wh1isper/ohkit.git
cd ohkit
make install
make check-all

See CONTRIBUTING.md for contribution and validation rules, DEVELOPMENT.md for engineering standards, and spec/README.md for accepted contracts.

Documentation

License

Original ohkit code is under the MIT License. Generated Codex protocol code also carries Apache-2.0 terms; see third-party notices. The distribution's license expression is MIT AND Apache-2.0.

Metadata

Release files for ohkit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ohkit 0.1.0
File Size Uploaded Provenance
ohkit-0.1.0.tar.gz 61.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ohkit 0.1.0
File Interpreter ABI Platform
ohkit-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 134.9 kB

Release files / ohkit-0.1.0.tar.gz

Download URL ohkit-0.1.0.tar.gz
Size 61.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6cf308a478cbad8fdf58282b9753bff2e507ce48e7bc3d911217ab6d1ece3750
BLAKE2b-256 checksum
How to use checksums
7e65dc7e4ac15f7660863928eef47b1868a7cfbeb3fb8d4736eadb5fbe2cbc6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ohkit-0.1.0-py3-none-any.whl

Download URL ohkit-0.1.0-py3-none-any.whl
Size 73.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94646dfe7e2fab0eb3723a92b46c821cd7722a896079ad2493d60558f2db3b7b
BLAKE2b-256 checksum
How to use checksums
69fedba1f3f274205a08cd480951521e1d61b3b80e7f6e1e857b69d4e022eee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ohkit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page