agent-lookout 0.2.6 → 0.2.8

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.
@@ -0,0 +1,177 @@
1
+ # Install
2
+
3
+ Agent Lookout runs with npx, as a Mac app, or from a clone of the repository. The Claude Code plugin adds Allow and Deny to any of them. [The README](../README.md) says what it does.
4
+
5
+ ## Requirements
6
+
7
+ - macOS, Linux or Windows. Agent Lookout is developed and used on macOS. On Linux and Windows, CI runs the tests and starts it, and no one has used it on those desktops yet. [On Linux](GUIDE.md#on-linux) and [On Windows](GUIDE.md#on-windows) say what differs there.
8
+ - Node.js 22.12 or newer. The [Mac app](#mac-app) needs no Node.js, and macOS 13 Ventura or later.
9
+ - Claude Code, Codex or the Antigravity CLI, `agy`. None needs any setup. Any other agent can appear too, by writing a [status file](GUIDE.md#your-own-agents).
10
+ - For Claude Code, a version that has the `claude agents` command. Without it, Agent Lookout still reads the session files, but cannot list background jobs that have finished or failed.
11
+ - For Codex, version 0.155 or later, so that Agent Lookout can tell a session that has ended from one that is idle.
12
+ - For the Antigravity CLI, version 1.3.1 is the one Agent Lookout was written from, and it was checked against one conversation; parts, such as `/resume`, are not yet checked. The Antigravity desktop app's conversations do not appear.
13
+
14
+ Check what you have:
15
+
16
+ ```sh
17
+ node --version
18
+ claude --version
19
+ claude agents --help
20
+ codex --version
21
+ agy --version
22
+ ```
23
+
24
+ `node --version` prints `v22.12.0` or later. `claude --version` prints a version number followed by `(Claude Code)`, and `claude agents --help` prints a line that starts with `Usage: claude agents`. `codex --version` prints `codex-cli` followed by a version number, and `agy --version` a version number such as `1.3.1`. A command for a program you do not use prints `command not found`: carry on. Agent Lookout never runs `codex` or `agy`, so the Codex desktop app needs no CLI.
25
+
26
+ ## With npx
27
+
28
+ ### Start it
29
+
30
+ ```sh
31
+ npx agent-lookout
32
+ ```
33
+
34
+ The first time, npm names the package and asks `Ok to proceed? (y)`. Press Enter. npm downloads under 2 MB, about 4 MB once installed, and keeps it in its cache. The package holds the built dashboard and the collector as plain JavaScript, so it needs Node.js and nothing else. Then Agent Lookout prints:
35
+
36
+ ```text
37
+ Agent Lookout is running at http://127.0.0.1:4777
38
+ It listens on this machine only. Press Ctrl+C to stop.
39
+ ```
40
+
41
+ Open <http://127.0.0.1:4777>. Your sessions appear within a few seconds. If none do, see [No sessions appear](GUIDE.md#no-sessions-appear). It keeps running until you press Ctrl+C, so leave that terminal open. If you used `npm run dev` before, turn notifications on again here: the browser keeps them for each address.
42
+
43
+ | Option | What it does |
44
+ | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
+ | `--port <number>` | Listens on this port in place of 4777, such as `--port 4778`. `AGENT_LOOKOUT_PORT` does the same, and `--port` wins when both are given |
46
+ | `--open` | Opens the address in your default browser once it is listening, with `open` on macOS, `xdg-open` on Linux or `rundll32.exe` on Windows. If that cannot be done, it prints one line with the address and keeps running |
47
+ | `--help` | Prints the options of `agent-lookout`, `agent-lookout status` and `agent-lookout mcp` |
48
+ | `--version` | Prints the version of Agent Lookout and nothing else |
49
+
50
+ `agent-lookout start` does the same as `agent-lookout`. Every setting under [Settings you can change](GUIDE.md#settings-you-can-change) works with it. It ends with 0 when you press Ctrl+C, and with 1 when it cannot start, such as when the port is in use. Under `npx agent-lookout`, the shell reports the interrupt instead, as exit code 130.
51
+
52
+ ### Run it in the background
53
+
54
+ ```sh
55
+ nohup npx --yes agent-lookout > agent-lookout.log 2>&1 &
56
+ ```
57
+
58
+ `--yes` stops npm asking `Ok to proceed?`, since nothing would answer. What Agent Lookout prints goes to `agent-lookout.log`.
59
+
60
+ ### Another port
61
+
62
+ If it prints `Port 4777 is already in use`, another program has that port. Choose another:
63
+
64
+ ```sh
65
+ npx agent-lookout --port 4778
66
+ ```
67
+
68
+ Use the new port in the address you open and in the check below. `agent-lookout status` and `agent-lookout mcp` then need `--url http://127.0.0.1:4778`, or `AGENT_LOOKOUT_URL` set to that address, as [In the terminal](GUIDE.md#in-the-terminal) says. [The port is in use](GUIDE.md#the-port-is-in-use) shows how to find which program holds a port.
69
+
70
+ ### Check that it answers
71
+
72
+ If `npx agent-lookout` holds your terminal, use a second one:
73
+
74
+ ```sh
75
+ curl -s http://127.0.0.1:4777/api/health
76
+ ```
77
+
78
+ It prints `{"ok":true,"version":"…"}`, with the version you are running. If a step prints something else, [When something goes wrong](GUIDE.md#when-something-goes-wrong) says what to do for the common problems.
79
+
80
+ ### Stop it
81
+
82
+ Press Ctrl+C in its terminal. If it runs in the background, find its process ID and end it. On macOS, or on Linux with `lsof` installed, `lsof -nP -iTCP:4777 -sTCP:LISTEN` shows the process ID under `PID`, and `kill` followed by that number stops it. On Windows, `netstat -ano | findstr :4777` shows the process ID in its last column, and `taskkill /F /PID` followed by that number stops it. Put your port in place of 4777 if you chose another.
83
+
84
+ ### Update it
85
+
86
+ ```sh
87
+ npx agent-lookout@latest
88
+ ```
89
+
90
+ This also makes sure npx does not reuse an older copy it keeps. Each time npx starts it, npx asks npm's registry whether a newer version is out, as it does for any package it runs.
91
+
92
+ ### Install it once
93
+
94
+ To start it without npx asking the registry each time, install it once and run it by name:
95
+
96
+ ```sh
97
+ npm install -g agent-lookout
98
+ agent-lookout
99
+ ```
100
+
101
+ `agent-lookout status` and `agent-lookout mcp` then start without npm asking its registry each time, which suits a tmux status line or a shell prompt that runs them every few seconds. Run `npm install -g agent-lookout` again to update it, and `npm uninstall -g agent-lookout` to take it away.
102
+
103
+ ## Mac app
104
+
105
+ Download the disk image for your Mac from the [latest release](https://github.com/Olanetsoft/agent-lookout/releases/latest): `Agent-Lookout-<version>-mac-arm64.dmg` for Apple silicon, or `Agent-Lookout-<version>-mac-x64.dmg` for Intel. About This Mac, in the Apple menu, shows which you have: a chip such as Apple M1 is Apple silicon, and a processor named Intel is Intel. Open the disk image and drag Agent Lookout to Applications. Keep it there: the app updates itself only from a folder it can change. It needs macOS 13 Ventura or later, and no Node.js. On macOS 11 or 12, run it [with npx](#with-npx) instead.
106
+
107
+ The app is not yet signed with an Apple Developer ID, so the first time a downloaded copy is opened, macOS does not open it. Its message is titled “Agent Lookout” Not Opened and says that Apple could not verify “Agent Lookout” is free of malware. To open it anyway:
108
+
109
+ 1. Press Done. Do not press Move to Bin, or Move to Trash, which deletes the app.
110
+ 2. Open System Settings › Privacy & Security.
111
+ 3. Under Security, next to the line that says Agent Lookout was blocked, press Open Anyway, and confirm with your password or Touch ID. The button is there for about an hour after macOS stopped the app. If it has gone, open the app again, press Done, and go back to Privacy & Security.
112
+
113
+ macOS remembers the choice. [Desktop app](GUIDE.md#desktop-app) says how the app behaves, [Menu bar](GUIDE.md#menu-bar) what its icon in the menu bar lists, and [Updates](GUIDE.md#updates) how it checks for a newer version and installs it.
114
+
115
+ ### Build it yourself
116
+
117
+ From a clone, on a Mac:
118
+
119
+ ```sh
120
+ npm install
121
+ npm run dist:mac
122
+ ```
123
+
124
+ It takes a minute or two, and the first time it downloads Electron for each kind of Mac. It puts a disk image and a zip for each in `release/`, with the same names as on the release. Open the disk image for your Mac and drag Agent Lookout to Applications. A copy you built yourself on this Mac opens without the steps above.
125
+
126
+ ### Mac app and npx together
127
+
128
+ The app opens no port, so `agent-lookout status`, `agent-lookout mcp` and a [tmux status line](GUIDE.md#in-a-tmux-status-line) cannot reach it. For those, run `npx agent-lookout` as well. The two keep their history in the same folder, so the Events log and the charts carry over, and their time rules and permission rules in the same settings file. Turn notifications on in only one of the two, or you get each one twice.
129
+
130
+ ## Claude Code plugin
131
+
132
+ With Agent Lookout running, the plugin lets you answer a Claude Code permission prompt from the page, with Allow or Deny. In Claude Code, run:
133
+
134
+ ```text
135
+ /plugin marketplace add Olanetsoft/agent-lookout
136
+ /plugin install agent-lookout@agent-lookout
137
+ ```
138
+
139
+ From a shell, `claude plugin marketplace add Olanetsoft/agent-lookout` and `claude plugin install agent-lookout@agent-lookout` do the same. To remove it, run `/plugin uninstall agent-lookout@agent-lookout`. The hook needs `curl`, which macOS has, and most Linux systems do. On Windows the plugin does nothing, and Claude Code asks as usual. [plugins/agent-lookout/README.md](../plugins/agent-lookout/README.md) says what the hook does, and [Answer a permission prompt](GUIDE.md#answer-a-permission-prompt) what the page shows.
140
+
141
+ ## From the repository
142
+
143
+ To run it from a clone, as you would to work on its code:
144
+
145
+ ```sh
146
+ git clone https://github.com/Olanetsoft/agent-lookout.git
147
+ cd agent-lookout
148
+ npm install
149
+ npm run build
150
+ npm start
151
+ ```
152
+
153
+ `npm start` prints the same two lines as `npx agent-lookout`, at the same address, and takes another port as `AGENT_LOOKOUT_PORT=4778 npm start`. Run before `npm run build`, it stops and tells you to build first. After a `git pull`, run `npm install` and `npm run build` again.
154
+
155
+ `npm link`, run once in the folder after `npm run build`, puts `agent-lookout` on your `PATH`, pointing at the clone, so it starts from any folder. It serves the same built page, so a pull needs the same `npm install` and `npm run build`.
156
+
157
+ `npm run dev` starts it at <http://localhost:5173> with the development tools used to work on its code, as [CONTRIBUTING.md](../CONTRIBUTING.md) describes.
158
+
159
+ ## With your coding agent
160
+
161
+ A coding agent such as Claude Code or Codex can start it for you. Give it this prompt:
162
+
163
+ ```text
164
+ Start Agent Lookout on this computer. First check that node --version
165
+ prints v22.12.0 or later. Then run npx --yes agent-lookout in the
166
+ background and leave it running.
167
+ It should print "Agent Lookout is running at http://127.0.0.1:4777".
168
+ If it prints anything else, or says the port is in use, stop and tell
169
+ me what it printed.
170
+
171
+ Do not use sudo, and do not set up email, a webhook, phone pushes,
172
+ pull requests or other machines. You are done when
173
+ curl -s http://127.0.0.1:4777/api/health prints {"ok":true and a
174
+ version number. Tell me what it printed.
175
+ ```
176
+
177
+ An agent's background command can end when its session does. If the page then says Agent Lookout has stopped updating, run `npx agent-lookout` yourself.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-lookout",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Shows the AI agent sessions on your computer in one browser page, and which need you.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -32,6 +32,7 @@
32
32
  "dist/",
33
33
  "docs/API.md",
34
34
  "docs/GUIDE.md",
35
+ "docs/INSTALL.md",
35
36
  "CHANGELOG.md",
36
37
  "DISCLAIMER.md",
37
38
  "LICENSE",
@@ -68,6 +69,10 @@
68
69
  "test:component": "vitest run --project component",
69
70
  "test:watch": "vitest",
70
71
  "check:layout": "node scripts/check-layout.mjs",
72
+ "build:tour": "node scripts/site-tour/build.mjs",
73
+ "check:tour": "node scripts/site-tour/build.mjs --check",
74
+ "check:tour-size": "node scripts/site-tour/build.mjs --sizes",
75
+ "capture:images": "node scripts/capture-docs-images.mjs",
71
76
  "check": "npm run check:layout && npm run typecheck && npm run lint && npm run format:check && npm run test"
72
77
  },
73
78
  "dependencies": {