findings / F1
F1 medium blocks Unknown command with --help prints root help and exits 0
Runs hit
11%
27/240 Runs of its Scenarios
Failed
2
of the Runs it hit
Agents
2/3
Agents it was seen with
Extra turns
1.0
per Run, at the median
Max gain
+0.6pt
upper bound
Status
no Baseline
against the Baseline
scenarios
balance-alert-script, create-key-env, create-launch-policy, export-failed-ops, extend-campaign, rotate-staging-key, rpc-errors-fixture-key, top-key-30d
by agent
claude-code:claude-opus-5.5 12 (0 failed) · codex:gpt-6.1-sol 0 (0 failed) · opencode:gemini-4-argon 15 (2 failed)
by context
name-only 12/120 10% · skill 15/120 13%
commands
account · api-key · api-keys · logs · policy · request · rpc-logs · sponsorship-policies · user-operations · user-ops
likely source
src/index.ts
signal fired
ghost_command in export-failed-ops/opencode-google-gemini-4-argon/skill/3 (ghost_command)
severity
medium Agents got the root help back instead of the subcommand help they asked for, so they could see something was off and usually found `ops`/`keys`/`policies` afterwards. The exit 0 hid the error and cost extra calls in 27 runs.
label
cli `--help` on a nonexistent command exits 0 and prints the root help instead of an unknown-command error, which hides that the command doesn't exist.
cause
`main()` in src/index.ts hands argv straight to Commander. When `--help`/`-h` is present, Commander shows help before it checks for an unknown subcommand, so `pimlico user-operations list --help` prints the root help instead of raising `commander.unknownCommand`. main() then treats `commander.helpDisplayed` as success and sets exit code 0, so the agent never learns that `user-operations`, `policy`, `api-keys`, `account` and the other names don't exist.
explanation
$0.10
link
—
merged from
—
groups
| signal | command | error |
|---|---|---|
| ghost_command | account | exited 0 |
| ghost_command | api-key | exited 0 |
| ghost_command | api-keys | exited 0 |
| ghost_command | logs | exited 0 |
| ghost_command | policy | exited 0 |
| ghost_command | request | exited 0 |
| ghost_command | rpc-logs | exited 0 |
| ghost_command | sponsorship-policies | exited 0 |
| ghost_command | user-operations | exited 0 |
| ghost_command | user-ops | exited 0 |
fix
Before `program.parseAsync`, walk the leading non-option words through the command tree. If a word doesn't match a command (or a subcommand inside a group), print `error: unknown command '<word>'` with a 'Did you mean …?' suggestion and exit 1 (or print a USAGE error envelope under --json), whether or not --help is present. Optionally add aliases for the names agents guessed: policy→policies, api-keys/api-key→keys, user-operations/user-ops→ops, logs/rpc-logs/request→requests.
TODAY
$ pimlico user-operations list --help pimlico 1.2.0
SUGGESTED
$ pimlico user-operations list --help error: unknown command 'user-operations' (Did you mean ops? User operation logs: pimlico ops --help) Run `pimlico --help` for all commands. (exit 1)
verify
unsnag run --scenario balance-alert-script,create-key-env,create-launch-policy,export-failed-ops,extend-campaign,rotate-staging-key,rpc-errors-fixture-key,top-key-30d --agent claude-code:anthropic/claude-opus-5.5,opencode:google/gemini-4-argon agent prompt
In src/index.ts, running `pimlico <nonexistent> --help` (e.g. `pimlico user-operations list --help`, `pimlico api-keys create --help`) prints the root help and exits 0. Commander shows help before it checks for unknown commands, and main() maps `commander.helpDisplayed` to exit 0. Fix it in main(): build the program, then before `program.parseAsync(argv)` walk the leading operands of argv.slice(2), skipping tokens that start with '-'. Start at the root `program` and check each operand against `cmd.commands` by name and alias. Stop when you reach a leaf command (one with no subcommands). If an operand doesn't match a subcommand of the current command, write `error: unknown command '<operand>'` to stderr, plus a 'Did you mean <closest>?' line. Use Commander's suggestion logic or a small edit-distance check over the sibling names, and add a hint line `Run \`pimlico --help\` for all commands.`. Under --json, instead write `{"error":{"code":"USAGE","message":...},"warnings":[]}` to stdout. Set process.exitCode = 1 and return. Do this whether or not --help/-h is present. Also register aliases on the commands built in buildProgram()/attach() for the names agents guessed: `policy` → `policies`, `api-keys` and `api-key` → `keys`, `user-operations` and `user-ops` → `ops`, `logs`, `rpc-logs` and `request` → `requests`. Hide the aliases from the root help layout in src/cli/help.ts. Add tests: `pimlico foo --help` exits 1 and stderr contains "unknown command 'foo'"; `pimlico keys bogus --help` exits 1; `pimlico ops --help` and `pimlico keys list --help` still exit 0 and show their own help; `pimlico policy list --help` shows the `policies list` help.Evidence export-failed-ops/opencode-google-gemini-4-argon/skill/3 · opencode:google/gemini-4-argon · skill · fail
| # | call | exit | ms | signal |
|---|---|---|---|---|
| 0 | $ pimlico user-operations list --help pimlico 1.2.0 Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain and Solana. An API key is required to call our bundler and paymaster; sponsorship policies are optional hardening that limits which operations you pay for, on which chains and up to what amount. Usage and billing are transparent: see what you used and what you owe with `pimlico usage` and `pimlico balance`. Usage pimlico <command> [options] Account login Log in to Pimlico in the browser logout Log out and forget the stored credentials whoami Show the logged-in account Billing & usage balance Credits, open invoices, unbilled usage and headroom invoices Stripe invoices for the account usage Requests, API credits and sponsored USD, EVM and Solana Debug op <userOpHash> Status and timeline of a user operation ops User operation logs with revert reason, policy and cost requests RPC request logs with the error of failed calls solana txs Sponsored and SPL-paid Solana transactions Configure keys list List API keys with last use and 30-day traffic keys get <name> Show one API key by name keys create Create an API key (the key is shown once) keys rename <name> Rename an API key keys disable <name> Disable an API key (cannot be re-enabled from the CLI) policies list List sponsorship policies policies get <id> Show one policy, including its effective caps policies create Create a sponsorship policy (active unless --inactive) policies update <id> Change a policy's name, chains, caps or window policies enable <id> Switch a policy on policies disable <id> Switch a policy off erc20 tokens Tokens accepted by the ERC-20 paymaster chains [… 904 more characters] | 0 | 126 | ghost_command F1 |
Runs hit 27
| run | scenario | agent | context | outcome | checks | turns | calls | nonzero | help | tok in | tok out | $ | wall | findings |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Run 1 | create-launch-policy | claude-code: | name-only | pass | 1/1 | 6 | 9 | 0 | 3 | 53568 | 916 | $0.06 | 20.1s | F1 |
| Run 1 | export-failed-ops | claude-code: | name-only | pass | 2/2 | 7 | 10 | 0 | 3 | 58293 | 2252 | $0.09 | 33.9s | F1 |
| Run 1 | export-failed-ops | opencode: | skill | fail 0 of 2 Checks passed | 0/2 | 8 | 5 | 0 | 2 | 204107 | 805 | $0.17 | 97.3s | F1 |
| Run 1 | extend-campaign | claude-code: | name-only | pass | 2/2 | 7 | 8 | 0 | 3 | 58751 | 1228 | $0.07 | 21.5s | F1 |
| Run 1 | top-key-30d | opencode: | skill | pass | 1/1 | 6 | 9 | 2 | 4 | 16347 | 663 | $0.03 | 52.2s | F1 |
| Run 2 | create-key-env | opencode: | skill | pass | 2/2 | 6 | 3 | 0 | 2 | 11924 | 238 | $0.03 | 58.4s | F1 |
| Run 2 | create-launch-policy | claude-code: | name-only | pass | 1/1 | 7 | 10 | 0 | 4 | 70059 | 1174 | $0.08 | 20.1s | F1 |
| Run 2 | export-failed-ops | opencode: | skill | pass | 2/2 | 17 | 11 | 0 | 2 | 787422 | 3315 | $0.29 | 196.2s | F1 |
| Run 2 | extend-campaign | claude-code: | name-only | pass | 2/2 | 6 | 8 | 0 | 3 | 48717 | 1067 | $0.06 | 23.2s | F1 |
| Run 2 | rpc-errors-fixture-key | opencode: | skill | pass | 1/1 | 5 | 7 | 1 | 2 | 15382 | 5123 | $0.08 | 81.0s | F1 |
| Run 3 | balance-alert-script | opencode: | skill | pass | 1/1 | 12 | 10 | 2 | 4 | 44847 | 1062 | $0.07 | 91.2s | F1 |
| Run 3 | create-launch-policy | claude-code: | name-only | pass | 1/1 | 6 | 10 | 0 | 4 | 55413 | 1127 | $0.07 | 25.2s | F1 |
| Run 3 | export-failed-ops | opencode: | skill | fail 0 of 2 Checks passed | 0/2 | 5 | 4 | 0 | 2 | 83052 | 371 | $0.16 | 94.8s | F1 |
| Run 3 | extend-campaign | claude-code: | name-only | pass | 2/2 | 6 | 7 | 0 | 3 | 48627 | 1127 | $0.06 | 19.4s | F1 |
| Run 3 | rotate-staging-key | opencode: | skill | pass | 3/3 | 7 | 10 | 1 | 4 | 22819 | 814 | $0.04 | 64.5s | F1 |
| Run 3 | rpc-errors-fixture-key | opencode: | skill | pass | 1/1 | 6 | 7 | 1 | 2 | 23848 | 3099 | $0.06 | 64.9s | F1 |
| Run 4 | create-launch-policy | claude-code: | name-only | pass | 1/1 | 6 | 9 | 0 | 3 | 51632 | 986 | $0.06 | 16.8s | F1 |
| Run 4 | export-failed-ops | opencode: | skill | pass | 2/2 | 19 | 13 | 0 | 2 | 1235700 | 3329 | $0.38 | 340.1s | F1 |
| Run 4 | extend-campaign | claude-code: | name-only | pass | 2/2 | 5 | 6 | 0 | 3 | 38751 | 901 | $0.05 | 16.4s | F1 |
| Run 4 | rotate-staging-key | opencode: | skill | pass | 3/3 | 8 | 9 | 1 | 3 | 22250 | 687 | $0.04 | 116.7s | F1 |
| Run 4 | rpc-errors-fixture-key | opencode: | skill | pass | 1/1 | 6 | 7 | 1 | 2 | 23434 | 3269 | $0.06 | 64.2s | F1 |
| Run 4 | top-key-30d | opencode: | skill | pass | 1/1 | 6 | 7 | 1 | 3 | 17304 | 604 | $0.03 | 54.0s | F1 |
| Run 5 | create-key-env | claude-code: | name-only | pass | 2/2 | 5 | 6 | 0 | 3 | 36476 | 996 | $0.05 | 17.7s | F1 |
| Run 5 | create-launch-policy | claude-code: | name-only | pass | 1/1 | 6 | 9 | 0 | 3 | 48151 | 1161 | $0.06 | 19.3s | F1 |
| Run 5 | export-failed-ops | opencode: | skill | pass | 2/2 | 19 | 13 | 0 | 3 | 842858 | 3511 | $0.31 | 230.3s | F1 |
| Run 5 | extend-campaign | claude-code: | name-only | pass | 2/2 | 5 | 7 | 0 | 3 | 35281 | 832 | $0.04 | 14.7s | F1 |
| Run 5 | rotate-staging-key | opencode: | skill | pass | 3/3 | 8 | 9 | 1 | 3 | 22350 | 724 | $0.04 | 63.1s | F1 |
Failing invocations
none
Nonexistent commands
| command | count |
|---|---|
| pimlico policy | 6 |
| pimlico api-keys | 5 |
| pimlico sponsorship-policies | 5 |
| pimlico user-operations | 4 |
| pimlico account | 3 |
| pimlico user-ops | 3 |
| pimlico api-key | 1 |
| pimlico logs | 1 |
| pimlico request | 1 |
| pimlico rpc-logs | 1 |