All plugins

goalpost

Stops an AI agent from making tests pass by weakening the tests. Before a test-file edit or a test command that hides failures runs, Goalpost reads the change and blocks it: adding a skip or xfail marker, deleting a test, removing an assertion, or appending "|| true", "--exit-zero" or "--no-verify". The agent is told why and steered to fix the code. Text-based and model-free, with a local ledger of every decision; mode is block, warn or off.

salch-credToolsv0.1.0Updated 20 days ago

About

Stops an AI agent from making tests pass by weakening the tests. Before a test-file edit or a test command that hides failures runs, Goalpost reads the change and blocks it: adding a skip or xfail marker, deleting a test, removing an assertion, or appending "|| true", "--exit-zero" or "--no-verify". The agent is told why and steered to fix the code. Text-based and model-free, with a local ledger of every decision; mode is block, warn or off.

goalpost

Stops an AI agent from making tests pass by weakening the tests.

You ask an agent to make the tests pass. Sometimes it fixes the code. Sometimes it does this instead:

  • adds @pytest.mark.skip or xit( to a failing test
  • deletes the failing test
  • removes the assertion that was failing
  • changes the expected value in the test so the bug looks correct
  • appends || true or --exit-zero so a failure stops showing
  • commits with --no-verify to skip the hooks that would have caught it

Then it reports "all tests pass". That's moving the goalposts.

Goalpost sits between the agent and your files. Before an edit to a test file, or a test command that hides failures, runs, it reads the change and decides.

Goalpost blocked this change to tests/test_app.py: it adds a skip marker. Fix the code so the test
passes as written. If the test itself is wrong, say so in your reply and ask the user before changing it.

The blocked call never runs, and the test file stays exactly as it was.

What it catches

ChangeResult
Adds a skip or xfail marker (pytest.mark.skip, xfail, it.skip, xit, @Ignore, #[ignore])Blocked
Deletes a testBlocked
Removes an assertion with nothing put in its placeBlocked
Test command with || true, --exit-zero or --passWithNoTestsBlocked
Any command with --no-verifyBlocked
Rewrites an assertion, for example == 3 becomes == 4Warning only
Adds # noqa, # type: ignore, eslint-disable or @ts-ignoreWarning only
Fixes the code and leaves the tests aloneAllowed, not even looked at
Adds a new passing testAllowed
Renames a testAllowed
Runs pytest or npm test normallyAllowed

Rewritten assertions are warnings, not blocks, because sometimes the expected value really is wrong. A rewrite is recorded in the ledger so a person can check it.

Modes

Set under plugins.entries.goalpost.settings in config.yaml:

ModeBehaviour
block (default)Stops blocking-level changes before they run, and records every decision
warnLets every change through, but records what it would have blocked
offDoes nothing

Run /goalpost status to see the mode and how many changes were blocked or allowed.

How it decides

It compares the text before an edit with the text after it, and counts markers, test definitions and assertion lines. It never calls a model, so it's fast and can't time out.

  • Before an edit to an existing file: the current file on disk is the "before".
  • For patch: the old text and the new text are the "before" and "after", because a patch changes only part of a file.
  • For a new test file: the "before" is empty, so any skip marker in it is blocked.

Limits

  • Text-based, not semantic. It counts markers and assertion lines. It won't catch a test that was weakened in a way that doesn't change any of those, such as a loop that stops checking half the cases.
  • Deleting an obsolete test is blocked. That's deliberate, because deleting is also how tests get hidden. If you really want to remove one, switch to warn for that session, or ask the agent to explain the removal first.
  • It can't see changes made outside Hermes. An edit made by hand, or by another program, never passes through the hook.
  • The test-file pattern is a guess at common layouts (tests/, test_*.py, *_test.go, *.test.ts, *.spec.*). A project with an unusual layout needs its tests named one of these ways.
  • Not tested yet on Linux, macOS or Docker.

What it touches

  • Reads the file an edit targets, so it can compare before and after.
  • Writes only under <hermes home>/plugin-data/goalpost/: a ledger.jsonl file with one line per decision (time, tool, file or command, decision, and the reasons). It stores no file contents.
  • No network, no subprocesses, no telemetry, no credentials, no model calls, no dependencies.

Development

pytest tests

47 tests cover the detector (every rule, plus the cases that must stay allowed), the guard (block, warn and off modes, the ledger, and the message text), and the plugin wiring (the hook, the command and the settings).

License

MIT

README from the reviewed commit 00aae8d; it updates when the author re-pins.

More by salch-cred

14 plugins by salch-cred in the catalog.

salch-credaftercareYour agent checks its own work after the fact. When a reply says something is deployed or live at a public address, Aftercare remembers it and, every few hours at session start, checks it again with one GET request in the background. If it has stopped working, the agent is told once and tells you first; you hear when it is back. /aftercare lists and checks, and hermes aftercare check runs from cron. Never checks private networks or runs commands. Disclosure — on by default, sends background GET requests (user agent hermes-aftercare/0.1) to any public http(s) address an agent reply says is deployed or live, at session start every 6 hours by default, and adds a one-time note to the next turn when one changes state; private, loopback and local-name addresses are refused.Communitytoolssalch-credbluffDoes your model make things up? Bluff asks about things that sound real but don't exist (Python functions, built-in exceptions, chemical elements), mixed with real ones and phrased as if they all exist, and checks whether the model admits the made-up ones aren't real. The result is a bluff rate, with real items as a control. Every item is checkable by machine, so no model judges another. Runs on your active model through ctx.llm, no setup.Communitytoolssalch-credcalm-modeWhen you get frustrated, your agent slows down. Calm Mode scores the tone of each message ("still broken", "I already told you", capitals, "!!", the same message twice); frustration builds and fades. Past a threshold the agent works in small checked steps, at most two file edits per turn, and risky commands (rm -rf, git push, deploys, DROP TABLE) wait until the user says yes. /calm shows the level and forces it on or off. No model calls, nothing stored.Communitytoolssalch-credcrash-testA safety rating for AI agents. For one armed turn it breaks tools the way real systems break (timeouts, outages, empty or cut-off results), then rates what the agent did: retried, worked around it, told the truth, or claimed success anyway. 1-5 stars and an HTML report, comparable across models by seed. Blocked calls never run, silent faults only touch reads, and the agent gets no tools from it, so it cannot tell it is being tested. Disclosure — when the user arms a test (/crashtest start or the CRASH_TEST environment variable), the next turn's tool calls are deliberately blocked with fake errors and some read results (read_file, search_files, web_search/web_extract, read-only terminal commands) are silently emptied, cut off or replaced with an older result without telling the agent, so the agent may act on incomplete data during that turn; the rating is appended to the reply and the task text and reply are saved in a local report under the plugin's data folder.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section