Scarcheck docs. Commands, files, output.
Install the CLI, write your first verified lesson, and wire its check into agent hooks, pre-commit and CI. Every page shows the exact command and what it prints.
scar init, scar learn (from a commit or a session, with command guards), scar lessons ls, show, verify, archive and restore, scar check (grep, file-absent, command), scar compile, hooks for Claude Code, Codex and pre-commit, and scar doctor. It works offline and sends nothing anywhere. Anything marked Planned is not built.Get started
Quickstart
Install, set up a repo and turn a correction into your first verified lesson.
Lesson file format
Every front matter field, check kind and state, with examples you can copy.
Agent hooks
Stop a repeat in Claude Code or Codex before the tool call runs.
Checks in CI
A GitHub Actions job that fails the pull request and points at the line.
From install to a verified lesson.
Install the CLI, set up the repo you work in, and the next time you correct your agent, turn it into a lesson. Install methods: a release for macOS and Linux, Windows through WSL, or from source with Go 1.25+.
Browse the docs
7 sections · press / to search
Concepts6
- What a lesson isA rule, its evidence, a check and a review date, in one Markdown file.
- Evidence and verificationWhy a check must fail before the fix and pass after it.
- Lesson statesDraft, verified, failing, stale, conflict, expired and archived.
- Scope: repo, org, personalWhere a lesson applies and who sees it.
- ConflictsTwo lessons that cannot both pass, like L-140 and L-142.
- Expiry and reviewReview dates, renewal on every catch, stale detection.
Checks7
file-absentFail when a file that must not exist is back.grepA pattern that must be present, or absent, in paths.ast-grepPlannedStructural code patterns, like new Date on an API field.semgrepPlannedReuse Semgrep rules, inline or from a file.commandAny test command. Exit 0 passes.- Run checks in pre-commithusky, lefthook, pre-commit or a git hook, on staged content only.
- Run checks in GitHub Actions PlannedFail the pull request and annotate the line.
CLI reference9
scar initSet up a repo, import the rules you wrote as drafts, install hooks.scar learnTurn a correction or a fix into a verified lesson.scar checkCatch repeats in staged files, a branch or in CI.scar compileWrite verified lessons into the five rules files.scar lessonsList, show, verify, archive and restore. Edit, export and import are planned.scar reviewPlannedWork through conflicts, stale lessons and drafts.scar hooksInstall agent and pre-commit hooks. CI hooks are planned.scar statusWhat applies here, what was caught, what needs you.scar doctorFind setup problems, with the fix for each one.
Agent hooks4
Rules targets4
Team1
No docs match that search.
Try a command name like scar check, a file like CLAUDE.md, or start from the quickstart.