Add a built-in Cline coding-agent harness - #2431
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 87dcc418bc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@xeophon I tested this with an OR key and it works. Would love a review. Thank you! |
|
@xeophon @hallerite @mikasenghaas Would love a review! |
|
hey @arafatkatze! does Cline offer native ACP support? we are moving all harnesses over to ACP-backed if possible. also, what about pre + post tool hooks? |
|
@xeophon Yes, Cline supports native ACP. I updated the PR to use it and added end-to-end coverage for persistent sessions, resume, and MCP tool use. I also verified native tool execution and artifact collection end to end through Verifiers model interception. Also PreToolUse and PostToolUse hooks both work in ACP mode and I have verified it in this PR too. |
|
added some comments @arafatkatze have you run cline + any model with terminalbench2.1 (https://github.com/PrimeIntellect-ai/prime-envs/tree/main/environments/terminal/terminal_bench_2) in verifiers? |
@xeophon Yes, since your comment I ran Terminal-Bench 2.1 through this Verifiers ACP harness with latest Cline and anthropic/claude-sonnet-5 via OpenRouter. Both Docker and Modal smoke runs solved successfully, and the full 89-task evaluation completed. The traces contain 2,396 intercepted model calls and tool use across every task. |
Summary
Adds Cline as a first-class v1 harness backed by its native ACP server, with isolated rollout state and MCP support.
Validation
Note
Add built-in
ClineHarnessACP coding-agent harnessClineHarnessandClineHarnessConfigin harness.py, installing a pinned Cline CLI version (3.0.57) into the runtime via npm and running it in ACP mode with provider-bound config, disabled tools, and MCP serversCLINE_DATA_ROOTstore global settings and MCP config;cleanupremoves them withrm -rfclineentries to theAGENTIC_PLACEMENTSandACP_RESUME_PLACEMENTStest matrices in test_e2e.py and aclinepytest marker in pyproject.tomlClineHarnessConfig.versionis regex-constrained; invalid versions fail at config validation.setuprunsnpm installinside the runtime and aborts on non-zero exit with an error tailMacroscope summarized d539ef0.