Skip to content

Nori Use cases

Run a weekly CVE sweep across all your repos with a coding agent

To run a weekly CVE sweep across all your repos with a coding agent, create a Nori automation on a cron schedule such as 0 7 * * 1. Nori, a cloud coding agent platform, starts Claude Code, Codex or another agent on a fresh cloud machine with your repositories cloned. It reads open Dependabot alerts, runs a scanner, upgrades to patched versions, runs the tests, opens one pull request per repo and posts a summary in Slack.

How to schedule a coding agent that checks every repository for known vulnerabilities each week, opens tested patch pull requests, and posts one summary in Slack, plus how to turn a new CVE announcement into patch PRs across every affected repo.

Quick answer

Give the job a schedule, a prompt and a place to report. In Nori, create an On a schedule automation (for example every Monday at 07:00), list the repositories, and tell the agent to read open security alerts, run osv-scanner or the ecosystem's audit tool, upgrade each vulnerable package to its first patched version, run the tests and open one pull request per repository. Deliver it to a Slack thread. For a new CVE announcement, mention the agent in Slack with the CVE ID and it runs the same steps across every repository now.

Why dependency and security upgrades slip

Upgrades are boring, and nobody owns them. Every repository has its own lockfile, its own test command and its own owner. A high-severity alert lands in a dashboard that nobody opens, and the fix waits until an audit or an incident forces it.

A small team with no DevOps or platform engineer feels this most. Keeping dependencies, security patches and infrastructure healthy is real work, but it is never the most urgent task on a Monday.

This is mechanical work that suits a coding agent: find the vulnerable package, read the advisory, bump the version, run the tests and write a clear pull request. What it needs is a schedule, so it happens without anyone remembering, and a place to report, so a person reviews the result.

Where the vulnerability data comes from

The agent does not need a new security product. It reads the same public sources your team already trusts, with the GitHub CLI and command-line scanners on its machine.

Vulnerability data sources an agent can read during a sweep.
SourceWhat it gives the agentHow the agent reads it
Dependabot alertsOpen alerts per repository, with severity, vulnerable range and first patched versiongh api against the Dependabot alerts REST API
GitHub Advisory DatabaseThe advisory for a CVE ID: affected packages and patched versionsThe global advisories REST API
OSV via osv-scannerKnown vulnerabilities in lockfiles across many ecosystemsosv-scanner scan source -r . in each checkout
Ecosystem audit toolsPer-language findings, such as npm audit and pip-auditRun in the repository, installed by the setup script

Nori sessions reach GitHub through the Jiro (by Nori) GitHub app. Every session can read CI status and security alerts and can write code, pull requests and issues in the repositories the app can see. git and gh are preinstalled on every machine.

How to set up a weekly CVE sweep, step by step

  1. Connect GitHub. Install the Jiro (by Nori) GitHub app on every repository in scope, and add those repositories under Settings → Environment so each machine starts with them cloned.
  2. Install the scanners. In Settings → Environment → Setup script & tools, install the toolchains your tests need and osv-scanner. Every machine then starts ready to scan and test.
  3. Create the automation. Open Automations → New automation, name it Weekly CVE sweep, choose On a schedule, then Weekly, or Custom with the cron line 0 7 * * 1. Set Timezone to your IANA zone.
  4. Write the instructions. Paste the prompt from the example below and replace the repository names.
  5. Choose where it reports. Under Deliver to, choose Slack thread and paste the channel ID of a channel such as #security. Your team can reply in the run's thread to keep working with the same agent.
  6. Save and test. Admins choose Create; a member's automation waits for admin approval. Use Run now to see the first sweep today instead of next Monday.
  7. Keep branch protection on. The agent opens pull requests and never merges. Required reviews and CI checks still decide what ships.

Worked example: the Monday sweep

A 12-engineer team with five repositories and no dedicated DevOps person. Repository names, channel and versions are illustrative.

The schedule and prompt

nori-sessions triggers create \
  --name "Weekly CVE sweep" \
  --type cron \
  --cron-schedule "0 7 * * 1" \
  --timezone America/Chicago \
  --slack-channel-id C0123456789 \
  --prompt "Weekly CVE sweep for: api, web, worker, billing, infra.
For each repository:
1. List open Dependabot alerts with severity critical or high:
   gh api 'repos/acme/<repo>/dependabot/alerts?state=open&severity=critical,high'
2. Run osv-scanner scan source -r . and the ecosystem audit tool
   (npm audit, pip-audit). Merge the findings by package.
3. For each finding with a patched version, upgrade to the lowest
   patched version that fits the current major version. Update the
   lockfile. Do not bump unrelated packages.
4. Run the repository's test suite.
5. If tests pass, open ONE pull request titled
   'fix(security): patch <n> advisories' listing each package, old and
   new version, and the CVE or GHSA ID. If an open PR from a previous
   sweep exists, update that branch instead.
6. If a fix needs a major upgrade or tests fail, change nothing for
   that package and explain why in the summary.
7. Never merge, never dismiss alerts, never edit CI workflows.
If GitHub or a scanner is unavailable, report the error and stop.
Reply with a table: repo, advisories found, patched, PR, needs a human."

The same automation can be created in the dashboard with Weekly at 07:00, or by asking in Slack: @Jiro create an automation that runs every Monday at 07:00 America/Chicago in this channel followed by the prompt.

What lands in Slack

#security

Nori  07:00
Automation: Weekly CVE sweep (every Monday 07:00 America/Chicago)

  Nori  07:41
  | Repo    | Found | Patched | PR    | Needs a human                         |
  |---------|-------|---------|-------|---------------------------------------|
  | api     | 3     | 3       | #2210 |                                       |
  | web     | 2     | 1       | #988  | next 13 -> 15 is a major upgrade      |
  | worker  | 0     | 0       |       |                                       |
  | billing | 1     | 0       |       | tests fail on cryptography 44; see log |
  | infra   | 1     | 1       | #341  |                                       |
  Scanners: Dependabot alerts, osv-scanner, npm audit, pip-audit.

What lands in GitHub

fix(security): patch 3 advisories  (#2210, acme/api)

| Package     | From   | To     | Advisory            | Severity |
|-------------|--------|--------|---------------------|----------|
| jsonwebtoken| 9.0.0  | 9.0.1  | GHSA-xxxx-xxxx-xxxx | high     |
| undici      | 6.19.2 | 6.21.1 | CVE-2026-XXXXX      | high     |
| semver      | 7.5.1  | 7.5.2  | CVE-2026-YYYYY      | medium   |

Tests: npm test, 412 passed. Lockfile updated, no other packages changed.

A reviewer merges the pull requests that are green. For the two rows marked Needs a human, someone replies in the Slack thread, for example do the next 15 upgrade in web on its own branch, and the same agent continues in the same session.

Turn a CVE announcement into patch PRs across every repo

A weekly sweep covers steady drift. A widely reported CVE needs an answer the same day: which repositories are affected, and is there a fix yet? Mention the agent in the Slack channel where the news landed:

@Jiro CVE-2026-XXXXX was just published. Look up the advisory with
gh api '/advisories?cve_id=CVE-2026-XXXXX'. Check every workspace
repository's lockfiles for an affected version, including transitive
dependencies. For each affected repo, upgrade to the first patched
version, run the tests, and open a PR titled
'fix(security): CVE-2026-XXXXX'. Reply with a table of affected repos
and PR links. Never merge.

The agent replies in the thread, and the security lead can steer it there. If an alerting or security tool can send an HTTP POST, a webhook automation does the same without a person: each POST starts a run with the payload attached, marked as untrusted data. For high-risk changes, write the prompt in two phases so the agent posts its plan and waits for someone to reply approved in the thread before it opens pull requests.

Keep the rest of the stack healthy on a schedule

The same pattern covers the other chores a small team without a full-time admin tends to drop. Each is one automation with its own schedule and channel.

Recurring maintenance a team can hand to scheduled agents.
JobScheduleWhat the agent delivers
CVE sweepWeekly, Monday 07:00Patch PRs per repository and a Slack table
Patch and minor upgradesNightly, 02:00One chore(deps) PR per repository, tests run
Major-version upgradesWeekly, on their ownOne PR per major bump, for a slower review
Failed CI digestWeekdays 09:00Yesterday's failed runs grouped by cause
Docs and test gardeningWeekly, managed by NoriOne focused docs or test fix PR

Nightly upgrades follow the same recipe as the CVE sweep; see schedule a coding agent overnight and coding agent automation recipes. Docs and test gardening are automations Nori ships and an admin turns on; see an agent that keeps docs and tests current.

Guardrails for unattended security fixes

  • Pull requests, not merges. The prompt forbids merging. Branch protection and required checks still apply.
  • Smallest safe version. The prompt upgrades to the lowest patched version and leaves major upgrades to a person.
  • Approval for new automations. A member's new automation, or a change to one, waits for admin approval.
  • Failures are visible. Run history shows each run as succeeded or failed, and a failing automation posts a notice in its origin channel.
  • Runs are bounded. Each run stops at its time limit, 6 hours by default.

Every run loads the team's skillset, so the repository conventions and version policy live in one place, and agents keep shared memories of lessons such as billing pins cryptography until the HSM driver is updated. The sweep runs on Jiro, Claude Code, Codex, Cursor, Gemini, OpenCode or Pi, on your own subscription or API keys. Teams whose code must stay inside their network can run Nori on-prem or in their own AWS or Azure account, with SAML, SCIM and OIDC sign-in. See Nori Enterprise.

Frequently asked questions

How do I run a weekly CVE sweep across all my repos with a coding agent?

Create a Nori automation on a weekly schedule, such as every Monday at 07:00. List the repositories and tell the agent to read open Dependabot alerts, run osv-scanner or the ecosystem audit tool, upgrade to patched versions, run the tests, open one pull request per repo and post a summary table in a Slack thread.

Can an AI agent turn a CVE announcement into patch PRs across every affected repo?

Yes. Mention the agent in Slack with the CVE ID. It looks up the advisory, checks every workspace repository's lockfiles for an affected version, upgrades each affected repo to the first patched version, runs the tests and replies with a table of pull request links. A webhook automation can start the same run from a security tool.

Will the agent merge security fixes on its own?

Not with the prompt on this page, which forbids merging. The agent opens pull requests, and your branch protection, required reviews and CI checks decide what merges.

We are a small team with no DevOps person. Is this enough to keep dependencies healthy?

It covers the recurring part. One weekly CVE sweep, one nightly patch upgrade job and one weekday CI digest each run on their own schedule and report in Slack, so a person only reviews pull requests and answers the items the agent flags.

Does the agent need its own security scanner?

No. It reads Dependabot alerts and the GitHub Advisory Database with the GitHub CLI, and runs open source tools such as osv-scanner, npm audit or pip-audit that your setup script installs on every machine.

What happens when a patch breaks the tests?

The prompt tells the agent to leave that package at its old version and explain why in the Slack summary. Someone can reply in the thread to ask the same agent to try a different fix.

Sources

Read on December 4, 2026.