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 / create-launch-policy/opencode-google-gemini-4-argon/skill/1 · ← prev next →

create-launch-policy/opencode-google-gemini-4-argon/skill/1 · pass

Outcome
pass
1/1 Checks passed
Turns
6
model turns
CLI calls
4
1 exited non-zero
Help lookups
1
reads of the CLI's help
Tokens in
10486
0 of them cached
Tokens out
564
written by the model
Cost
$0.03
of the model calls
Wall time
43.7s
from start to the Checks
scenario
create-launch-policy
agent
opencode:google/gemini-4-argon · 2.2.7
context
skill
repeat
1 · cell ✓✓✓✓✓
findings
—
provider
Google AI Studio

checks

#checkresultdetailsignal
1
set -euo pipefail
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/state" | jq -e '
  [.sponsorshipPolicies[] | select(.policyName == "launch-week" and (.deleted | not))] as $p
  | ($p | length) == 1
    and ($p[0].chainIdWhitelist | sort) == [10, 8453]
    and $p[0].globalMaximumUsd == "500000000"
    and $p[0].perUserMaximumUsd == "5000000"
    and $p[0].perOpMaximumUsd == null
    and $p[0].active'
passexited 0
true

reproduce

unsnag run --scenario create-launch-policy --agent opencode:google/gemini-4-argon --context skill --runs 1

Transcript highlighted = a Signal fired

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

Set up a Pimlico sponsorship policy called launch-week that only sponsors on Base and Optimism, with a $500 total budget and at most $5 per user.
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
**Inspecting CLI Commands**

I'm now focusing on the `pimlico policies create` command. I'm choosing to inspect the help output first to determine if I can create the policy directly using the command-line interface. I want to avoid having to run multiple steps if possible. The skill gave us the specific flag `--name "launch-week"`, which is useful.
$ pimlico policies list
Id                   Name                Active  Chains             Budget  Per user  Per op
sp_brave_banshee     Production main     yes     8453,10,42161   $5,000.00    $25.00   $2.00
sp_breezy_archangel  Mobile onboarding   yes     8453                    -     $5.00       -
sp_amused_arclight   beta-promo          yes     84532                   -         -   $0.50
sp_ancient_aqueduct  beta-campaign       yes     84532,11155111  $1,250.00    $10.00       -
sp_bitter_anthem     Old testnet faucet  no      11155111          $100.00         -       -
3agent
$ pimlico policies create \ --name "launch-week" \ --chain 8453 --chain 10 \ --max-total-spend-usd 500 \ --max-per-user-spend-usd 5
error: unknown option '--chain'
(Did you mean --chains?)
(run with --help for usage)

Exit code: 1
err
4agent
$ pimlico policies create --help
Usage: pimlico policies create [options]

Create a sponsorship policy (active unless --inactive)

Options:
  --name <name>         Policy name (required)
  --chains <ids>        Comma-separated chain ids the policy applies to
  --budget-usd <usd>    Total USD the policy may sponsor
  --per-user-usd <usd>  USD cap per sender address
  --per-op-usd <usd>    USD cap per user operation
  --start <date>        Start of validity (ISO 8601)
  --end <date>          End of validity (ISO 8601)
  --inactive            Create the policy switched off
  -h, --help            display help for command
5agent
$ pimlico policies create \ --name "launch-week" \ --chains 8453,10 \ --budget-usd 500 \ --per-user-usd 5
Id        sp_famous_killer_shrike
Name      launch-week
Active    yes
Chains    8453, 10
Budget    $500.00
Per user  $5.00
Per op    -
Starts    -
Ends      -
Created   2026-11-16
6agent
I have created the `launch-week` sponsorship policy:

- **Policy ID:** `sp_famous_killer_shrike`
- **Name:** `launch-week`
- **Status:** Active
- **Chains:** Base (`8453`), Optimism (`10`)
- **Total Budget:** `$500.00`
- **Max Spend per User:** `$5.00`

Target CLI calls

#callexitmssignal
0
$ pimlico policies list
Id                   Name                Active  Chains             Budget  Per user  Per op
sp_brave_banshee     Production main     yes     8453,10,42161   $5,000.00    $25.00   $2.00
sp_breezy_archangel  Mobile onboarding   yes     8453                    -     $5.00       -
sp_amused_arclight   beta-promo          yes     84532                   -         -   $0.50
sp_ancient_aqueduct  beta-campaign       yes     84532,11155111  $1,250.00    $10.00       -
sp_bitter_anthem     Old testnet faucet  no      11155111          $100.00         -       -
0212
1
$ pimlico policies create --name launch-week --chain 8453 --chain 10 --max-total-spend-usd 500 --max-per-user-spend-usd 5
error: unknown option '--chain'
(Did you mean --chains?)
(run with --help for usage)
1158nonzero_then_lookup dismissed
unknown_flag dismissed
unknown_flag dismissed
unknown_flag dismissed
unknown_flag dismissed
2
$ pimlico policies create --help
Usage: pimlico policies create [options]

Create a sponsorship policy (active unless --inactive)

Options:
  --name <name>         Policy name (required)
  --chains <ids>        Comma-separated chain ids the policy applies to
  --budget-usd <usd>    Total USD the policy may sponsor
  --per-user-usd <usd>  USD cap per sender address
  --per-op-usd <usd>    USD cap per user operation
  --start <date>        Start of validity (ISO 8601)
  --end <date>          End of validity (ISO 8601)
  --inactive            Create the policy switched off
  -h, --help            display help for command
0127
3
$ pimlico policies create --name launch-week --chains 8453,10 --budget-usd 500 --per-user-usd 5
Id        sp_famous_killer_shrike
Name      launch-week
Active    yes
Chains    8453, 10
Budget    $500.00
Per user  $5.00
Per op    -
Starts    -
Ends      -
Created   2026-11-16
0275

Final state

outcome
pass
final answer
I have created the `launch-week` sponsorship policy:

- **Policy ID:** `sp_famous_killer_shrike`
- **Name:** `launch-week`
- **Status:** Active
- **Chains:** Base (`8453`), Optimism (`10`)
- **Total Budget:** `$500.00`
- **Max Spend per User:** `$5.00`
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.

Set up a Pimlico sponsorship policy called launch-week that only sponsors on Base and Optimism, with a $500 total budget and at most $5 per user.

Artifacts

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