Repository navigation
docs: explain where a coding agent runs its tests - #273
Merged
Merged
Conversation
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.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
|
Thank you for following the naming conventions! 🙏 |
This branch was successfully 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.
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.
editFilesfind and replace,getPullRequestContextandgetCiFailureContext, the 200-line tail ofgetWorkflowJobLogs, 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.pnpm test), should install inprepare, and can keep the clone token out of the sandbox process with a Vercel network policy.editFileswrites. 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.
Checks
pnpm --filter @github-tools/docs lintexits 0./learn/coding-agentsrenders its headings, both tables, and both code blocks, and every internal link on the page returns 200.main: theeditFilesandcreatePullRequestdraft options, thegetWorkflowJobLogsdefault of 200 lines, andpresetaccepting an array in the eve extension. I checked the eve sandbox claims against the eve 1.0.0-rc.6 docs.DefaultSandboxpluspreset: ['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.