All plugins

hunk-consent-guard

Brings Patch Review Desk and Cart Consent contracts into Hermes: stage multi-hunk file proposals, approve or reject individual hunks via /hunk-desk or hermes hunk-desk, automatically revoke approvals if the file's SHA-256 baseline drifts on disk, and record durable before/after rollback receipts in SQLite via tool_execution middleware. Disclosure — local terminal backend only (refuses host reads/writes and skips middleware capture on non-local sandboxes such as docker/ssh/modal); on local backends, reads target workspace files during write_file/patch execution and explicit hunk proposal/apply/rollback commands; stores file snapshots (up to max_snapshot_kb, default 256 KB) and SHA-256 receipts in plugin-data/hunk-consent-guard/data.db; never modifies Hermes's built-in approval prompts or executes shell commands; no network calls.

misakamikotoghr-5205Toolsv1.0.0Updated 2 hours ago

About

Brings Patch Review Desk and Cart Consent contracts into Hermes: stage multi-hunk file proposals, approve or reject individual hunks via /hunk-desk or hermes hunk-desk, automatically revoke approvals if the file's SHA-256 baseline drifts on disk, and record durable before/after rollback receipts in SQLite via tool_execution middleware. Disclosure — local terminal backend only (refuses host reads/writes and skips middleware capture on non-local sandboxes such as docker/ssh/modal); on local backends, reads target workspace files during write_file/patch execution and explicit hunk proposal/apply/rollback commands; stores file snapshots (up to max_snapshot_kb, default 256 KB) and SHA-256 receipts in plugin-data/hunk-consent-guard/data.db; never modifies Hermes's built-in approval prompts or executes shell commands; no network calls.

Hunk Consent Guard (hunk-consent-guard)

Per-hunk patch staging, SHA-256 baseline-drift approval revocation, and drift-checked rollback receipts for Hermes Agent.

Derived from patch-review-desk and cart-consent-paypal.

Core Safety Guarantees

  1. User-Only Granular Per-Hunk Consent (hunk_propose, hunk_review_status, /hunk-desk):
    Stage a multi-hunk file edit without touching the working tree. Model-facing tools (hunk_propose, hunk_review_status) cannot approve hunks; approval comes exclusively from the user via /hunk-desk approve <proposal_id> 1,3 or hermes hunk-desk approve <proposal_id> 1,3, and both hunk_apply_approved and hunk_rollback_receipt escalate through Hermes's pre_tool_call approval gate with per-ID rule keys.
  2. Local-Backend Enforcement, Public-API Path Safety & write_file Dispatch:
    Refuses host filesystem access (and skips middleware receipt capture) whenever the active terminal backend (TERMINAL_ENV or terminal.backend in Hermes config) is non-local (such as docker, ssh, or modal), preventing sandboxed sessions from reading host files. On the local backend, relative paths resolve against ctx.session_cwd() / agent.runtime_cwd.resolve_agent_cwd(), protected paths (HERMES_HOME, credential directories, .env*, NT-namespace paths, non-regular files, and paths outside HERMES_WRITE_SAFE_ROOT) are blocked before reading or storing, and all file writes dispatch exclusively through ctx.dispatch_tool("write_file", ...).
  3. Automatic Baseline-Drift Revocation:
    Every proposal pins the target file's baseline_sha256. If the file on disk is modified out-of-band before hunk_apply_approved runs, hunk-consent-guard detects the SHA-256 drift, revokes all approvals (status: "drifted_revoked"), and refuses to overwrite the file.
  4. Durable Rollback Receipts (tool_execution Middleware & hunk_rollback_receipt):
    Every applied hunk proposal—and every write_file/patch call wrapped by tool_execution middleware—records a receipt with before_sha256, after_sha256, unified diff, and text snapshots in <HERMES_HOME>/plugin-data/hunk-consent-guard/data.db. Rolling back a receipt verifies that the current file still matches after_sha256 before restoring before_text, so later edits are never clobbered.

Installation

hermes plugins install misakamikotoghr-5205/hermes-hackathon-plugins --subdir hunk-consent-guard
hermes plugins enable hunk-consent-guard

Slash & CLI Commands

/hunk-desk list
/hunk-desk status 1
/hunk-desk approve 1 1,3
/hunk-desk apply 1
/hunk-desk rollback 1

Disclosure (Catalog Rule 13)

  • Filesystem Access: Local terminal backend only (refuses host reads/writes and skips middleware capture when terminal.backend / TERMINAL_ENV is non-local, e.g. docker, ssh, modal). On the local backend, reads target workspace files during write_file/patch tool execution and explicit hunk_propose / hunk_apply_approved / hunk_rollback_receipt calls; writes target files exclusively via ctx.dispatch_tool("write_file", ...) when hunk_apply_approved or hunk_rollback_receipt is explicitly invoked.
  • Storage: Persists file snapshots (up to max_snapshot_kb, default 256 KB) and SHA-256 receipts in <HERMES_HOME>/plugin-data/hunk-consent-guard/data.db.
  • Approvals & Network: Never alters or bypasses Hermes's built-in approval prompts; makes no network calls and spawns no subprocesses.

README from the reviewed commit 0149f99; it updates when the author re-pins.

More by misakamikotoghr-5205

4 plugins by misakamikotoghr-5205 in the catalog.

misakamikotoghr-5205claim-market-routerMarket-based subagent delegation provider (delegation.backend: claim_market) and optional llm_request reasoning-effort shaper derived from MISAKA Agent and Watt Window. Publishes task cards (role_needed, complexity, max_cost_units), synthesizes capability-fit and quota-health claims with shadow pricing, resolves disagreements via weighted voting, and explains infeasible budget constraints. Disclosure — when set as the delegation backend, routes each delegated subagent task to a model chosen from the candidates you list in delegation.backends.claim_market.candidates (with none listed, tasks keep the parent's model); makes no network calls of its own, runs no subprocesses and reads no credentials; stores token-usage counts and auction receipts in plugin-data/claim-market-router/data.db; its llm_request middleware does nothing unless auto_effort_shaping is on, and then only lowers reasoning_effort on the outgoing request.Communitymodelsmisakamikotoghr-5205source-trail-supervisorCombines Source Trail, CaseDesk, and Codex Session Supervisor into a Hermes epistemic and trajectory harness: verifies verbatim quotes against exact zero-based Unicode code-point spans ([start, end)), withholds unilateral claims when valid sources carry conflicting position labels on the same topic, and fingerprints tool/turn progress to detect stuck loops and log recoverable decision nodes. Includes the epistemic-supervision skill and /trail-supervise command. Disclosure — observes tool call names, error status, and turn counts via on_session_start, post_tool_call, and post_llm_call hooks; stores user-ingested source packets, verified span anchors, and session node summaries in plugin-data/source-trail-supervisor/data.db; no network calls, subprocesses, or credential access.Communitygeneralmisakamikotoghr-5205zhidian-workbenchCompare documents, inspect spreadsheets, and preview file organization in a configured workspace. An optional bridge reads pinned references, window-layer information, and active file metadata from ZhiDian Desktop through an operator-configured loopback port using a Hermes profile secret. File tools are read-only. The plugin sends no telemetry and makes no external network requests.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section