You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-11Lines changed: 27 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,38 +4,47 @@
4
4
5
5
# `gradient-engineer` — 60‑Second Linux Analysis (Nix + LLM)
6
6
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.
8
8
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.
13
13
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/).
15
15
16
16
> [!NOTE]
17
17
> This project is an early experiment.
18
18
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
+
19
25
## Quick Start
20
26
27
+
Run the following command in your terminal. It works on both Linux and macOS.
28
+
21
29
```bash
22
30
curl -fsSL https://gradient.engineer/60-second-linux.sh | sh
23
31
```
24
32
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:
26
34
27
35
```bash
28
36
export ANTHROPIC_API_KEY="<your Anthropic API key>"# OR
29
37
export OPENAI_API_KEY="<your OpenAI API key>"# OR
30
38
export OPENROUTER_API_KEY="<your OpenRouter API key>"
31
39
```
32
40
33
-
Notes:
41
+
**Notes:**
34
42
35
43
- If no key is set, diagnostics still run; only the AI summary is skipped.
./gradient-engineer-go 60-second-linux # for Linux
50
62
./gradient-engineer-go 60-second-darwin # for macOS
51
63
```
@@ -54,6 +66,10 @@ go build -o gradient-engineer-go
54
66
55
67
- You can override the API base URL via `OPENAI_BASE_URL` (for OpenAI/OpenRouter) if needed.
56
68
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
+
57
73
## License
58
74
59
75
This project is licensed under the MIT License. See the `LICENSE` file for details.
0 commit comments