@hanskristoffer/agentpool 0.29.0 → 0.30.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/README.md +16 -14
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ The first `service install` points the Claude Code, Codex and Cursor you already
|
|
|
49
49
|
|
|
50
50
|
You can do every setup step with the CLI. To use the native app, build it with `bun run build:desktop` and open **Agentgate.app**. It connects to `http://127.0.0.1:7878` by default. On a fresh machine, **Set up this machine** installs the bundled CLI in `~/.config/agentgate/bin`, initializes the store, starts a launchd service, and routes your Claude Code, Codex and Cursor the same way. Add that folder to your shell PATH to use the CLI. Closing or removing the app leaves that service and its CLI running.
|
|
51
51
|
|
|
52
|
-
The app has Overview, Accounts, MCP servers, Skills, Projects, Machines, T3 Code, Activity, and Settings screens. Overview lists anything that needs you, such as an account or MCP server to sign in to again, and the sidebar marks the screen where you fix it. **Settings → Coding tools** routes your own Claude Code and Codex or undoes it, and can generate [separate folders for T3 Code](#or-separate-folders-for-t3-code) instead. The app's service and coding-tool controls apply only to its configured local daemon; remote setup and services use the CLI on that machine. The one exception is routing: Machines shows whether each machine's own Claude Code and Codex go through agentgate, and its row menu turns that on or off there.
|
|
52
|
+
The app has Overview, Accounts, MCP servers, Skills, Projects, Machines, T3 Code, Activity, and Settings screens. Overview lists anything that needs you, such as an account or MCP server to sign in to again, and the sidebar marks the screen where you fix it; `agentgate status` prints the same list. **Settings → Coding tools** routes your own Claude Code and Codex or undoes it, and can generate [separate folders for T3 Code](#or-separate-folders-for-t3-code) instead. The app's service and coding-tool controls apply only to its configured local daemon; remote setup and services use the CLI on that machine. The one exception is routing: Machines shows whether each machine's own Claude Code and Codex go through agentgate, and its row menu turns that on or off there.
|
|
53
53
|
|
|
54
54
|
## A second machine (e.g. an always-on server)
|
|
55
55
|
|
|
@@ -58,17 +58,19 @@ There are two ways to connect machines, and a machine can use both:
|
|
|
58
58
|
- **Same network (Tailscale):** both machines are on your tailnet. Pairing uses a code that expires after 10 minutes.
|
|
59
59
|
- **Relay:** works across any network, without Tailscale. Every record is encrypted before it leaves the machine; the relay stores only ciphertext and can't read your credentials.
|
|
60
60
|
|
|
61
|
-
On the first machine, run `agentgate pair` or use **Pair a machine** in the app.
|
|
61
|
+
On the first machine, run `agentgate pair` or use **Pair a machine** in the app. `--tailnet` or `--relay` picks the method (with neither, Tailscale when it runs here, else the relay), and `--name` names the other machine (without it, it uses its hostname). Pairing is only offered on the daemon's own machine, since the code or invite it shows lets whoever has it read every login. It prints one command to run on the server, which installs agentgate, joins, and installs the service (on Linux this also runs `loginctl enable-linger` so it survives logout/reboot), which routes that machine's own Claude Code and Codex through agentgate with no further setup (undo with `agentgate setup --primary off`):
|
|
62
62
|
|
|
63
63
|
```sh
|
|
64
64
|
curl -fsSL https://raw.githubusercontent.com/HansKristoffer/agentgate/main/install.sh | AGENTGATE_NAME=srv sh -s -- join agr1.…
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
If agentgate is already installed there, `agentgate join agr1.…` (relay) or `agentgate join http://mac.<tailnet>.ts.net:7878 <code>` (Tailscale) joins without reinstalling. Mark an always-on server with `agentgate init --always-on` or **Mark as always on** in its ⋯ menu on Machines.
|
|
67
|
+
If agentgate is already installed there, `agentgate join agr1.…` (relay) or `agentgate join http://mac.<tailnet>.ts.net:7878 <code>` (Tailscale) joins without reinstalling. Mark an always-on server with `agentgate init --always-on`, `agentgate nodes always-on <node> on|off`, or **Mark as always on** in its ⋯ menu on Machines.
|
|
68
68
|
|
|
69
69
|
The server now has every account, MCP instance and repo mapping, and takes over token refreshes.
|
|
70
70
|
|
|
71
|
-
To sign every machine in to GitHub and
|
|
71
|
+
To sign every machine in to GitHub, Infisical and OpenCode as you, run `agentgate logins share` on the machine where you are signed in, or use **Share** under **Shared logins** on the Machines screen. It shares the `gh` login for github.com, the Infisical CLI login and OpenCode's API keys, skipping any this machine doesn't use. Every paired machine, including servers that join later, then runs `gh auth login` and `gh auth setup-git` with that token (so `gh` must be installed there) and gets the same Infisical session. The machine that shared re-reads its logins every ten minutes, so if you log in again there, the others follow. Infisical must keep its login in a file: if it uses the system keychain, run `infisical vault set file` and `infisical login` first. `agentgate logins` and the Machines screen show whether this machine is signed in with each login, and `agentgate logins forget github|infisical` stops sharing; machines already signed in stay signed in.
|
|
72
|
+
|
|
73
|
+
OpenCode shares only API keys (such as OpenRouter or your own endpoints), which every machine with OpenCode imports with `opencode auth import`; logins that refresh, such as GitHub Copilot, stay on their machine. Providers you defined yourself also need their entry in `~/.config/opencode/opencode.jsonc` on the other machine, which agentgate leaves alone.
|
|
72
74
|
|
|
73
75
|
An Infisical login expires after a few days and can't be renewed, so you have to log in again. Every machine checks whether its shared logins still work, and the overview and `agentgate logins` name the machines where one doesn't, such as an expired Infisical session or a GitHub token that was revoked. Click **Sign in** on the overview to log in to Infisical again in your browser; agentgate then shares the new session with every machine. The browser login has to finish on the machine that runs it, so use the app on your laptop, or run `agentgate logins signin infisical` in a terminal on any machine, where the Infisical CLI also accepts the token its sign-in page shows when it can't reach a server. For tools that run on their own, such as servers, set an Infisical machine identity once instead: create one with Universal Auth in Infisical and give it access to your projects, then choose **Set** next to **Infisical machine identity** under **Shared logins**, or run `agentgate logins identity --client-id <id>` (it asks for the secret; `--site` defaults to the Infisical instance your CLI uses). agentgate checks it with Infisical and writes it to `~/.infisical/universal-auth.json` on every machine, including servers that join later. hanzio uses that file when a process has no `INFISICAL_CLIENT_ID` and `INFISICAL_CLIENT_SECRET`. `agentgate logins forget infisical-identity` removes it from every machine.
|
|
74
76
|
|
|
@@ -78,12 +80,12 @@ To control the server from the native app over Tailscale, open the connection se
|
|
|
78
80
|
|
|
79
81
|
## Machine dashboard
|
|
80
82
|
|
|
81
|
-
Each machine can show its own health: CPU, load, memory, disk, time spent waiting for CPU, memory or disk, disk and network traffic, the agents and CI runners it is running, Docker's disk use and containers, the programs using the most CPU, and the last hour
|
|
83
|
+
Each machine can show its own health: CPU, load, memory, disk, time spent waiting for CPU, memory or disk, disk and network traffic, the agents and CI runners it is running, Docker's disk use and containers, the programs using the most CPU, and charts of the last hour. In **Machines**, choose **Turn on health dashboard** in a machine's ⋯ menu, then **Open health dashboard** opens it in your browser. The page is `/health` on the machine's address, and `agentgate dashboard on|off [--node <node>]` switches it from the CLI.
|
|
82
84
|
|
|
83
85
|
- It runs on Linux machines only, since it reads `/proc`. On a Mac, opening it only says so.
|
|
84
86
|
- Anyone on your tailnet can open it without signing in, as they could the server health page before. It shows program names and resource use, never command lines, credentials or accounts. Turn it off on machines you don't want it on.
|
|
85
87
|
- Turning it on waits until every machine runs this release, because older releases drop the setting when they save a machine's record.
|
|
86
|
-
- The
|
|
88
|
+
- It measures only while someone has the page open. The charts start when the page is first opened and stop a minute after the last view; the next view, like a restart, starts them over.
|
|
87
89
|
|
|
88
90
|
## T3 Code
|
|
89
91
|
|
|
@@ -149,8 +151,8 @@ In the native app (MCP servers), paste a server's URL and a name and click **Con
|
|
|
149
151
|
From the CLI:
|
|
150
152
|
|
|
151
153
|
```sh
|
|
152
|
-
agentgate mcp add geysier https://app.geysier.com/api/mcp #
|
|
153
|
-
agentgate mcp login geysier # sign in
|
|
154
|
+
agentgate mcp add geysier https://app.geysier.com/api/mcp # says so when the server needs a login
|
|
155
|
+
agentgate mcp login geysier # sign in; the daemon receives the callback
|
|
154
156
|
agentgate mcp add posthog-lullu posthog --header "x-posthog-project-id: 12345"
|
|
155
157
|
agentgate mcp add fs filesystem # presets: agentgate mcp presets
|
|
156
158
|
agentgate mcp add mytool --command "npx -y @some/mcp-server" [--per-session]
|
|
@@ -163,7 +165,7 @@ agentgate mcp test posthog-lullu
|
|
|
163
165
|
|
|
164
166
|
A server can have any name, such as "PostHog Lullu"; its slug (`posthog-lullu`) becomes its id and the default tool prefix, and `agentgate mcp label <id> <name>` changes only the name shown in the app. The alias is the tool prefix: in every repo mapped to `posthog-lullu` under the alias `posthog`, the agent sees `posthog__…` tools that reach that repo's PostHog project. The repo is taken from `git remote get-url origin` in the session's working directory (override with `AGENTGATE_PROJECT=owner/repo`). Running Claude Code sessions pick up new servers and mapping changes without a restart. Codex reads the tool list only when a session starts, so start a new Codex session to see them.
|
|
165
167
|
|
|
166
|
-
Every tool and every server's instructions cost an agent context in every session, so map a server only to the repos that use it rather than to Global defaults. Agents see the servers' instructions merged into one text of at most 4,000 characters, which is what Claude Code keeps; when they are longer, each server keeps its first lines. You can also narrow what a server offers:
|
|
168
|
+
Every tool and every server's instructions cost an agent context in every session, so map a server only to the repos that use it rather than to Global defaults. Agents see the servers' instructions merged into one text of at most 4,000 characters, which is what Claude Code keeps; when they are longer, each server keeps its first lines. You can also narrow what a server offers, under **Tools and limits** in its ⋯ menu or from the CLI:
|
|
167
169
|
|
|
168
170
|
```sh
|
|
169
171
|
agentgate mcp tools railway get-logs list-deployments list-services # offer only these tools (none: every tool)
|
|
@@ -172,7 +174,7 @@ agentgate mcp limit railway 10000 [--tool get-logs] # cut long
|
|
|
172
174
|
agentgate mcp defaults railway get-logs '{"limit": 30}' # arguments a call gets unless the agent passes them
|
|
173
175
|
```
|
|
174
176
|
|
|
175
|
-
A tool result longer than 20,000 characters is cut there, with a note telling the agent to ask for less. `agentgate mcp test <name>` lists a server's tools with these settings, and `agentgate service logs` shows one line per tool call with its server, tool, time and result size.
|
|
177
|
+
A tool result longer than 20,000 characters is cut there, with a note telling the agent to ask for less. `agentgate mcp test <name>` lists a server's tools with these settings (it asks the running daemon, over the connection sessions use), `agentgate project tools <owner/repo>` lists every tool that repo's sessions see, and `agentgate service logs` shows one line per tool call with its server, tool, time and result size.
|
|
176
178
|
|
|
177
179
|
## Skills per repo
|
|
178
180
|
|
|
@@ -203,13 +205,13 @@ Fetching needs Node (`npx`) or Bun (`bunx`) on the daemon's machine, and connect
|
|
|
203
205
|
|
|
204
206
|
Cursor also reads `~/.claude/skills`, `~/.codex/skills` and a repo's `.claude/skills` and `.agents/skills`, so it gets the same skills, except from the separate folders `agentgate setup` writes.
|
|
205
207
|
|
|
206
|
-
Claude Code and Codex read skills before a session's MCP servers start, so repo links must exist ahead of time. A repo is known on a machine once it is a project in that machine's T3 Code (with T3 Code connected; this includes clones from [project sync](#keep-projects-in-sync) and handoffs), after its first agentgate session there, or after a scan under Projects → **Add project** → **Find on this machine
|
|
208
|
+
Claude Code and Codex read skills before a session's MCP servers start, so repo links must exist ahead of time. A repo is known on a machine once it is a project in that machine's T3 Code (with T3 Code connected; this includes clones from [project sync](#keep-projects-in-sync) and handoffs), after its first agentgate session there, or after a scan under Projects → **Add project** → **Find on this machine** (`agentgate project scan <folder>`); from then on its worktrees are watched and new ones are linked with bounded retries and independent periodic repair. Outside T3 Code, register or scan a checkout before launching its first session; watcher timing cannot guarantee first-session readiness. Changes apply to new sessions. Agentgate never replaces a folder it did not create on its own: a name clash is listed under Skills → Skills need attention, where **Use Agentgate's** moves the existing folder to `skill-backups` in agentgate's state folder and links agentgate's copy, and **Keep this one** leaves it and stops linking agentgate's copy there on that machine (`agentgate skills conflicts`, `agentgate skills resolve <path> agentgate|keep`). A folder the repository tracks is never moved. Skills run with your agent's permissions and are copied to every paired machine, so install only sources you trust; the app and `skills add` show the skills.sh audit before installing, and `skills add` asks first (`--yes` installs without asking).
|
|
207
209
|
|
|
208
210
|
The app installs the exact files shown in a preview. Previews expire after ten minutes or cache eviction; preview again to continue. Skills installed from skills.sh, a source or a connected repository follow it and can't be edited; only hand-written skills can. Editing checks the saved revision and reports a conflict if another client or peer changed the skill. Skills → **Skills need attention** shows failed local materialization/link work, which the daemon retries automatically.
|
|
209
211
|
|
|
210
212
|
Bundles must contain a nonempty root `SKILL.md`, with unique portable paths and regular files. Symlinks and special files cannot be synced. Each bundle is limited to 3 MiB of base64 data (about 2.25 MiB of files) and 5,000 files; imports are limited to 100 skills and 24 MiB per pack. Large sources can be imported with `--skill` one skill at a time.
|
|
211
213
|
|
|
212
|
-
Repository-owned skills are mirrored only when you opt in with **Share repo skills between Claude and Codex** in a project's ⋯ menu in Projects
|
|
214
|
+
Repository-owned skills are mirrored only when you opt in with **Share repo skills between Claude and Codex** in a project's ⋯ menu in Projects, or `agentgate project mirroring <owner/repo> on|off`. Mirroring creates relative links that can be reviewed and committed. Stopping mirroring stops future maintenance and leaves existing links in place; repository-owned links are preserved.
|
|
213
215
|
|
|
214
216
|
## Env files between machines
|
|
215
217
|
|
|
@@ -291,7 +293,7 @@ Things to know:
|
|
|
291
293
|
|
|
292
294
|
## Commands
|
|
293
295
|
|
|
294
|
-
Run `agentgate --help`. Useful ones: `status
|
|
296
|
+
Run `agentgate --help`. A command refuses an option it does not know, so a misspelt flag fails instead of being ignored. Useful ones: `status` (also how late the daemon's event loop ran in the last minute), `accounts`, `accounts exhaust <id> [min]` (pretend an account hit its limit, for testing), `nodes`, `dashboard on|off`, `factory help`, `unpair <node>`, `relay status|reconcile|rotate|leave`, `export [--no-secrets]`, `import-backup <file>`, `service logs`.
|
|
295
297
|
|
|
296
298
|
## Things to know
|
|
297
299
|
|
|
@@ -335,7 +337,7 @@ The app uses Tauri commands to send HTTP requests from Rust. It has no browser H
|
|
|
335
337
|
|
|
336
338
|
See [running agentgate](docs/operations/running.md) for backup, upgrade, and live distribution checks. Account and MCP OAuth refreshes share holder coordination and a local cross-process lease. Running MCP shims reconnect after daemon restarts and update per-session mappings; tool calls with uncertain outcomes are never automatically replayed.
|
|
337
339
|
|
|
338
|
-
Nodes use **sync protocol 5** (update every paired machine together) and the app checks **management API version
|
|
340
|
+
Nodes use **sync protocol 5** (update every paired machine together) and the app checks **management API version 5** when connecting. Deletion history is retained so offline machines cannot resurrect old configuration.
|
|
339
341
|
|
|
340
342
|
`export --no-secrets` (or a backup with **Include credentials** off) produces an inventory: it omits logins, OAuth client secrets, and arbitrary MCP URLs, headers, commands/arguments, environment, fields, and secrets. Restored inventory transports need configuration again. Full exports contain working credentials and transport configuration.
|
|
341
343
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanskristoffer/agentpool",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"agentgate": "bin/agentpool.js"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"agentpool-darwin-arm64": "0.
|
|
26
|
-
"agentpool-darwin-x64": "0.
|
|
27
|
-
"agentpool-linux-x64": "0.
|
|
28
|
-
"agentpool-linux-arm64": "0.
|
|
25
|
+
"agentpool-darwin-arm64": "0.30.0",
|
|
26
|
+
"agentpool-darwin-x64": "0.30.0",
|
|
27
|
+
"agentpool-linux-x64": "0.30.0",
|
|
28
|
+
"agentpool-linux-arm64": "0.30.0"
|
|
29
29
|
}
|
|
30
30
|
}
|