Rikugan
Rikugan is a local-first code review tool that turns git diffs into a browser-first review story. Inspired by DevinAI review, powered by Codex.
Install / Use
/learn @pedrobergamini/RikuganREADME
Rikugan
Local-first code review: turn a local git diff into a browser-first review story with grouped changes,
hoverable inline notes, and a findings sidebar. Rikugan shells out to codex exec in non-interactive
mode with schema-validated JSON outputs.

Prerequisites
- Node.js 18+ LTS (tested on Node 20)
git- OpenAI Codex CLI installed and authenticated (Rikugan uses
codex exec)
Install
npm i -g rikugan
Package page: npmjs.com/package/rikugan
One-off usage without a global install:
npx rikugan review --diff-file path/to.diff
Quick start
# verify git + codex are available
rikugan doctor
# review staged changes (or use --uncommitted)
rikugan review --staged
# reopen the most recent run
rikugan open --latest
For non-git diffs, use --diff-file or --diff-stdin.
Common workflows
| What you want | Command |
| --- | --- |
| Review staged changes | rikugan review --staged |
| Review working tree changes | rikugan review --uncommitted |
| Review a commit or range | rikugan review --commit <sha> or rikugan review --range A..B |
| Review a diff file / stdin | rikugan review --diff-file path/to.diff or rikugan review --diff-stdin |
| Headless review output (stdout) | rikugan review --staged --format json |
| Open latest run | rikugan open --latest |
| Export a run | rikugan export <runId> --format html|md|json --out <dir> |
Diff sources & options
--staged,--uncommitted--range A..B,--commit <sha>,--since <ref>--diff-file <path>,--diff-stdin--paths <glob...>--format ui|json|md|html
Features
- Browser-first review UX (grouped story + findings + inline annotations)
- Unified / split diff toggle
- Hover tooltips for annotations
- Findings sidebar with jump-to-evidence
- Local run persistence under
.rikugan/runs/<runId>/ codex execonly (read-only sandbox, schema-validated outputs)
Runs & exports
- Runs are stored under
.rikugan/runs/<runId>/in your repo. - Export with
rikugan export <runId> --format html|md|json --out <dir>.
Data & privacy
Rikugan does not call AI APIs directly. It shells out to codex exec, so your data handling depends on
your Codex provider settings.
Troubleshooting
rikugan doctorchecksgit,codex, and runtime dependencies.rikugan cache clearresets local caches.- If you see “Codex is not available,” confirm
codex --versionworks and you are authenticated.
Commands
rikugan reviewrikugan listrikugan openrikugan serverikugan exportrikugan doctorrikugan configrikugan cache clear
Development
pnpm install
pnpm -C packages/rikugan test
Codex skill
This repo includes a packaged Codex skill for running Rikugan from Codex or other agents:
skills/rikugan-cli.skill
To install it in your global Codex skills directory:
cp skills/rikugan-cli.skill ~/.codex/skills/
Then in Codex, explicitly ask to run Rikugan (e.g. “run rikugan review --staged”).
License
MIT
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
