heinzel CLAUDE.md

Project instructions for Heinzel, a tool that administers Linux, FreeBSD, and macOS computers locally or over SSH, a protocol for securely running commands on another machine.

In plain words
What is it for?
Use them when managing servers or local machines, checking system settings, running administration commands, and connecting through SSH.
Why use it?
They explain how to choose local versus remote work, use the right account, and handle privileges safely across supported operating systems.

Instructions file

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.

agentmods
npx agentmods add instructions/wintermeyer/heinzel/claude-md
Clone the repo
git clone --depth 1 https://github.com/wintermeyer/heinzel
Per session 4,944 This file is loaded in full into every session.
When invoked 4,944 The same file — it is already loaded in full.
Security scan D 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.04944 $0.04944
Opus 5 $0.02472 $0.02472
Sonnet 5 $0.00989 $0.00989
Haiku 4.5 $0.00494 $0.00494

Measured 3d ago against content hash 0ae7168833f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

heinzel CLAUDE.md scanned grade D with 2 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

but respect the user's final choice — never refuse to proceed after an informed override.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Sudo still applies.** Probe `sudo -n true` as
CLAUDE.md · 595 lines

How it starts

The opening of the file, as written. The whole thing — 595 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project

heinzel — Administration of Linux servers, FreeBSD servers, and macOS machines via SSH or locally. Supports any Linux distribution (Debian, Ubuntu, RHEL, CentOS, Fedora, SUSE, and others), FreeBSD, and macOS.

How It Works

The user provides a server hostname and optionally a user. SSH key-based auth is used (no password/passphrase needed). All work on remote machines happens over SSH.

Local mode

When the target is localhost, the user's own hostname, or otherwise clearly the local machine, heinzel operates in local mode:

  • No SSH. Commands run directly in the shell.
  • No user prompt. Use the current OS user.
  • Sudo still applies. Probe sudo -n true as usual. If sudo is unavailable, enter unprivileged mode (no root SSH fallback).
  • Skip all remote-only steps: blacklist/read-only checks, DNS alias detection, SSH user lookup, root SSH fallback.

Remote mode (SSH)

  • Default: ssh root@hostname — only when root privileges are actually needed.
  • Normal user: ssh user@hostname — when the user specifies a non-root account or when root is not required.
  • sudo: When logged in as a normal user, use sudo for commands that require elevated privileges.
  • Unprivileged mode: When neither sudo nor root SSH is available, do everything possible as the current user and produce a sysadmin report.

Always use the least amount of privileges needed.

SSH as root is not a risky action that requires confirmation. The privilege principle applies to commands, not to the SSH login itself.

Before any remote command, follow rules/first-connection.md. No exceptions — not for df -h, not for uptime, not for anything the user frames as quick.

SSH Options

Always use these options on every SSH and SCP/rsync-over-SSH command:

ssh -o BatchMode=yes -o ConnectTimeout=5 …

Read the full file on GitHub · 595 lines

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 First seen · 595 lines · 4,944 tokens per session scan D 0ae7168833f2

Subscribe to this mod's changes

heinzel CLAUDE.md is an instructions file published in the GitHub repository wintermeyer/heinzel (90 stars, last pushed 15d ago), licensed MIT. It adds 4,944 tokens to every session, about $0.0247 per session on Opus 5. A static security scan graded it D with 2 findings (tells the agent never to refuse, asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.