DEV Community

Cover image for AI coding agents miss things. I built a tool to catch them.
Ali Tonc
Ali Tonc

Posted on

AI coding agents miss things. I built a tool to catch them.

I build apps with AI coding agents. Some of them are live in the Play Store and the App Store, one talks to a language model, one is still in development. Along the way I kept noticing the same thing: the agents write working code fast, but they also leave things behind. A key in a config file, an outdated library, a workflow that pulls in someone else's code without a fixed version. They don't mention it, because nobody asked them to look.

So I built a tool that looks for exactly those mistakes, at least the common ones, and I'm sharing it now. It's called Riegel, which is German for a door bolt.

What it does

You point it at a project folder, a Git repo, a website or an app file and run one command. Riegel then runs a chain of free, well-known scanners with fixed, checksum-verified versions:

  • Betterleaks looks for secrets in the code and in the whole Git history. Riegel never prints the secret itself.
  • OSV-Scanner checks your libraries for known vulnerabilities.
  • GuardDog looks for suspicious or hijacked packages on npm and PyPI.
  • Opengrep (with freely licensed rule sets) looks for risky code patterns, and hadolint checks Dockerfiles.
  • zizmor checks your GitHub Actions workflows.
  • testssl.sh and a few own checks look at your website and server from the outside, but only after you confirm the domain is yours.
  • Android and iOS apps get a light check, and a deep analysis with MobSF if Docker is installed.

It also finds the places where your app calls an AI model and checks whether there is any limit on cost and abuse. From that it estimates a "worst day" cost. For apps with AI there is a catalog of more than 60 prompt attacks in five languages that you can run against a local copy of your own server.

The check itself uses no AI and no paid service.

What you get

A report as PDF and HTML, in English or German. Your project gets a grade from A to E. Every finding says in plain words what can happen, what to do and how much work it is, and comes with a fix prompt you can paste into Claude Code or any other assistant. When you run Riegel again, it confirms what is actually fixed. A finding only counts as fixed when the tool that found it ran again and no longer sees it.

The report also lists what was not checked and why. If one of the scanners fails, the whole report is marked "incomplete" instead of looking better than it is.

What I found in my own apps

I ran Riegel on three of my own projects. In one app it helped me fix eight findings and move from grade B to A. In another it flagged that Dependabot pulled in new library versions the moment they appeared, with no waiting period, which is exactly how hijacked versions get in.

The worst problem, though, Riegel did not find. In an app that isn't launched yet, a group leader could pull any member into their group and then take over that member's account with a new login code. That came up when I had the code read alongside the scan, not from any scanner. It's a logic error, and no rule set knows your business logic. I mention it because it shows the limit of tools like this one.

What I learned on the way

False alarms are the real problem. In my first runs the official Anthropic SDK and the Astro framework showed up as "suspicious packages". A tool like that loses trust fast. So weak signals now only produce a note, and for well-known packages ambiguous patterns do too.

Then I had to undo part of that. In December 2024 the popular PyPI package Ultralytics shipped versions with a crypto miner, built from its own hijacked release pipeline, with a valid provenance attestation. Provenance tells you where a package came from, not that it's harmless. So clear malware signals in Riegel are always a high finding, no matter how famous the package is.

Try it

It runs on macOS and Linux (on Windows through WSL2). Installing takes about half a minute and needs no admin rights.

git clone https://github.com/al62to/riegel
cd riegel
werkzeuge/installieren
werkzeuge/pruefen my-project --ordner ~/code/my-app
Enter fullscreen mode Exit fullscreen mode

Or use it from Claude Code:

/plugin marketplace add al62to/riegel
/plugin install riegel@riegel-tools
Enter fullscreen mode Exit fullscreen mode

Then just ask "check this project with Riegel" in your own words. There is also an Agent Skill and a Gemini CLI extension (built, not yet tested with Gemini).

What it can't do

It finds what its tools have rules for. Logic errors and missing permission checks on your server stay invisible, like the account takeover above. It's not a penetration test and it gives no guarantee. Use it only on systems you own.

Riegel is free for personal use and for very small businesses. The exact terms are in the license files in the repo.

I built it for my own apps first. If you try it, I'd like to hear what was unclear or what it got wrong: github.com/al62to/riegel

Top comments (0)