Review changes and open a pull request
The Changes tab of a task’s work panel lists every file the agent added, changed, or deleted in the task’s repos, compared with the repo’s base branch. It updates while the agent works. Below the list, you can open a pull request from the task’s branch.
Read the changes
Section titled “Read the changes”- Open the task, then choose its pill and the Changes tab. The tab shows the number of changed files.
- Read the list. Files group by repo. A task in attempts groups each attempt apart, as “Attempt 2”. A row shows a glyph for added, changed, or deleted, the path with its folder in a quieter tone, and the lines added and removed. A binary file shows “binary”, and a file too long to show reads “large”.
- Choose a row to open the file.
Above the groups, a line gives the file count and the totals of lines added and removed for text files.
A repo with more than 20,000 changed files shows “More than 20,000 files changed, too many to list.” A repo that git could not read shows “Couldn’t read the changes” with git’s reason, and keeps the last list it read.
Read one file
Section titled “Read one file”The file view opens on the Diff switch. Choose File to read the file as it is now. A .md file draws as a document, and any other text file draws as highlighted code.
- Previous file and Next file move through the list without going back to it.
- A file deleted by the agent has no current content. File says “Deleted. The diff shows what it held.”
- A binary file shows “A binary file, so there is no text to show.” A file whose content or diff passes 524,288 characters shows “Too large to show here.”
- A file that stops differing from the base branch shows “This file no longer differs from the base branch.”
- When several attempts changed the same file, the switch This file in each attempt moves between their versions.
Choose the back arrow, named Back to the changes, to return to the list.
Open a pull request
Section titled “Open a pull request”The pull request section shows under the list once the agent has changed files, or once the task has a pull request.
- Wait until the agent’s turn ends. While it works, the section says “The agent is working. Open the pull request when its turn ends.” and the button is off.
- Choose Open a pull request.
- Answer “What should the pull request be called?” The box starts with the task’s title. Choose Next.
- Answer “What should it say?” The box starts with the task’s details. Press Ctrl+Enter, or Cmd+Enter on a Mac, or choose Next.
- Check the summary, which reads “Push the task’s branch and open this pull request in each repo with commits.” Choose Open pull request.
If the push fails before any pull request exists, the page shows the reason and the button reads Try the pull request again.
Not now on the first question leaves without opening anything. Back on the later screens returns to the question before. Choosing a line of the summary jumps to that question.
Agents has the agent’s computer commit what the agent left and push the task’s branch, task/<slug>, in the agent’s name. The page says “Pushing the branch and opening the pull request…”. When the push ends, Agents opens one pull request in each repo whose branch has commits past its base. A repo with no new commits gets none, and if no repo has commits the page says “There is nothing to open a pull request for. No branch has commits past its base.”
A pull request shows as a row named Pull request #<number> on <repo> with its state. The name opens its chat. On GitHub, GitHub at the end of the row opens the pull request in a new tab. On the team’s own forge, a person’s browser cannot open it, so the row says so and the diff above is the place to read the change. A pull request with no chat, such as one opened before chats were made, has a name that opens nothing.
The pull request’s chat
Section titled “The pull request’s chat”When Agents opens a pull request for a task, it also makes a chat for it, named as the row is. The row’s name opens it, and it is in Chats under Other. The chat’s header names the pull request, and on GitHub the name opens it in a new tab. Whoever asked for the pull request and the task’s agent are in it. Anyone who can see the task can post there, in the box at the foot of the chat. Each post gives the agent a turn in a session of the chat, not in the task’s own session. In that chat the agent cannot message another agent, start a chat or hand off a task, as in a room. A pull request that existed before this, and one a pipeline run opens, has no chat.
The chat is seen by whoever sees the task. A private task’s chat is seen only by the task’s owner and members. Its header says Private, and Private in Chats lists it. A team task’s chat says Shared with your team. Once the task is archived, the header says neither and Private leaves the chat out. The phone notices Agents sends by itself about the agent’s turns there are queued for its owner only if the owner can see the task at that moment. A notice already queued is not sent if the owner stops seeing the task before it goes out. When the agent uses your own connector account in the chat, it asks you to agree to its results being saved there only if someone else can see the task. A connector tool set to ask still asks for your yes on each call, whoever can see the task. A notice the agent sends with notify_people to say it is stuck still reaches its owner. If someone stops seeing a task, its chat can stay in their list of chats as it was, since the app’s client does not apply the removal Electric sends. Later changes to that row and new chats do not reach them, and the chat’s messages are refused. A task’s documents and links stay the same way today. Nothing in Agents makes a task private or changes its members yet.
After the pull request exists
Section titled “After the pull request exists”When the agent changes more files, choose Push new work to the pull request. It pushes the branch again and keeps the pull request’s title and description.
A push that fails shows the reason. Choose Push new work to the pull request to run it again. A push whose computer does not answer fails after 15 minutes. One push runs for a task at a time. If someone added commits to the branch on the forge, the push fails with a message that ends “someone added commits on the forge, ask the agent to merge them”.
Open a pull request from a task in attempts
Section titled “Open a pull request from a task in attempts”A task in attempts opens its pull request from the attempt you pick on the task. The section says “This task works in attempts. Pick one on the task to open its pull request from its branch.” Once the pull request exists, new work goes to it through the attempt you picked.