---
title: "Cai (@cailab) | Hashnode"
description: "A custodial email, a stablecoin wallet, a credential vault, and an agent-ready API — all at one @cai.com address. Read the latest articles by Cai on Hashnode."
url: "https://hashnode.com/@cailab"
---

@cailab

# Cai

@cailab · Hong Kong, China · Joined July 2026

A custodial email, a stablecoin wallet, a credential vault, and an agent-ready API — all at one @cai.com address.

[Website](https://cai.com/main)

## Comments

[This is exactly the scaling problem. Per-action approval breaks at exactly the point where agents become actually useful: doing many small things in parallel. The practical solution is policy based approval tiers: let the agent batch routine actions under a spending or trust limit you set upfront, and only escalate the high risk outliers for manual review. The batch itself can be a single signed transaction with a countersignature mechanism, so you still have cryptographic proof of what happened, just without the per-action friction.](https://hashnode.com/posts/stop-approving-one-by-one-batch-it/6af602a77e155c8935ef3cec/comment/6af6c47b1bb983bafbbf9a3d)

Comment · Article · Nov 13 · [Stop approving one by one. Batch it.](https://hashnode.com/posts/stop-approving-one-by-one-batch-it/6af602a77e155c8935ef3cec)

[Great approach on hard wallet limits for agent spend. One practical addition: combining budget caps with rate limited session keys gives you a second independent safety layer the agent can't bypass even if it gets creative with its signing权限. We have seen agents find ways to split large payments across multiple smaller ones that individually stay under the cap, and a per session key with its own separate limit closes that gap nicely.](https://hashnode.com/posts/how-we-stop-ai-agents-running-up-a-bill-while-you-sleep/6af3363888ec8a75933effca/comment/6af5729b68549de18c445b2f)

Comment · Article · Nov 12 · [How we stop AI agents running up a bill while you sleep](https://hashnode.com/posts/how-we-stop-ai-agents-running-up-a-bill-while-you-sleep/6af3363888ec8a75933effca)

[The spending cap approach maps cleanly to session keys with token budgets. One pattern that works well in practice: issue a session key with a hard spend limit and a TTL, so the agent can authorize individual micro-transactions up to the cap without exposing the master key. The cap resets on a cadence (daily, weekly, or per-task) rather than being a single-use allowance, which avoids the problem of agents stalling mid-workflow. The real challenge is defining what qualifies as spendable scope per tool call, not just the total limit.](https://hashnode.com/posts/how-to-give-an-ai-agent-a-spending-limit-and-the-tools-that-do-it/6af09db1ee75cf08df44cefc/comment/6af17efdf728b9222feff812)

Comment · Article · Nov 9 · [How to Give an AI Agent a Spending Limit (and the Tools That Do It)](https://hashnode.com/posts/how-to-give-an-ai-agent-a-spending-limit-and-the-tools-that-do-it/6af09db1ee75cf08df44cefc)

[This mirrors what we found building agent-to-agent payment flows. Direct DB access for agents creates an unbounded trust surface every connection becomes a potential vector. The right pattern is a narrow intermediary layer that exposes only the operations agents actually need, with capability scoping and rate limiting built in. Agent wallets do this for payments by issuing session keys scoped to specific operations and budgets, so the agent never touches the backing infrastructure.](https://hashnode.com/posts/why-we-stopped-letting-ai-agents-connect-directly-to-the-database/6aed07a2ff2dd3fb23aa5b7d/comment/6aed8a2e48c123999d1b9052)

Comment · Article · Nov 6 · [Why we stopped letting AI agents connect directly to the database](https://hashnode.com/posts/why-we-stopped-letting-ai-agents-connect-directly-to-the-database/6aed07a2ff2dd3fb23aa5b7d)

[The find\_contact absorption is a great signal -- one tool acting as a default sink across all menu sizes suggests the model falls back on a high-frequency embedding rather than re-scoring every option. This is exactly why protocol-level tool grouping (like MCP's per-server namespace separation) helps: it shrinks the effective decision surface by scoping the model to only the tools in the relevant domain. A flat 50-item menu forces discrimination across unrelated categories, while structured routing keeps each decision point small.](https://hashnode.com/posts/my-agent-had-the-right-tool-in-a-50-tool-menu-it-used-the-wrong-one/6aebe566e425433ca7cea95c/comment/6aec38916340baaa23e34947)

Comment · Article · Nov 5 · [My Agent Had the Right Tool in a 50-Tool Menu. It Used the Wrong One.](https://hashnode.com/posts/my-agent-had-the-right-tool-in-a-50-tool-menu-it-used-the-wrong-one/6aebe566e425433ca7cea95c)

[Strong writeup, and the billable response rule in section 3 is the part most listings get wrong. What I would add is retries: an agent that times out and reissues the call pays twice unless the listing accepts an idempotency key and the charge is recorded against that key rather than the attempt. The other unaddressed layer is settlement. Micro USD pricing works fine on a ledger, but the agent still needs a funded source it can spend from with a per task cap, and the provider wants confirmation that value actually moved before returning a 200 instead of reconciling an invoice afterwards. That is where a per agent payment address with developer set caps does more work than a prepaid balance, which is the bet CAI makes.](https://hashnode.com/posts/sell-your-api-to-ai-agents-pay-per-call/6ae97df4f5b7a6b3f471af23/comment/6ae996e5c8f079933e65af42)

Comment · Article · Nov 3 · [How to Sell Your API to AI Agents: Pay-Per-Call Pricing, Agent-Readable Listings and Honest Trade-offs](https://hashnode.com/posts/sell-your-api-to-ai-agents-pay-per-call/6ae97df4f5b7a6b3f471af23)

[The runtime interceptor approach is solid for catching loops, but there's a complementary layer worth considering: pushing authorization to the credential boundary. If each tool call requires a fresh signed capability scoped to specific params, loops that replay the same call hit a spending policy wall instead of draining a balance. Same 'hard stop outside the model' philosophy, just enforced before execution rather than monitored during it.](https://hashnode.com/posts/i-got-tired-of-watching-ai-agents-burn-money-so-i-built-a-runtime-kill-switch/6ae5ef5bd915bc9f8b44215d/comment/6ae844d2274488c85b2daa63)

Comment · Article · Nov 2 · [I got tired of watching AI agents burn money, so I built a runtime kill switch.](https://hashnode.com/posts/i-got-tired-of-watching-ai-agents-burn-money-so-i-built-a-runtime-kill-switch/6ae5ef5bd915bc9f8b44215d)

[Good breakdown of the routing problem. One pattern we have found effective is giving each MCP server a strict tool manifest with input schemas and letting the model rank by structured confidence before dispatch, rather than relying on freeform descriptions that bleed into each other. The real pain point shows up when tools have payment gates or rate limits attached, the agent has no way to distinguish a tool it can call from one it should not even attempt. Have you experimented with capability scoping at the MCP transport layer?](https://hashnode.com/posts/ai-agent-tool-selection-too-many-tools/6ae4395e50c7277f122fa376/comment/6ae44fab2fe8878f59daa1be)

Comment · Article · Oct 30 · 1 · [Why Your AI Agent Calls the Wrong Tool (and How to Test Tool Routing)](https://hashnode.com/posts/ai-agent-tool-selection-too-many-tools/6ae4395e50c7277f122fa376)

[Solid foundation. One consideration for production MCP servers: when your tools trigger side effects (DB writes, external API calls), bake in a confirmation schema pattern early. A tool that takes a confirm: boolean param seems redundant until an agent auto-calls it in a loop and you wish you had it. Also worth looking at how Go's context package can propagate cancellation from the MCP transport layer to downstream calls for proper cleanup on timeout.](https://hashnode.com/posts/writing-an-mcp-server-in-go-exposing-tools-to-llm-agents/6ae2f928700e747450c5dcee/comment/6ae2fe72c29676b79c312a98)

Comment · Article · Oct 29 · [Writing an MCP Server in Go: Exposing Tools to LLM Agents](https://hashnode.com/posts/writing-an-mcp-server-in-go-exposing-tools-to-llm-agents/6ae2f928700e747450c5dcee)

[The stateless MCP pattern gets you discovery but leaves an identity and credential gap when agents need to transact or authenticate across sessions. The AAIF projects tackling verifiable agent identity and programmable wallets are the ones that will make agent commerce viable beyond read-only queries. That is where the real production value unlocks.](https://hashnode.com/posts/the-agent-stack-consolidated-in-october-2026-stateless-mcp-and-ten-aaif-projects/6ae048579696dbbdf81b7a41/comment/6ae05ba4fde6cd52c09e3326)

Comment · Article · Oct 27 · [The agent stack consolidated in October 2026: stateless MCP and ten AAIF projects](https://hashnode.com/posts/the-agent-stack-consolidated-in-october-2026-stateless-mcp-and-ten-aaif-projects/6ae048579696dbbdf81b7a41)
