Skip to content

Add agent harnesses using AI SDK HarnessAgent#890

Draft
blurrah wants to merge 43 commits into
mainfrom
blurrah/agent-harness-sdk
Draft

Add agent harnesses using AI SDK HarnessAgent#890
blurrah wants to merge 43 commits into
mainfrom
blurrah/agent-harness-sdk

Conversation

@blurrah

@blurrah blurrah commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Uses the new AI SDK harness support to add agent harnesses like:

  • Codex
  • Claude Code
  • Pi

Tries to map to Open Agents tool calls where possible. Also adds snapshot pre-warming.

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
open-agents Ready Ready Preview Jun 17, 2026 9:28pm

@socket-security

socket-security Bot commented Jun 4, 2026

Copy link
Copy Markdown

@blurrah blurrah changed the title Add multi-harness support with agent-harness-sdk Add agent harnesses using AI SDK HarnessAgent Jun 15, 2026
@socket-security

socket-security Bot commented Jun 17, 2026

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
High CVE: Pi Agent: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts in npm @earendil-works/pi-coding-agent

CVE: GHSA-jfgx-wxx8-mp94 Pi Agent: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts (HIGH)

Affected versions: >= 0.74.0 < 0.78.1

Patched version: 0.78.1

From: pnpm-lock.yamlnpm/@ai-sdk/harness-pi@1.0.0-canary.6npm/@earendil-works/pi-coding-agent@0.77.0

ℹ Read more on: This package | This alert | What is a CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known high severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@earendil-works/pi-coding-agent@0.77.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

mlekhi and others added 4 commits June 17, 2026 13:34
Multiple chats in one session share the sandbox, but the harness bridge
used a single hardcoded port (5001), so concurrent external-harness runs
would collide. Expose a pool of bridge ports (5001-5008) and hand it to
the AI SDK harness, which leases one port per concurrent session. Also
exclude the whole pool from dev-server-eligible ports.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The external-harness ownership claim enforced one active harness per
session, which blocked the legitimate case of multiple chats (tabs)
running concurrently in the same shared sandbox. Now that each chat
leases its own bridge port, the claim is unnecessary and harmful.

Removes the workflow claim/release, the dedicated db helpers, and the
ownership module. Leaves the activeHarnessRunId column in place (no
migration); it is simply unused.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…-claim

Fix/harness remove ownership claim
fix(harness): lease bridge ports from a pool for concurrent chats
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