omp packages

@rakshazi/slop-guard0.1.0

Block machine-flavoured prose at write time

rakshazi Published 4 days ago LGPL-3.0-or-later ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

slop-guard: block machine-flavoured prose at write time

Install with pi install npm:@rakshazi/slop-guard.

A write or edit whose new text holds a banned phrase is blocked before it reaches the disk. The block reason quotes each offending line with the pattern that matched, so the model can fix all of them and issue the same call again.

What it blocks

Two pattern tables in index.ts, checked against every file type:

Table Holds
LITERAL_PATTERNS Single words and characters that mark text as machine-written. One hit blocks the call.
NEG_PATTERNS Contrast reframes: sentences that define a thing by what it is said to differ from.

This README cannot list the entries: with the extension active, the write would be blocked. Read the tables.

Only text that lands is checked: content for write, every edits[].newText for edit. Text being removed is ignored, so deleting an offending line always works.

What it skips

Paths matching SKIP_FILE: node_modules/, vendor/, generated mocks and API docs, lock files, and the extension's own index.ts, whose patterns are the subject. The self-exemption matches the installed location, a path ending in extensions/slop-guard/index.ts or pi-extensions/slop-guard/index.ts.

Limits

  • The patterns are plain regexes over lines. A phrase split across two lines passes.
  • A legitimate use of a listed word is blocked too. Rephrase, or edit the table.
  • It fails open: an error inside the extension shows a warning and lets the write through.
  • bash is not watched. Text written through a shell redirect lands unchecked.
  • No configuration and no tests.