@hanskristoffer/agentpool 0.33.0 → 0.35.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 +12 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ T3 Code's default Claude and Codex instances run your own Claude Code and Codex,
|
|
|
95
95
|
|
|
96
96
|
### Your own Claude Code and Codex
|
|
97
97
|
|
|
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 Claude Code login expires, run
|
|
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.
|
|
99
99
|
|
|
100
100
|
### Or: separate folders for T3 Code
|
|
101
101
|
|
|
@@ -213,6 +213,17 @@ Bundles must contain a nonempty root `SKILL.md`, with unique portable paths and
|
|
|
213
213
|
|
|
214
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.
|
|
215
215
|
|
|
216
|
+
### One AGENTS.md for every session
|
|
217
|
+
|
|
218
|
+
Instructions you want in every project, such as how you like commits written, go in one AGENTS.md that every machine shares. Each machine keeps it at `~/.config/agentgate/AGENTS.md`: open that file in any editor, and a save reaches your other machines within seconds. You can also edit it under **Skills → AGENTS.md**, from the command line, or by asking an agent, which reaches it through agentgate's `agents_md_read` and `agents_md_write` tools.
|
|
219
|
+
|
|
220
|
+
```sh
|
|
221
|
+
agentgate agents-md # where it is and what it says
|
|
222
|
+
agentgate agents-md set --file AGENTS.md # replace it everywhere; an empty file removes it
|
|
223
|
+
```
|
|
224
|
+
|
|
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.
|
|
226
|
+
|
|
216
227
|
## Env files between machines
|
|
217
228
|
|
|
218
229
|
Gitignored files such as `.env.local` or `apps/expo-app/.env` follow a repository to your other machines. If the repository uses [buncargo](https://github.com/HansKristoffer/buncargo), its file store (`~/.buncargo/files`) syncs on its own: save a file there with buncargo and every machine's store gets it. Otherwise, in a checkout run:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanskristoffer/agentpool",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.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.35.0",
|
|
26
|
+
"agentpool-darwin-x64": "0.35.0",
|
|
27
|
+
"agentpool-linux-x64": "0.35.0",
|
|
28
|
+
"agentpool-linux-arm64": "0.35.0"
|
|
29
29
|
}
|
|
30
30
|
}
|