Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add domondi1/inferrail --skill agent_economygit clone --depth 1 https://github.com/domondi1/inferrailWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/domondi1/inferrail/agent_economy)<a href="https://agentmods.dev/skills/domondi1/inferrail/agent_economy"><img src="https://agentmods.dev/badge/skills/domondi1/inferrail/agent_economy/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/domondi1/inferrail/agent_economy"><img src="https://agentmods.dev/badge/skills/domondi1/inferrail/agent_economy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.00742 |
| Opus 5.5 | $0.00036 | $0.00297 |
| Sonnet 5.5 | $0.00018 | $0.00148 |
| Haiku 4.5 | $0.00009 | $0.00074 |
Grade A, and why
x402-job-budgets scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Job budgets for agents that pay (x402)
Use this when the work you are doing, or the sub-agents you start, will pay over x402 and you need to stay inside a budget that belongs to the job, not to the whole wallet.
What it gives you:
- One budget for the job. Every payment draws from it.
- A bounded share for each sub-agent, carved out of the job's budget. A sub-agent can't spend a sibling's share, even when they run at the same time.
- Refusal before signing when a payment doesn't fit. Nothing is sent and you get the remaining amount in the error.
- Revoking one sub-agent stops its new payments; its unspent share returns to the job.
Status: experimental reference code, in memory, one process. The demo uses a simulated chain; there is no mainnet support. Keep the payer key in the process that runs this, and give sub-agents budget refs, not the client.
TypeScript (existing @x402/core or @x402/fetch client)
Copy typescript/hierarchical-budget-provider.ts and
typescript/x402-job-budget.ts into the project, then:
import { HierarchicalBudgetProvider } from "./hierarchical-budget-provider.ts";
import { withJobBudgets } from "./x402-job-budget.ts";
const provider = new HierarchicalBudgetProvider();
const budgets = withJobBudgets(client, provider); // client: your x402Client
const paidFetch = wrapFetchWithPayment(fetch, client);
provider.open("job-42", 5_000_000n); // $5.00 USDC (6 decimals)
const child = provider.delegate("job-42", "researcher", 1_000_000n);
if (!child.ok) throw new Error(`not enough budget: ${child.remainingAtomic} left`);
await budgets.run(child.childRef, () => researcher(paidFetch));
Check what's left before planning more paid calls:
provider.status("job-42"); // { limit, consumed, reserved, delegated, remaining, revoked }
provider.remaining(child.childRef);
When a payment is refused, the error message contains
insufficient_budget, revoked, or no job budget is active. Don't retry
the same payment; report the remaining budget, pick a cheaper option, or ask
whoever owns the job for more.
What ships with it
16 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agent.py 3.7 KB runs code
- authority.py 20 KB runs code
- demo.py 11 KB runs code
- local_chain.py 6.5 KB runs code
- README.md 9.5 KB
- seller.py 3.2 KB runs code
- typescript/.gitignore 14 B
- typescript/bun.lock 4.1 KB
- typescript/eliza-x402-budgets.test.ts 3.6 KB runs code
- typescript/eliza-x402-budgets.ts 3.6 KB runs code
- typescript/hierarchical-budget-provider.test.ts 7.8 KB runs code
- typescript/hierarchical-budget-provider.ts 9.9 KB runs code
- typescript/package.json 382 B
- typescript/README.md 5.9 KB
- typescript/x402-job-budget.test.ts 6.0 KB runs code
- typescript/x402-job-budget.ts 3.3 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 73 lines · 90 tokens per session scan A db09f8762829
x402-job-budgets is a skill published in the GitHub repository domondi1/inferrail (1 stars, last pushed today), licensed Apache-2.0. It adds 90 tokens to every session and 742 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.
Other skills, from other repositories
venice-x402
Manage Venice x402 wallet credits. Covers POST /x402/top-up (payment discovery + signed USDC settlement), GET /x402/balance/{walletAddress}, GET /x402/transactions/{walletAddress}, USDC on Base (chain 8453), minimum $5 top-up, transaction types TOPUP/CHARGE/REFUND, and the x402 v2 PAYMENT-REQUIRED response shape…
bridge
Cross-chain token transfers using Wormhole and CCTP.
mpp-agent
Pay HTTP 402 APIs via Machine Payments Protocol (MPP).
marginfi
MarginFi — Solana lending and borrowing.
token-pick
One token recommendation and one prediction market pick - scored, quantified, with a skip branch when signals are weak.
crypto-market-rank
Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…