Skip to main content
Kliff

Custom automations

Write instructions once and let a schedule, a pull request, a failed CI run, or an issue label start the run.

A custom automation runs your own instructions on a repository or project when one of its triggers fires. Any member can make one, from New automation on the Automations page, from a template, or from a project's page. Only its creator or an admin can change it. See Create your own automation for the steps.

Fields

FieldWhat it isLimit
NameShown in the automation list and in the emails about its runs.80 characters
Works onA project or a repository.
InstructionsWhat to do each time it runs.8,000 characters
ModelA Cloudflare Workers AI model that can call tools. The default is the model Kliff picks for runs.
ToolsThe connector tools its runs can call. Git and shell follow each repository's settings.

Under Tools, turn on Every tool its creator allows, or turn it off to choose tools one by one. Runs use the connectors of the automation's creator.

Triggers

Add triggers with Add trigger. An automation can have up to 5.

TriggerWhat the run does
On a scheduleMakes changes and opens a draft pull request. Repeats Every day or Every week on a chosen day, at a time in your timezone.
From a pull requestReviews the pull request, When a pull request opens or On every push to a pull request. Review drafts includes drafts.
When CI fails on a pull requestDiagnoses the failed GitHub Actions run and comments on the pull request. It never pushes.
When an issue gets a labelWorks on the issue and opens a draft pull request. Issues from people outside the repository are skipped.

A scheduled run with nothing to change just finishes. Pull requests from forks get no shell and no push.

Templates

Under Start from a template:

  • Find bugs in recent commits: every day at 09:00.
  • Scan for vulnerabilities: every Monday at 09:00.
  • Update docs for changed code: every Friday at 09:00.
  • Triage failed CI: when CI fails on a pull request.

A template starts turned off, with nothing chosen under Works on.

Test, turn on, and delete

  • Test starts a run now, as you, even while the automation is off. Save your changes first.
  • The Active switch turns the automation on or off. A new automation starts off.
  • Hold to delete automation deletes it. Its past runs stay, listed as runs started by hand.

Automations that agents set up

An agent on a repository can set up a scheduled automation when you ask for something to happen regularly. You approve it first. It then appears on your Automations page, where you can change or delete it, and each run spends your credits.