Skip to content

Quickstart

Once per machine: install the CLI, add its skill to your agents, and sign in. Then enable each repository you want checked, at a terminal. You need a slopcop.com account only to approve the sign-in. Checks are free, and so is your first repository.

  1. 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/slopcop

    Install the CLI covers the release archive, checksums, and upgrades.

  2. Teach your agent. slopcop init installs 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 init

    It names what it did. A skill that is already there is left alone, so running it again is safe.

  3. 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 login

    For CI and agents that cannot open a browser, store a token instead: slopcop login --token "$SLOPCOP_TOKEN". See Sign in.

  4. Enable the repository, then check a change. From any repository with a GitHub, GitLab, or Bitbucket remote, add it to your workspace at a terminal:

    Terminal window
    slopcop enable
    slopcop # check later changes

    enable names the workspace and cost, asks you to confirm, and runs the first check. A public repository works at once; a private one needs the SlopCop GitHub App or a GitLab or Bitbucket connection. A check never adds a repository by itself.

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 complete

The 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.

In Claude Code, ask it to check its change or run /slopcop. In Codex, mention $slopcop. In an enabled repository, to have the agent check every change without being asked, add one line to your project’s CLAUDE.md or AGENTS.md:

Run `slopcop check --if-enabled` 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 in an enabled repository, the hook checks the working tree and hands new findings in those files back to the agent. It sends nothing for a repository that is not enabled. SlopCop in your agent has the details for each agent.