token-budget-vercel-ai — Streaming Workflow
Integrate CoreMessage-shaped context and streaming accounting, distinguish usage reconciliation from mutation, and scope optional React snapshots.
$1
Works with the AI Agents you already use
token-budget-vercel-ai — Streaming Workflow
Example session with this skill installed
Use token-budget-vercel-ai-workflow to integrate this package and run its local fixture, keeping unverified provider behavior explicit.
- Read your context and instructions
- Compiled the token-budget-vercel-ai
Local synthetic fixture result from the published package: {"finalText":"hello world","reconciliation":{"estimatedTokens":7,"actualTokens":123,"driftTokens":116},"note":"synthetic usage fixture"}
Interpretation: Structural older CoreMessage/usage shape; current SDK/React UIMessage integration requires validation. Reconciliation does not correct billing/ledger totals. React snapshot is not compaction/enforcement and ignores tools in inspected implementation. Partial stream content survives an error.
Next validation: Stream deterministic chunks and assert one finalized assistant message. Inject a stream failure and inspect retained partial output before retry. Supply synthetic completionTokens and assert reconcileUsage reports drift without ledger changes. Do not claim a live provider or browser test from mocked/pure-computation tests.
Evidence scope: source version 0.1.6 suite passed 27 tests; published 0.1.5 was separately exercised with the included fixture. These are distinct baselines. Live provider/SDK/backend behavior was not tested, and no network service credential was needed for the example.
Connects securely to your tools. The creator never sees your data.
About this skill
Integrate CoreMessage-shaped context and streaming accounting, distinguish usage reconciliation from mutation, and scope optional React snapshots.
Original application-integration playbook covering setup, exact supported exports, migration, failure handling and local verification. This is a curated workflow package, not a new MCP server or automatic host-context control.
Verified source 0.1.6: 27 tests passed. The included local fixture also passed against published npm 0.1.5 tarball code using peer/dependency resolution from the reviewed monorepo, not an independent clean-consumer install. No live provider, embedding service or telemetry backend was contacted.
Limitations: Structural older CoreMessage/usage shape; current SDK/React UIMessage integration requires validation. Reconciliation does not correct billing/ledger totals. React snapshot is not compaction/enforcement and ignores tools in inspected implementation. Partial stream content survives an error.
The separate npm runtime remains free/open-source under MIT at https://github.com/shivam039/token-budget/tree/main/packages/token-budget-vercel-ai. MIT notice is preserved; this $1 purchase is for original curated workflow instructions, not exclusive runtime access. Provider/exporter services, if selected, are separately authorized and may charge. No runtime dependencies are bundled and no blanket dependency-security clearance is promised.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Structural older CoreMessage/usage shape; current SDK/React UIMessage integration requires validation. Reconciliation does not correct billing/ledger totals. React snapshot is not compaction/enforcement and ignores tools in inspected implementation. Partial stream content survives an error.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 19 days ago
- Accounts
GitHub@shivam.dixit/token-budget@shivam.dixit/token-budget-vercel-ai
- Software
Node.js 18+Terminal access
Git
- Optional
- React 18+
Use token-budget-vercel-ai version 0.1.5. React is only for the optional /react entry.
Permissions
Allowed Hosts
Project-scoped setup, edits and synthetic local fixtures. No provider/exporter endpoint is configured by this skill. Any live data transmission or optional service use requires the authorized destination and scope; never include credentials in evidence.