Skip to main content

Reason Harbor adapter

Run Reason as an agent in Harbor. Harbor starts the task container and grades the result. The adapter installs the published Reason CLI in that container, checks its checksum, and starts it as a worker; the agent runs as a normal Reason Session. Your API key stays on your machine; the container only receives a one-use enrollment ticket.

Install

uv pip install reason-machines-harbor

This installs Harbor 0.22.0. For cloud environments, add the matching Harbor extra, for example uv pip install "harbor[modal]==0.22.0".

Run

Get a Reason API key with run, sessions:read, deployment:read, devices:read, devices:write, devices:use and org:write, and enable the model under Models.

export REASON_API_KEY="YOUR_REASON_API_KEY"
DOCKER_DEFAULT_PLATFORM=linux/amd64 harbor run \
  --dataset datacurve/deep-swe-1-1 --n-tasks 1 \
  --agent reasonmachines_harbor:ReasonAgent \
  --model openai/gpt-6-luna \
  --ak reasoning_effort=xhigh \
  --allow-agent-host api.reasonmachines.com \
  --allow-agent-host relay.reasonmachines.com \
  --env reasonmachines_harbor.environment:ReasonDockerEnvironment

The worker connects out to the Reason API and relay, so both --allow-agent-host flags are required, even for offline tasks.

Agent kwarg (--ak) Default Meaning
reasoning_effort medium minimal, low, medium, high, xhigh or max
mode ephemeral ephemeral: a new single-use workspace per trial, with memory and skills on. standard: your own workspace
runtime_profile runtime/reason-v7-2026-10 in ephemeral mode; the server default in standard mode A harness listed by GET /v3/deployment. The default is Reason's harness as it ran in October 2026, frozen; runtime/reason-c2-tools-v7 runs the deployment's current default instead

Ephemeral mode needs an owner or admin key of a workspace with paid model access. To bill the model to your own provider account, connect its API key under Models and pass the model as byok:<provider>:<model>, for example byok:openai:gpt-6-luna.

To run the full benchmarks and reproduce our results, see reason-machines/benchmark.

Source

reason-machines/reason-machines-harbor is a read-only copy of the adapter in the Reason monorepo, where it is developed and tested. Releases are tagged vX.Y.Z.

Metadata

Release files for reason-machines-harbor 0.3.20

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

Source distribution (sdist)

Source distribution for reason-machines-harbor 0.3.20
File Size Uploaded
reason_machines_harbor-0.3.20.tar.gz 216.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reason-machines-harbor 0.3.20
File Interpreter ABI Platform
reason_machines_harbor-0.3.20-py3-none-any.whl Python 3 none any Details

Total release size: 261.6 kB

Release files / reason_machines_harbor-0.3.20.tar.gz

Download URL reason_machines_harbor-0.3.20.tar.gz
Size 216.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f5d38c05d02dc098f1446fa0d412266b3b96a15d23f0c82f0934c24344970fa2
BLAKE2b-256 checksum
How to use checksums
eb28997ecda90745a8344870d22859a193c36866856cd4a5a006817e0fe23a75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / reason_machines_harbor-0.3.20-py3-none-any.whl

Download URL reason_machines_harbor-0.3.20-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
806446c8221ebb68e345a2fb1c0ef44cc4de6b44ec70ae49ea6f5bc06f8abf0a
BLAKE2b-256 checksum
How to use checksums
3b352125ce97bace48b32f05b3e94dd2f0cf8a924c4df81201bf1b59020e2d7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.22

2 release files

This release

0.3.20 This release

2 release files

0.3.9

2 release files

0.3.7

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

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