Skip to content
Binay Dalai

2026 · personal project · Slack agent

PatchGhost

A message from PatchGhost in a Slack channel: the vulnerable package, the advisory, a short analysis, and the actions it took, with a link to a pull request on GitHub.
PatchGhost’s own screens: its alert in Slack, the pull request, the dashboard, the map of dependencies, the audit log and the architecture. From the gallery on its Devpost page, in a demo workspace.

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.

dependency listcheck each oneone is vulnerablewhat it foundasks for the fixpatched branchpull requesta person mergesRepositoryPatchGhostOSV.devSlack

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.

Fig. 1. From a vulnerable dependency to a pull request, simplified.
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

  1. 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.

  2. Under the alert, Slack shows the links the message carries: the pull requests of the demo repository on GitHub, and the ticket it opened.

  3. A web dashboard lists the packages with open advisories beside a graph of the dependencies it watches.

  4. The same graph on a page of its own: every dependency it monitors, drawn as a node.

  5. 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.

  6. 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.

A Slack channel with a message from PatchGhost: a vulnerable package and its advisory, a paragraph of analysis, and a list of actions taken, one of them a link to a pull request on GitHub.
Click the screen to see a step larger, held still, and to go back and forward. A step’s name shows that step.Screens from the gallery on the project’s Devpost page, fetched on November 24, 2026. They show a demo workspace and a demo repository.

A walk through PatchGhost

1 of 6. The alert

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. Screens from the gallery on the project’s Devpost page, fetched on November 24, 2026. They show a demo workspace and a demo repository.

Status

Personal project, 2026.

Problem

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.

Approach
  1. 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.
  2. Findings go to a Slack channel as a message with the severity and buttons to act on it.
  3. 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.
  4. 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.
  5. People without write access can still trigger a patch: it forks the repository and opens the pull request from the fork.
My role

Solo.

What was hard

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.

Stack
  • Python
  • Slack Bolt
  • MCP
  • the GitHub MCP server
  • Gemini 2.5 Flash
  • Flask
  • React
  • Vite
  • Docker
  • Cloud Run
  • OSV.dev
Scope and limits

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.