Conversation
Move harness-sdk into ai as two experimental areas. A harness drives a coding-agent CLI someone else owns (Claude Code, Codex): run, stream ai.types events, steer, stop, approve tool calls, resume, fork, hand off, and open the CLI's own TUI. A workspace is where it runs: a local directory or a Vercel Sandbox microVM. - Errors gain an Error suffix and split into harnesses and workspaces errors modules; both bases subclass ai.AIError. - claude_code() and VercelSandbox() check their extras (claude-code, sandbox) at construction and raise ai.errors.InstallationError. - codex() refuses sandbox modes that cannot run inside a microVM, and codex transcripts name tool calls by native item kind. - Examples in examples/harnesses, plus the afk and deepysec apps. - Docs pages, reference pages, skill notes, and contributor guidance.
|
You must have Developer access to commit code to Vercel Labs on Vercel. If you contact an administrator and receive Developer access, commit again to see your changes. Learn more: https://vercel.com/docs/accounts/team-members-and-roles/access-roles#team-level-roles |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
vercel/vercel-py#415 merged to main (not released yet). Point the dev group and the afk and deepysec apps at main; uv.lock pins the commit. The merged API moved terminal I/O onto `InteractiveSession.stream`, an anyio byte stream that raises at end of stream instead of returning b"". Use it, and treat a raise in the ready-marker loops as the end.
Local.pty() started the holder with asyncio.create_subprocess_exec, and on Linux asyncio kills a still-tracked child when its event loop closes, so every named pty ended with the process that created it. The holder now daemonizes (--daemon) and releases its launcher over a pipe once its socket and pid file exist; Local.pty() waits for the launcher. Reading the pid file no longer races the holder's cleanup.
The no-extras job installs ai without extras and checks that claude_code() and VercelSandbox() raise InstallationError, and that import ai loads neither optional package. The compatibility job adds claude-agent-sdk at its minimum and latest versions, since the claude-code extra depends on its private transport API.
This branch has not been deployed
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.
Moves harness-sdk into
aias two experimental areas:ai.harnesses.experimentaldrives Claude Code and Codex (run, stream, steer, stop, approve, resume, fork, TUI), andai.workspaces.experimentalsays where they run (local or Vercel Sandbox).claude-codeandsandbox, checked at construction (InstallationError).import ailoads neither.examples/harnesses/, plusexamples/apps/afkandexamples/apps/deepysec(without its vulnerable fixture).basics/harnesses,basics/workspaces, and their reference pages.-m live); plainpyteststays offline.claude-agent-sdkin the SDK compatibility job.Proposal defaults taken: two top-level areas,
ToolCallkeeps its name, live tests stay out of CI.Verified: full CI check list, the live suite against real CLIs and sandboxes, and every harness example, afk, and deepysec end to end.
Before merge: vercel/vercel-py#415 is merged and
vercel-sandboxnow tracks itsmain; once it's released, set thesandboxextra's floor and drop the git pins. Rerunpytest -m sandboxon the merged API.