Start an agent
Choose what the agent works on, tell it what to do, and follow along as it works.
An agent keeps its own computer and picks up where it left off.
How do I start an agent?
- Open Agents in the sidebar, or select New agent at the top of the sidebar.
- Under Works on, choose No repository, a project, or a repository.
- Write your first message, then press Return or select the send button. Shift+Return starts a new line.
The agent starts its computer, clones the repositories, and gets to work. Its replies stream in as it goes. Kliff names the agent from your message, and you can change the name later with Rename in the agent's menu.
What can it work on?
- No repository: the agent works on its own computer, which keeps its files. Kliff creates no repository for it until you select Create repository on the agent's page. See Agents on repositories Kliff hosts.
- A repository: one repository from GitHub, GitLab, or Kliff.
- A project: every repository in the project, up to 10. A project with more than 10 cannot be chosen.
If your organization has no repositories yet, Works on offers Connect GitHub (and Connect GitLab where it is available). The guides for GitHub and GitLab walk through the steps.
What else can I choose before I send?
The other controls in the message box set:
- The model the agent uses, and how hard it thinks. See Choose a model and effort.
- The computer size, which shows Standard to start. Bigger computers use more credits an hour, and the size cannot be changed later. See How credits are used.
- The mode: Plan proposes a plan and changes nothing, Ask asks before each change and command, and Auto follows your organization's rules. You can change the mode later from the agent's own message box. The change applies from the next turn.
What are the suggestions under the message box?
Starter prompts: sample first messages. Select one to fill the message box, then change it as you like. Select Hide to put them away, and turn them back on with Starter prompts in Settings > Appearance.
How do I give it more instructions?
Type in the message box at the bottom of the agent's page and press Return. You do not have to wait: a message you send while the agent is working shows Queued and the agent starts on it when it finishes what it is doing. Up to 5 messages can wait at once.
Can an agent open a pull request?
Yes, when you ask it to. The agent commits its work, and Kliff pushes it to a branch named kliff/ plus the agent's ID and opens a draft pull request, or a draft merge request on GitLab.
- The person who sent the message needs a connected GitHub or GitLab account with write access to the repository.
- If Push is off on the repository's Settings tab in Kliff, the agent cannot push to it.
- On a repository Kliff hosts, Kliff pushes to the default branch instead of opening a pull request.
An agent can also read pull requests, issues, and checks, and comment on a pull request. It cannot merge, approve, or close anything.
How long can a message be?
Up to 20,000 characters.