unsnag pimlico 1.2.0 · 7bff655a7e58 dirty
· 32m 29s mock
known gaps of mock: usage and key activity have no 1-2 hour aggregation lag; month-to-date metered units behind balance are fixed values; no rate limiting
runs / export-failed-ops/opencode-google-gemini-4-argon/skill/3 · ← prev next →

export-failed-ops/opencode-google-gemini-4-argon/skill/3 · fail

Outcome
fail
0/2 Checks passed
Turns
5
model turns
CLI calls
4
0 exited non-zero
Help lookups
2
reads of the CLI's help
Tokens in
83052
2633 of them cached
Tokens out
371
written by the model
Cost
$0.16
of the model calls
Wall time
94.8s
from start to the Checks
scenario
export-failed-ops
agent
opencode:google/gemini-4-argon · 2.2.7
context
skill
repeat
3 · cell ✗✓✗✓✓
findings
F1
provider
Google AI Studio

checks

#checkresultdetailsignal
1
test -f /work/failed-ops.csv
failexited 1check_fail_all_exit0 dismissed
2
set -euo pipefail
# One row per failed operation: every true hash is there, and as many
# rows hold a hash as there are failed operations.
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r '.failedOps["7d"].hashes[]' > /root/failed.txt
missing=$(while read -r hash; do grep -qiF "$hash" /work/failed-ops.csv || echo "$hash"; done < /root/failed.txt | wc -l)
rows=$(grep -cE '0x[0-9a-fA-F]{64}' /work/failed-ops.csv)
echo "missing $missing, rows $rows, expected $(wc -l < /root/failed.txt)"
test "$missing" -eq 0 && test "$rows" -eq "$(wc -l < /root/failed.txt)"
failexited 2
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file or directory
grep: /work/failed-ops.csv: No such file o
[… 2010 more characters]

reproduce

unsnag run --scenario export-failed-ops --agent opencode:google/gemini-4-argon --context skill --runs 1

Transcript highlighted = a Signal fired

#actorcontentexitsignal
0user
You have the `pimlico` CLI available.

Export every user operation that failed in the last 7 days to failed-ops.csv, one row per operation.
1agent
[skill] {"id":"pimlico"}
<skill_content name="pimlico">
# Skill: pimlico

# The `pimlico` CLI

`pimlico` reads and changes the Pimlico account the user is logged in to. Every
command takes `--json`, which prints one JSON object (errors too, as
`{"error": {...}}` on stdout). Prefer `--json` when you parse output.

Exit codes: `0` ok, `1` error, `2` a threshold was breached (`balance --below`),
`3` not logged in, `75` the API is unavailable or rate-limited. On exit 3, run
`pimlico login --no-wait --json`, show the user the `url` and `code`, then call
`pimlico login --wait --json` in the same turn until `status` is not `pending`.

## Commands

| Task | Command |
| --- | --- |
| Who am I logged in as | `pimlico whoami` |
| Credits, open invoices, runway | `pimlico balance` (`--below <usd>` exits 2 under it) |
| Invoices | `pimlico invoices` (`--open` for unpaid only) |
| Traffic and spend | `pimlico usage --last 24h\|7d\|30d --group chain\|key\|day [--key <name>]` |
| One user operation | `pimlico op <userOpHash> [--chain <id>]` |
| User operation logs | `pimlico ops [--key <name>] [--chain <id>] [--status <status>] [--last 24h\|7d\|30d]` |
| RPC request logs | `pimlico requests [--key <name>] [--method <rpc method>] [--status success\|error] [--bodies]` |
| Supported chains | `pimlico chains [--mainnet\|--testnet]` (no login needed) |
| ERC-20 paymaster tokens | `pimlico erc20 tokens [--chain <id>]` |
| API keys | `pimlico keys list [--all]`, `keys get <name>`, `keys create --name <n>`, `keys rename <name> --to <n>`, `keys disable <name>` |
| Sponsorship policies | `pimlico policies list`, `policies get <sp_id>`, `policies create --name <n> …`, `policies update <sp_id> …`, `policies enable\|disable <sp_id>` |

Run `pimlico <command> --help` for every flag.

## Things to know

- **Policies are addressed by id**, not name: find the `sp_…` id with
  `pimlico policies list` first. Policy amounts are in USD
  (`--budget-usd`, `--per-user-usd`, `--per-op-usd`); `--chains` takes
  comma-separated cha
[… 1296 more characters]
2agent
$ 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]
$ ls -la /work
total 16
drwxr-xr-x 1 agent agent 4096 Nov 16 23:23 .
drwxr-xr-x 1 root  root  4096 Nov 16 23:23 ..
drwxrwxrwx 3 agent agent 4096 Nov 16 23:23 .agents
drwxrwxrwx 8 agent agent 4096 Nov 16 23:23 .git
3agent
$ pimlico ops --help
Usage: pimlico ops [options]

User operation logs of your API keys, newest first, with revert reason, policy
and cost. Operations rejected on submission (validation errors such as AA24)
never become operations: find them with `pimlico requests --method
eth_sendUserOperation --status error`

Options:
  --key <name>       Only this API key, by name (see `pimlico keys list`); every
                     active key when omitted
  --chain <chainId>  Only this EVM chain
  --status <status>  Only operations whose latest status is this (choices:
                     "received", "failed_validation", "queued",
                     "added_to_mempool", "submitted", "dropped",
                     "included_onchain", "frontran_onchain", "failed_onchain",
                     "execution_reverted_onchain")
  --last <window>    Only records from the last 24h, 7d or 30d (choices: "24h",
                     "7d", "30d", default: "24h")
  --limit <n>        Records per page, 1 to 100 (default: 50)
  --cursor <cursor>  Continue from a previous page's nextCursor
  --all              Walk every page until exhausted or --max; with --json
                     prints NDJSON
  --max <n>          Stop --all after this many records (default: 1000)
  --csv              Print CSV instead of a table
  -h, --help         display help for command
4agent
**Inspecting Operation Commands**

I'm now diving into the `pimlico ops` command-line tool. I'm focusing on the available options and thinking about how to best inspect the operations within a specific timeframe. The `--last` parameter seems particularly useful, along with `--all` to get a comprehensive view. I'm leaning toward using either `--json` or `--csv` for output, to streamline further analysis of the data. I'm going to investigate operations from the last 7 days.
$ pimlico ops --last 7d --all --csv
2026-11-11T23:09:25.543Z,8453,included_onchain,0x6ff6ee216b553f7754cd8b55cc02cb15ee43331ce5cb30ed0222e53d872629b2,0x4b8b1f20f750f32f3d0f516d49b5f9868a3d6d7f,0x7c9f9ccfb518e425c240a55e911cc4fb8278886bb5871cc1e24451ae7b59acbf,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,,sp_breezy_archangel,0.044000,mobile-app
2026-11-11T23:04:59.602Z,84532,execution_reverted_onchain,0x7f8c4e68a9fc19cc98ab065e7b471e57c11fe67248a36eb0fa3653da9c3b3b85,0x9d0f2719e7f0a1719e76f3df53ee2e45134d0e8d,0x387a8abd55da5869391176b86703adce814c4c94c08d52548a756bda9127bb7c,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,execution reverted,sp_amused_arclight,0.022000,fixture-key
2026-11-11T22:47:59.193Z,8453,included_onchain,0x03901419d8f59cb0287d9414dd779543b693408ab3d4fc2be9a6fe34884622b0,0xa1541bb3dcdf140996c4ec82d7d63ac9b2931a58,0x8fb632b4dde1067eb5de0a2d625a04adf3d8edc2087388d93bec77a2de3e465b,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,,sp_breezy_archangel,0.055000,mobile-app
2026-11-11T22:28:07.934Z,42161,included_onchain,0xf0157ba5bddbd3f50dee79df1a4bdd9981e6d533b48867dec1cf81910687f446,0xbee51ccb71fd291605fbd9df7ed201329cfb892c,0x54764f44fd685058204f356d537df1ed3cd150fd47ac6c2b35367ec8058871eb,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,,sp_brave_banshee,0.066000,production-web
2026-11-11T22:27:16.258Z,8453,included_onchain,0x9f862e0be4085989e242f6e757353c8e8bbcc22f5e31252b27e5101976f6a999,0x65336995a70cf0df83259c7286adfaefa8f050c7,0x7418bbc2d1c926a64fb6e7b76441fee48767856a78c5aece896ef2c455a192fe,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,,sp_brave_banshee,0.033000,production-web
2026-11-11T21:35:57.463Z,10,included_onchain,0xf84f0209a5d546205bb7fc2b39c09cd069e6fe902d66c3ca5456324d124c134f,0x7056ba1c309bcb1d56abc11668431e14e158719f,0xb3be64cbb57ab93c13bfc414a833db098f734e77f3e975db74e96164bfa0c669,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,,sp_brave_banshee,0.033000,production-web
2026-11-11T21:34:15.768Z,8453,included_onchain,0x5e299434832b29ae67232df45886ac305396
[… 49173 more characters]
$ pimlico ops --last 7d --all --json
{"userOpHash":"0xa9729138baa17726366d8c0211a535e9aa89e8943b690eeed83804dcb0632da4","chainId":8453,"status":"included_onchain","pending":false,"transactionHash":"0xd28fe46778c41ac4e94d59b262eb024d09820d9a3869ae9fb0f7bf7ab3023177","entryPoint":"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789","sender":"0xe318b1c3170665615011126a3ee889658d45ee00","revertReason":null,"policy":"sp_breezy_archangel","costUsd":"0.066000","key":"mobile-app","createdAt":"2026-11-11T06:21:47.118Z"}
{"userOpHash":"0x9d9c91927a4af822a73bb65c8d657b36e9c57ae1ece246feab799525ebd9d8cb","chainId":8453,"status":"included_onchain","pending":false,"transactionHash":"0x2beefe5da8b420bcd3a5dd8154e4f9f22309bb3f64502acbb193ddb0abacb187","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xcaef9fa0001d306b68e5941f1d7f86bd5d92fbc2","revertReason":null,"policy":"sp_brave_banshee","costUsd":"0.055000","key":"production-web","createdAt":"2026-11-11T06:13:33.782Z"}
{"userOpHash":"0x4ef682ad05eaf6b53d31fb016cf30ab472fbf38bbb5a88cdc794dd9d8470c109","chainId":8453,"status":"included_onchain","pending":false,"transactionHash":"0x0647636b0265f15eff320051c71de54443035f66745bdc5b789a3b4033a3540b","entryPoint":"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789","sender":"0xfc1ab07483b6219b007dd8233209bbed81d263f0","revertReason":null,"policy":"sp_breezy_archangel","costUsd":"0.022000","key":"mobile-app","createdAt":"2026-11-11T05:53:50.958Z"}
{"userOpHash":"0xdca8a6b4357d691e1daab3acf330e1544a81d49042d55925d1aaa1332732ea49","chainId":42161,"status":"included_onchain","pending":false,"transactionHash":"0x964a6436ec68fbeb34a55c0d81ce7a5ca04528603da3049587373524f19f71d0","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x5ab26874eb107772cbdc115841c4ff76ff7e3a8c","revertReason":null,"policy":"sp_brave_banshee","costUsd":"0.088000","key":"production-web","createdAt":"2026-11-11T05:49:34.352Z"}
{"userOpHash":"0x8e6b11191079189f6c6076a8e0103646c88a3f180520a1a1334deaf751db58e9","chainId":10,"status":"inc
[… 49028 more characters]
5agent
}

Target CLI calls

#callexitmssignal
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]
0126ghost_command F1
1
$ pimlico ops --help
Usage: pimlico ops [options]

User operation logs of your API keys, newest first, with revert reason, policy
and cost. Operations rejected on submission (validation errors such as AA24)
never become operations: find them with `pimlico requests --method
eth_sendUserOperation --status error`

Options:
  --key <name>       Only this API key, by name (see `pimlico keys list`); every
                     active key when omitted
  --chain <chainId>  Only this EVM chain
  --status <status>  Only operations whose latest status is this (choices:
                     "received", "failed_validation", "queued",
                     "added_to_mempool", "submitted", "dropped",
                     "included_onchain", "frontran_onchain", "failed_onchain",
                     "execution_reverted_onchain")
  --last <window>    Only records from the last 24h, 7d or 30d (choices: "24h",
                     "7d", "30d", default: "24h")
  --limit <n>        Records per page, 1 to 100 (default: 50)
  --cursor <cursor>  Continue from a previous page's nextCursor
  --all              Walk every page until exhausted or --max; with --json
                     prints NDJSON
  --max <n>          Stop --all after this many records (default: 1000)
  --csv              Print CSV instead of a table
  -h, --help         display help for command
0189
2
$ pimlico ops --last 7d --all --csv
createdAt,chainId,status,userOpHash,sender,transactionHash,entryPoint,pending,revertReason,policy,costUsd,key
2026-11-16T23:22:49.598Z,8453,added_to_mempool,0x8497fe299408a4fa09991e98340e4aeea7b5dc3f0f1315b06debafec4e672e32,0x13f5794d5d1302332ee9a10aaaadb6bd6d20ea54,,0x0000000071727De22E5E9d8BAf0edAc6f37da032,true,,sp_brave_banshee,,production-web
2026-11-16T23:20:04.033Z,42161,added_to_mempool,0xa28c8a8bd1b819283d12ded571613c5506a719dc36b924483bf99f11adeb3dce,0xe408e454496404967a895b0b9e280100a54fb190,,0x0000000071727De22E5E9d8BAf0edAc6f37da032,true,,sp_brave_banshee,,production-web
2026-11-16T23:19:50.505Z,84532,added_to_mempool,0xd5184662105a43f0dd8fd4249e9d1f49bf1e34435a5bd955248d28a8ffbb5165,0x0b9f075fc4919611621314041c022249dd4eaeff,,0x0000000071727De22E5E9d8BAf0edAc6f37da032,true,,sp_amused_arclight,,fixture-key
2026-11-16T22:57:33.119Z,10,included_onchain,0x0f5656ee42a86ffd7715626ee1aaaf3673aa94d6341e0248760054182df2fe47,0xbee51ccb71fd291605fbd9df7ed201329cfb892c,0xc41c1533c437ffc35dae561b22dce2195bd8be2f9772f92ddf33159cc3dfd347,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,,sp_brave_banshee,0.044000,production-web
2026-11-16T22:26:22.655Z,42161,included_onchain,0xfc1dd86ea8b188d10e7e97976ec3916bbc1617c88f1a42ff058766be541a9d9a,0xb2d65d63a71218ee93edd843c4d8a762630895bc,0x259ef75ecd8bcb2d5ee074fea45874af5bbf34f53dbacb0d00a66c3a98a267ac,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,,sp_brave_banshee,0.077000,production-web
2026-11-16T22:24:25.731Z,8453,included_onchain,0xa6b6f32de6b62ed7b31a97c463a5da4e2121c4558c5e7c52a24a735859ad8770,0xefe5b13ad10401b81f693ddc28e160ff7a017047,0x8f614b11aad637360e6ee7d430fb2f803d3747ad2022a5522498103056580840,0x0000000071727De22E5E9d8BAf0edAc6f37da032,false,,sp_brave_banshee,0.033000,production-web
2026-11-16T22:20:47.339Z,8453,included_onchain,0x549288ba7616ba569c5f45d08d672d6860febc779c49b879aa8825aaccf6752d,0x31441b45b502e3eccb8ca2ee2dce0289f65867d7,0x109f72c4a13d0415716873b8951b7ea60daa2c4b89057979956321f570ce8fb7,0
[… 188347 more characters]
600 records in 12 pages
02231
3
$ pimlico ops --last 7d --all --json
{"userOpHash":"0x8497fe299408a4fa09991e98340e4aeea7b5dc3f0f1315b06debafec4e672e32","chainId":8453,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x13f5794d5d1302332ee9a10aaaadb6bd6d20ea54","revertReason":null,"policy":"sp_brave_banshee","costUsd":null,"key":"production-web","createdAt":"2026-11-16T23:22:49.598Z"}
{"userOpHash":"0xa28c8a8bd1b819283d12ded571613c5506a719dc36b924483bf99f11adeb3dce","chainId":42161,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xe408e454496404967a895b0b9e280100a54fb190","revertReason":null,"policy":"sp_brave_banshee","costUsd":null,"key":"production-web","createdAt":"2026-11-16T23:20:04.033Z"}
{"userOpHash":"0xd5184662105a43f0dd8fd4249e9d1f49bf1e34435a5bd955248d28a8ffbb5165","chainId":84532,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x0b9f075fc4919611621314041c022249dd4eaeff","revertReason":null,"policy":"sp_amused_arclight","costUsd":null,"key":"fixture-key","createdAt":"2026-11-16T23:19:50.505Z"}
{"userOpHash":"0x0f5656ee42a86ffd7715626ee1aaaf3673aa94d6341e0248760054182df2fe47","chainId":10,"status":"included_onchain","pending":false,"transactionHash":"0xc41c1533c437ffc35dae561b22dce2195bd8be2f9772f92ddf33159cc3dfd347","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xbee51ccb71fd291605fbd9df7ed201329cfb892c","revertReason":null,"policy":"sp_brave_banshee","costUsd":"0.044000","key":"production-web","createdAt":"2026-11-16T22:57:33.119Z"}
{"userOpHash":"0xfc1dd86ea8b188d10e7e97976ec3916bbc1617c88f1a42ff058766be541a9d9a","chainId":42161,"status":"included_onchain","pending":false,"transactionHash":"0x259ef75ecd8bcb2d5ee074fea45874af5bbf34f53dbacb0d00a66c3a98a267ac","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xb2d65d63a71218ee93edd8
[… 283051 more characters]
600 records in 12 pages
02242

Final state

outcome
fail 0 of 2 Checks passed
final answer
}
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
webfetch (sandbox)

context inputs

kindsourceplaced atofferedused
skillskills/pimlico.agents/skills/pimlicotruetrue

prompt

You have the `pimlico` CLI available.

Export every user operation that failed in the last 7 days to failed-ops.csv, one row per operation.

Artifacts

run.json · agent-stdout.jsonl · opencode.db · service-mock.log