HashSeal CLI reference
Signed, Sealed, Delivered - I’m Yours.
Binaries
| Binary | Crate | Role |
|---|---|---|
hashseal |
hashseal |
Full CLI: init, seal, check, verify, unseal, clean |
hashseal-check |
hashseal-check |
Tiny instruct-only verify (blake3 + std only) |
Config (.hashseal.json)
JSON only (no TOML crate). Defaults plus optional root overlay .hashseal.json (or --config PATH / --overlay PATH). Example: config/examples/hashseal.mvp.json.
| Key | Meaning |
|---|---|
document.enable |
Seal/check instruct files (true) |
document.include |
Globs for instruct files (DEFAULT_DOCUMENT_INCLUDES: AGENTS.md, CLAUDE.md, SKILL.md, .cursor/rules/*.mdc, Copilot/Windsurf/Cline/agent dirs) |
document.exclude |
Globs to skip (includes target, node_modules, worktrees, .worktrees) |
document.canonical |
full (instruct-v2 lossless raw-FM) or body-only |
document.field |
Seal field name (default hashseal) |
document.auto_frontmatter |
Create front matter if absent (true) |
document.algorithm |
blake3 (default) or sha256 |
document.unicode_policy |
fail (default), warn, or off |
signing.enable / signing.require |
Sign on seal / require signature on check |
signing.format |
auto (default, from git config gpg.format), ssh, or gpg |
signing.signing_key |
SSH key path or GPG key id/fingerprint |
signing.gpg_program |
GPG binary override |
signing.allowed_signers |
OpenSSH allowed_signers path (default .hashseal/allowed_signers) |
signing.allowed_key_ids |
GPG fingerprint/key-ID allowlist |
enforce.on_tree_mismatch / on_doc_mismatch / on_missing_ledger |
fail (default) or warn |
tree.include / tree.exclude / tree.line_endings / tree.algorithm / tree.ledger / tree.report |
Tree ledger walk & paths |
walk.respect_gitignore |
Honor .gitignore & .git/info/exclude during directory walks (false by default; opt-in so untrusted .gitignore edits cannot silently hide instruction files in CI) |
report.write / pretty / include_ci / include_hostname / max_findings |
JSON audit report options |
Walks always skip worktrees and .worktrees directory names so nested agent worktrees are never crawled.
Commands
hashseal init
Bootstrap .hashseal.json, .hashseal/allowed_signers, hooks, and .hashseal.lock:
hashseal init [--root DIR] [--git-hooks] [--in-git-dir] [--claude-hooks] [--lock] [--sign]
Terminal screenshot
hashseal seal
hashseal seal --instruct [--sign] [--sign-format auto|ssh|gpg] [--portable] [--lock] [--unicode-policy fail|warn|off] [--gitignore] [--root DIR]
hashseal seal --tree [--release] [--sign] [--gitignore] [--artifact PATH]... [--root DIR]
hashseal check
hashseal check [--root DIR] [--require-signature] [--digest-only] [--lock PATH | --no-lock] [--diff BASE_REF] [--allowed-signers PATH] [--allowed-key ID]... [--unicode-policy fail|warn|off] [--gitignore] [--no-fail] [--format human|json] [PATH...]
- Auto-detects
.hashseal.lockat--root(unless--no-lock,--diff, or explicitPATH...args are given). hashseal-checkalso supports--gitignore.- Exit codes:
0ok,1findings (MISMATCH,MISSING_SEAL,MISSING_SIGNATURE,BAD_SIGNATURE,UNTRUSTED_KEY,UNVERIFIED_SIGNATURE,SUSPICIOUS_UNICODE,LOCKED_FILE_REMOVED,UNAPPROVED_FILE),2usage,3hard error.
Terminal screenshot
hashseal verify
Verify tree ledger and hashseal-bundle/ (MANIFEST.json, ledger_digest, --artifact digests, and optional MANIFEST.json.sig):
hashseal verify [--root DIR] [--bundle DIR] [--ledger PATH] [--require-signature] [--digest-only] [--gitignore] [--no-fail] [--format human|json]
hashseal unseal --instruct / hashseal clean
hashseal unseal --instruct [--gitignore] [--root DIR] [PATH...]
hashseal clean [--root DIR]