{
  "id": 21043658,
  "title": "I Got Tired of Noisy Terminal Output, So I Built a Tiny CLI in C++",
  "url": "https://urgent.news/2026/11/21/i-got-tired-of-noisy-terminal-output-so-i-built-a-tiny-cli-in-c",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-21T12:18:12.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/thavarshan/i-got-tired-of-noisy-terminal-output-so-i-built-a-tiny-cli-in-c-21em"
  },
  "original_language": "en",
  "account": "For years, the author has been frustrated with the excessive output generated by development tools. Running tests, building projects, or executing CI jobs often results in hundreds of lines of unnecessary output. To address this, the author created Muffle, a lightweight command-line interface (CLI) written in C++17. Muffle runs another command, captures its output, and displays only what is relevant. For instance, instead of running `npm test`, users can execute `muffle -- npm test`. If the tests pass, Muffle displays a simple message like `muffle: passed (2.31s)`. In case of a failure, Muffle shows the last 40 lines of output by default, along with the exit code and the location of the complete log. Users can customize the number of lines displayed using the `--tail` option or enable verbose mode with `--verbose` to see all output while the command runs. Muffle can also log the complete output to a specific file, such as `muffle --log build.log -- npm run build`. The author chose C++ for Muffle because it offered a smaller, more straightforward implementation compared to larger frameworks. The CLI utilizes POSIX APIs like `fork()`, `execvp()`, `pipe()`, `dup2()`, and `waitpid()` to interact with the operating system. By keeping the implementation simple, Muffle preserves the original exit codes of wrapped commands, ensuring compatibility with shell scripts and CI pipelines. Despite some limitations, such as handling unusual process trees and interactive commands, Muffle's primary focus is on reducing routine command output while preserving access to logs when needed. The project is currently targeted at macOS and Linux, with plans for a first packaged release. The author acknowledges existing tools like chronic and failprint, but believes building a different implementation with unique priorities is valuable. Muffle emphasizes simplicity, a small native executable, and useful functionality.",
  "summary": "I've been working with different languages and frameworks for years, and there's one thing that has always bothered me a little: how much unnecessary output our development tools produce. Run a test suite, build a project, install dependencies, or execute a CI job, and you're often greeted with hundreds of lines of output. Most of the time, I don't actually need any of it. If everything passes, a…",
  "key_points": [
    "Muffle is a lightweight CLI written in C++17 to filter command output",
    "Users can run muffle -- npm test to get concise test results",
    "Muffle logs complete output to files and preserves original exit codes"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}