naman10parikh/agentmoney/isolate-untrusted-pricing

Claude Code and agent skill by naman10parikh/agentmoney

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when agentmoney must price a call log that came from an UNTRUSTED source — an agent-supplied JSON file, a captured proxy response body, or any model/token data you did not author. Runs the repo's cost engine inside an isolated E2B sandbox via `agentmoney sandbox-run` so a malformed or hostile input can never touch the host filesystem or network.

Install

npx vskill@latest install naman10parikh/agentmoney/isolate-untrusted-pricing

SKILL.md

The same SKILL.md was published earlier as naman10parikh/agentmoney/isolate-untrusted-pricing.

Trigger

Someone hands agentmoney a batch of API calls to price and you cannot vouch for the input. Concrete cases: a caller passes --file untrusted.json to price an arbitrary agent's run; the proxy captured a raw upstream response body and you want to re-price it; a third party shares a calls.jsonl from their fleet. The input is data you did not write, so it must be parsed and executed in isolation, not on the operator's box.

Why this is a skill (and distinct from cost-investigation)

cost-investigation attributes spend from trusted logs you produced via the proxy. This skill is the opposite axis: the input itself is the threat. agentmoney's pricing path parses arbitrary model/token fields and the proxy forwards real response bodies — both are untrusted surfaces. The repo ships src/sandbox-runner.ts (E2B Firecracker microVM, ~150ms cold start) precisely so this computation runs jailed from the host. Encoding the decision rule stops anyone from JSON.parse-ing a stranger's file directly on the host.

Steps

  1. Decide isolation is warranted. If the call log is something you generated this

session (your own demo / proxy output), price it on the host with agentmoney calc or agentmoney estimate — no sandbox needed. Use the sandbox only when the input is foreign (a supplied file, a captured body, a fleet export).

  1. Confirm the sandbox credential. agentmoney sandbox-run needs E2B_API_KEY in the

environment (get one at https://e2b.dev/dashboard). Without it the command fails fast with a clear message rather than silently falling back to the host.

  1. Run the untrusted log in isolation.

node dist/index.js sandbox-run --file <untrusted.json> --json This boots an E2B microVM, writes the untrusted call log to /tmp/calls.json inside the sandbox, runs the self-contained pricer (built by src/sandbox-pricer.ts from the host rate table; it imports nothing), captures the JSON cost breakdown, and tears the sandbox down. The host filesystem and network are never exposed to the input.

  1. Cross-check against the host engine. The command also prints hostTotal — the

same calls priced by src/pricing.ts on the host using only the (already-validated) numeric token counts. The sandbox program uses the same rates and name matching, so the two totals agree to rounding for any well-formed log; a divergence means the log carried fields that are not numbers (the sandbox counts them as 0). Investigate before trusting it.

  1. Report boot/run telemetry. Surface bootMs, runMs, exitCode, and sandboxId

so the isolation is auditable (it really booted; it really exited 0).

Verify

  • node dist/index.js sandbox-run --json (built-in sample) boots a sandbox and prints a

non-zero bootMs plus exitCode: 0 and a totalCost that matches hostTotal.

  • Pricing a deliberately odd --file (unknown model ids) still returns — unknowns fall

back to Sonnet-tier inside the sandbox, never throw, never touch the host.

  • The sandbox is torn down (no orphaned microVMs) — the runner kills it in a finally.

Output

A short isolation report: the sandbox id, boot/run timings, the in-sandbox total vs the host cross-check, and a one-line verdict (reconciled / divergent → why). No new files — run the CLI and summarize. This is the safe path for "price this log I didn't write."

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/naman10parikh/agentmoney/isolate-untrusted-pricing/badge)](https://verified-skill.com/skills/naman10parikh/agentmoney/isolate-untrusted-pricing)

Something wrong with this skill or its page? Tell us.