fh-guard

fh-guard is a plugin for Claude Code from chrono-meta/forge-harness. Its token cost is not measured, scanned A, original, MIT.

A safety gate for Bash commands run by a Claude Code agent. It blocks destructive actions such as force-pushing, deleting remote branches or tags, and hard resets when the agent is running without human approval.

In plain words
What is it for?
It is for protecting repositories while an agent runs in automatic or permission-bypassing modes. In other modes, it warns about destructive commands.
Why use it?
It reduces the risk of an unattended coding agent permanently deleting work or changing shared Git history. If the gate cannot start or times out, it blocks the command.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: mentions Claude Code.

Good fit It is for protecting repositories while an agent runs in automatic or permission-bypassing modes. In other modes, it warns about destructive commands.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add chrono-meta/forge-harness
/plugin install fh-guard
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.

Clone the repo
git clone --depth 1 https://github.com/chrono-meta/forge-harness

Made for: Claude Code.

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 fh-guard

README.md
[![agentmods](https://agentmods.dev/badge/plugins/chrono-meta/forge-harness/fh-guard/github.svg)](https://agentmods.dev/plugins/chrono-meta/forge-harness/fh-guard)
Your own site
<a href="https://agentmods.dev/plugins/chrono-meta/forge-harness/fh-guard"><img src="https://agentmods.dev/badge/plugins/chrono-meta/forge-harness/fh-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fh-guard

Your own site · 80×15
<a href="https://agentmods.dev/plugins/chrono-meta/forge-harness/fh-guard"><img src="https://agentmods.dev/badge/plugins/chrono-meta/forge-harness/fh-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

fh-guard 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 3d 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.

plugins/fh-guard/.claude-plugin/plugin.json · 21 lines

What it actually says

{
  "name": "fh-guard",
  "version": "3.49.0",
  "engines": {
    "claudeCode": ">=2.1.295"
  },
  "description": "fh-guard — install it and every Bash call your Claude Code agent makes, in any repo, goes through the FH destructive-op gate first. In bypassPermissions and auto mode (no human approves the call) it blocks force pushes, remote branch and tag deletes, git reset --hard and the other local destroyers, and the agent switching the next layer off (--no-verify, core.hooksPath, an override written into the command); the block text tells the agent to ask you, never how to get past. In other modes it warns. 0 skills, 0 agents, no network; the only write is one line in the session env file, when Claude Code provides it, so Bash calls and their children stop inheriting the session's message channel (macOS/Linux; not Windows). If the gate cannot start or times out, the Bash call is blocked; if python3 is missing, a one-line notice says the gate is not active. Needs bash and python3 (on Windows, Git for Windows).",
  "author": {
    "name": "chrono-meta",
    "email": "[email protected]"
  },
  "keywords": [
    "guardrail",
    "destructive-operations",
    "force-push",
    "pretooluse-hook",
    "bypass-permissions",
    "git-safety"
  ]
}
Contents

What it installs

The manifest is a name and a version. 2 hooks travel with it, and installing the plugin installs all of them. Each is measured on its own page, and each can be installed alone.

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. 3d ago Changed a33b34185740
  2. 5d ago Changed e0403bc06d0c
  3. 6d ago First seen · 21 lines scan A e439396df758

Subscribe to this mod's changes

fh-guard is a plugin published in the GitHub repository chrono-meta/forge-harness (33 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-11-24.

Related

fh-guard compared with plugins from other repositories

fh-guard next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fh-guardchrono-meta/forge-harnessPlugin33todayMITA—Claude Code
open-code-reviewalibaba/open-code-reviewPlugin57k4d agoApache-2.0A—Cursor
open-prharnessprotocol/harness-kitPlugin13yesterdayApache-2.0A—Claude Code
dos-kernelanthony-chaudhary/dos-kernelPlugin211mo agoMITA—Gemini CLI
agent-traffic-controlwan-huiyan/agent-traffic-controlPlugin34d agoMITA—Claude Code
loopanshulixyz/multi-agent-loop-kitPlugin55mo agoMITA—Claude Code
git-masteranilcancakir/claude-code-pluginPlugin27mo agoMITA—Claude Code