opiv0.14.0

Use cases

Five jobs opi gets used for. Each one names the command and where to read on.

02Coding agents

Let a coding agent check its own changes

An agent that writes code should not be the one that judges it. A hook that runs opi after each edit hands the agent the findings of the tools the project already uses, the same ones you would see.

Command
opi --check commit --json
Verdict
ready, gates and checks, schema 1
Exit code
Non-zero when not ready

03Workspaces

Find the right script in a monorepo

Forty-odd scripts across a workspace is a list nobody reads. opi groups them into tabs, searches all of them as you type and runs a member’s script by its path.

Tabs
Past 15 entries or 5 groups
Search
/ across every group
Member
opi blog/dev

04Release

Check a release before you tag it

A release is the push you cannot take back. The release check runs every detected check and the build on a clean tree, and asks what only a release has to: is this version already tagged?

Command
opi --check release
Gates
Clean working tree, v<version> not tagged yet
Then
opi --sbom writes an SBOM to .opi/sbom/

05Many repositories

Check every repository in one folder

Without a terminal opi changes nothing and asks nothing, so a short shell loop can walk a folder of checkouts and leave one report per repository.

Runs
Health and Security, per repository
Output
A report each, a line per repository
Platforms
Plain sh on macOS and Linux

The limits

What opi does not do

Better read here than found later.

  • It brings no rules of its own apart from the bundled secret scan: a check exists only where the project already has the tool.
  • It installs nothing. Dependencies have to be in place, or the checks that need them report that they could not run.
  • It runs on macOS and Linux, not on Windows.
  • Yarn Berry has no outdated command, so Updates lists nothing there; Yarn classic is covered.