Skip to main content
Kliff

Review and automate

Read an agent's pull request with care, get a second review from Kliff, and let automations start work for you.

Video coming soon

An agent's pull request is a proposal, not a finished change. It still needs a person to read it, and the reading is where most of the value of verification sits. Once you trust the pattern, you can also let Kliff start some of the work itself, from a comment, a label, or a schedule. This lesson covers both.

Read an agent's pull request

Review an agent's work the way you would review a new teammate's: carefully at first, and with the evidence in hand.

  • Compare the description with the diff. The description says what the agent meant to do. The diff is what it did. Look for changes the description does not mention.
  • Check the scope. Files outside the task, reformatted code, or new dependencies are worth a question.
  • Look for real tests. A test should fail without the change and pass with it. A test that only checks that a function exists proves little.
  • Read the conversation. The agent's page shows the commands it ran and what came back. If it says the tests pass, you can see the run.

When something needs to change, reply in the same conversation. The agent keeps its context, commits again, and Kliff updates the open pull request.

Ask Kliff for a second review

Kliff Review reviews a pull request for bugs and posts what it finds as a review comment. Comment this on a pull request, or on a merge request on GitLab:

Pull request commenttext
@kliff review

You can also start one from Code: open a connected repository and go to its Pull requests tab. Select Review beside a pull request, write Review instructions that say what to focus on, and select Request review.

A review is a fresh pair of eyes. It does not share the conversation of the agent that wrote the change, so it reads the diff on its own terms. Treat its findings as you would any reviewer's: check each one before acting on it.

Organization owners and admins can set Kliff Review to run on its own when a pull request opens or on every push, choose whether it reviews drafts, and cap Automatic reviews a day. A review you request with a mention always runs. See Review pull requests with Kliff Review.

Turn issues into pull requests

Kliff Implement works on an issue in its own branch and opens a draft pull request with the change. Comment on an issue:

Issue commenttext
@kliff implement

On an issue, a plain @kliff works too. You need to have connected your GitHub account and have write access to the repository, or on GitLab, a linked account and the Developer role or higher. Issues that get the label set in the automation's Label setting start it as well.

Implement works best on issues written like a good first message: the outcome, where to look, and how to check. A vague issue gets a vague pull request. See Turn issues into pull requests with Kliff Implement.

Automate the repeat work

For work that comes up again and again, create your own automation. Open Automations and select New automation, or pick one under Start from a template. Give it a Name, choose what it Works on, and write its Instructions, up to 8,000 characters. Under Add a trigger, choose when it starts:

  • On a schedule, every day or every week
  • From a pull request, when one opens or on every push
  • When CI fails on a pull request
  • When an issue gets a label

Select Test to try it, then turn on Active. An automation starts a run each time: a fresh session with your instructions and nothing from earlier runs, so write the instructions to stand on their own.

You can also ask an agent to set one up for you, such as "Every Monday, check for outdated dependencies and open a draft pull request." It asks you to approve the schedule first, and the result appears on your Automations page. To see how an automation has done, and why a trigger did not start a run, open its run history. See Create your own automation.

Key points

  • Review an agent's pull request against its description and its conversation, and look for real tests.
  • Comment @kliff review on a pull request for a second review from a fresh context.
  • Comment @kliff implement on a clear issue to get a draft pull request back.
  • Custom automations start runs on a schedule, on pull requests, on CI failures, or on labels.