Skip to content

Refactor runtime launches into adapter registry#3

Open
ericlewis wants to merge 2 commits intokimjune01:masterfrom
ericlewis:codex/harness-runtime-registry
Open

Refactor runtime launches into adapter registry#3
ericlewis wants to merge 2 commits intokimjune01:masterfrom
ericlewis:codex/harness-runtime-registry

Conversation

@ericlewis
Copy link

@ericlewis ericlewis commented Feb 22, 2026

Summary

  • introduce a runtime adapter registry and shared launch contract (request + plan + capabilities)
  • move runtime-specific launch logic into dedicated adapters (claude, codex-app-server, amp)
  • keep dispatcher.py as a compatibility wrapper that delegates to adapters
  • wire Engine to launch via an injected/selected runtime adapter
  • extend CLI runtime selection with aliases (--amp, --claude, --codex) and runtime-aware default models
  • update docs for runtime options and harness structure

Why

This keeps engine/runtime concerns separated, makes adding backends cheaper, and makes runtime capabilities explicit.

Notes

  • amp runtime currently warns when --model/--budget are provided because Amp does not support those flags in this integration.
  • did not run tests in this change set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant