Singh Labs ← all tools

slopguard

what an agent may write

Security guardrails that fire in the one second between "the model produced it" and "it exists on disk". Secrets, injections, fake packages — refused, not flagged.

The problem

Without it

Veracode tested 100+ models: 45% of generated code has an OWASP Top 10 vulnerability. Your scanners run in CI. By then the secret is already in your git history.

With slopguard

✗ SLOPGUARD blocked this write to src/lib/supabase.ts

[SG-6] Supabase service_role key in client-reachable code
fix: this file ships to the browser. Use the anon key on
the client, keep privileged calls behind a server route.

Not a warning you scroll past. The write did not happen.

Each block hands the model a rule ID and a fix, so it corrects itself. You just watch it get it right on the second try.

When to reach for it

What you get

Install · 60 seconds

  1. Install the plugin in Claude Code

    /plugin marketplace add manpreet171/slopguard
    /plugin install slopguard@slopguard
  2. Drop the rules into your project

    Works in Cursor, Copilot, Windsurf, Cline, Aider and Codex too.

    curl -O https://raw.githubusercontent.com/manpreet171/slopguard/main/AGENTS.md
  3. Restart and it's live

    No config, no API key, no dependencies.

     SLOPGUARD blocked this install — [SG-4] 2 package(s) do not exist:
      • express-mongoose-helper-utils  (npm: 404 not found)
      • react-query-toolkit-pro        (npm: 404 not found)

Source & docs

Full rule list, sourced threats (docs/THREATS.md), tuning guide, red-team agent. MIT.

github.com/manpreet171/slopguard
zero dependencies claude code plugin 47 tests passing MIT