Free and open source · v0.1.0

Catch the shortcuts your coding agent took.

AI agents are good at making checks pass. Sometimes by making the check weaker. Orin reads your diff and points at every guardrail that got looser, before it reaches review.

$ npx github:keesjanlv/orin
View on GitHub

Runs offline. No account, no telemetry, no dependencies. Needs Node.js 18+ and git.

~/acme-api, after an agent session
$ npx -y github:keesjanlv/orin orin v0.1.0 · 5 changed files since HEAD Tests  ✕ test skipped  src/auth.test.ts:9      it.skip('rejects an expired session', () => {  ✕ 2 assertions removed  src/auth.test.ts      - expect(() => verify(undefined)).toThrow('no session'); Type and lint checks  ✕ type check turned off: strict  tsconfig.json:5      "strict": false,  ! TypeScript error silenced  src/auth.ts:8      // @ts-ignore CI and git hooks  ✕ CI step allowed to fail  .github/workflows/ci.yml:13      continue-on-error: true Secrets and agent access  ✕ no longer ignored by git: .env  .gitignore      - .env ✕ 5 guardrails loosened, 1 to review  Undo them, or add an orin-ok comment on a line that is on purpose.

What it catches

Not just the tests. The whole fence around your code.

Orin knows 21 ways a guardrail gets loosened, across JavaScript, TypeScript, Python, Go, Rust, Java, C#, Ruby, PHP and Swift projects. Each finding points at the exact line.

Tests

Skipped, focused, emptied or deleted tests, and assertions that can never fail.

it.skip.only@pytest.mark.skipt.Skipexpect(true).toBe(true)

Type and lint checks

Strict mode switched off, rules disabled, errors silenced inline, coverage bars lowered.

"strict": false@ts-ignoreeslint-disable# type: ignorefail_under

CI and git hooks

Steps allowed to fail, checks removed from the pipeline, hooks skipped or deleted.

continue-on-errornpm test || true--no-verifyHUSKY=0

Secrets and agent access

A .env committed or dropped from .gitignore, entries removed from agent ignore files, Claude Code deny rules removed, sandboxes switched off.

.cursorignore.aiexclude.claude/settings.jsondanger-full-access

Dependencies

New or updated packages that run code when they are installed, read straight from your npm or pnpm lockfile. New dependencies are listed as notes.

hasInstallScriptrequiresBuildtrustedDependencies

Use it

Put it where the agent works.

One command with no setup. It exits with code 1 when a guardrail was loosened, so it drops into anything that runs commands.

01

After a session

Run it before you commit what the agent wrote. It checks everything since your last commit, new files included.

$ orin
$ orin --base main
02

Inside Claude Code

As a Stop hook, the agent gets the findings before it can say it is done. It blocks once, never in a loop.

"Stop": [{ "hooks": [{
  "type": "command",
  "command": "orin --claude-hook"
}] }]
03

On every pull request

In GitHub Actions it compares with the base branch by itself and annotates the exact lines in the diff.

- uses: actions/checkout@v4
  with: { fetch-depth: 0 }
- run: npx -y github:keesjanlv/orin#v0.1.0

On purpose?

Say so, in the code.

Sometimes loosening a check is the right call. Mark the line with orin-ok and a reason. Orin counts every line that was waved through, so nothing quietly disappears.

  • Deterministic
  • Fully offline
  • Zero dependencies
  • MIT licensed
// Upstream types are wrong, see issue #142.
// @ts-expect-error orin-ok
const user = parse(raw);

$ orin
orin v0.1.0 · 1 changed file since HEAD

✓ No loosened guardrails
  1 line waved through with orin-ok

Review the diff, not the excuses.

$ npx github:keesjanlv/orin