Skip to content

Commit 49b8858

Browse files
committed
readme more
1 parent 3e139b1 commit 49b8858

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

README.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,47 @@
44

55
# `gradient-engineer` — 60‑Second Linux Analysis (Nix + LLM)
66

7-
Run the classic [60‑second Linux Performance Analysis](https://netflixtechblog.com/linux-performance-analysis-in-60-000-milliseconds-accc10403c55) checklist in one command. A portable Nix toolbox is downloaded on the fly, diagnostics run in parallel with a simple TUI, and an optional AI summary is shown at the end.
7+
Run the classic [60‑second Linux Performance Analysis](https://netflixtechblog.com/linux-performance-analysis-in-60-000-milliseconds-accc10403c55) checklist in one command on Linux (or macOS). It solves the `command not found` problem on minimal systems by downloading a portable [Nix](https://nixos.org/) toolbox on the fly. Diagnostics run in parallel with a simple TUI, and an optional AI summary is shown at the end.
88

9-
- One command to run it all
10-
- Fast – do the 60 seconds analysis in around 6 seconds
11-
- Just works – no sudo, no Docker, no installation of system-wide packages
12-
- An optional AI summary at the end – no need to read walls of command outputs
9+
- **One command**: Run the entire analysis with a single line.
10+
- **Fast**: Get a full system snapshot in about 6 seconds.
11+
- **Just works**: No sudo, no Docker, and no permanent installation.
12+
- **AI-powered summary**: Let an LLM explain the raw command outputs.
1313

14-
More details in a blog post [60-Second Linux Analysis with Nix and LLMs](https://quesma.com/blog/60s-linux-analysis-nix-llms/).
14+
More details in the blog post: [60-Second Linux Analysis with Nix and LLMs](https://quesma.com/blog/60s-linux-analysis-nix-llms/).
1515

1616
> [!NOTE]
1717
> This project is an early experiment.
1818
19+
## Why? The `command not found` Nightmare
20+
21+
You SSH into a server to troubleshoot an issue, run a standard tool like `iostat`, and are greeted with `command not found`. Minimal container images and server installations often lack essential diagnostic tools. Installing them during an outage is a waste of precious time and can be blocked by firewalls, package manager issues, or immutable filesystems.
22+
23+
`gradient-engineer` solves this by providing a portable, on-demand toolbox with all the necessary utilities, powered by [Nix](https://nixos.org/). It runs the tools you need without requiring root access or permanent changes to the system.
24+
1925
## Quick Start
2026

27+
Run the following command in your terminal. It works on both Linux and macOS.
28+
2129
```bash
2230
curl -fsSL https://gradient.engineer/60-second-linux.sh | sh
2331
```
2432

25-
Optionally, before running the script, set an API key for an LLM provider:
33+
To enable the optional AI summary, set an API key from a supported provider _before_ running the script:
2634

2735
```bash
2836
export ANTHROPIC_API_KEY="<your Anthropic API key>" # OR
2937
export OPENAI_API_KEY="<your OpenAI API key>" # OR
3038
export OPENROUTER_API_KEY="<your OpenRouter API key>"
3139
```
3240

33-
Notes:
41+
**Notes:**
3442

3543
- If no key is set, diagnostics still run; only the AI summary is skipped.
36-
- TUI controls: Tab toggles details; q / Esc / Ctrl+C quits.
44+
- You can override the API base URL via `OPENAI_BASE_URL` (for OpenAI/OpenRouter).
45+
- TUI controls: `Tab` toggles details; `q` / `Esc` / `Ctrl+C` quits.
3746

38-
## Demo - See It in Action!
47+
## Demo
3948

4049
[![asciicast](https://asciinema.org/a/738144.svg)](https://asciinema.org/a/738144)
4150

@@ -44,8 +53,11 @@ Notes:
4453
Requires [Go 1.25 or newer](https://go.dev/).
4554

4655
```bash
47-
cd app
56+
git clone https://github.com/QuesmaOrg/gradient-engineer.git
57+
cd gradient-engineer/app
4858
go build -o gradient-engineer-go
59+
60+
# Run for your platform:
4961
./gradient-engineer-go 60-second-linux # for Linux
5062
./gradient-engineer-go 60-second-darwin # for macOS
5163
```
@@ -54,6 +66,10 @@ go build -o gradient-engineer-go
5466

5567
- You can override the API base URL via `OPENAI_BASE_URL` (for OpenAI/OpenRouter) if needed.
5668

69+
## Contributing
70+
71+
This is an early prototype, and we're just getting started. The repository is open-source, and we're excited to explore what's possible. Have a look at the current [playbooks](./playbook/). We started with the classic, but we bet you have your own favorite commands—feel free to contribute them!
72+
5773
## License
5874

5975
This project is licensed under the MIT License. See the `LICENSE` file for details.

0 commit comments

Comments
 (0)