agent-shim 11.83.3 → 11.83.4

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 CHANGED
@@ -79,138 +79,13 @@ The full mechanics, including the credential block, the merge algorithm, conditi
79
79
 
80
80
  ## CLI reference
81
81
 
82
- ```
83
- agent-shim <noun> <verb> [name] [options] # nouns: identity, profile, pool, provider, rule, job
84
-
85
- agent-shim identity add <name> [--keep-keychain-login] [--json] # on macOS refused while the Keychain holds a Claude Code login filed for the directory (left by a renamed or removed identity of that name); --keep-keychain-login creates the identity signed in as that account on purpose, sharing the login with any identity that holds it
86
- agent-shim identity list [--json]
87
- agent-shim identity show <name> [--json]
88
- agent-shim identity set <name> [--label <text> | --no-label] [--default-profile <profile> | --no-default-profile] [--provider <provider> | --no-provider] [--[no-]allow-ambient-credential] [--json]
89
- agent-shim identity set <name> [--credential <source>]... [--credential-target <bearer|apiKey|oauthToken>] [--no-credential] [--json]
90
- agent-shim identity set <name> [--anchor <days>@<HH:MM>[/<zone>]]... [--no-anchor] [--json]
91
- agent-shim identity remove <name> [--yes] [--json]
92
- agent-shim identity rename <old> <new> [--dry-run | --discard-journal] [--json] # move the directory, carry the login across (a macOS login too large for one `security -i` line is refused with nothing changed) and rewrite every reference to the name; refused while a session is running or starting on the identity, one left unfinished is finished by running it again, and --discard-journal removes the record of one whose identity is under neither name or under both, or under the old name alone with no step recorded as begun or done
93
- agent-shim identity use <name> [--json]
94
- agent-shim @<name> # shorthand for `identity use <name>`
95
- agent-shim identity resolve-conflicts <name> # interactively resolve a retained superseded farm's conflicts
96
-
97
- agent-shim profile add [name] [--extends <profile>]... [--description <text>] # interactive with no options on a terminal [--json]
98
- agent-shim profile set <name> [--category <category>=<bool>]... [--entry <category>/<path>=<bool>]... [--json]
99
- agent-shim profile set <name> [--extends <profile>]... [--no-extends] [--description <text> | --no-description] [--json]
100
- agent-shim profile set <name> [--[no-]launch-skip-permissions] [--[no-]launch-remote-control] [--[no-]launch-headroom] [--[no-]launch-track-usage]
101
- agent-shim profile set <name> [--launch-claude-version <version> | --no-launch-claude-version] [--json] [--json]
102
- agent-shim profile set <name> [--launch-delay <duration> | --no-launch-delay] [--[no-]launch-pause] [--[no-]launch-explain] [--launch-proxy-bypass <host>... | --no-launch-proxy-bypass] [--json]
103
- agent-shim profile set <name> [--statusline <setting>=<value>]... [--unset-statusline <setting>]...
104
- agent-shim profile set <name> [--launch-provider <provider> | --no-launch-provider] [--json]
105
- agent-shim profile list [--json]
106
- agent-shim profile show <name> [--json]
107
- agent-shim profile remove <name> [--yes] [--json]
108
- agent-shim profile use <name> # the global default configuration profile [--json]
109
-
110
- agent-shim job add <name> (--identity <name> | --pool <name>) (--at <spec>... | --before-reset <fiveHour|sevenDay> --lead <duration>) --prompt <text> --timeout <duration> [--cwd <dir>] [--model <model>] [--allowed-tool <tool>]... [--json]
111
- agent-shim job list|show|remove|run [name]
112
-
113
- agent-shim pool add <name> --identity <member>... [--preference <score|listed>] [--resume-on-limit] [--compact-before-limit] [--compact-at-utilisation <percent>] [--json]
114
- agent-shim pool set <name> [--identity <member>...] [--preference <score|listed> | --no-preference] [--resume-on-limit | --no-resume-on-limit] [--compact-before-limit | --no-compact-before-limit] [--compact-at-utilisation <percent> | --no-compact-at-utilisation] [--json]
115
- agent-shim pool list [--json]
116
- agent-shim pool show <name> [--json]
117
- agent-shim pool remove <name> [--yes] [--json]
118
- agent-shim pool use <name> [--json]
119
- agent-shim pool pick <name> [--json]
120
-
121
- agent-shim provider add <name> --display-name <name> (--base-url <url> | --kind codex) (--credential <source>)... [--credential-target <bearer|apiKey>] [--env KEY=VALUE]... [--json]
122
- [--codex-default-model <model>] [--codex-model <tier=model>]... [--codex-effort <none|low|medium|high>] [--codex-login <codex-cli|chatgpt-sign-in>]
123
- agent-shim provider set <name> [--display-name <name>] ([--base-url <url>] | --kind codex) [--credential <source>]... [--credential-target <bearer|apiKey>] [--env KEY=VALUE]... [--unset-env KEY]... [--json]
124
- [--codex-default-model <model>] [--codex-model <tier=model>]... [--codex-effort <none|low|medium|high>] [--codex-login <codex-cli|chatgpt-sign-in>]
125
- agent-shim provider add|set <name> [--picker-model <model=tier>]... # models /model lists beside the tier models; set also takes [--unset-picker-model <model>]...
126
- agent-shim provider add|set <name> [--catalogue-tier <tier>] [--catalogue-include <glob>]... [--catalogue-exclude <glob>]... [--catalogue-url <url>] # http providers: list the provider's own catalogue in /model; set also takes [--unset-catalogue]
127
- agent-shim provider models <name> [--refresh] [--json] # the catalogue last fetched, and which of its models /model lists
128
- agent-shim provider list [--json]
129
- agent-shim provider show <name> [--json]
130
- agent-shim model match [--json] # which model names are the same model across providers
131
- agent-shim model add <name> --mode <mode> --member <ref>... # define a virtual model
132
- agent-shim model set <name> [--mode <mode>] [--member <ref>]...
133
- agent-shim model remove <name> [--yes]
134
- agent-shim model tier <tier> --ref <ref> | --clear
135
- agent-shim model price <ref> --input <usd> --output <usd> | --clear
136
- agent-shim model same <ref> <ref>... # assert these refs are one model under several names
137
- agent-shim model distinct <left> <right> # assert two alike names are two models
138
- agent-shim model unassert <ref>
139
- agent-shim model family <key> [--mode <mode>] [--name <ref>]... [--context <tokens>] [--[no-]vision|tools|thinking] | --clear
140
- agent-shim model list [--json]
141
- agent-shim model explain <name> # which member the virtual model's mode picks now, and why
142
- agent-shim provider remove <name> [--yes] [--json]
143
- agent-shim provider rename <old> <new> [--json] # the old name stays an alias, so sessions already running under it keep being served
144
- agent-shim provider unalias <alias> [--json] # forget a former name once no session launched under it is running
145
-
146
- agent-shim rule add <path> [--config-profile <profile>] [--identity <identity>] [--json]
147
- agent-shim rule set <path> [--config-profile <profile> | --no-config-profile] [--identity <identity> | --no-identity] [--json]
148
- agent-shim rule list [--json]
149
- agent-shim rule show <path> [--json]
150
- agent-shim rule remove <path> [--yes] [--json]
151
-
152
- agent-shim configure [path] [--identity <identity>]
153
- agent-shim check [path] [--identity <identity>] [--json] [--strict]
154
- agent-shim doctor [--json]
155
- agent-shim headroom status [--json]
156
- agent-shim headroom enable|disable [--session <id>] [--now] [--json] # which sessions go through headroom, live; applied at each session's next cache boundary unless --now
157
- agent-shim codex status [--json]
158
- agent-shim codex login [--no-open] [--json] # Sign in with ChatGPT, for providers with `codex.login: chatgpt-sign-in`
159
- agent-shim codex logout [--json]
160
- agent-shim frontdoor status [--json] # also probes the serving door's two listeners and reports whether each accepted
161
- agent-shim frontdoor restart [--json] # replace the serving door in place; running sessions reach it on their next request
162
- agent-shim frontdoor rc list [--json]
163
- agent-shim frontdoor rc status [<cse_id>] [--json]
164
- agent-shim frontdoor rc pending [<cse_id>] [--json]
165
- agent-shim frontdoor rc send --session <cse_id> --text <text> [--json]
166
- agent-shim frontdoor rc answer --session <cse_id> --request <id> --approve | --deny [--text <text>] [--json]
167
- agent-shim frontdoor rc interrupt --session <cse_id> [--json]
168
- agent-shim frontdoor rc set-model --session <cse_id> --model <model> [--json]
169
- agent-shim frontdoor rc set-permission-mode --session <cse_id> --mode <mode> [--json]
170
- agent-shim frontdoor rc end-session --session <cse_id> [--reason <text>] [--json]
171
- agent-shim frontdoor rc get-usage --session <cse_id> [--skip-behaviors] [--json]
172
- agent-shim frontdoor rc get-context-usage --session <cse_id> [--detail <summary|full>] [--json]
173
- agent-shim frontdoor rc read-file --session <cse_id> --path <path> [--max-bytes <n>] [--encoding <utf-8|base64>] [--json]
174
- agent-shim frontdoor rc file-suggestions --session <cse_id> --query <prefix> [--json]
175
- agent-shim frontdoor rc keep-alive --session <cse_id> [--json]
176
- agent-shim frontdoor rc mcp-status --session <cse_id> [--json]
177
- agent-shim frontdoor rc mcp-reconnect --session <cse_id> --server <name> [--json]
178
- agent-shim frontdoor rc mcp-authenticate --session <cse_id> --server <name> --redirect-uri <uri> [--json]
179
- agent-shim frontdoor rc mcp-oauth-callback-url --session <cse_id> --server <name> --callback-url <url> [--json]
180
- agent-shim frontdoor rc watch [<cse_id>] [--json]
181
- agent-shim frontdoor rc selfhost mint <identity> [--force] [--json]
182
- agent-shim statusline keys [--json] # every statusline setting with its kind, default (if it has one) and meaning
183
- agent-shim statusline # serve as a statusline entrypoint: enrich the client's stdin payload with the identity's live provider, account and usage windows, then delegate to $AGENT_SHIM_STATUSLINE_CMD or render the built-in line
184
- agent-shim usage [--identity <name>] [--provider <name>] [--since <duration>] [--refresh] [--json]
185
- agent-shim session list [--identity <name>] [--all] [--json] # sessions that spawned agents or ran workflows, from the transcripts on disk
186
- agent-shim session show <session> [--identity <name>] [--json] # one session's subagents, forks, workflow agents, tasks and workflow runs
187
- agent-shim account show [<identity>] [--refresh] [--json]
188
- agent-shim mcp [--allow-writes] [--allow-remote-control] [--allow-history] # serve the door's typed API as MCP tools on stdio; read-only without the flags
189
- agent-shim mcp permissions show [--json] # what the stored file allows
190
- agent-shim mcp permissions allow|deny <writes|remote-control|history> # change it; a running server follows on its next request, with no restart
191
- agent-shim update [--check] [--restart-door] [--mode <off|notify|auto>] [--json]
192
- agent-shim completion <bash|zsh|fish>
193
- agent-shim shim enable [--dir <path>] [--force]
194
- agent-shim shim disable [--dir <path>] [--force]
195
-
196
- agent-shim run [@<identity>] [launch flags] [claude arguments]
197
- # launch flags, recognised only before a `--` terminator:
198
- # --identity <name> --config-profile <name> --provider <name> | --no-provider
199
- # --category <category>=<bool> --share <category>/<path> --hide <category>/<path> (each repeatable)
200
- # --[no-]skip-permissions --[no-]remote-control --[no-]headroom --[no-]track-usage --[no-]wait
201
- # --claude-version <version> run exactly this installed Claude Code version
202
- # --delay <duration> wait this long after the launcher's own output before starting claude; --[no-]pause waits for a key press instead
203
- # --[no-]explain with @pool:<name>, list every member the pick ranked and why, not only the one picked
204
- # --[no-]pick on a terminal, ask which identity to run as, even when one resolved (--no-pick never asks); a launch also asks by itself when no identity resolves, a pool pick would change account or organisation, or the identity is refused right now
205
- # --native run the real claude with nothing from agent-shim applied; cannot be combined with the flags above
206
- claude @<identity> ... # the same, once `agent-shim shim enable` has run
207
- ```
82
+ Every command is `agent-shim <noun> <verb> [name] [options]`, over the nouns `identity`, `profile`, `pool`, `provider`, `model`, `rule` and `job`, plus the top-level `run`, `configure`, `check`, `doctor`, `usage`, `update` and the others; `claude @<identity>` is the same as `agent-shim run @<identity>` once `agent-shim shim enable` has run. The full list of commands with every flag is in [docs/cli-reference.md](docs/cli-reference.md#full-command-list), and `agent-shim --help` and `agent-shim <noun> --help` print it from the installed version.
208
83
 
209
84
  Every `list`, `show`, `check`, `doctor` and `headroom status` prints text by default and JSON with `--json`, and so do the mutating commands (`add`, `set`, `remove` and `use` on identities, profiles, providers, pools and rules), which print one object naming the `action`, the `kind`, the `name` and, for a creation or update, the stored `value`. `identity rename` prints its report of what it moved and rewrote as the `value`, with the `action` `planned` under `--dry-run`. Prompts appear only when standard input is a terminal; without one, a command that needs input fails with the option that supplies it (a `remove` needs `--yes`). Failures print as `agent-shim: <message>` and exit 1, usage errors exit 2, a selected provider or identity whose credential block yields no token exits 64, and `AGENT_SHIM_DEBUG=1` adds stack traces to unexpected errors. `agent-shim completion <bash|zsh|fish>` prints a shell completion script.
210
85
 
211
86
  `agent-shim check [path]` resolves the full cascade for a directory without touching the farm, and is the primary way to answer "why is X shared or hidden here". `agent-shim doctor` audits the whole `~/.agent-shim` config graph at once: every identity, profile, `extends` chain, provider (naming the exact replacement for a file still in the format before the credential block) and directory rule, plus whether the right `agent-shim` is the one actually on `PATH`.
212
87
 
213
- The full per-setting flag and environment-variable table (global, one-off, and directory-scoped forms of every setting), and the file-precedence rules `configure` uses when writing a toggle, are in [docs/cli-reference.md](docs/cli-reference.md).
88
+ The per-setting flag and environment-variable table (global, one-off, and directory-scoped forms of every setting) and the file-precedence rules `configure` uses when writing a toggle are in the same [docs/cli-reference.md](docs/cli-reference.md).
214
89
 
215
90
  ## Architecture
216
91
 
package/dist/cli.cjs CHANGED
@@ -39981,7 +39981,7 @@ var init_package = __esm({
39981
39981
  "package.json"() {
39982
39982
  package_default = {
39983
39983
  name: "agent-shim",
39984
- version: "11.83.3",
39984
+ version: "11.83.4",
39985
39985
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
39986
39986
  license: "MIT",
39987
39987
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/dist/index.cjs CHANGED
@@ -4848,7 +4848,7 @@ var init_package = __esm({
4848
4848
  "package.json"() {
4849
4849
  package_default = {
4850
4850
  name: "agent-shim",
4851
- version: "11.83.3",
4851
+ version: "11.83.4",
4852
4852
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
4853
4853
  license: "MIT",
4854
4854
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/dist/index.mjs CHANGED
@@ -4824,7 +4824,7 @@ var init_package = __esm({
4824
4824
  "package.json"() {
4825
4825
  package_default = {
4826
4826
  name: "agent-shim",
4827
- version: "11.83.3",
4827
+ version: "11.83.4",
4828
4828
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
4829
4829
  license: "MIT",
4830
4830
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-shim",
3
- "version": "11.83.3",
3
+ "version": "11.83.4",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",