Skip to content

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

  • 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

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:
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:
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

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 <clone_root>/<repository name> 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

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

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

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

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/<prompt>-<timestamp>, 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)

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

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

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

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

After setup finishes, run these commands to verify that your configuration, permissions, and repository discoveries are working as expected:

  1. Check the schedule:
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:
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:
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:
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

Whenever you modify config.yaml or private.yaml, reload the launchd agents:

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

To remove the scheduled launchd jobs:

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.