{"slug": "building-a-better-dependabot-with-ai-agents", "title": "Building a better Dependabot with AI agents", "summary": "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.", "body_md": "# Building a better Dependabot with AI agents\n\n## A note on LLM assistance\n\nFelix 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.\n\nHere are two pull requests for the same Rust upgrade on my Rust template repository. [Dependabot’s](https://github.com/cmackenzie1/template-rust/pull/1) bumped the `rust` image in the Dockerfile but not `rust-toolchain.toml` alongside it. [The other one](https://github.com/cmackenzie1/template-rust/pull/2) 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.\n\n[Dependabot](https://github.com/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.\n\nAnd Dependabot hasn’t really kept up. The alternatives don’t always fare better in practice, either. At my $DAYJOB we use [Renovate](https://github.com/renovatebot/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.\n\n## Where today’s update bots fall short\n\nDependabot, 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.\n\nThat’s kinda where it stops:\n\n- **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.\n- **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.\n- **No one reads the release notes.** New APIs that would let you delete your workarounds go unnoticed.\n- **Conflicts pile up.** Merge one PR and the next three now conflict on the lockfile. Hope your rebase command isn’t disabled.\n\n## Where agents fit\n\nThis 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.\n\nHere is the whole loop, from a scheduled scan to a merged PR:\n\n``` php\nflowchart TD\n    scan([\"Scheduled scan\"]) --> check{\"New versions<br/>upstream?\"}\n    check -->|no| sleep([\"Sleep until the next scan\"])\n    check -->|yes| plan[\"Group updates into<br/>coherent PRs\"]\n    comment[\"Your /felix comments\"] -.-> plan\n    plan --> verify[\"Update every pin, regenerate lockfiles,<br/>build and test in a sandbox\"]\n    verify --> pr[\"Open the PR\"]\n    pr --> merge([\"You review and merge\"])\n    verify -.->|broken or out of sync| fix[\"Agent reads the release notes<br/>and fixes it\"]\n    pr -.->|CI fails or conflicts| fix\n    fix -.-> verify\n```\n\n### Coherent changesets\n\nWhen 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.\n\nThat’s why the [Felix version](https://github.com/cmackenzie1/template-rust/pull/2) of the Rust upgrade bumped both pins together.\n\nFelix also groups related changes instead of opening twelve PRs. Routine bumps get bundled, and anything risky, like a compiler major, gets its own PR.\n\n### Automatic major version upgrades\n\nThis 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.\n\nWhen I bumped [Biome 1 → 2](https://github.com/cmackenzie1/uuidgen.dev/pull/76), 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.\n\nOnce 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](https://github.com/cmackenzie1/uuidgen.dev/pull/79) and to [replace Next.js with TanStack Start](https://github.com/cmackenzie1/uuidgen.dev/pull/80). More on campaigns in a future post.\n\n### Fixing its own PRs\n\nFelix 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.\n\nYou 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.\n\n### No setup required\n\nFelix 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.\n\n## Why not just use an agent?\n\nFair 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.\n\n- **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.\n- **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.\n- **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.\n- **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.\n- **Every PR reads the same.** A table of changes, a “Needs attention” section, and exactly what was verified. Reviewing them gets fast.\n\n## Built on Cloudflare\n\nNaturally, the whole thing runs on Cloudflare. The rough shape:\n\n```\nflowchart TB\n    gh[\"GitHub\"]\n    subgraph cf[\"Cloudflare\"]\n        alarm[\"Durable Object<br/>one per repo\"] -->|scan alarm| worker[\"Worker\"]\n        worker --> agent[\"Agent\"]\n        agent <--> ai[\"Workers AI\"]\n        agent <--> sandbox[\"Container sandbox\"]\n        agent --> store[(\"D1 · R2 · KV\")]\n    end\n    gh -->|webhooks and comments| worker\n    agent -->|commits and PRs| gh\n```\n\n- A **Worker** receives GitHub webhooks and`/felix` comments, and serves a small dashboard.\n- One **Durable Object** per repo holds the scan schedule as an alarm, so every repo runs on its own clock.\n- 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.\n- Models run on **Workers AI** .\n- **D1** keeps track of runs and PRs,**R2** holds the full build logs, and**KV** caches registry lookups.\n\n### Agents with Flue\n\nThe agent itself is built with [Flue](https://flueframework.com), an agent framework from the Astro team ([`withastro/flue`](https://github.com/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.\n\nHere is roughly what Felix’s agent looks like, trimmed down:\n\n```\nexport function Updater() {\n\tuseModel(SMALL_MODEL);\n\tuseSandbox(cloudflareSandbox(/* this repo's container */));\n\tuseTool(lookupVersions);\n\tuseTool(releaseNotes);\n\t// ...\n\n\tuseSubagent({ name: 'pr_worker', model: SMALL_MODEL /* ... */ });\n\tuseSubagent({ name: 'pr_expert', model: LARGE_MODEL /* ... */ });\n\n\treturn PROMPT;\n}\n```\n\n### Two models, cheap by default\n\nMost dependency updates are boring, and they don’t need a big model. Felix uses two:\n\n- **[DeepSeek V4.1 Flash](https://developers.cloudflare.com/workers-ai/models/)** does almost everything. It plans the run, splits the work into PRs, and hands each PR to a`pr_worker` sub-agent that edits, builds, verifies, and opens it.\n- **[GLM-5.3](https://developers.cloudflare.com/workers-ai/models/)** is the expert. The planner only calls`pr_expert` when a worker is stuck, a CI repair has already failed once, or a major clearly needs real code changes.\n\nEach 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.\n\nA deterministic pre-scan means the model only runs on repos with something to update. Every run has a hard budget, $1.50 by default.\n\n## Some of my favorite PRs\n\n- [Biome 1 → 2](https://github.com/cmackenzie1/uuidgen.dev/pull/76) : the one from above. When I asked Felix to rebase it, it rebuilt the PR on top of`main` on its own.\n- [TypeScript 5 → 7](https://github.com/cmackenzie1/uuidgen.dev/pull/83) :`noUncheckedSideEffectImports` is on by default in 7 and broke the CSS imports. Felix found and fixed it.\n- [Grafana 11 → 13](https://github.com/cmackenzie1/compose/pull/2) : 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.\n- [Forgejo 16 → 17](https://github.com/cmackenzie1/compose/pull/3) : it noticed the 17.0.0 release notes advised against upgrading, then confirmed the floating`17` tag already pointed at the fixed 17.0.2.\n- [Postgres 15 → 19](https://github.com/cmackenzie1/pgxpool-prometheus/pull/61) : a two-line diff, but it bumped the README*too* so the docs don’t drift.\n- [Next.js → TanStack Start](https://github.com/cmackenzie1/uuidgen.dev/pull/80) : a campaign, not an update. It migrated the whole app with identical URLs and API responses.\n\nHere’s what Felix has been up to lately:\n\n## Personal software\n\nA 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!\n\nWe 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.\n\nWhich 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.\n\nHappy Hacking.", "url": "https://wpnews.pro/news/building-a-better-dependabot-with-ai-agents", "canonical_source": "https://cdm.dev/blog/better-dependabot/", "published_at": "2026-11-28 06:21:30+00:00", "updated_at": "2026-11-28 06:42:24.060670+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-tools", "artificial-intelligence"], "entities": ["Felix", "Dependabot", "Renovate", "Claude Code", "cmackenzie1", "Rust", "GitHub Actions"], "also_reported_by": [], "takeaway": "Keep version resolution deterministic via registry lookups and let the agent handle release-note reading, cross-file pin updates and CI-failure fixes, as Felix did when it bumped both the Dockerfile rust image and rust-toolchain.toml in one PR.", "recommendation": {"advice": "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.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/building-a-better-dependabot-with-ai-agents", "markdown": "https://wpnews.pro/news/building-a-better-dependabot-with-ai-agents.md", "text": "https://wpnews.pro/news/building-a-better-dependabot-with-ai-agents.txt", "jsonld": "https://wpnews.pro/news/building-a-better-dependabot-with-ai-agents.jsonld"}}