openqodex 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,14 +37,18 @@ OpenQodex needs Node 22 or newer and git. It runs on macOS and Linux. On Windows
37
37
 
38
38
  ## What it does today
39
39
 
40
+ Four commands: `init`, `review`, `update` and `trust`. The commands hooks and agents call are listed in [docs/plumbing.md](docs/plumbing.md).
41
+
40
42
  - `openqodex review --agent` writes a review brief for your agent: the scanner findings to verify, review patterns that fit the change, and the diff.
41
43
  - `openqodex review --finalize` checks the agent's findings without a model and writes `report.md`, `report.json` and `report.sarif`.
42
- - `openqodex scan` runs the scanners only, for git hooks, pre-commit and CI.
44
+ - `openqodex review` with neither flag runs the scanners only and prints their report. Git hooks, pre-commit and CI run the same check as `openqodex scan`.
45
+ - `openqodex review <branch>` and `openqodex review '#42'` review a branch or a pull request that is not your current work. OpenQodex fetches it, checks it out in a temporary folder and reviews what it added since it left its base.
46
+ - A change that only deletes code, such as a removed check, can still carry a finding: the lines next to a deletion count as changed.
43
47
  - Thirteen built-in scanners. Every downloaded scanner is pinned to one version. Each runs only when the change holds a file it reads.
44
48
  - Any scanner by its GitHub link, after you approve it with `openqodex trust`.
45
49
  - A push gate for Claude Code and Codex. It warns by default. It blocks only when `.openqodex.yaml` sets `review.block_on_severity`.
46
50
  - A GitHub Action and a pre-commit hook that run `openqodex scan`.
47
- - `openqodex demo` builds a small repo with planted bugs and scans it.
51
+ - `npx openqodex demo` builds a small repo with planted bugs and scans it.
48
52
 
49
53
  ## What it does not do yet
50
54
 
@@ -114,11 +118,21 @@ npx openqodex trust
114
118
  - When the change holds a lockfile, osv-scanner sends dependency names and versions to osv.dev. It never sends code.
115
119
 
116
120
  - `openqodex trust` reads the custom scanner's release from the GitHub API and downloads it.
121
+ - `openqodex review <branch>` or `review '#<number>'` fetches that branch or pull request from your remote with git, and asks `gh` for the pull request's base when `gh` is installed.
122
+ - For an install made with `init`, a version check at most once a day: the openqodex release list from registry.npmjs.org, and for a newer release its tarball and signed build record. It sends no code and nothing about you.
117
123
 
118
- `--offline` skips osv-scanner and semgrep and turns scanner downloads off.
124
+ `--offline` skips osv-scanner and semgrep and turns scanner downloads, the version check, and the fetch and `gh` call of a branch or pull request review off.
119
125
 
120
126
  The built-in scanners send no code anywhere. Your agent's model sees what your agent reads, as always. A custom scanner you approved does whatever its own command does. [docs/security.md](docs/security.md) gives the full list.
121
127
 
128
+ ## Updates
129
+
130
+ An install made with `npx openqodex init` from 0.3.0 on keeps itself up to date. At most once a day, after a review, a scan or a push check, a background process looks for a new release. The command never waits for it. A release is installed only when it is at least 24 hours old and its signed build record (npm provenance) shows it was built by this repository's release workflow. It goes into a folder of its own beside the version you run, and the switch is one rename of a small file, so a failed or interrupted update leaves the working version in place. An update never rewrites your agent files: in user scope they call the launcher, and the skill asks it for the procedure of whatever version is active. The next command says once which version it moved to. `openqodex update --rollback` goes back.
131
+
132
+ Turn it off with `openqodex update --off`, `update: off` in `~/.openqodex/config.yaml` or `OPENQODEX_AUTO_UPDATE=0`. It is also off with `--offline` and when `CI` is set.
133
+
134
+ These do not update: files committed with `init --project`, the review section `init` adds to a repository's `CLAUDE.md` and `AGENTS.md`, the skill from `npx skills add`, the GitHub Action pin, and machines that are offline or stop background processes. An active install is usually one to two days behind a release. An install made with any earlier version needs one `npx openqodex init` to start updating.
135
+
122
136
  ## Packages
123
137
 
124
138
  | Package | What it is |
@@ -133,6 +147,7 @@ The docs ship inside the package. `npx openqodex guide <topic>` prints a page of
133
147
 
134
148
  - [Quickstart](docs/quickstart.md)
135
149
  - [Commands](docs/cli.md)
150
+ - [Plumbing commands](docs/plumbing.md)
136
151
  - [Configuration](docs/config.md)
137
152
  - [Scanners](docs/scanners.md)
138
153
  - [Custom scanners](docs/custom-scanners.md)