cd /news/ai-agents/building-a-better-dependabot-with-ai… · home › topics › ai-agents › article
[ARTICLE · art-177613] src=cdm.dev ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Building a better Dependabot with AI agents

Developer cmackenzie1 built Felix, an open-source dependency-update tool that uses AI agents to produce coherent upgrade pull requests, after Dependabot's fragmented bumps left builds broken. In a comparison on a Rust template repository, Dependabot's pull request updated the Dockerfile's rust image but not rust-toolchain.toml, while Felix's pull request bumped both pins together, explained why it left the rust-version MSRV in Cargo.toml untouched, and listed upstream changes in Rust 1.100 that could affect the repo. Felix keeps version lookups deterministic from registries rather than the model, then has an agent read release notes, make code changes, and fix CI failures or conflicts in a sandbox before opening the PR; the author says Felix was built with substantial help from Claude Code.

recommendation

Have the agent read release notes and update every pin across Dockerfiles, toolchain files and CI configs in one PR, but source version numbers from registry lookups, never the model.

more in playbook: Designing agent systems
by read10 min views1 publishedNov 28, 2026
Building a better Dependabot with AI agents
Image: source

A note on LLM assistance #

Felix was built with a lot of help from Claude Code, and I used an LLM to help organize this post. The opinions (and the grudges against Dependabot) are my own.

Here are two pull requests for the same Rust upgrade on my Rust template repository. Dependabot’s bumped the rust image in the Dockerfile but not rust-toolchain.toml alongside it. The other one bumped both pins together, explained why it didn’t touch the rust-version MSRV in Cargo.toml, and listed what changed upstream in 1.100 that could affect the repo. That one came from Felix.

Dependabot promised to automate away a chore many of us skipped because of the tedious, never-ending onslaught of updates, and when it launched, people loved it. Years later, I have a bad case of what I call dependency burnout. Dependabot bumps something, the build breaks, and now fixing it is my problem. Multiply that across every repo and I just stopped merging them altogether unless I needed a bugfix or a new feature. Meanwhile, the steady stream of new CVEs and zero-days has made keeping dependencies up to date more important than ever.

And Dependabot hasn’t really kept up. The alternatives don’t always fare better in practice, either. At my $DAYJOB we use Renovate, but it’s been dialed way back. It only runs once a week and the rebase commands are turned off, so its PRs go stale and start conflicting before anyone gets to them. So I built Felix. The name is a nod to Fix-It Felix Jr. from Wreck-It Ralph, because the whole point is that it fixes things, and doesn’t just bump numbers and walk away.

Where today’s update bots fall short #

Dependabot, Renovate, and the rest of the update bots are rigid in their approach. Find all the Cargo.toml, package.json, requirements.txt and lockfiles, check upstream for new versions, and if anything changed, update the manifest and lockfile and open a pull request.

That’s kinda where it stops:

  • Upgrades are fragmented. If you use.tool-versions ,mise.toml , Dockerfiles, and GitHub Actions, a toolchain upgrade lands in one place and the rest are left behind.
  • Major versions are your problem. Majors often need code changes. The bot opens the PR, CI goes red, and it sits there until you read the migration guide yourself.
  • No one reads the release notes. New APIs that would let you delete your workarounds go unnoticed.
  • Conflicts pile up. Merge one PR and the next three now conflict on the lockfile. Hope your rebase command isn’t disabled.

Where agents fit #

This is exactly the kind of work agents are great at. It’s tedious, it’s well defined, and verifying it is just running the build and tests. Felix still does the boring deterministic parts the old way. Versions come from a registry lookup, never from the model, so it won’t invent a tag that doesn’t exist. Then an agent takes over: it consults the release notes, makes the code changes, and looks for everything outside the dependency files that also needs to move.

Here is the whole loop, from a scheduled scan to a merged PR:

flowchart TD
    scan(["Scheduled scan"]) --> check{"New versions<br/>upstream?"}
    check -->|no| sleep(["Sleep until the next scan"])
    check -->|yes| plan["Group updates into<br/>coherent PRs"]
    comment["Your /felix comments"] -.-> plan
    plan --> verify["Update every pin, regenerate lockfiles,<br/>build and test in a sandbox"]
    verify --> pr["Open the PR"]
    pr --> merge(["You review and merge"])
    verify -.->|broken or out of sync| fix["Agent reads the release notes<br/>and fixes it"]
    pr -.->|CI fails or conflicts| fix
    fix -.-> verify

Coherent changesets

When Felix bumps a version, it bumps it everywhere. Moving FROM rust:1.99 also moves rust-toolchain.toml, the CI toolchain, .tool-versions, mise.toml, and anything else that names that Rust version. A coherence check gates every PR before it opens, so a half-finished upgrade never makes it to review.

That’s why the Felix version of the Rust upgrade bumped both pins together.

Felix also groups related changes instead of opening twelve PRs. Routine bumps get bundled, and anything risky, like a compiler major, gets its own PR.

Automatic major version upgrades

This is the part that motivated me to build Felix in the first place. It doesn’t stop at minor and patch versions: it reads the upgrade guide, migrates config, fixes the code, and runs your build and tests in a sandbox on the new version before it opens anything. If the build broke and Felix had to fix it, the PR tells you what it changed and why.

When I bumped Biome 1 → 2, Felix migrated biome.json to the v2 schema and fixed the handful of new lint failures. It also called out which formatting diffs came from new v2 defaults, so I wasn’t left guessing.

Once Felix could handle an upgrade that big, I realized the same machinery works for changes that aren’t upgrades at all. I call these campaigns: describe one change, and Felix rolls it out across all my repos, one PR each. So far I’ve used it on uuidgen.dev to add a justfile and to replace Next.js with TanStack Start. More on campaigns in a future post.

Fixing its own PRs

Felix watches CI on its own PRs. If a check fails, it tries to repair it. If merging one PR leaves another conflicting on the lockfile, Felix rebuilds that PR a few minutes later without asking. Lockfile-only conflicts skip the agent and just get regenerated.

You can also talk to it. Comment /felix rebase on a PR, or use plain words like /felix split vitest out or /felix hold react at 19, and the agent either does it or explains why it won’t.

No setup required

Felix is a GitHub App, so there is nothing to add to your CI and no config needed to get started. Once it’s installed, every repo gets scanned on a schedule. Repos that are archived, forked, or haven’t seen a commit in a while get skipped. If you want to tune things, there is an optional .felix.toml for the schedule, a minimum release age, groups, and verify commands.

Why not just use an agent? #

Fair question. I could open Claude Code in each repo, tell it to update the dependencies, and it would probably do a decent job. But “probably” and “when I remember to” are exactly the problems I’m trying to get away from. The model is the smart part, but what makes Felix reliable is everything around it.

  • It’s always on. A coding agent works when you ask it to. Felix is hosted, so it scans, watches CI, and rebuilds its PRs while I’m off doing something else. Nobody has to remember to run it, which is the whole point when the problem is burnout.
  • Purpose-built tools, not just a shell. Instead of grepping around and guessing, the model gets tools built for this one job.lookup_versions asks the registries what actually exists.inspect_repo finds every pin of a toolchain or package and flags any that disagree.verify runs the build and tests and only reports errors that are new compared with the base branch.
  • Guardrails it can’t talk its way around.open_pull_request refuses if the pins are out of sync, and opens a draft if any check failed. Every run has a budget, and an upgrade it gives up on is set aside instead of retried every night.
  • It remembers what you told it. Close a PR and Felix skips that version. Ignores, groups, and schedules live in.felix.toml , not in a prompt you retype every session.
  • Every PR reads the same. A table of changes, a “Needs attention” section, and exactly what was verified. Reviewing them gets fast.

Built on Cloudflare #

Naturally, the whole thing runs on Cloudflare. The rough shape:

flowchart TB
    gh["GitHub"]
    subgraph cf["Cloudflare"]
        alarm["Durable Object<br/>one per repo"] -->|scan alarm| worker["Worker"]
        worker --> agent["Agent"]
        agent <--> ai["Workers AI"]
        agent <--> sandbox["Container sandbox"]
        agent --> store[("D1 · R2 · KV")]
    end
    gh -->|webhooks and comments| worker
    agent -->|commits and PRs| gh
  • A Worker receives GitHub webhooks and/felix comments, and serves a small dashboard.
  • One Durable Object per repo holds the scan schedule as an alarm, so every repo runs on its own clock.
  • Edits, lockfile regeneration, builds, and tests run inside a Container . It never sees a GitHub credential: the Worker streams the repo in and commits through the GitHub API.
  • Models run on Workers AI .
  • D1 keeps track of runs and PRs,R2 holds the full build logs, andKV caches registry lookups.

Agents with Flue

The agent itself is built with Flue, an agent framework from the Astro team (withastro/flue). Rather than wiring up raw LLM API calls and a tool loop myself, Flue gives you the harness: the model, tools, a sandbox, and sub-agents, all declared in plain TypeScript. It also ships Cloudflare support out of the box, so the sandbox is a Container and the models come straight from the Workers AI binding.

Here is roughly what Felix’s agent looks like, trimmed down:

export function Updater() {
	useModel(SMALL_MODEL);
	useSandbox(cloudflareSandbox(/* this repo's container */));
	useTool(lookupVersions);
	useTool(releaseNotes);
	// ...

	useSubagent({ name: 'pr_worker', model: SMALL_MODEL /* ... */ });
	useSubagent({ name: 'pr_expert', model: LARGE_MODEL /* ... */ });

	return PROMPT;
}

Two models, cheap by default

Most dependency updates are boring, and they don’t need a big model. Felix uses two:

  • DeepSeek V4.1 Flash does almost everything. It plans the run, splits the work into PRs, and hands each PR to apr_worker sub-agent that edits, builds, verifies, and opens it.
  • GLM-5.3 is the expert. The planner only callspr_expert when a worker is stuck, a CI repair has already failed once, or a major clearly needs real code changes.

Each PR gets a fresh sub-agent that reports back only a few lines, so build logs never pile up in the planner’s context. That keeps runs cheaper and more reliable.

A deterministic pre-scan means the model only runs on repos with something to update. Every run has a hard budget, $1.50 by default.

Some of my favorite PRs #

  • Biome 1 → 2 : the one from above. When I asked Felix to rebase it, it rebuilt the PR on top ofmain on its own.
  • TypeScript 5 → 7 :noUncheckedSideEffectImports is on by default in 7 and broke the CSS imports. Felix found and fixed it.
  • Grafana 11 → 13 : two majors at once. It read Grafana’s source to confirm my datasource config still works, and reminded me to back up the volume first.
  • Forgejo 16 → 17 : it noticed the 17.0.0 release notes advised against upgrading, then confirmed the floating17 tag already pointed at the fixed 17.0.2.
  • Postgres 15 → 19 : a two-line diff, but it bumped the READMEtoo so the docs don’t drift.
  • Next.js → TanStack Start : a campaign, not an update. It migrated the whole app with identical URLs and API responses.

Here’s what Felix has been up to lately:

Personal software #

A few Claude Code sessions and one Claude usage reset later (god, Opus 5.5 is great), Felix is enabled and running on all of my GitHub repositories, public and private!

We live in the era of truly personal software. I didn’t have to wait for Dependabot to add the feature I wanted, or convince anyone at work to turn the rebase commands back on. Felix works exactly the way I want it to.

Which is also why I’m not open sourcing it. If this interests you, build your own. Feed your agent this post and do with it as you will.

Happy Hacking.

── more in #ai-agents 4 stories · sorted by recency
── more on @felix 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/building-a-better-de…] indexed:0 read:10min 2026-11-28 · —