Skip to content
anulumPublic

About

Standalone HUSHLINE application

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Hushline — local command-output muting across four independent cores (Go, Rust, Python, Node)

CI Pages Scorecard OpenSSF Scorecard OpenSSF Best Practices GitHub Marketplace PyPI Python Coverage DOI License: AGPL v3 REUSE Cores

Local command output muting for prompt chains

hushline is a thin, local wrapper that runs any command, then filters and shapes stdout/stderr before it reaches the caller. It is intended for deterministic, privacy-aware prompt chains and local automation where untrusted or noisy output can break downstream parsing.

What Hushline gives you

  • Consistent, filtered command output.
  • Optional redaction of tokens and secrets via regex.
  • Stable line handling with configurable line width and output limits.
  • Optional local gate checks before command execution.
  • No network reporting, telemetry, or cloud dependency.

Quick start

Build:

go build -o /usr/local/bin/hushline ./cmd/hushline

Show locations:

hushline manifest show

Create profiles:

hushline manifest init
hushline manifest init --global

Run a command:

hushline mute -- git status

Permit checks:

hushline permit status
hushline permit allow

Command surface

  • hushline mute [--max-lines N] [--max-width N] [--raw] [--pipe-errors bool] [--timeout N] -- <command> ...
  • hushline manifest init [--global|--local]
  • hushline manifest show
  • hushline permit [status|allow] [path]
  • hushline version

mute runs the child process and routes output through the configured muting pipeline.

permit stores a local marker file in .hushline/permitted so only approved directories execute when require_permit is enabled.

Configuration

Config merge order is:

  1. built-in defaults
  2. global profile
  3. local profile in current working directory

Global profile path: $XDG_CONFIG_HOME/hushline/profile.json (or platform equivalent). Local profile path: .hushline/profile.json in the current directory.

Example config:

{
  "max_lines": 2000,
  "line_width": 0,
  "strip_ansi": true,
  "preserve_errors": true,
  "require_permit": false,
  "mask_patterns": [
    "AKIA[0-9A-Z]{16}",
    "sk-[a-zA-Z0-9]{20,}"
  ],
  "silence_rules": [
    {
      "name": "ci-trim",
      "pattern": "\\n+",
      "replacement": " "
    },
    {
      "name": "collapse-space",
      "pattern": "[ \\t]{2,}",
      "replacement": " "
    }
  ]
}

Notes for integration

Use as a GitHub Action

Available on the GitHub Marketplace. Run any command through Hushline in a workflow so secrets (sk-…, AKIA…), ANSI escapes, and noise are muted before they reach the CI log:

- name: Plan with muted output
  uses: anulum/HushLine@v0
  with:
    command: terraform plan

Inputs: command (required), max-lines, max-width, timeout, raw, pipe-errors, working-directory. The action builds the Go core from source, so the runner needs Go (preinstalled on GitHub-hosted runners; otherwise add actions/setup-go first).

Polyglot cores

The same command contract is implemented by four independent cores. Each is a standalone package — pick the one that fits your stack and deploy it without the others.

Core Install Notes
Go go install github.com/anulum/HushLine/cmd/hushline@latest reference implementation
Rust cargo install hushline fastest measured core
Python pip install hushline standard library only
Node npm install -g hushline standard library only

All four produce byte-identical output. Measured per-core latency is in docs/benchmarks.md; the core registry and contract are in cores/README.md.

For deeper usage details, see:

  • docs/guide.md
  • docs/development.md
  • docs/release.md
  • docs/benchmarks.md

Support

Hushline is free and open source under AGPL-3.0. If it saves you from leaking a secret in a log, consider supporting its upkeep:

Buy Me a Coffee — buymeacoffee.com/anulum

A commercial licence is also available; contact protoscience@anulum.li.

Text and data mining reservation

The rightsholder, Miroslav Šotek (ANULUM), expressly reserves the use of the works in this repository for text and data mining, including the collection of this content for, and its use in, training, fine-tuning or evaluating machine learning and artificial intelligence models, in accordance with Article 4(3) of Directive (EU) 2019/790 and the national provisions transposing it.

No permission for such use has been granted beyond what the licence in LICENSE grants. This reservation does not change that licence: uses the licence permits remain permitted on its terms, including its attribution and share-alike conditions.

Reservation made on 2026-10-19. Requests for permission: contact the rightsholder through the contact listed in this repository.

About

Standalone HUSHLINE application

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages