slop-guard AGENTS.md

slop-guard AGENTS.md is an instructions file for Codex, OpenCode from eric-tramel/slop-guard. It costs 629 tokens per session, scanned A, original, MIT.

A set of project instructions for Slop-Guard, a tool that gives automated feedback on English writing style. It also defines how coding work, Python commands, checks, and GitHub changes should be handled.

In plain words
What is it for?
Following the project's development workflow, running checks with uv and make, creating Git worktrees, and preparing GitHub pull requests.
Why use it?
It gives an agent consistent project rules, reducing mistakes in development commands, verification, branching, and pull requests.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/eric-tramel/slop-guard/agents-md
Clone the repo
git clone --depth 1 https://github.com/eric-tramel/slop-guard

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for slop-guard AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/eric-tramel/slop-guard/agents-md.svg)](https://agentmods.dev/instructions/eric-tramel/slop-guard/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/eric-tramel/slop-guard/agents-md"><img src="https://agentmods.dev/badge/instructions/eric-tramel/slop-guard/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 629 This file is loaded in full into every session.
When invoked 629 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00629 $0.00629
Opus 5 $0.00315 $0.00315
Sonnet 5 $0.00126 $0.00126
Haiku 4.5 $0.00063 $0.00063

Measured 6d ago against content hash da10f64dffac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

slop-guard AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Instructions

Slop-Guard is a programmatic tool for giving linter-style feedback to an agent on English writing style.

Development

UV

The project uses uv. Always use uv for python command line actions.

uv run ...
uv run --with dependency ...

Make

Run make to see all available targets. Before pushing a PR, run make check to verify formatting, lint, type, and coverage all pass.

Git Workflow

  • When asked for a new feature, bug fix, or other code-specific work, check out a new branch on a new git worktree. Use gh for interactions with GitHub.
  • Create a commit and push a PR with a full description that fills out the following sections.
## Description

[... a paragraph decription of what the PR is ...]

## Why?

[... a paragraph about why this PR needed to exist ...]

## Usage / Demonstration

[... can be as long as necessary, should include code blocks ...]

## Verification

[ ... what was done to verify the PR ... ]

## Issues

[ ... list of Issue items related or that are closed by the PR ... ] 

  • The PR title should be a simple sentence describing what it is.
  • Don't mark PRs as draft when creating them.
  • Don't include any AI agent authorship claims (e.g. "[codex]..." or "Authored by: ..." etc.)

Python Style

  • Full Google style docstrings for modules, classes, and functions.
  • Strong types in 3.11+ python conventions.
  • Use TypeAlias to define compositions of types.
  • Loud errors, no "defensive" coding.
  • Optimized for time-efficient computation, even at the cost of legibility.
  • Favor composition over monoliths.

Code Invariants

  • No dead code. When a refactor makes something unused, delete it in the same commit. After any API move, grep for all callers — including benchmark/, tests, and imports — and update them.
  • MCP return types. Tools must return typed structured payloads (dict[str, Any]), not str. Error paths must raise ToolError, not return plain strings.
  • sg-fit requires contrastive data. Positive-only fitting drives all positive scores to zero. Always require both positives and negatives.
  • Do not commit uv.lock changes unless you explicitly added or removed a dependency — uv run dirties it as a side effect.
  • Each agent works in its own isolated worktree. If a worktree is shared, never revert or overwrite another agent's uncommitted changes.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 73 lines · 629 tokens per session scan A da10f64dffac

Subscribe to this mod's changes

slop-guard AGENTS.md is an instructions file published in the GitHub repository eric-tramel/slop-guard (163 stars, last pushed 1mo ago), licensed MIT. It adds 629 tokens to every session, about $0.0031 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.