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.
- 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.
Build:
go build -o /usr/local/bin/hushline ./cmd/hushlineShow locations:
hushline manifest showCreate profiles:
hushline manifest init
hushline manifest init --globalRun a command:
hushline mute -- git statusPermit checks:
hushline permit status
hushline permit allowhushline mute [--max-lines N] [--max-width N] [--raw] [--pipe-errors bool] [--timeout N] -- <command> ...hushline manifest init [--global|--local]hushline manifest showhushline 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.
Config merge order is:
- built-in defaults
- global profile
- 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": " "
}
]
}- Repository (public): https://github.com/anulum/HushLine
- GitHub Pages: https://anulum.github.io/HushLine/
- Use
hushline muteat the boundary of any command execution stage. - Keep
~/.config/hushlineand.hushlinelocal for private environments. - Keep redaction rules strict and reviewed.
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 planInputs: 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).
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.mddocs/development.mddocs/release.mddocs/benchmarks.md
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:
- GitHub Sponsors: https://github.com/sponsors/anulum
- Buy Me a Coffee: https://buymeacoffee.com/anulum
A commercial licence is also available; contact protoscience@anulum.li.
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.

