# llm-dependabot > A software giga factory for scheduled, agent-driven repository maintenance llm-dependabot runs the prompts that repositories commit, such as dependency updates, refactoring, and codebase simplification, with a coding agent on a schedule. The agent opens a pull request for review; any agent with a non-interactive mode works. # Home documentation # [llm-dependabot ![llm-dependabot hex sticker]()](<#llm-dependabot>) A template for your own software giga factory: schedule repository-owned prompts across your projects, and let a coding agent turn maintenance work into pull requests for you to review. ## [The problem](<#the-problem>) Every package, project, and application you maintain ages on its own: - **Dependencies fall behind,** and each upgrade can break something that then needs fixing by hand. - **Vulnerabilities keep appearing,** in more dependencies, more often, and each needs an upgrade before it can be closed. - **New features go unused.** Newer releases of your dependencies often make your own code simpler, but with little time to spare, those improvements are never adopted. - **Production keeps reporting new faults.** A website's Google Search Console flags new indexing, canonical, structured-data, and sitemap issues every month, and each needs someone to triage and fix it. Bots like Dependabot bump version numbers, but they cannot fix the breakage an upgrade causes, rewrite code to use what the new version offers, or act on what production reports. The more repositories you maintain, the further this work falls behind. ## [The solution](<#the-solution>) llm-dependabot coordinates a software factory in each of your projects. Each repository commits prompts describing its own maintenance (updating dependencies, simplifying the codebase, or anything else), and on a schedule, llm-dependabot runs each due prompt with the agent. The agent opens a pull request, which goes through the project's own checks and your review like any other. The giga factory is the layer coordinating those project-level factories: it decides which repositories and prompts are due, prepares isolated worktrees, and invokes your chosen agent. Dependency updates are one use case; repository-owned prompts can also cover refactoring, documentation, fixing what Google Search Console reports, or other repeatable work. The prompts define the work, and each project provides its own instructions, checks, and review process. ![Software Giga Factory: a staggered schedule activates each project’s software factory. Prompts drive dependency updates, refactoring, simplification, and more; each runs in an isolated worktree, opens a pull request, and passes through project checks and independent LLM review, with findings returned for fixes. Weekly group schedules, monthly prompts when due, one repository and due prompt at a time.]() - **Opt in per repository and prompt:** a repository takes part in each prompt it commits, such as `.github/prompts/update-deps.md` or `.github/prompts/simplify-codebase.md`, and the prompt runs verbatim. - **A staggered schedule:** repositories are grouped by ecosystem, each group runs on its own weekday, and each prompt runs weekly or monthly. - **Isolated and tidy:** every prompt runs in its own git worktree and branch, and clones made just for a run are deleted once their pull request is merged or closed. - **Your machine, your credentials:** the agent, `gh`, and `git` use the sign-ins you already have; there is no hosted service and no stored secret. ![How llm-dependabot works: launchd starts the app and login shell; repository discovery finds committed prompts and those due to run, then each due prompt gets its own worktree, agent run, pull request, and cleanup.]() I use it to maintain my own open-source repositories: web applications, Python and R packages, and everything else. They receive dependency updates every week (every month for R packages), once a month a pass that simplifies the code with what the updated dependencies now offer, and, for websites, a monthly pass that fixes what Google Search Console reports. ## [Build your own](<#build-your-own>) llm-dependabot is meant to be forked and configured to suit you: - **Your repositories:** set the GitHub account, the prompts and how often they run, and the groups and their weekdays in `config.yaml`. - **Your coding agent:** any agent with a non-interactive mode works, such as Antigravity CLI (the one configured here), Claude Code, Codex CLI, or GitHub Copilot CLI. - **Your operating system:** the scheduling and tooling are macOS's (`launchd` and Homebrew); on another system, swap in its scheduler and package manager. > [!IMPORTANT] > > The repositories you maintain must carry what the agent needs: a committed prompt for each kind of maintenance, guidance such as an `AGENTS.md`, and checks (tests, linters, and CI) that it can run to verify its changes. The giga factory is only as reliable as each repository's own software factory; see [what a repository needs](). See [Forking and adapting]() for what to change. ## [Quick start](<#quick-start>) > [!NOTE] > > As configured here, llm-dependabot runs locally and on macOS only, by design. Running agents on your own machine is safer: they reuse your existing sign-ins, so no credentials need to be stored in CI. And as a personal project, it targets the only machine I develop on. Fork the template to adapt it to another operating system, or even to run in the cloud. ```sh # Create from the template (recommended): gh repo create my-dependabot --template IndrajeetPatil/llm-dependabot --clone cd my-dependabot # Or by forking: gh repo fork IndrajeetPatil/llm-dependabot --clone cd llm-dependabot # Run interactive setup: make setup ``` `make setup` interactively installs what is missing from Homebrew, signs you in to GitHub and your coding agent, sets the account whose repositories it maintains, asks which private repositories to include, and loads the schedule. If you wish to use a coding agent other than Antigravity CLI, or your repositories live outside `~/Documents/GitHub`, update `config.yaml` and the `Brewfile` before running setup. See [Setup]() for the step-by-step guide to configuring the template, onboarding your repositories, and verifying the installation. ## [Documentation](<#documentation>) The full documentation is at [https://www.indrapatil.com/llm-dependabot/](). | Guide | Covers | | --- | --- | | [Setup]() | Requirements, repository creation, configuration, `make setup`, Full Disk Access, repository onboarding, and verification | | [Configuration]() | The coding agent, prompts and their cadences, the schedule, and adapting a fork | | [Usage]() | Everyday commands, logs, files on disk, and troubleshooting | | [Autonomous evolution]() | Self-healing prompts, strict quality gates, guidance that learns from mistakes, and what a repository's own software factory needs before it can take part | | [Architecture]() | How a run works and why it is built this way | | [Development]() | Toolchain, checks, CI, and the documentation site | | [LLMs]() | The documentation in the `llms.txt` format | ## [License](<#license>) [MIT]() # Guides # [Setup](<#setup>) > [!NOTE] > > llm-dependabot runs on macOS: `launchd` schedules the runs, and a small app holds the permission they need to read your clones. ## [Requirements](<#requirements>) - macOS 14 (Sonoma) or newer. - [Homebrew](), which also installs the Xcode Command Line Tools (`git`, `make`, and `clang`). - A GitHub account and the [GitHub CLI]() (`gh`). - A coding agent with a non-interactive mode (Antigravity CLI is the default; Claude Code, Codex CLI, and GitHub Copilot CLI are also supported). - Each participating repository's own toolchain (Python, Node.js, Rust, R, and so on), so the agent can execute tests, linters, and builds. `make setup` automatically installs missing command-line tools from the [`Brewfile`](): `uv`, `gh`, `prek`, `gitleaks`, and the default coding agent. It also installs the pinned [`gh-actions-lock`]() extension that the workflow lockfile hook needs. ![Setup checklist covering the local clone folder, coding agent, schedule, repository opt-in, standard prompt paths, project guidance and checks, branch protection, and make setup]() ## [1\. Create your repository](<#1-create-your-repository>) You can create your own maintenance repository from the template or fork it: - **Create from template (recommended):** creates a standalone repository with a clean git history: ```sh gh repo create my-dependabot --template IndrajeetPatil/llm-dependabot --clone cd my-dependabot ``` You can also click **Use this template › Create a new repository** on GitHub. - **Fork:** creates a fork tracking this repository: ```sh gh repo fork IndrajeetPatil/llm-dependabot --clone cd llm-dependabot ``` Forking makes it straightforward to pull upstream enhancements and template fixes in the future. Either way, the copy brings along files specific to this repository, such as its documentation site and CI guards; see [What comes with the template]() for what to keep, change, or delete. > [!NOTE] > > Discovery skips forks, so a fork's own committed prompts never run and it does not maintain itself the way a repository created from the template does. A fork of a public repository also stays public. ## [2\. Review configuration before setup](<#2-review-configuration-before-setup>) Before running `make setup`, review [`config.yaml`]() and [`Brewfile`]() to ensure they match your local environment and preferred agent: - **The coding agent:** `make setup` installs Antigravity CLI (`agy`) by default via Homebrew and waits for you to sign in. If you want to use Claude Code, Codex CLI, or GitHub Copilot CLI instead: 1. Update `agent` in `config.yaml` with your agent's `command` and its sign-in `check` (see [The coding agent]()). 2. In [`Brewfile`](), replace `cask "antigravity-cli"` with your agent's package, or remove the line if your agent is already installed by another package manager (such as `npm`). - **Where clones live (`clone_root`):** defaults to `~/Documents/GitHub`. If your local checkouts live elsewhere (such as `~/code`, `~/Developer`, or `~/projects`), update `clone_root` in `config.yaml` now. This ensures setup validates permissions for your actual projects directory and prevents unnecessary re-cloning. An existing clone is reused only at `/` with a matching `origin`; a repository whose directory there holds something else is skipped. - **Language groups and schedule (`groups`):** review the default groups (`web`, `python`, `workflows`, and `r`). If your repositories use other languages (such as Rust, Go, Swift, or Ruby) or you prefer different run times, adjust the groups in `config.yaml` (see [Groups and the schedule]()). - **Repository owner (`owner`):** you do not need to change this manually; `make setup` detects your authenticated GitHub account and offers to update `owner` in `config.yaml` automatically. ## [3\. Run the interactive setup](<#3-run-the-interactive-setup>) ```sh make setup ``` Setup is interactive, safe to rerun, and idempotent. It steps through each check and offers to install or fix whatever is missing: | Step | What happens | | --- | --- | | Tools | Installs missing [`Brewfile`]() packages using `brew bundle` | | Sign-ins | Verifies `gh auth login` and waits until your coding agent's sign-in check command succeeds | | Owner | Detects your GitHub login and offers to update `owner` in `config.yaml` | | Clone directory | Verifies `clone_root` exists or prompts to create it | | Private repositories | Scans your private repositories for committed prompts and writes `private.yaml` | | Git hooks | Installs the `prek` git hooks (`pre-commit` and `commit-msg`) | | App and agents | Builds the LLM Dependabot launcher app, writes and loads the `launchd` agents, and tests Full Disk Access | | Lockfile extension | Installs the pinned `gh-actions-lock` extension (`make actions-lock-install`) | ## [4\. Full Disk Access](<#4-full-disk-access>) macOS privacy protection blocks background `launchd` jobs from reading `~/Documents` and protected user folders, even when your terminal emulator already has Full Disk Access. The scheduled jobs therefore start through a tiny app, **LLM Dependabot**, which setup builds into `~/Library/Application Support/llm-dependabot/`. During setup, the script opens **System Settings › Privacy & Security › Full Disk Access** and reveals the app in Finder: 1. If **LLM Dependabot** is already listed in the settings pane, toggle its switch on. 2. If it is not listed, drag the highlighted app from Finder into the Full Disk Access list (or click **\+** and select it). 3. Return to the terminal and press Enter. Setup validates the grant by starting a throwaway launchd job and proceeds once that job can read your clones. ![System Settings, Full Disk Access pane, with LLM Dependabot listed and switched on]() macOS may already list the app, switched off: it adds any program that tries to read protected data, which the app does the first time a job runs. > [!NOTE] > > Only the LLM Dependabot helper app receives this permission, not `/bin/zsh` or your whole terminal. It needs granting again only when its sources (`app/`) change, since macOS ties the grant to the app's code signature. ## [5\. Prepare your repositories](<#5-prepare-your-repositories>) For llm-dependabot to discover and maintain a repository, the repository must carry what the agent needs to perform work and verify its changes. ### [Add maintenance prompts](<#add-maintenance-prompts>) A repository opts into maintenance by committing prompt files to its default branch. The default configuration recognises: - `.github/prompts/update-deps.md` (runs weekly by default) - `.github/prompts/simplify-codebase.md` (runs monthly by default) - `.github/prompts/gsc-analysis.md` (runs monthly by default; for websites registered in Google Search Console) The agent receives the file verbatim, as its only instruction, from inside a fresh worktree. A good prompt contains: - **Frontmatter (optional):** YAML metadata such as `name` and `description`. llm-dependabot does not read it; it only describes the prompt to the agent and to people browsing the repository. - **Instructions:** exact commands to run to update dependencies (such as `uv lock --upgrade`, `pnpm update`, or `cargo update`) or the refactoring goals to target. - **Quality gate:** explicit commands the agent must iterate on until everything passes cleanly (linters, type checkers, unit tests, and build commands). - **Pull request directions:** instructions to commit to the branch already checked out (`chore/-`, created by llm-dependabot), push it, open a ready-for-review (non-draft) pull request with `gh pr create`, and summarise the changes in its description. When there is nothing to change, the agent can stop without opening one; the run then removes its worktree. > [!TIP] > > Use this repository's own committed prompts as templates for your projects: [`.github/prompts/update-deps.md`]() and [`.github/prompts/simplify-codebase.md`](). Add any other recurring work as a prompt of its own in `config.yaml`; see [Autonomous evolution]() for examples, and for [what a repository needs]() before its own software factory can run without anyone watching. ### [Provide repository guidance (`AGENTS.md`)](<#provide-repository-guidance-agentsmd>) Place an `AGENTS.md` (or equivalent instructions) in each project's root. Guidance should outline project architecture, coding standards, commit message formats (such as Conventional Commits), and commands for running tests and linters. This keeps the agent aligned with your conventions. ### [Install project toolchains](<#install-project-toolchains>) The agent runs locally on your Mac within fresh git worktrees. Ensure the relevant language toolchains and package managers (for example Python with `uv`, Node.js with `pnpm`, Rust with `cargo`, or R with `Rscript`) are installed and on the `PATH` of a new terminal window: scheduled jobs start a login, interactive zsh, so they see what `~/.zprofile` and `~/.zshrc` set up, including version managers such as `nvm` or `pyenv`. Ensure tests and linters pass on the default branch before the agent runs, so it begins from a known green baseline. ### [Protect the default branch](<#protect-the-default-branch>) The agent runs without asking for approval and with your `gh` and `git` credentials. Protect each participating repository's default branch (require pull requests and passing checks), so every change has to arrive as a pull request you review, even if the agent tries to push directly. ### [Include private repositories](<#include-private-repositories>) Public repositories with committed prompts are discovered automatically at run time. Private repositories require opt-in to keep private repository names out of version control: - If your private repositories already contain prompts during `make setup`, setup prompts you to include each one and writes `private.yaml`. - If you add prompts to private repositories later, either rerun `make setup` or copy [`private.example.yaml`]() to `private.yaml`, list the repository names, and run `make install`. - A git hook prevents `private.yaml` or any named private repositories from being committed. ## [6\. Verify the setup](<#6-verify-the-setup>) After setup finishes, run these commands to verify that your configuration, permissions, and repository discoveries are working as expected: 1. **Check the schedule:** ```sh make status ``` Shows whether each group's `launchd` agent is loaded, the prompt cadences, and pending pull requests. Setup has already confirmed Full Disk Access. 1. **Verify repository and prompt discovery:** ```sh make list ``` Lists all participating repositories grouped by ecosystem alongside their detected prompts. If a repository is missing, confirm that its prompt file is committed to its default branch and that private repositories are listed in `private.yaml`. 1. **Dry-run an ecosystem group:** ```sh make dry-run GROUP=python ``` Previews which repositories and prompts are due to run without invoking the agent or modifying any files. Use any group name from `config.yaml`. 1. **Test a single repository run:** ```sh make run GROUP=python REPO=my-project PROMPT=update-deps ``` Executes an end-to-end test on one repository. Watch the agent create an isolated worktree, execute the prompt, run the repository's quality gate, and open a pull request on GitHub. > [!WARNING] > > This is a real run: the agent works unattended and opens a real pull request. Try it first on a repository where that is harmless. ## [After editing the configuration](<#after-editing-the-configuration>) Whenever you modify `config.yaml` or `private.yaml`, reload the `launchd` agents: ```sh make install ``` `make install` revalidates the configuration and updates your schedules. It safely refuses to reload if an agent run is currently in progress. ## [Uninstall](<#uninstall>) To remove the scheduled `launchd` jobs: ```sh make uninstall ``` This removes the launchd agents. To remove everything, also delete the folders listed under [Files on disk]() and remove LLM Dependabot from the Full Disk Access list. # [Configuration](<#configuration>) Two YAML files sit next to the script, and every command reads both. Both are validated strictly on load: unknown keys are rejected and values are never converted between types, so a typo fails with a clear message instead of a silent misconfiguration. Quote times (`"11:00"`): YAML reads an unquoted `9:00` as the number 540, which fails validation. | File | Committed | Contents | | --- | --- | --- | | [`config.yaml`]() | yes | Owner, prompts and their cadences, clone directory, coding agent, timeouts, and the schedule | | `private.yaml` | no (git-ignored) | Private repositories to include, by name | Run `make install` after editing either file. ## [`config.yaml`](<#configyaml>) | Key | Meaning | | --- | --- | | `owner` | GitHub account whose repositories are considered | | `prompts` | The prompts repositories can opt into, and how often each runs (see below) | | `clone_root` | Where existing clones are found and missing ones are cloned | | `agent` | The coding agent and how to call it (see below) | | `agent_timeout_hours` | Upper bound for one repository's agent run | | `cleanup_interval_hours` | How often finished pull requests are cleaned up | | `skip_weekends` | Whether scheduled jobs do nothing on Saturdays and Sundays (default `true`) | | `groups` | The schedule (see below) | ## [The coding agent](<#the-coding-agent>) The agent runs once per repository and prompt, unattended, inside a fresh worktree. Any agent with a non-interactive mode works; the shipped `config.yaml` uses Antigravity CLI: ```yaml agent: name: Antigravity CLI command: - agy - --dangerously-skip-permissions - --print-timeout - "{timeout_hours}h" - -p - "{prompt}" check: [agy, models] ``` | Key | Meaning | | --- | --- | | `name` | Shown by `make setup` | | `command` | The command line, one argument per item. An argument that is exactly `"{prompt}"` becomes the prompt's text; without one, the prompt goes to standard input. `{timeout_hours}` becomes `agent_timeout_hours`. | | `check` | Optional: a command that succeeds once the agent is installed and signed in. `make setup` waits for it. | > [!WARNING] > > Nobody is there to approve the agent's actions, so it must be able to edit files, run commands, and push without asking. Give it the same trust you give your own terminal session. Each agent takes the same shape: | Agent | `command` | `check` | | --- | --- | --- | | Antigravity CLI | `[agy, --dangerously-skip-permissions, --print-timeout, "{timeout_hours}h", -p, "{prompt}"]` | `[agy, models]` | | Claude Code | `[claude, --dangerously-skip-permissions, -p, "{prompt}"]` | `[claude, auth, status]` | | Codex CLI | `[codex, exec, --dangerously-bypass-approvals-and-sandbox, "{prompt}"]` | `[codex, login, status]` | | GitHub Copilot CLI | `[copilot, --yolo, -p, "{prompt}"]` | — | > [!TIP] > > Check the flags against your agent's version; they change between releases. When switching agents, also replace `antigravity-cli` in the [`Brewfile`]() with your agent's package. A run that outlasts `agent_timeout_hours` by ten minutes is stopped, so agents without a timeout of their own are bounded too. ## [Prompts and cadence](<#prompts-and-cadence>) Each prompt is a file that repositories opt into by committing it at `path`. It runs verbatim, in its own worktree and branch (`chore/-`), so each prompt opens its own pull request. ```yaml prompts: - name: update-deps path: .github/prompts/update-deps.md cadence: weekly - name: simplify-codebase path: .github/prompts/simplify-codebase.md cadence: monthly - name: gsc-analysis path: .github/prompts/gsc-analysis.md cadence: monthly ``` | Key | Meaning | | --- | --- | | `name` | Identifies the prompt in `cadence` overrides, branch names, logs, and `make run PROMPT=…`; letters, digits, `.`, `_`, and `-` only | | `path` | Path of the prompt inside each repository | | `cadence` | `weekly` (the default) or `monthly`; a group can override it | - **Weekly** prompts run at every scheduled run of the repository's group. - **Monthly** prompts run at the group's first scheduled run in each calendar month. `state.json` records when each prompt last ran in each repository, so a monthly prompt whose run was missed, skipped, or failed runs at the group's next scheduled run instead of waiting a month. ![One schedule, multiple prompts: update-deps, simplify-codebase, and gsc-analysis each get an isolated Git worktree and branch, a coding-agent run, and their own pull request, one at a time.]() ## [Groups and the schedule](<#groups-and-the-schedule>) Each group runs at a local wall-clock time on one weekday, and may override a prompt's cadence: ```yaml groups: - name: r languages: [R] weekday: Thursday time: "11:00" cadence: update-deps: monthly ``` A repository joins the first group whose `languages` include its GitHub primary language. The group with `languages: ["*"]` takes everything else. The default schedule, with nothing on Fridays or at weekends: | Group | Languages | Day | `update-deps` | `simplify-codebase` and `gsc-analysis` | | --- | --- | --- | --- | --- | | `web` | TypeScript, JavaScript, Astro, Svelte, Vue, HTML, and CSS | Monday 11:00 | weekly | first Monday of the month | | `python` | Python | Tuesday 11:00 | weekly | first Tuesday of the month | | `workflows` | anything not matched by another group | Wednesday 11:00 | weekly | first Wednesday of the month | | `r` | R | Thursday 11:00 | first Thursday of the month | first Thursday of the month | ![Configured project groups and prompt cadence: Web Applications run Monday, Python Tuesday, Sundry Wednesday, and R Packages Thursday at 11:00; Web, Python, and Sundry run update-deps weekly and simplify-codebase and gsc-analysis monthly, while R runs all prompts monthly, followed by pull-request cleanup.]() With `skip_weekends: true`, groups cannot be scheduled on a Saturday or Sunday, and a scheduled job that launchd starts late at a weekend (for example, after the Mac wakes) does nothing. Weekly prompts then wait for the following week, and monthly ones for the group's next scheduled run. ## [Which repositories take part](<#which-repositories-take-part>) - **Public:** every non-archived, non-fork public repository owned by `owner` that contains at least one of the prompts, found automatically at run time. - **Private:** only those listed in `private.yaml`, so their names never reach version control. Each still needs at least one of the prompts. A repository runs only the prompts it contains. One that gains a prompt picks it up at its group's next scheduled run that finds the prompt due. `make list` shows the current assignment. See [Prepare your repositories]() for guidance on committing prompts and onboarding projects. ## [`private.yaml`](<#privateyaml>) `make setup` writes it for you. To edit it by hand, copy [`private.example.yaml`](): ```yaml repos: - my-private-app - another-private-tool ``` Without `private.yaml`, only public repositories run. A git hook rejects any commit that adds this file or names one of its repositories. ## [Forking and adapting](<#forking-and-adapting>) llm-dependabot is designed as a template: create a new repository from it or fork it, and adapt the configuration for your own projects. | To change | Edit | | --- | --- | | Whose repositories take part | `owner` in `config.yaml` (`make setup` offers to set it), and `private.yaml` | | Which prompts run, and how often | `prompts`, and per-group `cadence`, in `config.yaml` | | The schedule | `groups` in `config.yaml` | | The coding agent | `agent` in `config.yaml`, and its package in the `Brewfile` | | Where clones live | `clone_root` in `config.yaml` | > [!IMPORTANT] > > The agent can only be as good as what each repository gives it: a committed prompt for each kind of maintenance, guidance such as an `AGENTS.md`, and checks (tests, linters, and CI) that it can run to verify its changes. A repository without a prompt is never touched. The giga factory is only as reliable as each repository's own software factory; see [what a repository needs](). See [Setup]() for the end-to-end walkthrough on initialising the repository, configuring your coding agent and clone directory, running interactive setup, and testing your installation. ### [What comes with the template](<#what-comes-with-the-template>) The scheduler needs only `llm_dependabot.py` and its lockfile, `config.yaml`, `private.example.yaml`, `app/`, `hooks/`, `prek.toml`, the `Makefile`, and the `Brewfile`, plus `pyproject.toml` and `uv.lock` for the Ruff and ty configuration and the docs tooling. The rest serves this repository's own documentation, branding, and CI: | Files | In your copy | | --- | --- | | `.github/workflows/` | Self-contained CI that runs in any account; `docs.yml` deploys the site from `main`, so set **Settings › Pages › Source** to **GitHub Actions** or delete it | | `docs/`, `mkdocs.yml`, and `overrides/` | The documentation site; `mkdocs.yml` sets this site's URL and Google Analytics property, and `overrides/main.html` names its author. Change them before deploying the site, or delete them with `docs.yml` and the `docs` targets in the `Makefile` | | `.github/prompts/` | This repository's own maintenance prompts; keep them so llm-dependabot maintains your copy | | `hextools/`, `DESIGN.md`, and `.agents/` | Branding and figure generation; delete them, or keep them to draw your own | `app/icon.png` is the app's icon; replacing it rebuilds the app, which needs Full Disk Access granted again. ### [Another operating system](<#another-operating-system>) The scheduling and the tooling are macOS's. Everything else (discovery, worktrees, running the agent, pull-request tracking, and cleanup) is plain `git`, `gh`, and Python. To run elsewhere, replace these parts of [`llm_dependabot.py`](): | macOS part | Role | Replace with, for example | | --- | --- | --- | | `launchd` agents (`launchctl`) | Start each group's run and the cleanup on schedule | systemd timers or cron on Linux, Task Scheduler on Windows | | The LLM Dependabot app (`app/`) | Holds the Full Disk Access grant | Nothing, where the OS has no such protection | | `caffeinate` | Keeps the machine awake during a run | `systemd-inhibit` on Linux | | `osascript` notifications | Summarise each run | `notify-send` on Linux, or nothing | | Homebrew and the `Brewfile` | Install the tools | The system's package manager | # [Usage](<#usage>) Once set up, nothing needs doing: each group runs on its weekday, running the prompts that are due, and pull requests appear in the repositories. Review and merge them as usual; clones made for a run are deleted once their pull request is merged or closed. ![Using llm-dependabot: check groups, prompt cadences, and pending pull requests; preview or run a Python group or choose one project or prompt; then review pull requests before cleanup removes the worktree and run-only clone.]() ## [Commands](<#commands>) `make help` lists every target. The everyday ones: | Command | Does | | --- | --- | | `make status` | Show the schedule, each group's prompt cadences, pending pull requests, and clones awaiting deletion | | `make list` | Show which repositories fall into which group, and which prompts each has | | `make dry-run GROUP=python` | List the repositories and prompts a group would run, without running anything; add `PROMPT=` to preview one prompt | | `make run GROUP=python` | Run a group's due prompts now | | `make run GROUP=python REPO=my-project` | Run one repository's due prompts now | | `make run GROUP=python PROMPT=simplify-codebase` | Run one prompt now, whatever its cadence | | `make cleanup` | Clean up after merged or closed pull requests now | | `make clean-logs` | Delete logs older than 30 days; set `DAYS=` to change the cut-off | | `make install` | Reload the agents after editing the configuration | Except for `make clean-logs`, each everyday target wraps `./llm_dependabot.py`, which also works directly (`./llm_dependabot.py --help`). `make run` without `PROMPT` runs what a scheduled run would: every weekly prompt, and each monthly prompt that has not yet run in that repository this calendar month. Every completed run counts towards the cadence, so a monthly prompt run by hand does not run again that month. ## [When jobs run](<#when-jobs-run>) - A job missed while the Mac was asleep runs as soon as it wakes, unless that is a Saturday or Sunday (see `skip_weekends` in [Configuration]()). - A job missed while the Mac was shut down is skipped until the following week, when monthly prompts that did not run catch up; use `make run` to catch up sooner. - `caffeinate` keeps the Mac from idle-sleeping during a run, and a lock stops runs from overlapping. - A cleanup job runs at login and every `cleanup_interval_hours`, except at weekends. - A notification summarises each run when it finishes. ## [Watching a run](<#watching-a-run>) In Activity Monitor, choose **View › All Processes, Hierarchically** and search for the agent's process (for example, `antigravity` for Antigravity CLI). A run looks like this: ```text LLM Dependabot └─ zsh └─ uv └─ python llm_dependabot.py run GROUP ├─ caffeinate keeps the Mac awake during the run └─ the agent whichever config.yaml names └─ git, gh, uv, pnpm, Rscript, … tools the agent runs ``` The agent's CPU and memory use rise and fall as it edits files and runs each repository's checks. Quitting LLM Dependabot, the top process, stops the whole run. Each agent's own output goes to its transcript, `~/Library/Logs/llm-dependabot/-