@hanskristoffer/agentpool 0.36.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.
- package/README.md +3 -52
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -4,8 +4,7 @@ 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
|
|
|
@@ -254,61 +253,13 @@ agentgate project set @grok linear=linear posthog=posthog-lullu
|
|
|
254
253
|
agentgate skills projects release-notes @grok
|
|
255
254
|
agentgate remote enable @grok # prints the URL and Authorization header
|
|
256
255
|
agentgate remote secret @grok # new secret, same URL
|
|
257
|
-
agentgate remote factory @grok on # also let Grok see and steer the software factory
|
|
258
|
-
agentgate remote webhook @grok https://bot.example/agentgate?token=… # tell Grok what waits for you
|
|
259
256
|
```
|
|
260
257
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
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).
|
|
264
|
-
|
|
265
|
-
## Software factory
|
|
266
|
-
|
|
267
|
-
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.
|
|
268
|
-
|
|
269
|
-
Each item goes through these stages:
|
|
270
|
-
|
|
271
|
-
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.
|
|
272
|
-
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.
|
|
273
|
-
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.
|
|
274
|
-
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.
|
|
275
|
-
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.
|
|
276
|
-
|
|
277
|
-
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.
|
|
278
|
-
|
|
279
|
-
To start one:
|
|
280
|
-
|
|
281
|
-
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.
|
|
282
|
-
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.
|
|
283
|
-
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.
|
|
284
|
-
4. Label an issue with your source's label (`factory` for a folder `init` made). The factory looks every 2 minutes.
|
|
285
|
-
|
|
286
|
-
You act in three places:
|
|
287
|
-
|
|
288
|
-
- **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.
|
|
289
|
-
- **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.
|
|
290
|
-
- **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.
|
|
291
|
-
|
|
292
|
-
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.
|
|
293
|
-
|
|
294
|
-
```sh
|
|
295
|
-
agentgate factory init acme/api # a factory for one repository, on at once; off turns it off
|
|
296
|
-
agentgate factory status # the board: items, what waits for you, sources and webhook URLs
|
|
297
|
-
agentgate factory doctor # what the factory still needs, with the fix for each
|
|
298
|
-
printf %s "$LINEAR_KEY" | agentgate factory secret set LINEAR_KEY
|
|
299
|
-
agentgate factory approve api-42 --reason "keep the old field as an alias"
|
|
300
|
-
agentgate factory help # every factory command
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
Things to know:
|
|
304
|
-
|
|
305
|
-
- **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.
|
|
306
|
-
- **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.
|
|
307
|
-
- 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).
|
|
308
259
|
|
|
309
260
|
## Commands
|
|
310
261
|
|
|
311
|
-
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`, `
|
|
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`.
|
|
312
263
|
|
|
313
264
|
## Things to know
|
|
314
265
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanskristoffer/agentpool",
|
|
3
|
-
"version": "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.
|
|
26
|
-
"agentpool-darwin-x64": "0.
|
|
27
|
-
"agentpool-linux-x64": "0.
|
|
28
|
-
"agentpool-linux-arm64": "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
|
}
|