Skip to content

docs: explain where a coding agent runs its tests - #273

Merged
HugoRCD merged 1 commit into
mainfrom
docs/coding-agents
Nov 19, 2026
Merged

HugoRCD merged 1 commit into
mainfrom
docs/coding-agents

Conversation

@HugoRCD

@HugoRCD HugoRCD commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Written by an AI agent on behalf of @HugoRCD. @HugoRCD has reviewed it.

Adds a Learn page, Coding agents, for agents that change code and open pull requests. The SDK calls the GitHub API and runs no code, so this kind of agent has to run its tests somewhere else. The page explains the options without adding anything to the toolkit.

  • Where the context goes. What the tools already do to keep results small (editFiles find and replace, getPullRequestContext and getCiFailureContext, the 200-line tail of getWorkflowJobLogs, paging, presets), and what is up to the agent's author: subagents for wide reads, trimmed test output, and a plan kept outside the conversation.
  • Where the tests run. A comparison of CI only, sandbox only, and both, with a section on each:
    • CI only costs a commit and a full workflow run per attempt, gives the agent no cheap way to wait, and runs workflows with the repository's secrets on branches the agent pushes to the base repository.
    • A sandbox has to run native processes (eve's just-bash fallback can't run pnpm test), should install in prepare, and can keep the clone token out of the sandbox process with a Vercel network policy.
    • The page recommends both, and has the sandbox test while editFiles writes. That way commits still go through approval, the configured commit author, and the token limited to the selected tools, and the sandbox never holds a token that can write.

The page also gets an entry in the Learn sidebar and a link from the end of GitHub agents.

Preview

New page, from the docs dev server on this branch at 1440×900.

Preview (Page header and sidebar)
Preview
Preview (Where the tests run)
Preview

Checks

  • pnpm --filter @github-tools/docs lint exits 0.
  • On the dev server, /learn/coding-agents renders its headings, both tables, and both code blocks, and every internal link on the page returns 200.
  • I checked each claim about the SDK against main: the editFiles and createPullRequest draft options, the getWorkflowJobLogs default of 200 lines, and preset accepting an array in the eve extension. I checked the eve sandbox claims against the eve 1.0.0-rc.6 docs.
  • The eve example (DefaultSandbox plus preset: ['pr-author', 'ci-ops']) was not run.

No changeset, because the change is confined to apps/docs.

ELI5

An agent that edits code needs a place to try its changes before it asks a person to look at them. It can wait for the project's own test robots, which is slow, or test in a small private computer of its own, which is fast. This page explains both and recommends doing a quick test first and the full test last.

Add a Learn page on how an agent that opens pull requests keeps its context small, and how it tests its changes in CI, in a sandbox, or both. Link it from the GitHub agents page and the sidebar.
@vercel

vercel Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
github-tools-docs Ready Ready Preview, v0 Nov 19, 2026 9:57am UTC
1 Skipped Deployment
Project Deployment Actions Updated
github-tools-test-agent Skipped Skipped v0 Nov 19, 2026 9:57am UTC

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@HugoRCD HugoRCD self-assigned this Nov 19, 2026
@HugoRCD
HugoRCD merged commit 8ec8cdf into main Nov 19, 2026
19 checks passed
@HugoRCD
HugoRCD deleted the docs/coding-agents branch November 19, 2026 10:07

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – github-tools-docs — 531035ea Deployed Nov 19, 2026 by vercel[bot]
Preview – github-tools-test-agent — 531035ea Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant