@hanskristoffer/agentpool 0.28.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 +69 -16
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -4,7 +4,8 @@ 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
|
|
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.
|
|
8
9
|
|
|
9
10
|
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).
|
|
10
11
|
|
|
@@ -48,7 +49,7 @@ The first `service install` points the Claude Code, Codex and Cursor you already
|
|
|
48
49
|
|
|
49
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.
|
|
50
51
|
|
|
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. **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.
|
|
52
53
|
|
|
53
54
|
## A second machine (e.g. an always-on server)
|
|
54
55
|
|
|
@@ -57,17 +58,19 @@ There are two ways to connect machines, and a machine can use both:
|
|
|
57
58
|
- **Same network (Tailscale):** both machines are on your tailnet. Pairing uses a code that expires after 10 minutes.
|
|
58
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.
|
|
59
60
|
|
|
60
|
-
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`):
|
|
61
62
|
|
|
62
63
|
```sh
|
|
63
64
|
curl -fsSL https://raw.githubusercontent.com/HansKristoffer/agentgate/main/install.sh | AGENTGATE_NAME=srv sh -s -- join agr1.…
|
|
64
65
|
```
|
|
65
66
|
|
|
66
|
-
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.
|
|
67
68
|
|
|
68
69
|
The server now has every account, MCP instance and repo mapping, and takes over token refreshes.
|
|
69
70
|
|
|
70
|
-
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.
|
|
71
74
|
|
|
72
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.
|
|
73
76
|
|
|
@@ -77,12 +80,12 @@ To control the server from the native app over Tailscale, open the connection se
|
|
|
77
80
|
|
|
78
81
|
## Machine dashboard
|
|
79
82
|
|
|
80
|
-
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.
|
|
81
84
|
|
|
82
85
|
- It runs on Linux machines only, since it reads `/proc`. On a Mac, opening it only says so.
|
|
83
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.
|
|
84
87
|
- Turning it on waits until every machine runs this release, because older releases drop the setting when they save a machine's record.
|
|
85
|
-
- 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.
|
|
86
89
|
|
|
87
90
|
## T3 Code
|
|
88
91
|
|
|
@@ -116,6 +119,7 @@ agentgate threads # active threads on every machine
|
|
|
116
119
|
agentgate handoff <thread> # to the first available always-on machine
|
|
117
120
|
agentgate handoff <thread> --to here # bring a thread to the machine you are on
|
|
118
121
|
agentgate handoffs # recent handoffs, with step timings
|
|
122
|
+
agentgate handoffs cancel <id> # give up a handoff stuck waiting for the other machine
|
|
119
123
|
```
|
|
120
124
|
|
|
121
125
|
In the app, the **T3 Code** page shows every machine's threads with **To server** or **To here**. An agent can hand itself off with the `agentgate__handoff_thread` tool, which appears in sessions once T3 Code is connected.
|
|
@@ -129,6 +133,7 @@ What to expect:
|
|
|
129
133
|
- The first time a thread arrives on a machine, T3 Code fails the first message sent to it there. agentgate sends that message for you, asking the agent to reply "Ready", and sends it again when it fails, so your own first message works. A thread that was working then gets "Continue where you left off.", and messages you had queued are queued again behind it, in order. Background tasks such as a command watching a PR are stopped on the machine the thread leaves, and the agent is told which ones were running so it can start them again. Later trips to the same machine reuse the thread and skip this.
|
|
130
134
|
- A thread that comes back to a machine shows the messages it got on your other machines in the meantime. T3 Code cannot add them to a thread itself, so agentgate writes them into T3 Code's own database, which T3 Code does not support. If T3 Code misbehaves after a handoff, turn this off with `agentgate t3 history off` or **Show messages from other machines** on the T3 Code page: the thread then shows only what happened on that machine, and the agent still has the whole conversation. Threads that left a machine before this release come back without them.
|
|
131
135
|
- The first time a thread arrives on a machine, T3 Code's import also picks up other recent Claude sessions run in that project's main checkout, so threads that ran there can show up twice. Threads in worktrees are not affected, and later trips skip the import.
|
|
136
|
+
- A handoff that fails before the other machine has the thread leaves it where it was, and your queued messages are queued there again. One left waiting for a machine that went away can be cancelled with **Cancel** under **Recent handoffs** or `agentgate handoffs cancel <id>`. If that machine cannot be reached, it may already have the thread: check it before you carry on where you are.
|
|
132
137
|
- Through the relay, a handoff can move up to 512 MiB of code and session; the relay sees only encrypted data, its size and timing. Pair over Tailscale for larger repositories.
|
|
133
138
|
- Claude Code threads only. Attachments, including those on queued messages, and earlier turns' diffs stay behind.
|
|
134
139
|
- agentgate's T3 Code token lasts 30 days. `agentgate t3` and the app show when to pair again.
|
|
@@ -146,8 +151,8 @@ In the native app (MCP servers), paste a server's URL and a name and click **Con
|
|
|
146
151
|
From the CLI:
|
|
147
152
|
|
|
148
153
|
```sh
|
|
149
|
-
agentgate mcp add geysier https://app.geysier.com/api/mcp #
|
|
150
|
-
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
|
|
151
156
|
agentgate mcp add posthog-lullu posthog --header "x-posthog-project-id: 12345"
|
|
152
157
|
agentgate mcp add fs filesystem # presets: agentgate mcp presets
|
|
153
158
|
agentgate mcp add mytool --command "npx -y @some/mcp-server" [--per-session]
|
|
@@ -160,7 +165,7 @@ agentgate mcp test posthog-lullu
|
|
|
160
165
|
|
|
161
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.
|
|
162
167
|
|
|
163
|
-
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:
|
|
164
169
|
|
|
165
170
|
```sh
|
|
166
171
|
agentgate mcp tools railway get-logs list-deployments list-services # offer only these tools (none: every tool)
|
|
@@ -169,7 +174,7 @@ agentgate mcp limit railway 10000 [--tool get-logs] # cut long
|
|
|
169
174
|
agentgate mcp defaults railway get-logs '{"limit": 30}' # arguments a call gets unless the agent passes them
|
|
170
175
|
```
|
|
171
176
|
|
|
172
|
-
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.
|
|
173
178
|
|
|
174
179
|
## Skills per repo
|
|
175
180
|
|
|
@@ -200,13 +205,13 @@ Fetching needs Node (`npx`) or Bun (`bunx`) on the daemon's machine, and connect
|
|
|
200
205
|
|
|
201
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.
|
|
202
207
|
|
|
203
|
-
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).
|
|
204
209
|
|
|
205
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.
|
|
206
211
|
|
|
207
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.
|
|
208
213
|
|
|
209
|
-
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.
|
|
210
215
|
|
|
211
216
|
## Env files between machines
|
|
212
217
|
|
|
@@ -234,13 +239,61 @@ agentgate project set @grok linear=linear posthog=posthog-lullu
|
|
|
234
239
|
agentgate skills projects release-notes @grok
|
|
235
240
|
agentgate remote enable @grok # prints the URL and Authorization header
|
|
236
241
|
agentgate remote secret @grok # new secret, same URL
|
|
242
|
+
agentgate remote factory @grok on # also let Grok see and steer the software factory
|
|
243
|
+
agentgate remote webhook @grok https://bot.example/agentgate?token=… # tell Grok what waits for you
|
|
237
244
|
```
|
|
238
245
|
|
|
239
|
-
|
|
246
|
+
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.
|
|
247
|
+
|
|
248
|
+
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).
|
|
249
|
+
|
|
250
|
+
## Software factory
|
|
251
|
+
|
|
252
|
+
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.
|
|
253
|
+
|
|
254
|
+
Each item goes through these stages:
|
|
255
|
+
|
|
256
|
+
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.
|
|
257
|
+
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.
|
|
258
|
+
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.
|
|
259
|
+
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.
|
|
260
|
+
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.
|
|
261
|
+
|
|
262
|
+
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.
|
|
263
|
+
|
|
264
|
+
To start one:
|
|
265
|
+
|
|
266
|
+
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.
|
|
267
|
+
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.
|
|
268
|
+
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.
|
|
269
|
+
4. Label an issue with your source's label (`factory` for a folder `init` made). The factory looks every 2 minutes.
|
|
270
|
+
|
|
271
|
+
You act in three places:
|
|
272
|
+
|
|
273
|
+
- **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.
|
|
274
|
+
- **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.
|
|
275
|
+
- **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.
|
|
276
|
+
|
|
277
|
+
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.
|
|
278
|
+
|
|
279
|
+
```sh
|
|
280
|
+
agentgate factory init acme/api # a factory for one repository, on at once; off turns it off
|
|
281
|
+
agentgate factory status # the board: items, what waits for you, sources and webhook URLs
|
|
282
|
+
agentgate factory doctor # what the factory still needs, with the fix for each
|
|
283
|
+
printf %s "$LINEAR_KEY" | agentgate factory secret set LINEAR_KEY
|
|
284
|
+
agentgate factory approve api-42 --reason "keep the old field as an alias"
|
|
285
|
+
agentgate factory help # every factory command
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
Things to know:
|
|
289
|
+
|
|
290
|
+
- **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.
|
|
291
|
+
- **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.
|
|
292
|
+
- Every machine must run this release before you turn the factory on or set a factory secret, because older releases drop them.
|
|
240
293
|
|
|
241
294
|
## Commands
|
|
242
295
|
|
|
243
|
-
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`.
|
|
244
297
|
|
|
245
298
|
## Things to know
|
|
246
299
|
|
|
@@ -284,7 +337,7 @@ The app uses Tauri commands to send HTTP requests from Rust. It has no browser H
|
|
|
284
337
|
|
|
285
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.
|
|
286
339
|
|
|
287
|
-
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.
|
|
288
341
|
|
|
289
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.
|
|
290
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
|
}
|