Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

dig-pr

Latest version: v0.3.1

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: shqld
32 Versions
5.9K Downloads

Scan summary

dig-pr was last scanned on 30 Nov 2026 at version 0.3.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 32 versions; the latest 5 were published within 6 days (25–30 Nov 2026).
  • Findings: No rules fired in version 0.3.1.
  • Downloads: 5,915 downloads.

Versions

32 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.1 LATEST 30 Nov 2026 No rules fired
0.3.0 27 Nov 2026 No rules fired
0.2.0 27 Nov 2026 No rules fired
0.1.27 26 Nov 2026 Not shown
0.1.26 25 Nov 2026 Not shown

No rules fired in 0.3.1

Findings

Findings for v0.3.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

dig-pr

A tool for understanding a pull request written by AI or by someone else: read it from the outline down, and go deep only where it matters. Running dig-pr opens a local web viewer where you open the change level by level, from the directory tree to signatures to code.

dig-pr                                          # the top page: PRs that ask for your review and your drafts
dig-pr 9721                                     # a PR of the repository of the current directory (origin)
dig-pr https://github.com/<owner>/<repo>/pull/<number>
dig-pr <owner>/<repo>/pull/<number>             # the path of the URL
dig-pr 9721 --reviewer                          # read your own PR as a reviewer would
dig-pr stop                                     # stop the server
dig-pr --help                                   # what the tool does, options and environment
dig-pr --version

dig-pr starts one resident server (the daemon), creates a session per PR, and opens http://127.0.0.1:4510/<owner>/<repo>/pull/<number>/ in the browser. If the server is already running it is reused; if the source has changed, it is restarted. One server runs per DIG_HOME: a server that starts stops any other dig-pr server that has $DIG_HOME/notes.sqlite open, whatever port it took, and any dig-pr server still holding its port. Moving to another PR of a stack from the page, or opening another PR by typing its URL, also creates a session for that PR and starts analyzing it.

The look and behavior follow GitHub's pull request pages. The UI is built from GitHub's Primer (@primer/react, @primer/octicons-react, @primer/primitives) without custom look-alike components.

Concepts

A user only needs four concepts. Every feature is a combination of them.

Concept What it is
Change The difference between the base and head of one PR, and who reads it. When the reader is the author, AI explains the PR ahead of them
Part One node of the tree you open the change by. It gets deeper in the order PR → directory → file → declaration. The code diff is what you see when you open a file or a declaration
View How the change is shown: the outline (the tree of parts and signatures) or the walkthrough (the parts in the order to read them, each with why it comes there). In both, you also choose what to hide
Note Something attached to a part. AI writes some (summaries, explanations, the walkthrough, roles, answers), the tool attaches some (marks), and people write some (questions, drafts, viewed)

A part has an ID made from its path and the qualified name of its declaration. Notes are attached to that ID, so the notes of the same declaration survive when the PR is updated. A part also has a hash of its content. Viewed is per file, as on GitHub, and only a file whose hash changed with an update becomes "changed since viewed". The "n / m files viewed" progress also counts files.

AI gives each changed part a role: main, or trivial when it only follows another change in the PR (imports, callers, a rename spreading) or carries no behavior (test fixtures, typo fixes). Anything that changes a shape (a type, a signature, an error code, a user-facing message) is never trivial.

The tool marks a declaration or a file mechanically, from its syntax tree, when the change is only formatting, a move, or a rename: the syntax tree (including comments) is the same, a function declaration, interface, type or method with the same content moved to another file or was only renamed in place, or an import was rewritten to point at the same file. A file gets the mark only when the whole file compares equal, including the order of execution.

Features and concepts
Feature Concepts
Open directories, files, signatures and code one by one (code is colored with GitHub's colors), or expand everything you have not viewed at once; show the diff unified or split side by side (unified when the page is too narrow) Part
Open a PR, open your own PR as a reviewer (--reviewer), move along stacked PRs Change
Read the PR's description as GitHub renders it, and fold it away Change
Switch between the outline and the walkthrough, and choose which one a PR opens in View
The walkthrough: every part that is not trivial, once each, in steps in the order AI finds easiest to read (the main part first). A step shows one or more parts read together, says why it comes there and, where a picture explains better, adds a diagram; the parts AI leaves out follow at the end View (walkthrough) × Part × Note (walkthrough, role)
Hide trivial parts, and changes that are only formatting, moves or renames View (hide) × Note (role, mark)
A summary of the PR, a directory or a file, written when you press its AI button and kept up to date after that Part × Note (summary)
Explanations of your own PR ahead of you Change (author) × Part × Note (explanation)
Ask AI about a part, a line or a selection, and get an answer Change × Part × Note (question, answer)
Leave a comment to the agent on a part, a line or a selection. It is a draft until you publish the drafts; a coding agent reads only published comments and replies to them, you resolve them after reading the replies, and the page shows when an agent is watching. Nothing goes to GitHub Change × Part × Note (comment to the agent)
A comment in GitHub goes into your pending review (GitHub's draft review) as soon as you write it, and can carry a suggested change for its lines; you can edit your drafts; drafts written on GitHub are imported; submit them together with a verdict Change × Part × Note (draft)
Jump from a name in the diff to its definition, in the PR or anywhere in the repository Part
Viewed, and only the files changed by an update go back to unviewed Part (file) × Note (viewed)
The top page (/) lists, in the shape of GitHub's lists, the open PRs that ask you directly for a review and your own draft PRs, grouping stacked PRs. Every 5 minutes the daemon checks GitHub and analyzes the PRs updated within a week before you open them (except drafts that ask for review), and again when their head moves Change
Search the text of the changed files, trivial ones included (the head content; the base content for removed files), and jump to the declaration of a hit Change × Part

Coding agents

A coding agent reads the comments you published to the agent with dig-pr agent comments <PR>, or keeps following them with dig-pr agent watch <PR>, and answers with dig-pr agent reply; resolving a comment is left to you. Two skills tell an agent how:

  • dig-pr-fix addresses the open comments once
  • dig-pr-watch watches the PR and addresses each comment as you publish it

The daemon installs the skills of its own version for Claude Code (~/.claude/skills/) each time it starts, with the skills CLI. For other agents, run npx skills add <the dig-pr package directory>.

Languages

Declarations, the marks for formatting, moves and renames, definition previews, and links to definitions work for TypeScript (.ts, .tsx, .mts, .cts) and Python (.py, .pyi). Other files are shown as plain diffs.

SQL (.sql) is split into statements, such as CREATE TABLE account or ALTER TABLE account, and a statement whose layout alone changed is marked as formatting. MySQL, PostgreSQL and SQLite are read; a statement is formatted by sql-formatter in the first of those dialects whose formatting keeps every token. The case of keywords and names counts as a change. SQL names have no links, and templated SQL such as dbt models ({{ }}, {% %}) is shown as a plain diff.

For Python, links come from Pyrefly's language server. dig-pr runs pyrefly lsp when pyrefly is on PATH, and otherwise uvx --from pyrefly==1.4.1 pyrefly lsp (uv downloads Pyrefly on first use). Without either, Python files have no links. Pyrefly gets a configuration written by dig-pr that carries only the search path from the repository's pyrefly.toml and [tool.pyrefly], so programs and interpreters named in the pull request are never run.

It does not touch your repository

dig-pr never writes to your own clone. It clones the PR's repository bare into ~/.dig-pr/repos/<owner>/<repo>.git (sharing objects through --reference when you have a local clone) and fetches into it. The working copy the AI sessions read is a worktree of that bare clone at ~/.dig-pr/worktrees/<owner>/<repo>/<number>/<head>.

AI sessions

Each PR has one claude (default) or codex session. Answers to questions use opus on claude or sol on codex; everything else (the base session, summaries, roles, the walkthrough) uses sonnet on claude or terra on codex, unless settings.toml (below) sets other models. A base session that has read the PR's context is created first, and summaries, roles, the walkthrough and answers each fork from it. Summaries, roles and answers are written in one turn; the walkthrough first plans its steps in one turn and shows them, then writes what 10 steps say per turn, filling them in as they come. Roles are judged for up to 10 parts in one turn, across files; a file whose diff is too large to pass whole gets an excerpt. Roles are judged as soon as the PR opens. The walkthrough is written when you first open it on a PR, after the roles, leaving out the trivial parts, and written again only when the PR changes. A diagram in the walkthrough is shown in a sandboxed frame that runs no script and loads nothing; a summary is written only when you ask for one, and once written it is written again when the PR changes. An answer includes the earlier exchange of its thread and runs right away without waiting for a free slot. AI writes its notes in Japanese. Sessions can only use reading tools. claude is allowed Read, web search, the reading subcommands of git and gh, and reading Slack, Notion and Linear, and is denied tools that write or post. codex runs with a read-only sandbox, with plugins, apps, the browser and computer use turned off, and refuses to start while any MCP server is enabled. On codex, outside sources such as Slack are not available.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm dig-pr

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229