@mkhuda/agent-ps 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0
4
+
5
+ Ways to install it, and a release that publishes itself.
6
+
7
+ - `curl | sh` takes the latest release, checks it against the checksum
8
+ published beside it, and makes sure it runs before keeping it.
9
+ - On PyPI as `agent-ps`, so `uvx agent-ps`, `pipx install agent-ps` and
10
+ `pip install agent-ps` all work.
11
+ - On npm as `@mkhuda/agent-ps`, scoped because the plain name is too close to
12
+ an existing package. The command it installs is still `agent-ps`.
13
+ - Releases are built and published from the tag on a clean runner, which
14
+ refuses to start when the tag, the version in the package and this file
15
+ disagree.
16
+
17
+ The tool itself is unchanged.
18
+
3
19
  ## 0.1.0
4
20
 
5
21
  First public release.
package/README.md CHANGED
@@ -3,11 +3,12 @@
3
3
  A process table for coding agent sessions, the way `ps` would look if it knew
4
4
  what a session was.
5
5
 
6
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](LICENSE)
7
- ![Python 3.8+](https://img.shields.io/badge/python-3.8%2B-blue?style=flat-square)
8
- ![macOS and Linux](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-lightgrey?style=flat-square)
9
- ![No dependencies](https://img.shields.io/badge/dependencies-none-brightgreen?style=flat-square)
10
- ![7 agents](https://img.shields.io/badge/agents-7-orange?style=flat-square)
6
+ [![ci](https://img.shields.io/github/actions/workflow/status/mkhuda/agent-ps/ci.yml?branch=main&style=flat-square&label=ci)](https://github.com/mkhuda/agent-ps/actions/workflows/ci.yml)
7
+ [![pypi](https://img.shields.io/pypi/v/agent-ps?style=flat-square&color=blue)](https://pypi.org/project/agent-ps/)
8
+ [![license](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](LICENSE)
9
+ ![python](https://img.shields.io/badge/python-3.8%2B-blue?style=flat-square)
10
+ ![agents](https://img.shields.io/badge/agents-7-orange?style=flat-square)
11
+ ![dependencies](https://img.shields.io/badge/dependencies-none-brightgreen?style=flat-square)
11
12
 
12
13
  ![agent-ps listing sessions from claude, hermes, codex, opencode, pi, commandcode and copilot side by side, each with its model, uptime, idle time, cpu, memory, disk and working directory, with two hermes background helpers at the bottom](images/agent-ps-screenshot.jpg)
13
14
 
@@ -24,16 +25,43 @@ One file, no dependencies, reads local files only.
24
25
 
25
26
  ## Install
26
27
 
28
+ ### One command
29
+
27
30
  ```bash
28
31
  curl -fsSL https://raw.githubusercontent.com/mkhuda/agent-ps/main/install.sh | sh
29
32
  ```
30
33
 
31
- That takes the latest release, checks it against the checksum published with it,
32
- makes sure it runs, and drops the single file into `~/.local/bin`. Set `BIN_DIR`
33
- to put it elsewhere, or `AGENT_PS_REF=v0.1.0` to pin a version.
34
+ Takes the latest release, checks it against the checksum published beside it,
35
+ makes sure it runs, and puts the single file in `~/.local/bin`. Set `BIN_DIR` to
36
+ install elsewhere, or `AGENT_PS_REF=v0.1.0` to pin a version.
37
+
38
+ ### With a package runner
39
+
40
+ From [PyPI](https://pypi.org/project/agent-ps/), which installs the program
41
+ itself:
42
+
43
+ ```bash
44
+ uvx agent-ps # run it once
45
+ pipx install agent-ps # keep it, isolated
46
+ pip install agent-ps # keep it, wherever pip points
47
+ ```
48
+
49
+ From [npm](https://www.npmjs.com/package/@mkhuda/agent-ps), which carries the
50
+ same single executable and finds an interpreter for it:
51
+
52
+ ```bash
53
+ npx @mkhuda/agent-ps
54
+ pnpm dlx @mkhuda/agent-ps
55
+ bunx @mkhuda/agent-ps
56
+ ```
57
+
58
+ The npm package is scoped because the plain name is too close to an existing
59
+ one. Either way the command it gives you is `agent-ps`.
60
+
61
+ ### Just the file
34
62
 
35
63
  If you would rather not pipe a script into a shell, the executable is the whole
36
- program and you can fetch it yourself:
64
+ program:
37
65
 
38
66
  ```bash
39
67
  mkdir -p ~/.local/bin
@@ -43,27 +71,31 @@ chmod +x ~/.local/bin/agent-ps
43
71
  ```
44
72
 
45
73
  Every [release](https://github.com/mkhuda/agent-ps/releases) publishes a
46
- `SHA256SUMS` beside the executable.
74
+ `SHA256SUMS` next to it.
47
75
 
48
- If you install your coding agents with npm, `npx agent-ps` works too. It is the
49
- same Python program either way; the package only finds an interpreter.
76
+ ### From a clone
77
+
78
+ ```bash
79
+ git clone https://github.com/mkhuda/agent-ps && cd agent-ps
80
+ ./install.sh
81
+ ```
50
82
 
51
- From a clone, `./install.sh` builds from the tree instead of downloading, so you
52
- install what you are looking at.
83
+ Builds from the tree rather than downloading, so you install what you are
84
+ looking at.
53
85
 
54
- Requires Python 3.8 or later and nothing from PyPI. Tested on 3.8, 3.9, 3.10 and
55
- 3.14. macOS and Linux; Windows is out because `curses` is not in its standard
56
- library. It shells out to `ps`, and on macOS to `lsof`, which is how a process is
57
- matched to a session everywhere except Claude Code.
86
+ ### What it needs, and how to remove it
58
87
 
59
- To remove it:
88
+ Python 3.8 or later and nothing from PyPI. Tested on 3.8, 3.9, 3.10 and 3.14.
89
+ macOS and Linux; Windows is out because `curses` is not in its standard library.
90
+ It shells out to `ps`, and on macOS to `lsof`, which is how a process is matched
91
+ to a session everywhere except Claude Code.
60
92
 
61
93
  ```bash
62
94
  rm -f ~/.local/bin/agent-ps
63
95
  ```
64
96
 
65
- Nothing is written outside that directory. agent-ps only ever reads the agents'
66
- own files.
97
+ That is the whole uninstall. Nothing is written outside that directory, and
98
+ agent-ps only ever reads the agents' own files.
67
99
 
68
100
  ## Agents
69
101
 
@@ -316,7 +348,7 @@ install fetches. The build is reproducible: the same source always produces the
316
348
  same bytes, so the committed executable can be checked against the tree.
317
349
 
318
350
  ```
319
- 3085afb9b1adaa486ab468066706bb6c5625d06afb18e46fcf97a1e4b8b02c62 agent-ps
351
+ 5045dee9f7c0a85a193886e0b5fcf37020a4c36f10537f36fa453d1020aff365 agent-ps
320
352
  ```
321
353
 
322
354
  Adding an agent takes one class and one line in the registry. See
package/agent-ps CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkhuda/agent-ps",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A process table for coding agent sessions. Claude Code, Codex, OpenCode, Hermes, Pi, CommandCode and Copilot in one view, with models, idle time, disk use and one key to stop them.",
5
5
  "keywords": [
6
6
  "cli",