Code Extension
eve/extensions/code (eve-code) turns an eve agent into a coding agent. It ships inside the eve package, so you mount it without installing anything else. The extension adds coding instructions that steer the model toward eve's default file tools, the project's AGENTS.md, coding skills, and helpers that install coding tools in the sandbox. GitHub and pull request work lives in the companion eve/extensions/git extension.
Benchmark results
Lines show 95% confidence intervals (see Scorecard tiers for statistical ties). Click a contender to open its run.
Full benchmark breakdown →These results show baseline performance of stock eve (without eve/extensions/code) against peer coding agent harnesses across OpenAI, Anthropic, and Google models, with each harness in its standard setup and high reasoning. See the Benchmarks page for the full multi-model scorecard, per-task matrix, prompt and tool overhead breakdown, and eve authoring benchmarks.
How the benchmark works
The benchmark uses eve-bench (apps/eve-bench) and the DeepSWE-lean dataset of non-saturated feature and bug-fix tasks from DeepSWE v1.1 across unique repositories (35 tasks in the current suite; the chart header above shows the dataset version and task count of the published snapshot).
- All harnesses use the same model and the same tasks, dispatched in interleaved waves.
- Each harness does each task 3 times.
- Each attempt runs in a new Vercel Sandbox.
- Each attempt has a limit of 20 minutes.
- The DeepSWE verifier examines the files that the agent leaves.
- An attempt passes only when the verifier passes.
- A crash or a timeout is a failure.
The line on each correctness row shows the 95% interval. On the Benchmarks scorecard, harnesses whose paired 95% interval includes zero share a statistical tier rather than splitting into noisy ordinal ranks.
How the results update
- The
eveworkflow runs onmainwith thedeepswe-leandataset every Monday at 06:00 UTC. A maintainer can also start it manually onmain. - The workflow runs eve, opencode, pi, and fx on each benchmark model (OpenAI, Anthropic, and Google), one model at a time, and saves each complete result in the eve-bench result store.
- The workflow opens a pull request refreshing the public snapshot with every model family produced in that run.
- After a maintainer approves and merges the pull request, the next docs deployment shows the new results.
The workflow skips incomplete runs, single-task runs, and pull request runs. Results can be a week or more older than main, because the workflow runs weekly and each refresh waits for review. Select a harness name to open the GitHub Actions run for that result.
Mount the extension
Create an extension file in your agent. The file name sets the prefix of every skill the extension adds, such as code__investigate:
code({}) mounts the extension without Vercel authentication.
Configure the extension
| Option | Required | Effect |
|---|---|---|
vercel.connector | With vercel | Vercel Connect connector that gets a Vercel token for the app, not for a user |
vercel.delivery | No | "firewall" (default) or "command" |
broker | No | broker(sandbox, rules) callback that merges Vercel credential rules into your network policy |
Credentials stay outside the sandbox
With firewall delivery, Vercel tokens never enter sandbox processes. Firewall delivery needs a top-level broker or a sandbox provider with setNetworkPolicy(). For other providers, set vercel.delivery: "command".
To use a personal access token or another credential provider, omit the connector. Call authenticateGitHub or authenticateVercel from eve/extensions/code/sandbox in your own sandbox setup code. These helpers authenticate commands you run yourself, not the gh tool.
Project instructions
The extension reads AGENTS.md from the workspace root, or CLAUDE.md when there is no AGENTS.md, and adds it to the conversation as project instructions. The content joins the conversation again only when it changes. A file over 64,000 bytes is cut off with a note that tells the model where to read the rest.
The extension reads the file once per session, with one sandbox command at the start of the first turn, which starts the session's sandbox. Later edits to the file reach the model only when it reads the file itself. If the read fails, the turn continues without project instructions, and the next model call tries again. For other directories, the extension's instructions tell the model to read the nearest AGENTS.md or CLAUDE.md before working there.
Publish with the git extension
eve/extensions/git adds the GitHub instructions and the pr skill. Mount it next to the code extension when the agent should open pull requests. code() rejects a github option, so configure GitHub here. Import gh and the GitHub sandbox helpers from eve/extensions/git/tools and eve/extensions/git/sandbox:
git({}) adds no tool and assumes the agent's shell already has GitHub credentials. The agent uses the gh and git CLIs in bash, and git__pr commits, pushes, and opens a draft with gh pr create --draft.
Configure github to get GitHub tokens through Vercel Connect instead. The extension then adds the authenticated git__gh tool and tells the agent to use it for every authenticated GitHub operation. git__pr switches to gh-signed-commit for repositories that require verified signatures.
gh-signed-commit adds non-executable regular files, edits regular files without changing their mode, and deletes tracked entries. It rejects new executable files, symlinks, submodules, and file-mode changes before contacting GitHub. Your staged changes remain intact. For those changes, use native git commit -S with a configured signing key, then git push through the authenticated tool.
gh-signed-commit also creates signed merge commits. Pass --merge <ref> to merge <ref> into --branch on GitHub, without a clone or with a shallow one. When the merge conflicts, run git merge <ref> locally, resolve and stage the files with git add, and run gh-signed-commit --repo owner/name --branch <branch>. On a temporary branch, it publishes a commit that restores the conflicting paths to the merge base, GitHub's two-parent merge commit, and a commit with your resolution. It then fast-forwards <branch> to the result, so the branch only ever points at your resolution, and leaves it unchanged when any step fails.
| Option | Required | Effect |
|---|---|---|
github.connector | With github | Connector that mints a GitHub token |
github.broker | With github | broker(sandbox, rules) callback that installs, then removes, the GitHub credential rules |
github.principalType | With github | "app" for GitHub App installation tokens, or "user" for the caller's own token |
github.authorize | With github | authorize(request) returns true to let a gh call run |
github.attribution | No | attribution(ctx) returns the current turn's { name, email } co-author, or null |
github.permissions | No | With "app", the installation permissions each token carries, such as "contents:write" |
With "app", each token carries every permission the App holds unless github.permissions lists the ones it needs. Set it to keep tokens narrower than the App's installation without rewriting the credential rules in your broker.
Each gh call runs one gh, git, or gh-signed-commit command with a placeholder GH_TOKEN. While it runs, the sandbox firewall replaces the placeholder with the real token on GitHub requests. git uses only github.com; gh-signed-commit uses api.github.com and github.com. For these two commands, when repository is set, the github.com rule matches only Git endpoints for the declared repository or owner. Other processes in the same sandbox can read the placeholder during that time, so run untrusted code in a separate sandbox. Your github.broker callback receives the rules, including any path match, before the command runs, then null after it to remove them. The callback must keep your other network rules. GitHub authentication has no "command" delivery option.
Install credential leases with broker
GitHubLeaseBroker receives the common SandboxSession, which does not declare setNetworkPolicy(). Check for setNetworkPolicy at runtime, then cast to VercelSandboxSession from eve/sandbox/vercel. Credential leases require VercelSandbox or a custom provider that enforces SandboxNetworkRule transforms, because DockerSandbox supports only "allow-all" and "deny-all".
Each setNetworkPolicy() call replaces the sandbox's entire live policy. Declare your base policy in one module and pass it to environment.open({ networkPolicy: baseNetworkPolicy }) in agent/sandbox.ts. Prepend lease rules ahead of each host's base rule array instead of spreading { ...baseAllow, ...rules }, which drops earlier rules on the same host.
The Vercel Sandbox firewall evaluates a host's rules in order and applies only the first matching rule. A base rule without match shadows rules after it, and leased requests do not also run later base transforms. Keep bare allow entries ([]) or non-overlapping match rules on GitHub hosts (api.github.com, github.com, uploads.github.com) in your base policy.
When rules is null, brokerGitHubLease restores baseNetworkPolicy, removing temporary lease rules and any hosts added only for that command. See Vercel Sandbox network policy for the policy format.
This example assumes code() does not use firewall-delivered vercel credentials. Without a top-level broker, code({ vercel }) calls setNetworkPolicy() at each turn start with an open "*" allowlist and Vercel auth rules (api.vercel.com, vercel.com). That replaces baseNetworkPolicy, and brokerGitHubLease drops those Vercel rules on the first gh call. To use both extensions with Vercel authentication, set vercel.delivery: "command" or pass a top-level broker to code() so both callbacks compose one live policy.
Control access with authorize
github.authorize is the agent's only access control. A command runs only when it returns true; otherwise the token never reaches the sandbox. Before every gh call, eve gets the token from Vercel Connect, then calls authorize with the parsed argv, the caller's auth, repository, and token. What the token can reach depends on principalType:
principalType | Token | authorize also receives |
|---|---|---|
"app" | A GitHub App installation token for the declared repository, or for the whole installation when the call declares only an owner. | owner |
"user" | The caller's own token, which reaches everything the caller can reach on GitHub. eve asks the caller to sign in when needed and when GitHub rejects the token. | repository: null, no owner |
With "user", authorize always receives repository: null, even when the command declares a repository. Repository allowlists therefore deny user-token calls. Use "app" with a full owner/name declaration when your policy restricts repository access. Use "user" only when your policy permits the caller's full GitHub access, and authorize the caller through auth.
In app-installation mode the token is shared, so authorize is the only check on the caller. While another person's message steers the turn, eve asks the caller before a gh command runs; see A turn runs as one principal. User mode uses the caller's own token, which eve holds instead.
Credit the person behind a turn
The GitHub App is the author of commits that the gh tool makes. Return a verified user from
github.attribution to add that person's Co-authored-by trailer. eve adds it to
gh-signed-commit messages and to gh pr create bodies passed through --body or --body-file.
The callback receives the tool context, including ctx.session.auth.current and ctx.getToken.
Return null to omit attribution. eve keeps existing co-author trailers. Commands without a body
flag and direct gh api calls get no attribution.
For example, resolve the author through your application's user mapping:
For a custom GitHub command tool, eve/extensions/git/sandbox exports executeGitHubShell(input, config, dependencies) and githubShellApproval(input). executeGitHubShell parses the command, gets the token, calls authorize, and installs the credential rules. dependencies supply the session ID and sandbox access. Use githubShellApproval as the tool's approval policy so invalid commands are still rejected. When the command's own input is refused before it runs, such as shell syntax, a workingDirectory outside the workspace, a gh-signed-commit directory that is not a repository root, or a missing --body-file, executeGitHubShell throws GitHubCommandInputError; detect it with isGitHubCommandInputError(error) to tell the agent's mistakes apart from configuration, Connect, and sandbox failures.
Prepare the sandbox
Install the CLI tooling in your sandbox environment's prepare callback:
Preparation installs gh and wrappers for gh, vc, and gh-signed-commit. With the git extension's github configured, repositories that require verified signatures can use gh-signed-commit through the gh tool after staging changes.
eve rebuilds a prepared environment only when the sandbox file or environment options change. A change to an imported helper or to the eve version doesn't rebuild it.
Troubleshooting
| What you see | What to do |
|---|---|
eve-code firewall credential delivery requires a sandbox provider with mutable network policy (setNetworkPolicy). | Set vercel.delivery: "command", or pass a top-level broker callback. |
The current caller is not authorized to run this command on <repository>. (or for <owner>., or without a target) | Check your github.authorize rule, because the callback returned false for that command, caller, or target. |
ConnectError or a subclass (ConnectorInstallationRequiredError, NoValidTokenError) on a gh call with principalType: "app" (such as GitHub installation token failed) | Inspect the error and check github.connector, github.permissions, and the GitHub App installation's access to the declared owner or repository. Vercel Connect failed to mint the token before github.authorize ran, so changing authorize won't fix it. |
Invalid extension config: eve-code no longer ships a worker subagent; ... | Remove the worker option from code(). To delegate work, use the built-in agent tool. |
What to read next
- Extensions: mount, configure, and override extension packages
- Sandbox: environments, preparation, and network policy
- Subagents: delegate work to a child agent with the built-in
agenttool - Skills: how the model loads skills on demand