Quickstart
Once per machine: install the CLI, add its skill to your agents, sign in, then check from any repository. You need a slopcop.com account only to approve the sign-in. Checks are free, and so is your first repository.
-
Install the CLI. Every channel installs the same release binary for macOS, Linux, and Windows on x64 and arm64.
Terminal window npm install --global @brokkai/slopcopTerminal window pip install brokk-slopcopTerminal window curl -fsSL https://raw.githubusercontent.com/BrokkAi/slopcop/master/install.sh | shTerminal window irm https://raw.githubusercontent.com/BrokkAi/slopcop/master/install.ps1 | iexTerminal window go install github.com/BrokkAi/slopcop/cmd/slopcop@latestInstall the CLI covers the release archive, checksums, and upgrades.
-
Teach your agent.
slopcop initinstalls the SlopCop skill into the skills directory of every agent it finds on this machine (Claude Code, Codex, opencode), and a Stop hook for Claude Code and Codex that checks what a session wrote when the agent stops.Terminal window slopcop initIt names what it did. A skill that is already there is left alone, so running it again is safe.
-
Sign in. The browser device flow prints a link that opens the approval page with the code filled in. Approve it while signed in to SlopCop, and only if the page shows the code your terminal printed.
Terminal window slopcop loginFor CI and agents that cannot open a browser, store a token instead:
slopcop login --token "$SLOPCOP_TOKEN". See Sign in. -
Check a change. From any repository with a GitHub, GitLab, or Bitbucket remote:
Terminal window slopcopThe first check of a repository adds it to your workspace. A public repository works at once; a private one needs the SlopCop GitHub App or a GitLab or Bitbucket connection.
What you will see
Section titled “What you will see”A check prints one block per new finding, then a summary line:
src/main/java/orders/ExportServlet.java:48 request parameter reaches SQL text definite · error ID: 0f8fad5b-d9cb-469f-a165-70867728950e bifrost.security.java.servlet-parameter-to-jdbc: req.getParameter("q") reaches Statement.executeQuery(String) through OrderQuery.build (OrderQuery.java:21).
1 new finding across 1 file(s); 72 already in the code | Analysis completeThe exit code is 1 because the change added a finding. Fix it and run
slopcop again; a change that introduces nothing exits 0. A check that ran
but could not finish every rule exits 2 and says which rules did not complete,
so silence is never mistaken for safety. Exit codes lists
them all.
Then let the agent do it
Section titled “Then let the agent do it”In Claude Code, ask it to check its change or run /slopcop. In Codex, mention
$slopcop. To have the agent check every change without being asked, add one
line to your project’s CLAUDE.md or AGENTS.md:
Run slopcop before you finish and fix what it reports.The Stop hook that slopcop init installed is a backstop: when the agent stops
after writing files, the hook checks the working tree and hands new findings in
those files back to the agent. SlopCop in your agent has
the details for each agent.