2 pointsby miteshashar5 hours ago1 comment
  • miteshashar5 hours ago
    Here is a demo of something I have currently been working on: Using Claude Code with Vercel's agent-browser for some browser automations in Zoho Books.

    I have bundled majority of the automation into a client side IIFE. This led to a 18x cost-saving as shown below, though realistically I feel it must be around 10-12x.

    A follow up to the demo demonstrates the advantage of being deterministic-first when building agentic systems. Post-demo: Claude code figured out how to batch the automation into a single run.

    Following that, I made the batching a part of my own automation.

    Token Consumption Report — 126 Imports (claude-sonnet-4-6)

    ─────── OVERALL ───────

    Manual (4 txns) — 321 turns — $12.49

    Batch (122 txns) — 441 turns — $20.44

    Total (126 txns) — 762 turns — $32.93

    ─────── BATCH EFFICIENCY (per transaction) ───────

    Turns Manual: 80.3 Batch: 3.6 → 22.2× cheaper

    Input tokens Manual: 233 Batch: 11 → 22.0× cheaper

    Output tokens Manual: 25,231 Batch: 1,093 → 23.1× cheaper

    Cache read Manual: 5.05M Batch: 369K → 13.7× cheaper

    Cache write Manual: 327K Batch: 10.8K → 30.3× cheaper

    Cost per txn Manual: $3.12 Batch: $0.17 → 18.6× cheaper