Skip to content

feat(agent-sdk): run third-party harnesses locally without a Warp server - #31

Open
synthet wants to merge 4 commits into
masterfrom
ccr-58f41aa4-howxyd
Open

synthet wants to merge 4 commits into
masterfrom
ccr-58f41aa4-howxyd

Conversation

@synthet

@synthet synthet commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Description

Split out of #15, rebuilt on current master. #15 is being closed: its Warp Drive gating landed separately in ecf63c0, and its CI and TUI-test commits are already on master. This PR carries over the parts that had not landed.

1. Local third-party harness runs (commits from #15, cherry-picked unchanged)

warp agent run --harness claude|codex|gemini [--harness-transport acp] runs with no Warp server and no Warp login when ChannelState::warp_cloud_enabled() is false and the run has no --task-id:

  • Skips the Warp login requirement, the team-metadata refresh, Drive sync and Oz task creation. AgentDriver::create skips its login check.
  • New LocalHarnessSupportClient (server/server_api/local_harness_support.rs) replaces warp-server's harness-support API. It issues local-… conversation tokens, and transcript and block-snapshot uploads skip them. Oz-task operations fail with an explicit error.
  • The root view skips first-launch onboarding for non-app execution modes, so the headless driver gets a terminal.
  • A missing Oz task is expected without a Warp server and is no longer reported as an error.

⚠️ Behaviour change in the OSS build: AcpHarness is removed from CLOUD_AGENT_FEATURES, so the ACP transport is enabled again. It had been stripped on the assumption that ACP was cloud-only, but the adapter runs as a local subprocess.

2. Tools panel leftovers (from #15's first commit, minus the Drive parts)

  • Agent Management: the Source filter is hidden without cloud agents. Every source except Interactive is an Oz run source, so locally it could only narrow to nothing.
  • Agent conversations zero state: no longer advertises ambient agents without cloud agents.
  • docs/architecture/cloud-surface-audit.md: adds the Tools panel audit section. Its Drive row now points at the gating from ecf63c0.

Linked Issue

Supersedes #15. No issue is linked.

Testing

  • rustfmt --edition 2024 --check on every changed .rs file: clean.
  • Not compiled or tested locally in this session. A cold warp build is too slow on this 4-core container, so this PR's CI is the first build on current master.
  • From fix(tools-panel): hide Warp Drive tab and cloud-only run filters #15 (on the Nov 14 base): new local_harness_support_tests.rs and agent_sdk/mod_tests.rs coverage. The author also ran warp-oss agent run --harness codex|gemini|claude --harness-transport acp end to end with the repo's scripted ACP agent; each run reached EndTurn and exited 0, with no Warp server and no login.

CHANGELOG-IMPROVEMENT: Third-party agent harnesses (Claude Code, Codex, Gemini) can run through warp agent run without a Warp server or login.


Generated by Claude Code

Work in progress, not yet compiled or tested.

- LocalHarnessSupportClient: issues local conversation tokens and no-ops
  Oz task reporting when ChannelState::warp_cloud_enabled() is false.
  Selected by get_harness_support_client() and the four harness runners.
- Transcript and block-snapshot uploads skip local conversation tokens.
- `agent run --harness <third-party>` with no Warp server skips the Warp
  login, team metadata refresh, Drive sync and Oz task creation.
- AcpHarness is no longer stripped on OSS; the ACP transport runs the
  adapter as a local subprocess.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YCSfgvK3UQJhWcq8jbzsB5
…server

Verified end to end with the repo's scripted ACP agent: `warp-oss agent run
--harness codex|gemini|claude --harness-transport acp` runs to EndTurn and
exits 0 with no Warp server and no login.

- AgentDriver::create skips its login check for local-only harness runs.
- The root view skips first-launch onboarding unless the execution mode
  can show it, so the headless driver gets a terminal.
- A missing Oz task is expected without a Warp server; stop reporting it
  as an error.
- Document local harness runs in the cloud-surface audit and fork docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YCSfgvK3UQJhWcq8jbzsB5
… copy

Carried over from #15; its Warp Drive tab gating already landed in ecf63c0.

- Agent Management: hide the Source filter without cloud agents; every
  source except Interactive is an Oz run source.
- Agent conversations zero state: stop advertising ambient agents.
- Record the Tools panel audit in cloud-surface-audit.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YCSfgtkZ6FYfgwUdTKF55g
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.

2 participants