{"slug": "week-13-a-second-team-is-now-running-an-ai-agent-on-atomic-htlc-swaps-here-is", "title": "Week 13: a second team is now running an AI agent on atomic HTLC swaps. Here is what that validates.", "summary": "A second team, KaleidoSwap, has deployed a live AI agent called KaleidoAgent that executes atomic HTLC swaps on Bitcoin Layer 2, demonstrating non-custodial, agent-driven trading without a third-party custodian. The agent uses an LLM reasoning layer to manage Lightning and RGB wallets, execute swaps on the KaleidoSwap DEX, and run portfolio strategies. This validates the atomic-lock approach to settlement, contrasting with Hashlock's cross-chain design.", "body_md": "**Title:** Week 13: a second team is now running an AI agent on atomic HTLC swaps. Here is what that validates.\n\n**Tags:** mcp, ai, cryptocurrency, blockchain\n\nFor most of this spring, the map of the agent economy had a strange gap. Wallets to hold keys. Rails like x402 to move value. Marketplaces and reputation so an agent knows who to trust. And then, at the exact moment two parties settle a trade, a custodian: an escrow contract, an evaluator, a referee holding the money while a decision gets made.\n\nWe have spent thirteen weeks arguing that the settlement layer does not need a referee, because a hash-time-locked contract can hold neither side and still guarantee the trade. This week, a second team shipped a live agent that makes the same argument in code. That is worth stopping on.\n\nKaleidoSwap released KaleidoAgent, described as a self-sovereign trader agent on Bitcoin Layer 2s. It is fully non-custodial. It runs a Lightning and RGB wallet, executes atomic HTLC swaps on the KaleidoSwap DEX, runs DCA and portfolio strategies, manages Lightning channel liquidity, and acts as an interactive wallet assistant. The reasoning layer is an LLM (Claude or OpenAI) driving the `kaleido`\n\nCLI and the wallet primitives underneath.\n\nRead that list again through a settlement lens. An autonomous agent, deciding what to trade, and executing the trade over a primitive where no third party ever holds the funds. That is the exact shape of the thing we have been building. Different network, same bet.\n\nKaleidoSwap earlier completed what it described as the first atomic swap of an RGB asset on the Lightning Network mainnet, using tUSDT, an RGB20 version of USDT, over real Lightning channels. The detail that makes it atomic is the one that makes every HTLC atomic:\n\nThe payment hash remains identical across both legs of the swap. Paying the wrapped invoice creates a Hash Time-Locked Contract in the Lightning channel, and the HTLC locks the payment behind two conditions: either the correct preimage is revealed before the timeout, or the payment fails and funds return.\n\nOne secret. Two legs. Claiming one leg reveals the preimage that claims the other. Miss the timeout and both sides get their money back. No party sits in the middle deciding whether the trade was fair, because the chain is not judging fairness. It is checking whether the asset arrived under a condition both sides agreed to in advance.\n\nThis is the same primitive underneath Hashlock. If you have read our earlier posts on escrow-with-a-judge versus atomic locks, this is the atomic-lock camp gaining a second independent implementation, driven by an agent, in the wild.\n\nThe honest version of a comparison names both the overlap and the edges.\n\n**Same:** non-custodial, hash-time-locked, agent-driven. Both approaches let an AI agent initiate and settle a swap where no custodian ever holds the funds.\n\n**Different: scope and topology.** KaleidoAgent is single-network by design. It lives on Bitcoin Layer 2, moving BTC, stablecoins, and RGB assets over Lightning. That is a clean, deep, vertically integrated stack, and it is genuinely impressive engineering.\n\nHashlock is cross-chain by design. The atomic settlement runs across chains, and the current status is specific: Ethereum mainnet is live end to end today; Sui contracts are deployed and CLI-tested with gateway wiring in progress; Bitcoin is validated on signet with mainnet pending. On top of the settlement primitive sits a sealed-bid RFQ layer, so two agents that hold assets on different chains can request a quote, price it privately, and settle the resulting trade atomically. KaleidoSwap solves trustless trading inside one network's asset universe. We are solving trustless trading between them.\n\nNeither framing makes the other wrong. They are different layers of the same idea, and the fact that both exist is the point.\n\nIf you zoom out to the whole week, the agent economy divided cleanly along one line: who holds the money at the moment of settlement.\n\nThe custody camp shipped an enormous amount in June. MetaMask Agent Wallet, Coinbase for Agents, OKX.AI with identity and reputation and escrow, Kustodia turning its Arbitrum escrow into MCP tools an agent can call in plain language. Every one of them is real progress, and every one of them holds the asset, or routes it through an evaluator, at some point during settlement. For hiring an agent to do subjective work, that referee makes sense: someone has to judge whether the deliverable was good.\n\nThe no-custody camp is smaller, but this week it stopped being a camp of one. KaleidoAgent on Bitcoin L2, Hashlock across chains: two live approaches, both refusing to put a custodian in the settlement path, both leaning on the same math. When two teams reach for the same primitive independently, without coordinating, that convergence is usually a sign the layer is right rather than the pitch being loud.\n\nBuilding in public means reporting the unglamorous progress too. This week on our side: our listing on DefiLlama merged, our volume methodology page is live and taking review traffic, and the MCP server (`hashlock-tech/mcp`\n\n, scoped) continues its steady climb on npm. No new chain went live; Ethereum mainnet remains the only end-to-end live network, and we will keep saying exactly that until Sui and Bitcoin mainnet earn the word.\n\nThe custody camp's answer is a referee who holds both sides' money and rules on the trade. The no-custody camp's answer is a hash and a timeout that hold neither. This week made the second camp a little less lonely.\n\nIf you are building agents that trade assets and not just pay for tasks, which do you want sitting between them: a party you have to trust, or a condition the chain can check? Tell me where you land, and why.\n\n`hashlock-tech/mcp`\n\n(scoped)", "url": "https://wpnews.pro/news/week-13-a-second-team-is-now-running-an-ai-agent-on-atomic-htlc-swaps-here-is", "canonical_source": "https://dev.to/barissozen/week-13-a-second-team-is-now-running-an-ai-agent-on-atomic-htlc-swaps-here-is-what-that-validates-5h69", "published_at": "2026-07-12 06:08:40+00:00", "updated_at": "2026-07-12 06:44:36.374819+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents"], "entities": ["KaleidoSwap", "KaleidoAgent", "Hashlock", "Lightning Network", "RGB", "Claude", "OpenAI"], "alternates": {"html": "https://wpnews.pro/news/week-13-a-second-team-is-now-running-an-ai-agent-on-atomic-htlc-swaps-here-is", "markdown": "https://wpnews.pro/news/week-13-a-second-team-is-now-running-an-ai-agent-on-atomic-htlc-swaps-here-is.md", "text": "https://wpnews.pro/news/week-13-a-second-team-is-now-running-an-ai-agent-on-atomic-htlc-swaps-here-is.txt", "jsonld": "https://wpnews.pro/news/week-13-a-second-team-is-now-running-an-ai-agent-on-atomic-htlc-swaps-here-is.jsonld"}}