# Open-sourcing DependOnMe: An AI security bot for GitHub alerts and Slack

> Source: <https://derivai.substack.com/p/open-sourcing-dependonme-ai-security-bot>
> Published: 2026-12-04 08:09:22+00:00

**Key takeaway:** DependOnMe gates every AI-generated dependency change against a guardrail that only allows package names already present in the repository or named in an open alert, preventing hallucinated packages from reaching a PR.

# Open-sourcing DependOnMe: An AI security bot for GitHub alerts and Slack

Self-hosted AI security bot that triages Dependabot, secret scanning, and code scanning alerts, enforces package guardrails, opens reviewable PRs, and routes fixes to repo owners in Slack

Every GitHub organisation we run has the same three tabs nobody opens: Dependabot, secret scanning, and code scanning. The alerts are there. The fixes are usually one version bump away. What is missing is someone who notices, knows who owns the repository, and has ten minutes to do it.

DependOnMe is the bot we built at Deriv to be that someone. Since January 2026 it has gone through 332 commits and 128 releases, and today it scans every repository in our GitHub orgs on a schedule, messages each maintainer once per scan with everything that needs their attention, and opens fix PRs for critical issues on its own. We are now open-sourcing it, so any team with a GitHub org, a Slack workspace and an LLM endpoint can run the same thing.

## Alerts were never the problem. Ownership was.

GitHub is good at finding vulnerable dependencies and leaked tokens. It is less good at getting them fixed across hundreds of repositories, many of which have not seen a push in months. Three things kept going wrong for us.

- Nobody was looking. Security tabs need admin or security-manager access, and the people with that access are not the people who own the code.
- Nobody knew who to ask. Repository ownership lives in people’s heads. The last committer may have left, moved teams, or only ever fixed a typo.
- Fixing took longer than it should. Most Dependabot alerts can be resolved with a lockfile change. Each one still meant a branch, a diff, a review, and a PR, so they waited.

We first built DependOnMe as a dashboard where you subscribed to repositories and pressed a button to get an AI fix. It worked, but only for people who remembered to open it. The version we run today goes to people instead of waiting for them: it scans whole organisations, works out who maintains each repository, and talks to them in Slack.

## What’s in DependOnMe

DependOnMe has four parts that share one FastAPI backend: the org scan, AI fixes, Dom (the Slack agent), and stale-repository clean-up. A React dashboard sits on top for admins.

### Org scan

DependOnMe uses a GitHub App to discover every repository in the organisations you configure and pull three kinds of security alert: Dependabot (vulnerable dependencies with known CVEs), secret scanning (exposed keys and tokens) and code scanning. Scans run on a built-in schedule. As the scan runs, DependOnMe updates a single summary message per org in a Slack channel with running totals and a breakdown by severity.

### AI fixes

For any repository with open issues, DependOnMe sends the affected files and alerts to an LLM and gets back a proposed change. You review the diff, then create the PR or dismiss the alert, with a reason, through the GitHub API. You can also check whether low-severity issues are safe to dismiss. When a scan finds a critical issue, DependOnMe can generate the fix and open the PR without anyone asking.

A guardrail checks every AI-generated change for package names that did not exist before. A new dependency has to be one we have already seen in the repository or one named in an open alert, so a hallucinated `@radiv-ui/...` never reaches a PR.

### Dom, the Slack agent

Dom is the part people actually talk to. It runs in Slack’s assistant pane and answers channel mentions, using a tool-calling loop over DependOnMe’s own data. It has more than 30 tools that let you list a repository’s issues, start or stop an org scan, change the schedule, trigger a fix, create or close a PR, copy a fix prompt to paste into your own editor, mute alerts for a repo, or map a GitHub user to their Slack account by email.

Each maintainer gets one DM per scan listing every flagged repository they maintain, with *Fix with AI*, *Create PR*, and *Review PR* buttons for each. Someone who maintains thirty repositories is messaged once, not thirty times. A *Not a maintainer?* menu lets people take themselves off a repository, and the next scan respects that.

Dom also learned when to stay quiet. People tag a bot while talking to each other (”we should get @Dom to do X”). Before answering, one short LLM call decides whether the message is really addressed to Dom. If not, Dom reacts with an emoji instead of replying, and it only laughs at actual jokes.

### Stale repositories

Admins set how many days a repository can go without a push before it is considered stale. The scan DM then asks each maintainer *Archive this repo?* for the stale repositories they own, and asks again on the next scan until someone answers. An admin can ask Dom which repositories were confirmed for archiving but are still live on GitHub, and who confirmed each one.

## How it works

A scan reaches people in Slack in two ways: a digest in the org channel and one DM per maintainer. Fixes can be triggered by a button in that DM, through Dom, or automatically via critical auto-fix. All three paths go through the same guardrail and end as a PR a person merges.

## What we learned

A missing alert is not a fixed alert. At one point an old deployment kept running against our production storage. It used a token that caused GitHub to return a 404 response for most repositories, and it read those 404s as “no open alerts”, so it marked every stored issue as resolved, one repository at a time, hours after each real scan. Two changes came out of that. Alert-fetch errors now fail loudly. And background loops refuse to run unless their process holds a single-writer lease, so a second copy of the service cannot quietly overwrite the first.

Ownership has to be editable, and the edits have to stick. We guess maintainers from recent contributors, and the guess is often wrong. When someone removes themselves from a repository, or an admin pins the right person, the next scan respects that instead of rebuilding the list from GitHub.

Fewer messages get more fixes. A message per repository is easy to send and easy to ignore. One DM per person per scan, with the action buttons inside it, puts the whole job in front of them at once, and every click is mirrored to a tracking channel so we can see what actually gets fixed.

Guardrails beat review. No reviewer reliably spots a one-letter typo in a package name. A check that rejects any dependency we have not seen before is cheap and catches it every time.

## Why we’re open-sourcing it

Every engineering organisation has this problem, and almost none of the work is specific to us. The parts that were (our org names, Slack channels, admin logins, and our LLM gateway URL) were default values, not logic. We moved all of them into configuration, then published the cleaned code as a new repository with a fresh history. Deriv now runs DependOnMe from the public code, with its own settings kept in a private deploy repo.

For a security tool, being able to read the code matters. You are giving it a GitHub App with access to your security alerts and a Slack bot that DMs your engineers, so you should be able to see exactly what it does.

## What’s in the release, and what isn’t

## How to run DependOnMe

You need a PostgreSQL database, a GitHub App or OAuth app, a Slack app (optional, but Dom provides much of the value), and an OpenAI-compatible LLM endpoint. That covers OpenAI, Anthropic’s OpenAI-compatible endpoint, Azure OpenAI, OpenRouter, a LiteLLM proxy (for Bedrock or Vertex), or a local model through Ollama or vLLM. Fix generation works with any of them. Dom needs a model that supports tool calling.

```
git clone https://github.com/deriv-com/dependonme-bot-oss
cd dependonme
cp .env.example .env
# set LLM_BASE_URL, LLM_API_KEY, LLM_MODEL, GitHub and Slack credentials
docker compose up -d
```

Then open the dashboard at `http://localhost:4321`, sign in with GitHub, set `ORG_SCAN_GITHUB_ORGS`, and start your first scan. The `check_llm.py` script tells you whether your model can handle plain completions, streaming and tool calls before you point Dom at it.

## Security, guardrails, and setup FAQs for engineers

**Does DependOnMe fix security issues without asking?** 

Only critical issues, only if you turn on auto-fix, and only as a pull request. Nothing merges without a human.

**Does it archive repositories?** 

No. Recording “archive” in Slack only records the decision. Archiving on GitHub remains a human step.

**Do I need Slack?** 

No. The dashboard works on its own. Without Slack you lose Dom and the maintainer DMs.

**Do I need a database?** 

Yes, PostgreSQL. It is the default storage for issues, fixes, maintainers and archive decisions.

## What’s next

Archiving a repository doesn’t take down what it deployed. A site built from a repository nobody maintains can keep serving content on a live domain for years, and nobody is watching it.

So Dom’s next job, which isn’t in the open-source release yet, is tracking domains. We’re building a map from every domain we serve to the deployment behind it, the repository that deployment came from, and that repository’s maintainers. With that map, a domain whose repository is archived or stale will be flagged the same way a stale repository is now. Dom will tag the owners, ask them to confirm that the domain can go, and prepare the DNS change for them. What starts as a one-off clean-up becomes continuous: a domain left over from an archived repository will be caught soon after the repository is archived.

If you manage security across a lot of repositories, we’d like to hear where your process breaks: alerts nobody owns, fixes that stall in review, or bots your engineers have learned to ignore. The code is at [this repo](https://github.com/deriv-com/dependonme-bot-oss). 

Please report vulnerabilities privately through the repository’s security policy, not in a public issue.

**Prince Coching is a Senior Front-end Developer at Deriv.** 

**Follow [Deriv Tech on X](https://x.com/DerivDotTech) for more updates from our Engineering Team.**
