1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Thanks for considering a contribution. agtop is a Rust + ratatui project;
there's no special setup beyond the Rust toolchain.
```sh
cargo build # debug, fast
cargo test # unit tests
cargo run # full TUI
cargo run -- --once # one-shot snapshot
Edit `src/matchers.rs` and add a regex. Add a classification test in the
same file's `#[cfg(test)]` block so future regex tweaks don't silently break
detection.
Model it on `src/codex.rs`. Each module exports
`summarise(live_agents, now_ms) -> SessionsResult`. Slot the call into
`src/collector.rs::enrich_and_score` alongside the existing readers.
The collector merges all readers with `sessions::merge()`, so order matters
only for tie-breaking the same PID's enrichment (first-wins).
```sh
sed -i 's/^version = .*/version = "X.Y.Z"/' Cargo.toml
cargo build --release && cargo test --release
packages/pacman/build.sh
packages/deb/build.sh
packages/npm/build.sh
git commit -am "vX.Y.Z" && git tag vX.Y.Z && git push --tags
```
The npm package is a thin shim that downloads the prebuilt binary from
GitHub Releases (or falls back to `cargo install agtop`).