Skip to content

feat(harness-deepagents): implement harness adapter for Deep Agents#16261

Merged
felixarntz merged 48 commits into
mainfrom
harness-deepagents
Jun 25, 2026
Merged

feat(harness-deepagents): implement harness adapter for Deep Agents#16261
felixarntz merged 48 commits into
mainfrom
harness-deepagents

Conversation

@mlekhi

@mlekhi mlekhi commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Background

DeepAgents is a TS agent runtime. This is the harness adapter for DeepAgents - @ai-sdk/harness-deepagents. Runs the deepagents package through a Node bridge in the sandbox.

  • Built-in tools: read, write, edit, bash, grep, glob, ls, task, write_todos
  • Host tools work
  • Skills work
  • Auth: Anthropic, OpenAI, Gateway
  • Multi-turn, attach, resume
  • Built-in tool approvals (approve/reject) via DeepAgents interruptOn

Manual Verification

Ran the examples for real (model + sandbox):

  • examples/ai-functions/src/harness-agent/deepagents/* — all worked
  • Approvals: approve → tool runs; reject → tool doesn't run, returns "Rejected by user."
  • TUI + Next apps: all variants worked
  • 45 unit tests pass

Checklist

  • All commits are signed
  • Tests added
  • Docs added
  • Changeset added
  • Self-reviewed

@mlekhi mlekhi marked this pull request as ready for review June 19, 2026 02:26
Comment thread packages/harness-deepagents/src/deepagents-harness.ts
@mlekhi mlekhi changed the title Harness deepagents feat(harness-deepagents): implement harness adapter for Deep Agents Jun 19, 2026

@felixarntz felixarntz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mlekhi this works great based on initial testing! the main thing to look into further is proper skills setup, and then some minor fixes around tools. also worth checking whether we can support tool approvals at least for custom tools (like e.g. for Codex).

Comment thread packages/harness-deepagents/package.json Outdated
Comment thread packages/harness-deepagents/src/bridge/package.json Outdated
Comment thread packages/harness-deepagents/src/bridge/index.ts Outdated
Comment thread packages/harness-deepagents/src/bridge/package.json Outdated
Comment thread packages/harness-deepagents/src/deepagents-harness.ts
Comment thread packages/harness-deepagents/src/deepagents-harness.ts Outdated
Comment thread packages/harness-deepagents/src/bridge/index.ts
Comment thread examples/ai-functions/src/harness-agent/deepagents/generate-text.ts
Comment thread examples/harness-e2e-next/agent/harness/deepagents/basic-agent.ts
Comment thread content/providers/02-ai-sdk-harnesses/05-deepagents.mdx Outdated
@gr2m gr2m added the major marker for PRs with major version bump label Jun 25, 2026
@felixarntz felixarntz merged commit 9a37622 into main Jun 25, 2026
52 of 53 checks passed
@felixarntz felixarntz deleted the harness-deepagents branch June 25, 2026 15:44
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Published in:

Package Version
ai 7.0.1 github npm
@ai-sdk/angular 3.0.1 github npm
@ai-sdk/gateway 4.0.1 github npm
@ai-sdk/harness 1.0.1 github npm
@ai-sdk/harness-claude-code 1.0.1 github npm
@ai-sdk/harness-codex 1.0.1 github npm
@ai-sdk/harness-deepagents 1.0.0 github npm
@ai-sdk/harness-opencode 1.0.1 github npm
@ai-sdk/harness-pi 1.0.1 github npm
@ai-sdk/langchain 3.0.1 github npm
@ai-sdk/llamaindex 3.0.1 github npm
@ai-sdk/otel 1.0.1 github npm
@ai-sdk/policy-opa 1.0.1 github npm
@ai-sdk/react 4.0.1 github npm
@ai-sdk/rsc 3.0.1 github npm
@ai-sdk/sandbox-just-bash 1.0.1 github npm
@ai-sdk/sandbox-vercel 1.0.1 github npm
@ai-sdk/svelte 5.0.1 github npm
@ai-sdk/tui 1.0.1 github npm
@ai-sdk/vue 4.0.1 github npm
@ai-sdk/workflow 1.0.1 github npm
@ai-sdk/workflow-harness 1.0.1 github npm

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

Labels

major marker for PRs with major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants