@pendral/inline-cli
v0.2.2
Published
inline in your terminal: review local changes before a PR exists, gate pushes and CI on findings, and pull what inline has found wrong into your local agent.
Readme
inline CLI
inline in your terminal, for you and your coding agent. Review local changes before a pull request exists, read the inline review and merge gate on a pull request, work through every issue inline found, and follow inline's coding agent as it fixes them.
- The same reviewer as your pull requests. Repository memory, team learnings and
.inline.ymlrules apply to a local review too. - Gates pushes and CI.
--gateexits2on findings at or above a level; one command installs a pre-push hook. - Built for agents.
--jsoneverywhere, NDJSON--events, stable exit codes, and never a prompt without a terminal. - Zero dependencies. One bundled package;
inline --helpstarts in a few milliseconds over Node itself.
Installation
npm install -g @pendral/inline-cli
inline login # approve in the browser
inline review # review your local changesinline review reviews staged changes, or the working tree when nothing is staged. To try it without installing,
run npx @pendral/inline-cli review.
Node 20 or newer, on macOS, Linux and Windows.
Commands
| Command | What it does |
| --- | --- |
| inline | On a terminal, the home screen: this repo, your account, this branch's pull request, what to run next. |
| inline review [paths...] | Reviews staged changes (--staged), the working tree (--working), everything since a base (--base origin/main, --committed for commits only), or the pushed HEAD codebase-wide (--deep), with live stages. --gate exits 2 on findings. |
| inline review list / show <id> | Your recent reviews, and one reopened with the same view. |
| inline pr [number\|url] | The inline review on this branch's pull request: risk, merge gate, open findings. |
| inline pr list / status / checks / review | Reviewed pull requests; a one-line gate verdict with an exit code; the merge gate check (--watch); ask for a new review. |
| inline issues [-i] | Everything inline found wrong here, from every feature, worst first. -i picks one and acts on it. |
| inline issues view <ref> | One issue in full. |
| inline fix <ref> | The fix brief for one issue, the same one inline's own agent gets: inline fix review_finding:abc123 \| claude. --remote hands it to inline's coding agent instead. |
| inline resolve <ref> --as fixed | Records an issue as fixed, dismissed or ignored (alias of inline issues resolve). |
| inline sessions | inline's coding agent at work: view, watch, cancel, open. |
| inline plan | Visual plans: view, feedback, reply, create. |
| inline wiki [slug] / wiki search | The repo wiki in the terminal. |
| inline ask "<question>" | The portal's copilot, read-only, streamed. |
| inline rules / rules explain <path> | Validates .inline.yml locally; what applies to one file. |
| inline metrics | DORA figures, pull request time and what inline saved. |
| inline login / logout / status | Device sign-in (--access full for write access, --no-wait for agents), sign out, who you are. |
| inline hook install | A pre-push hook that runs inline review --base <upstream> --committed --gate medium (--gate high or low to change it; minor, major, critical work too). |
| inline open / doctor / config | Portal deep links; a setup check with fixes; every setting and its source. |
| inline completion <shell> / upgrade / skills install | Tab completion for bash, zsh, fish and PowerShell; self-update; skills that teach coding agents to use inline. |
inline help <command> has the flags, examples and exit codes for each.
Scripts and CI
# INLINE_API_KEY set from a CI secret
npx @pendral/inline-cli review --base origin/main --gate major --json
inline pr status && git push
inline pr checks --watch --fail-fast
inline review --events | jq -c 'select(.type=="step")'--jsonon every command: one document on stdout,schemaVersion: 1, errors included with anextcommand.--eventson long-running commands: NDJSON, ending incompleteorerror.- Data on stdout, progress and notices on stderr. No prompts without a terminal, in CI, under a coding agent or with
--no-input; the command exits 64 and names the flag to pass instead. - Exit codes:
0done,1failed,2gate tripped,3still running,4not signed in,5not found,6not available on this plan, workspace or key,64bad usage,130interrupted. - Gate levels:
minor(any),major(medium and up),critical(high only);low,medium,highwork too. - In GitHub Actions, run on
pull_requestwithactions/checkoutatfetch-depth: 0, then--base origin/${{ github.base_ref }}; a shallow checkout has no base branch to diff against.
The pre-push hook blocks only on exit 2. If the review cannot run (offline, signed out, budget spent) it says so and
lets the push through. INLINE_SKIP=1 git push or git push --no-verify skips it.
Agents
Every command has --json, long-running ones have --events, data goes to stdout and diagnostics to stderr, and every
error names the next command to run. inline skills install writes two SKILL.md files (inline-cli: commands, JSON,
exit codes, agent rules; inline-loop: review, fix, re-review) under .claude, .agents and .codex at the repo
root, or --dir. A skill file you edited is replaced only with --force.
inline skills install
inline review --gate major --json
inline fix review_finding:abc123 | claudeUpdates
After a human command, inline checks the npm registry at most once a day, in the background, and prints a one-line
notice when a newer version exists. It never checks under --json, --events, pipes, CI or a coding agent, and
INLINE_NO_UPDATE_CHECK=1 turns it off. inline upgrade updates a global npm install after you confirm; for npx,
pnpm, yarn and bun it prints the command to run instead.
What leaves your machine
The diff, the full contents of the changed files, and the files they import (at most 40 files and 1.5 MB of imports),
sent to your inline server over HTTPS. Never sent, from the diff or as content: .env* (except .env.example),
private keys and certificates, .npmrc, .netrc, credentials and secrets files, Terraform state and variables.
Binaries and files over 512 KB are reviewed from the diff alone. Every exclusion is printed, and listed under
client.skipped in --json output.
Configuration
| | |
| --- | --- |
| INLINE_API_KEY | Key for this run; beats the stored one (CI) |
| INLINE_SERVER_URL | Server, default https://inline.dev |
| INLINE_CONFIG_DIR | Where the key is stored; default ~/.config/inline (%APPDATA%\inline on Windows) |
| INLINE_AGENT | 1 or 0 forces or turns off coding agent detection |
| INLINE_PAGER / PAGER | Pager for long output; INLINE_PAGER=cat turns paging off |
| INLINE_NO_UPDATE_CHECK | 1 turns off the daily background update check (and with it auto-update) |
| INLINE_DISABLE_AUTOUPDATE / DISABLE_AUTOUPDATER | 1 stops background installs; the check and its notice stay |
| NO_COLOR / FORCE_COLOR | Colour off / on |
inline keeps itself up to date: once a day, in the background, a global npm, pnpm, bun or yarn install is updated
to the latest version, and the next command says Updated to inline X. once. Nothing waits on it, and inline
keeps working throughout: a global npm install is staged beside the current one and switched over only once the new
binary runs, so a slow, failed or killed update leaves the version you had. A failed install is retried with backoff
and given up after three tries; npx and project installs are never touched.
inline config set auto-update off turns it off, on also lets CI and coding agents update (off there by default),
and inline upgrade --check and inline doctor show its state and last result.
The stored key file is config.json, mode 0600, and is only ever sent to the server that issued it. inline config
shows every resolved setting and where it came from.
See the CLI guide for more.
License
Commercial. Use requires an active inline subscription; see LICENSE.
