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
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/orinRuns offline. No account, no telemetry, no dependencies. Needs Node.js 18+ and git.
$ 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
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.
Skipped, focused, emptied or deleted tests, and assertions that can never fail.
it.skip.only@pytest.mark.skipt.Skipexpect(true).toBe(true)Strict mode switched off, rules disabled, errors silenced inline, coverage bars lowered.
"strict": false@ts-ignoreeslint-disable# type: ignorefail_underSteps allowed to fail, checks removed from the pipeline, hooks skipped or deleted.
continue-on-errornpm test || true--no-verifyHUSKY=0A .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-accessNew or updated packages that run code when they are installed, read straight from your npm or pnpm lockfile. New dependencies are listed as notes.
hasInstallScriptrequiresBuildtrustedDependenciesUse it
One command with no setup. It exits with code 1 when a guardrail was loosened, so it drops into anything that runs commands.
Run it before you commit what the agent wrote. It checks everything since your last commit, new files included.
$ orin $ orin --base main
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"
}] }]
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?
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.
// 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
$ npx github:keesjanlv/orin