2026 · personal project · Slack agent
PatchGhost

A Slack agent that watches a repository’s dependencies for known vulnerabilities and prepares the fix as a pull request.
It checks npm, PyPI and Go packages against OSV.dev, a public database of vulnerabilities, and posts what it finds in a Slack channel. From there it can open a branch with the patched version. It opens the pull request; a person merges it.
A person reviews it and merges it. PatchGhost does not merge.
A message sequence between a repository, PatchGhost, the OSV.dev vulnerability database and Slack. PatchGhost reads the repository’s dependencies, checks each against OSV.dev, posts what it finds in Slack, and when someone asks for the fix it opens a branch with the patched version and a pull request. A person reviews and merges it. It plays by itself and repeats. Press Space, or press on it, to pause or play; the arrow keys step it by hand.
How this works
This is the order of the steps described on this page, drawn as messages between the parts. It is a simplified picture, with no real repository or vulnerability in it.
Demo1 of 6
PatchGhost posts in a Slack channel when its scan finds a vulnerable dependency: the package, the advisory, a short analysis written by a language model, and what it did about it, with a link to the pull request.
Under the alert, Slack shows the links the message carries: the pull requests of the demo repository on GitHub, and the ticket it opened.
A web dashboard lists the packages with open advisories beside a graph of the dependencies it watches.
The same graph on a page of its own: every dependency it monitors, drawn as a node.
Every finding is logged with its time, ecosystem, package and advisory. A row opens to show the alert that was sent and the model’s analysis.
The architecture, as drawn for the hackathon. The Slack app and a background scanner feed one agent, which looks packages up in OSV.dev, asks a language model for the analysis, and opens the pull request through GitHub’s MCP server.
Personal project, 2026.
When a vulnerability in a popular package is published, a team first has to find which of its services use that package, then write the upgrade. That can take days. PatchGhost does the finding and the first draft of the fix.
- A background scan reads each repository’s dependency files (
requirements.txt,package.json,go.mod) and checks them against OSV.dev, a public database of vulnerabilities. - Findings go to a Slack channel as a message with the severity and buttons to act on it.
- A language model writes a short analysis of each finding: how the attack works, what it could reach, and how to fix it. You can ask it follow-up questions in Slack.
- On request it creates a branch, updates the vulnerable dependency and opens a pull request, through GitHub’s MCP server. MCP is a standard way to give a language model access to tools.
- People without write access can still trigger a patch: it forks the repository and opens the pull request from the fork.
Solo.
The GitHub MCP server’s push_files tool fails with a 404 when the branch does not exist yet, so the agent creates the branch first. On Cloud Run, passing the full environment to the MCP subprocess made it hang, so it gets a minimal one.
It patches dependency versions only; it does not analyze application code. Alerts are de-duplicated in memory, so they repeat after a restart. It opens pull requests and does not merge them.








