# hs

Checks Bash commands and file reads before execution, stopping dangerous actions. It fits Claude Code setups that need command and credential-file protection.

- plugin · `type=plugin` · Claude Code · ★ 32
- Author: frmoretto
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/frmoretto/hardstop
- Updated: 2026-04-18
- HTML: https://affpapa.org/en/nevibecode/plugins/hs

## What it does

The plugin inspects Bash tool calls before they run. Known threats are caught with pattern matching; unclear cases go through semantic LLM analysis. Commands joined with `&&`, `|`, or `;` are checked link by link. Reads targeting `.ssh`, `.aws`, and `.env` files are blocked as credential access.

Security decisions are recorded for review with `/hs status` and `/hs log`. Protection can be enabled or disabled with `/hs on` and `/hs off`, while `/hs skip` bypasses the next check. Hardstop uses a fail-closed policy, so an uncertain result stops execution. That can interrupt a command whose safety is not established.

## Install

### Claude Code (native platform)

**Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add anthropics/claude-plugins-community
```
In the agent chat (not a shell):
```text
/plugin install hs@claude-community
```

## When to use it
- stop commands that remove a home directory
- block reads of credential and token files
- inspect chained Bash commands before execution
- catch obfuscated or destructive shell actions
- review recent security decisions in a log

## Example prompts
- Check the protection state with `/hs status`.
- Show recent security decisions with `/hs log`.
- Allow the next trusted command with `/hs skip`.

## Similar
- [discernment-nudge](https://affpapa.org/en/nevibecode/plugins/discernment-nudge.md) — plugin · ★ 184013
- [academy-guide](https://affpapa.org/en/nevibecode/plugins/academy-guide.md) — plugin · ★ 184013
- [claude-api](https://affpapa.org/en/nevibecode/plugins/claude-api.md) — plugin · ★ 184013
- [example-skills](https://affpapa.org/en/nevibecode/plugins/example-skills.md) — plugin · ★ 184013
- [document-skills](https://affpapa.org/en/nevibecode/plugins/document-skills.md) — plugin · ★ 184013
- [superpowers](https://affpapa.org/en/nevibecode/plugins/superpowers.md) — plugin · ★ 305662

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
