@hanskristoffer/agentpool 0.35.0 → 0.37.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.
Files changed (2) hide show
  1. package/README.md +16 -61
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -4,14 +4,13 @@ One daemon per machine that:
4
4
 
5
5
  - pools several **Claude**, **Codex**, and **Cursor** subscriptions and moves to the next account when one hits its limit;
6
6
  - hosts **MCP servers** and gives each GitHub repo its own set (e.g. a separate PostHog project per repo), plus general ones for every repo;
7
- - **shares** all of it between your machines over Tailscale or an end-to-end encrypted relay, and keeps working when the other machines are offline;
8
- - can run a **software factory**, off until you turn it on, that works the issues you label in T3 Code threads until a pull request is ready for you to merge.
7
+ - **shares** all of it between your machines over Tailscale or an end-to-end encrypted relay, and keeps working when the other machines are offline.
9
8
 
10
9
  T3 Code (or plain Claude Code / Codex) runs the sessions; agentgate sits underneath. The optional **Tauri macOS app** controls your local or remote setup. The daemon and CLI work independently, including on headless Linux servers. There is no web UI. See [running agentgate](docs/operations/running.md).
11
10
 
12
11
  ## Using the Claude Desktop app
13
12
 
14
- Agentgate works with Claude Desktop without any terminal: open the Agentgate app, choose **Set up this machine**, then **Accounts**, which has a **Claude Desktop** panel. Choose one of two ways:
13
+ You can set up Claude Desktop without a terminal. Open the Agentgate app, choose **Set up this machine**, then go to **Accounts**, which has a **Claude Desktop** panel. Choose one of two ways:
15
14
 
16
15
  - **Switch accounts**: Claude Desktop stays signed in to your full Claude account (Chat, Cowork, Code). Agentgate keeps a saved login per account on this Mac and switches with one click, from the app or the menu bar. Desktop restarts when you switch.
17
16
  - **Share automatically**: Claude Desktop's Code tab uses whichever subscription has room and moves on by itself. Desktop runs a separate local profile without Chat.
@@ -49,7 +48,7 @@ The first `service install` points the Claude Code, Codex and Cursor you already
49
48
 
50
49
  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
50
 
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.
51
+ 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
52
 
54
53
  ## A second machine (e.g. an always-on server)
55
54
 
@@ -68,7 +67,9 @@ If agentgate is already installed there, `agentgate join agr1.…` (relay) or `a
68
67
 
69
68
  The server now has every account, MCP instance and repo mapping, and takes over token refreshes.
70
69
 
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.
70
+ To sign every machine in to GitHub, Infisical, OpenCode and Antigravity 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, OpenCode's API keys and the Antigravity CLI (`agy`) login, 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.
71
+
72
+ A machine that gets the Antigravity login and has no `agy` installs it with Google's installer (into `~/.local/bin`, without touching your shell profile) and signs it in: in the Keychain on a Mac, in `~/.gemini/antigravity-cli` on a Linux server. A Linux desktop that keeps `agy`'s login in its system keyring is not covered.
72
73
 
73
74
  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.
74
75
 
@@ -93,9 +94,11 @@ T3 Code's default Claude and Codex instances run your own Claude Code and Codex,
93
94
 
94
95
  **Cursor** accounts can be added too (`agentgate login cursor`, or **Add account** in the app). Agentgate keeps their logins, shows each account's monthly plan usage, counts their tokens in the overview chart (read from Cursor's usage history every 15 minutes), and syncs the accounts to paired machines. Agent runs are pooled like Claude and Codex: set `CURSOR_API_BASE_URL` to `http://127.0.0.1:<port>/cursor` (the address `agentgate status` prints, with `/cursor` on the end). Other Cursor calls keep the CLI's own login. A machine on an older agentgate stops syncing once a Cursor account exists, until it is updated.
95
96
 
97
+ **Antigravity** isn't pooled: its models are Google's. The overview chart still counts its tokens, read every five minutes from the conversations the Antigravity CLI (`agy`) and the Antigravity app keep in `~/.gemini`, and shared with your other machines once they all run this version. Conversations from the app's first version are encrypted, so they are read through the app while it is open.
98
+
96
99
  ### Your own Claude Code and Codex
97
100
 
98
- The first `agentgate service install` on a new machine routes them, and `agentgate setup --primary` does it any time. It adds `ANTHROPIC_BASE_URL` to `~/.claude/settings.json` and the agentgate MCP server to `~/.claude.json`, so the Claude Code you already use (and T3's default Claude instance) goes through agentgate while keeping its own login. Where Claude Code has never been signed in, such as on a new server, it also sets a placeholder `ANTHROPIC_AUTH_TOKEN`, because Claude Code won't start without a login. Once you sign in, the daemon removes the placeholder again, because Claude Code turns off your claude.ai connectors while any auth token is set. If your local Claude Code login expires, Accounts shows **Sign in to Claude Code** on that account. It renews this machine's own login; **Sign in again** renews a pool login. From a terminal, run `claude auth login`, or `agentgate accounts claude-code login` to start the same browser flow through the daemon. If the browser shows a code, paste it in the app or send it on stdin to `agentgate accounts claude-code finish`. Start a new thread afterwards. Claude Desktop is not affected: it sets its own API address; see [Claude Desktop](docs/user/claude-desktop.md). For only the MCP servers, use `agentgate setup --mcp`. That, and `setup --primary`, also write `~/.cursor/mcp.json` where Cursor is installed, so Cursor and the Cursor CLI get the same servers. Claude Code sometimes saves `~/.claude.json` without the agentgate MCP server; while you have it on, the daemon puts it back within a minute, and `agentgate status` says when it did. Remove it with `agentgate setup --mcp off`, not `claude mcp remove`, which the daemon undoes. After agentgate's binary moves or its port changes, the daemon also updates these MCP entries. Start a new session to pick them up. Model requests use the pool. When a client sends its own login, other requests keep it, and it is also the last resort when every pooled account is exhausted. Undo with `agentgate setup --primary off` (the previous base URL is restored, and later settings edits are preserved). It does the same for `~/.codex/config.toml` (or `$CODEX_HOME`): an `agentgate` model provider with `requires_openai_auth = true`, so Codex, the Codex app and T3's default Codex instance send their own ChatGPT login along as the last resort. Where Codex has never been signed in, it writes a placeholder API key to `~/.codex/auth.json`, so `codex login status` and T3 Code see Codex as signed in; undo removes it again. Add `--node <name>` to switch a paired machine from the one you are on. Keep the service installed: while the daemon is down, Claude Code and Codex can't reach their providers.
101
+ The first `agentgate service install` on a new machine routes them, and `agentgate setup --primary` does it any time. It adds `ANTHROPIC_BASE_URL` to `~/.claude/settings.json` and the agentgate MCP server to `~/.claude.json`, so the Claude Code you already use (and T3's default Claude instance) goes through agentgate while keeping its own login. Where Claude Code has no login or its saved login has ended, it also sets a placeholder `ANTHROPIC_AUTH_TOKEN` so model requests can still use the pool. Once you sign in, the daemon removes the placeholder again, because Claude Code turns off your claude.ai connectors while any auth token is set. If your local Claude Code login expires, Accounts shows **Sign in to Claude Code** on that account. It renews this machine's own login; **Sign in again** renews a pool login. From a terminal, run `claude auth login`, or `agentgate accounts claude-code login` to start the same browser flow through the daemon. If the browser shows a code, paste it in the app or send it on stdin to `agentgate accounts claude-code finish`. Start a new thread afterwards. Claude Desktop is not affected: it sets its own API address; see [Claude Desktop](docs/user/claude-desktop.md). For only the MCP servers, use `agentgate setup --mcp`. That, and `setup --primary`, also write `~/.cursor/mcp.json` where Cursor is installed, so Cursor and the Cursor CLI get the same servers, and `~/.gemini/config/mcp_config.json` where the Antigravity CLI (`agy`) has run, for `agy`. If you install either one later, the daemon adds the server within a minute while the MCP servers are on. Claude Code sometimes saves `~/.claude.json` without the agentgate MCP server; while you have it on, the daemon puts it back within a minute, and `agentgate status` says when it did. Remove it with `agentgate setup --mcp off`, not `claude mcp remove`, which the daemon undoes. After agentgate's binary moves or its port changes, the daemon also updates these MCP entries. Start a new session to pick them up. Model requests use the pool. When a client sends its own login, other requests keep it, and it is also the last resort when every pooled account is exhausted. Undo with `agentgate setup --primary off` (the previous base URL is restored, and later settings edits are preserved). It does the same for `~/.codex/config.toml` (or `$CODEX_HOME`): an `agentgate` model provider with `requires_openai_auth = true`, so Codex, the Codex app and T3's default Codex instance send their own ChatGPT login along as the last resort. Where Codex has never been signed in, it writes a placeholder API key to `~/.codex/auth.json`, so `codex login status` and T3 Code see Codex as signed in; undo removes it again. Add `--node <name>` to switch a paired machine from the one you are on. Keep the service installed: while the daemon is down, Claude Code and Codex can't reach their providers.
99
102
 
100
103
  ### Or: separate folders for T3 Code
101
104
 
@@ -142,7 +145,7 @@ What to expect:
142
145
 
143
146
  Turn on **Keep projects in sync** on the T3 Code page, or run `agentgate t3 sync on`, and a GitHub project you add in T3 Code on one machine shows up in T3 Code on your other machines. Machines check every 30 seconds, and opening the T3 Code page checks right away. Each machine needs T3 Code connected as above. A machine that already has a checkout of the repository gets a project for that checkout. Otherwise T3 Code clones it into the clone folder (`agentgate t3 dirs`) with that machine's own GitHub login, so `gh` must be signed in there (`agentgate logins share` does that for every machine). It clones over HTTPS, or over SSH when that machine's existing checkouts use SSH. Removing a project only removes it on that machine, and agentgate never adds it back there. A clone that failed is the exception: remove it in T3 Code and agentgate tries again.
144
147
 
145
- The proxy now provides quota freshness and reset visibility, searchable **Activity** with request attempts and stream outcomes, bounded retries and local cooldowns, routing strategies and optional session affinity, model discovery/aliases/policies, batch verification, and revision-safe configuration previews. See [the proxy guide](docs/user/proxy.md) for controls, CLI examples, defaults, and upgrade requirements. Codex background usage polling is opt-in pending live endpoint validation.
148
+ The proxy provides quota freshness and reset visibility, searchable **Activity** with request attempts and stream outcomes, bounded retries and local cooldowns, routing strategies and optional session affinity, model discovery/aliases/policies, batch verification, and revision-safe configuration previews. See [the proxy guide](docs/user/proxy.md) for controls, CLI examples, defaults, and upgrade requirements. Codex background usage polling is opt-in pending live endpoint validation.
146
149
 
147
150
  ## MCP servers per repo
148
151
 
@@ -200,10 +203,10 @@ agentgate skills repo ls | sync | rm owner/team-skills
200
203
 
201
204
  Fetching needs Node (`npx`) or Bun (`bunx`) on the daemon's machine, and connected repositories need `git`; other machines get the files through sync. Each node writes skills to `~/.config/agentgate/skills/<name>` and only creates symlinks to them:
202
205
 
203
- - **Every session**: the Claude and Codex folders `agentgate setup` writes (`~/.config/agentgate/{claude,codex}/skills`), plus `~/.claude/skills` and `~/.codex/skills` while `setup --primary` is on.
206
+ - **Every session**: the Claude and Codex folders `agentgate setup` writes (`~/.config/agentgate/{claude,codex}/skills`), plus `~/.claude/skills` and `~/.codex/skills` while `setup --primary` is on, and `~/.gemini/config/skills` (the Antigravity CLI) while it has agentgate's MCP server.
204
207
  - **One repo**: `.claude/skills/<name>` in the main checkout (Claude Code falls back to it from worktrees) and `.agents/skills/<name>` in the main checkout and every worktree (Codex). The entries are added to `.git/info/exclude`.
205
208
 
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.
209
+ 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. The Antigravity CLI reads a repo's `.agents/skills` too.
207
210
 
208
211
  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).
209
212
 
@@ -222,7 +225,7 @@ agentgate agents-md # where it is and what it says
222
225
  agentgate agents-md set --file AGENTS.md # replace it everywhere; an empty file removes it
223
226
  ```
224
227
 
225
- Claude Code reads it as `CLAUDE.md` and Codex as `AGENTS.md`, linked in the same places as skills for **Every session**. Your own `~/.claude/CLAUDE.md` or `~/.codex/AGENTS.md` is never replaced: it shows up under Skills need attention, where **Use Agentgate's** moves it to `skill-backups` first. If two machines change it at once, the last save wins. Every machine must run a version of agentgate that knows it; until then it is not shared, and the app and the command name the machine to update.
228
+ Claude Code reads it as `CLAUDE.md`, and Codex and the Antigravity CLI as `AGENTS.md`, linked in the same places as skills for **Every session** (`~/.gemini/config/AGENTS.md` for Antigravity, which also keeps reading your `~/.gemini/GEMINI.md`). Your own `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md` or `~/.gemini/config/AGENTS.md` is never replaced: it shows up under Skills need attention, where **Use Agentgate's** moves it to `skill-backups` first. If two machines change it at once, the last save wins. Every machine must run a version of agentgate that knows it; until then it is not shared, and the app and the command name the machine to update.
226
229
 
227
230
  ## Env files between machines
228
231
 
@@ -250,67 +253,19 @@ agentgate project set @grok linear=linear posthog=posthog-lullu
250
253
  agentgate skills projects release-notes @grok
251
254
  agentgate remote enable @grok # prints the URL and Authorization header
252
255
  agentgate remote secret @grok # new secret, same URL
253
- agentgate remote factory @grok on # also let Grok see and steer the software factory
254
- agentgate remote webhook @grok https://bot.example/agentgate?token=… # tell Grok what waits for you
255
- ```
256
-
257
- With the **Software factory** switch on (or `remote factory @grok on`), Grok can also follow and steer the [software factory](#software-factory) from anywhere: `factory__status` shows the board and the repositories it works, `factory__show` one item, and `factory__add` adds a task in any of those repositories, which starts at triage without waiting for your approval. Grok can also approve, reject, retry and drop items, and pause or resume the factory. To hear about changes without asking, set an **updates webhook** in the app, with `remote webhook`, or let Grok set one with `factory__webhook`: it then gets the same posts as your own [notify URL](#software-factory), when an item starts waiting for you and when a PR is ready. Put the receiver's token in the URL's path or query; the app shows only its host. Every machine must run a release that knows the switch; turning it on names the machines to update.
258
-
259
- Unlike sync, this traffic is readable by the relay (your logins stay on your machines), and anyone with the URL and secret can use those tools. With the factory switch on, that includes starting full-access T3 Code threads on your machines with text they choose. See [remote MCP endpoints](docs/operations/relay.md#remote-mcp-endpoints).
260
-
261
- ## Software factory
262
-
263
- The factory takes the issues you label on GitHub or Linear, those a webhook sends, and those a scout files when it checks something on a schedule (such as slow endpoints), and works each one in T3 Code threads on one of your machines until its pull request is ready for review. Every step is a T3 Code thread you can open and talk to. The factory never merges; that stays with you.
264
-
265
- Each item goes through these stages:
266
-
267
- 1. **Triage** reproduces the report, looks for duplicates and for a fix already on the default branch, closes reports that come from a CI runner, a developer's machine or a third-party outage, and chooses between a fix and a spec.
268
- 2. **Spec**, for unclear or large items: the thread writes a spec, has a fresh agent review it, and asks you **Approve** or **Change**. The app's Factory view and `agentgate factory show` show the spec, and you answer there or in T3 Code. A large change is cut to a first slice, and the rest becomes issues when the PR is ready.
269
- 3. **Implement** works on the branch `factory/<item>`, reviews its own diff, and opens a draft pull request. The thread keeps the PR, and the factory wakes it when it sits on a failing check, a conflict, or comments from the repository's own people. No fix starts while the default branch fails CI.
270
- 4. **Review**: a fresh thread reviews the PR in focused passes (correctness, tests, reuse, efficiency, security and the repository's own rules) without reading what the implementer said about it. Its findings go to the implement thread, not to GitHub, for up to three rounds by default.
271
- 5. **Ready**: the factory marks the PR ready for review, requests the repository's reviewers, and adds a summary to the PR's description: what the implementer checked and did not, the decisions it made that the issue left open, least sure first, what the last review round left open, and where the risk is. Problems the review found in code the PR did not change, and the slices a spec left for later, become issues without the factory's label: label one to have the factory work it. You merge the PR or close it.
272
-
273
- The factory comments on the issue when it takes it in, when it triages it, when a spec is approved, when it opens the PR, when the PR is ready or merged, and whenever it needs an answer from you or stopped.
274
-
275
- To start one:
276
-
277
- 1. On the machine that will run it, connect T3 Code (`agentgate t3 connect`), sign `gh` in to an account that can push to the repositories, and give the Claude Code or Codex that T3 Code runs agentgate's MCP server (`agentgate setup --primary`, which also counts their tokens, or `--mcp`). Stage threads report back through it. `agentgate factory doctor` checks all of this once the factory is on.
278
- 2. Press **Start a factory** in the app's Factory view, or run `agentgate factory init owner/repo`. It keeps the factory's folder in agentgate, so nothing is pushed to the repository, every machine gets a copy, and you edit it in the app's Factory settings or with `agentgate factory folder`. More repositories join with **Add to the factory** in a project's menu, or `agentgate factory repo add owner/repo`. To run from a folder in a git repository instead (the [factory guide](docs/user/factory.md) has the format and an example, and `agentgate factory folder export` writes one out), run `agentgate factory use owner/repo[:folder]`. The factory runs on your always-on machine, or the one you name with `--node`; `agentgate factory move <machine>` moves it later, once the items it has open are finished. Other machines forward factory commands to it.
279
- 3. Watch it in the app's Factory view, which shows what waits for you, every stage, and links that open each thread in T3 Code. `agentgate factory status` and the `/factory` page (`agentgate dashboard on`) show the same board.
280
- 4. Label an issue with your source's label (`factory` for a folder `init` made). The factory looks every 2 minutes.
281
-
282
- You act in three places:
283
-
284
- - **T3 Code**: answer the questions threads ask, including the spec card. A thread you stop stays stopped: its item waits for you until you `retry` or `drop` it.
285
- - **The CLI**: `agentgate factory approve|reject|retry|drop <item>` answers or stops an item, `show <item>` tells what happened to it, `pause` and `resume` stop and restart the whole factory, and `add <owner/repo> <title>` adds an item by hand.
286
- - **GitHub**: answer a question on its issue (`/approve`, `/reject <reason>`, or your answer in your own words), review the PR, ask for changes in a review comment, and merge it.
287
-
288
- The factory comments as your `gh` login, and GitHub never notifies you of your own comments. To hear when an item waits for you or a PR is ready, give it a URL of your own, such as a Slack incoming webhook: `agentgate factory notify https://hooks.slack.com/services/…` (or **Notifications** in the app's Factory settings; `notify off` stops it). The app also marks the Factory view and sends a system notification, and the thread that asks is marked unread in T3 Code.
289
-
290
- ```sh
291
- agentgate factory init acme/api # a factory for one repository, on at once; off turns it off
292
- agentgate factory status # the board: items, what waits for you, sources and webhook URLs
293
- agentgate factory doctor # what the factory still needs, with the fix for each
294
- printf %s "$LINEAR_KEY" | agentgate factory secret set LINEAR_KEY
295
- agentgate factory approve api-42 --reason "keep the old field as an alias"
296
- agentgate factory help # every factory command
297
256
  ```
298
257
 
299
- Things to know:
300
-
301
- - **It works as you.** Comments, PRs and reviews carry your `gh` login, and stage threads run with full access. Label only issues you have read. The issue's text reaches an agent as untrusted data, but it is still a prompt. Protect the factory folder's branch on GitHub if your plan allows; `factory use` warns when it is open and could be protected.
302
- - **It spends your subscriptions.** Threads use the pool like any session, and wait while no account has room. An item that passes `limits.itemTokens` in `factory.yaml` (30 million tokens by default) stops and waits for you.
303
- - Every machine must run this release before you turn the factory on or set a factory secret, because older releases drop them.
258
+ Unlike sync, this traffic is readable by the relay (your logins stay on your machines), and anyone with the URL and secret can use those tools. See [remote MCP endpoints](docs/operations/relay.md#remote-mcp-endpoints).
304
259
 
305
260
  ## Commands
306
261
 
307
- 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`.
262
+ 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`, `unpair <node>`, `relay status|reconcile|rotate|leave`, `export [--no-secrets]`, `import-backup <file>`, `service logs`.
308
263
 
309
264
  ## Things to know
310
265
 
311
266
  - **Once imported, a login belongs to agentgate.** Don't keep using the original `~/.claude` or `~/.codex` login: its CLI would refresh the token and log agentgate out. `agentgate login` avoids this by using a throwaway directory.
312
267
  - **Secrets are stored in plain text** in `~/.config/agentgate/agentgate.db` (mode 0600) and copied to every paired node. Pair only machines you control. The relay only ever sees them encrypted.
313
- - **Terms of service.** Pool only your own accounts and keep a person driving the sessions; follow the providers’ applicable terms.
268
+ - **Terms of service.** Pool only your own accounts and keep a person driving the sessions; follow the providers' applicable terms.
314
269
 
315
270
  ## Development
316
271
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanskristoffer/agentpool",
3
- "version": "0.35.0",
3
+ "version": "0.37.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.35.0",
26
- "agentpool-darwin-x64": "0.35.0",
27
- "agentpool-linux-x64": "0.35.0",
28
- "agentpool-linux-arm64": "0.35.0"
25
+ "agentpool-darwin-arm64": "0.37.0",
26
+ "agentpool-darwin-x64": "0.37.0",
27
+ "agentpool-linux-x64": "0.37.0",
28
+ "agentpool-linux-arm64": "0.37.0"
29
29
  }
30
30
  }