I'm sharing a little open-source utility I wrote recently.
I'm a huge fan of Brendan Gregg's "BPF Performance Tools" book. However, every time I SSH into a fresh server, most of the diagnostic tools aren't installed there and installing them can be really annoying.
I decided to use Nix package manager and LLMs to make this process straightforward. My utility first downloads a "toolbox" of Linux utilities (built with Nix), runs Brendan Gregg's famous "60-second Linux analysis" playbook and then summarizes the results with an LLM. So "60-second Linux analysis" now becomes a single one-line command and actually takes less than 60 seconds! The utility can execute all commands in parallel and the LLM can analyze them faster than a human would.
I have a few ideas for the future, for example implementing more powerful playbooks - thanks to Nix I can easily bundle all tools I need and LLMs have no trouble analyzing outputs of tens of commands.
I'd love to get your feedback and hear any ideas you have. Thanks for checking it out.
You can launch the utility with this command:
$ curl -fsSL https://gradient.engineer/60-second-linux.sh | sh
bediger4000•5h ago