whatisgithub

What is riskdev?

quietreviewer/riskdev — explained in plain English

Analysis updated 2026-05-18

2TypeScriptAudience · developer

In one sentence

A command line tool that reads your uncommitted code changes and tells you which few lines actually need careful human review.

Mindmap

mindmap
  root((RiskDiff))
    What it does
      Flags risky diff lines
      Sorts review tiers
      Checks task alignment
    Tech stack
      TypeScript
      Node.js
      Anthropic API
    Use cases
      Review AI diffs faster
      Pre-commit gate
      Offline rule-based mode
    Audience
      Developers
      AI-assisted coders
      CI pipeline users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Review an AI-generated diff faster by seeing which lines are truly high risk.

USE CASE 2

Use as a pre-commit or CI gate that fails when mandatory-tier risky changes are found.

USE CASE 3

Run in no-ai mode for a fully offline, rule-based check of risky diff areas.

USE CASE 4

Check whether an AI's implementation actually matches the task you asked for.

What is it built with?

TypeScriptNode.jsGitAnthropic API

How does it compare?

quietreviewer/riskdevadun-denton/chinvatagbara286/saint-cms
Stars222
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasy
Complexity4/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

So what is it?

RiskDiff, sold under the name riskdev, is a command line tool that looks at the uncommitted changes in a Git repository and tells you which parts actually need a careful human review. It was built with AI coding assistants like Claude Code in mind: when an AI writes a large diff, most of it is usually safe to skim, but a small number of lines can be risky, and this tool tries to point out exactly which ones. When you run it, RiskDiff looks at the shape of the change first, checking whether things like authentication, permissions, payments, database migrations, or public interfaces were touched. It also runs your project's own test, lint, and type-check commands as supporting evidence, and compares what you said you wanted to do against what the change actually does, since AI tools sometimes solve a different problem than the one asked for. Every change gets sorted into one of three tiers: mandatory line by line review, a recommended focused look, or optional skimming, with reasons, a possible failure scenario, and an estimated number of minutes to review attached to each item. By default, if you give it an Anthropic API key, it sends your diff and some context to the Anthropic API for the AI analysis part. Without a key, or with the no-ai flag, it falls back to rule based checks using only the shape of the diff, and makes no network requests at all. The tool is explicit that it never claims code is safe. It only tries to help a human reviewer focus their limited attention where it matters most, and passing checks reduce uncertainty without removing it. RiskDiff needs Node.js 18 or newer and Git, and is installed with npm. Right now it only fully supports JavaScript and TypeScript projects, since it looks for test, lint, and type-check scripts in package.json. It fits developers who already review AI generated code and want a faster, more targeted way to decide what deserves close attention, rather than reading every line themselves.

Copy-paste prompts

Prompt 1
Install riskdev and run it on my current uncommitted changes to see what needs review.
Prompt 2
Explain what MANDATORY, RECOMMENDED, and OPTIONAL review tiers mean in riskdev's output.
Prompt 3
Set up riskdev as a pre-commit hook so it blocks commits with high-risk unreviewed changes.
Prompt 4
Run riskdev in --no-ai mode so nothing about my diff leaves my machine.
Prompt 5
Use riskdev to check whether my AI assistant's diff actually matches the task I described.

Frequently asked questions

What is riskdev?

A command line tool that reads your uncommitted code changes and tells you which few lines actually need careful human review.

What language is riskdev written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Git.

Who is riskdev for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.