🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@e0ipso/self-review

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@e0ipso/self-review

Review your changes locally

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

self-review

CI

A local code review tool for developers working with AI coding agents.

When you use tools like Claude Code to generate code changes, you need to review those changes before accepting them. Today your options are: push to GitHub (exposing unfinished work to a remote server) or squint at diffs in the terminal.

self-review gives you GitHub's pull request review UI on your local machine — no remote, no account, no setup. Launch it from the terminal, review the diff, leave comments and suggestions, close the window. Your feedback is written to stdout as structured XML that you pipe directly back to your AI agent.

Screenshot

How it works

# Review staged changes, save feedback as XML
self-review --staged > review.xml

# Feed the feedback back to your AI agent
cat review.xml | claude-code "Apply this review feedback"

# Review changes between branches
self-review main..feature-branch > review.xml

# Resume a previous review
self-review --staged --resume-from review.xml > review-updated.xml

What you get

  • GitHub-style diff viewer — split or unified view, syntax highlighting, collapsible file sections
  • Line comments — click a line number, type your feedback
  • Multi-line comments — drag across line numbers to comment on a range
  • Code suggestions — propose exact replacements, rendered as a diff-within-a-diff
  • Categories — tag comments as bug, nit, security, question, etc.
  • Structured XML output — validated against an XSD schema, designed for machine consumption
  • Resume support — pick up where you left off with --resume-from

Configuration

Customize self-review with YAML configuration files:

  • User config: ~/.config/self-review/config.yaml — personal preferences for all projects
  • Project config: .self-review.yaml — per-project settings (committable)

Project config overrides user config, which overrides built-in defaults.

Example: Custom comment categories

# .self-review.yaml
categories:
  - name: bug
    description: 'Likely defect or incorrect behavior'
    color: '#e53e3e'
  - name: security
    description: 'Potential security vulnerability'
    color: '#d69e2e'
  - name: nit
    description: 'Minor style or formatting suggestion'
    color: '#718096'
  - name: question
    description: 'Clarification needed'
    color: '#3182ce'

Available options

  • theme: light, dark, or system (default: system)
  • diff-view: split or unified (default: split)
  • font-size: editor font size in pixels (default: 14)
  • ignore: file patterns to exclude from diff (glob syntax)
  • categories: custom comment tags (see example above)
  • default-diff-args: default arguments passed to git diff
  • show-untracked: show new files not yet added to git (default: true)
  • word-wrap: wrap long lines in the diff viewer (default: true)

See docs/PRD.md for complete documentation.

Design principles

  • CLI-first. Launched from the terminal, outputs to stdout. Behaves like a Unix tool.
  • One-shot. Open → review → close → done. No servers, no persistent state.
  • Local-only. No network access, no accounts, no telemetry. Your code stays on your machine.
  • AI-native output. The XML format is designed to be parsed by LLMs, with an XSD schema they can reference for structure.

CI/CD

This project uses GitHub Actions for continuous integration and delivery.

Test gating: Every push to main and every PR runs three parallel jobs — Lint, Unit Tests, and E2E Tests. All three must pass before a PR can be merged (enforced via branch protection required status checks).

Automated releases: When conventional commits are merged to main, semantic-release automatically determines the next version, creates a GitHub Release, and publishes to npm as @e0ipso/self-review.

One-time setup (maintainers)

  • Branch protection: After the first workflow run, go to Settings > Branches > Add rule for main > Enable "Require status checks to pass" > Select Lint, Unit Tests, E2E Tests.
  • npm Trusted Publishing: In the npm package settings for @e0ipso/self-review, configure Trusted Publishers > GitHub Actions with this repository and the ci.yml workflow.

Requirements

  • macOS or Linux
  • git
  • Node.js 20+

FAQs

Package last updated on 12 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts