Add Pi and OMP harnesses with OMP as the default - #913
Open
santoshkumarradha wants to merge 4 commits into
Open
Conversation
Contributor
Performance
⚠ Regression detected:
|
Contributor
📊 Coverage gateThresholds from
✅ Gate passedNo surface regressed past the allowed threshold and the aggregate stayed above the floor. |
Contributor
📐 Patch coverage gateThreshold: 80% on lines this PR touches vs
✅ Patch gate passedEvery surface whose lines were touched by this PR has patch coverage at or above the threshold. |
santoshkumarradha
marked this pull request as ready for review
August 12, 2026 20:47
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Product outcome
AgentField can now run Pi and OMP as first-class coding harnesses from Python, TypeScript, and Go. OMP is the consistent zero-configuration default, while explicit provider selection remains fully supported. A production-shaped Go example fans one task out to Pi and OMP concurrently and joins their typed results in a single AgentField workflow.
This closes the practical parity gap with OpenCode: applications use the same AgentField harness contract for model selection, project root, system prompt, tools, permissions, session resume, structured output, retries/timeouts, and normalized usage metrics.
Developer experience
sonnetfallback into provider-neutral calls.provider="opencode"orprovider="pi"are unchanged.harness=omp) across Python, TypeScript, and Go.af harness doctorrecognizes both CLIs, reports binary/version/auth/usability, and lists OMP first as the default.Architecture
#variant→--model+--thinking--cwdplus process cwd for OMP--session; OMP--resumefind; OMPglobParity assessment
Pi and OMP have feature parity with OpenCode at the AgentField contract boundary. Native flags are intentionally not identical: each adapter translates its CLI's approval, resume, project-root, and filesystem-search vocabulary. Those differences do not leak into application code.
Covered contract surface:
Installation and operations
npm install -g --ignore-scripts @earendil-works/pi-coding-agent curl -fsSL https://omp.sh/install | sh af harness doctor --provider pi,omp --jsonThe doctor check is static and does not make a paid model request. Containers should install the selected CLI during image construction and run the doctor as a startup/CI gate.
Go workflow example
examples/go_agent_nodes/cmd/harness_duoregisters:comparestarts both branches concurrently and joins their structured results. It defaults toopenrouter/minimax/minimax-m2.7and acceptsopenrouter/google/gemini-2.5-flashfor a faster smoke path.Verification
0.84.1and OMP17.2.15, both authenticated through OpenRouter and usable.run_20260812_164308_d2tasl3y/exec_20260812_164308_fp15z9ifsucceeded in 19.4s withopenrouter/google/gemini-2.5-flash;compare,pi_worker, and the provider-lessomp_workerall completed with structured output and native cost/token metrics.run_20260812_162041_fw7j8b54withopenrouter/minimax/minimax-m2.7.Compatibility
Explicit provider configurations are unchanged. The intentional behavior change is that a call with neither a per-call nor configured provider now selects OMP instead of failing. Users who want another default can continue to set it once in
HarnessConfig.