---
title: "Introducing AutoAgent Action – Smarter GitHub Checks with AI"
description: "A new GitHub Action that lets you run AI-powered checks and automations using Cursor CLI and background agents as well as other AI Agents like Claude Code, Gemini, Amp, Codex and more."
doc_version: "1"
last_updated: "2025-09-15"
date: 2025-09-15
tags: [GitHub Actions, Cursor, AI, CI/CD, Open Source, Cursor CLI, Amp, Gemini CLI, OpenAI, Codex, Claude Code, Anthropic]
canonical: "https://eran.sandler.co.il/post/2025-09-15-autoagent-ci-cd-agent-ai-rules/"
---

## Sitemap

- [Home](https://eran.sandler.co.il/)


![autoagent-robot.png](/img/autoagent-robot.png)

Last Wednesday (Sep 10), I had the chance to attend a hackathon at Cursor’s offices - **huge thanks to the Cursor team** for hosting such a great event! 🙌 The focus was on **Cursor CLI** and their new **Background Agents API**.

When I started brainstorming ideas, I came across [Eric’s post](https://x.com/ericzakariasson/status/1965558606914548033) about running various rules during CI/CD to automate checks and actions. It got me thinking — setting up those rules often involves a lot of repetitive work: crafting similar prompt setups and then defining the actions themselves.

That's when the idea for **[AutoAgent Action](https://github.com/erans/autoagent-action)** was born. 🚀

---

## What is AutoAgent Action?

**AutoAgent** is a GitHub Action that makes it easy to run checks using **Cursor CLI** (or other AI CLIs like Claude Code, Codex CLI, Gemini CLI, or Amp). It ships with a collection of **preset rules** that are immediately useful to many developers, and it's completely customizable.

With AutoAgent, you can:

- ✅ **Enable built-in rules** with minimal setup  
- 🛠 **Add your own custom rules** directly in your workflow  
- 📂 **Point to a folder in your repo** that contains your own rule set  

---

## How It Works

When AutoAgent runs, it:

1. Executes the selected rules against your pull request.  
2. Posts a detailed comment on the PR with **issues, insights, and suggestions**.  
3. (Optional) Launches a **Cursor background agent** to automatically work on the PR and fix issues for you.  

You control how hands-on or hands-off you want to be — from passive checks to fully automated fixes.

---

## Why I Built It

While exploring Eric's post of rule-based CI/CD checks, I realized most setups require a **lot of duplicate work**:
- Writing nearly identical prompt boilerplate for each rule  
- Wiring each rule to a separate action or script  
- Maintaining everything across multiple repos

AutoAgent **streamlines this entire process** by providing a unified, flexible way to manage rules and actions.

---

## Try It Out

Check out the project here: **[github.com/erans/autoagent-action](https://github.com/erans/autoagent-action)**

I’d love your feedback! If you find AutoAgent useful, please consider giving it a ⭐ — it really helps support the project.

---

Thanks again to the **Cursor team** for hosting such an inspiring hackathon and to everyone who shared ideas that helped bring AutoAgent to life.  
