跳到主要內容

Local-First in the Agent Era: The Battlefield Is Your Data Home, Not the Agent

Robert Mao
Local-FirstARCAFSDID SpaceArchitecture

Over the past year, almost everyone building AI software has been racing on the same track: whose model scores higher, whose agent calls one more tool, and whose cloud sandbox spins up a little faster.

I increasingly believe the real battlefield is not the agent itself. It is the user's data home.

Models and agents are the fastest-depreciating assets in software. A model that felt remarkable six months ago is already being swapped out; an agent wrapper that looks popular this year may be renamed or gone next year. What actually holds value, and what you cannot afford to lose, are the files, notes, work records, and conversation context you have built up over years, along with the identity and permissions that connect them.

If all of that lives inside someone else's cloud sandbox, then the smarter the agent gets, the harder it becomes to ever move out.

Household ledgers, cloud agents, and who holds the primary copy

Years ago, when we talked about blockchains and the scope of consensus, I used a simple comparison: nobody cares how you keep your own household balance. As long as you and your bank, merchant, or counterparty have no dispute, you can keep your family ledger in Excel, on paper, or on sticky notes on the fridge.

Personal software and AI work the same way.

In their 2019 essay Local-first software[1], Martin Kleppmann and his coauthors set a straightforward bar: software should treat your local copy as primary, keep working offline, and treat the cloud as a helper for multi-device sync and collaboration rather than a gate you must pass through just to open your own files.

"In local-first software, the availability of your data does not depend on any single cloud service."

For years, local-first conversations mostly focused on note apps, whiteboards, and CRDT merge algorithms. In the AI agent era, that question stops being a nice-to-have and becomes a question of ownership.

Traditional SaaS only took a few tables or documents into its own database. Today's hosted agent platforms want your entire context: local folders, emails, calendars, codebases, reading history, and preferences. Handing that context to a single vendor's cloud sandbox feels convenient at first. Yet the moment you want to switch to a cheaper or better agent, what you can export is usually a static bundle of JSON or Markdown. Workflows break, permissions vanish, and the next agent has to relearn your world from scratch.

The question has never been whether to use the cloud. Of course we want multi-device sync and always-on availability. The question is whether your data home sits on your own foundation, or inside someone else's rented hotel room.

Local-first starts at the data layer: why DID Space is the real anchor

Many people look at ARC (Agentic Realm Computer) as a new runtime for agent applications. That is true, yet focusing only on the runtime misses the deeper point: whether local-first holds up in practice depends less on where compute runs, and more on how the data layer is built.

Starting from DID Space (now evolving as ArcSpace), we built a data-first architecture that breaks apart the three things cloud platforms usually fuse together: identity, storage, and compute.

DID Space (ArcSpace) Local-First Three-Layer Architecture

Local-first starts at the data layer: identity and your data home stay with you, while compute nodes and agents remain replaceable.

At the top sits Identity (DID). Your identity is not a database row issued by one hosting vendor, but a cryptographic DID controlled by keys you hold. Like phone number portability, changing providers should not force you to abandon your contacts or start over as a stranger.

In the middle sits the load-bearing wall of the whole design: DID Space (ArcSpace). In ARC, compute instances are disposable and replaceable; what endures is your data home. Every note, record, or file you create on a phone or laptop lands first in local SQLite, SwiftData, or a local directory so it works with zero network dependency. When connectivity returns, and only under your authorization, AFS (Agentic File System) and native sync engines synchronize with your personal data space. The backend can run on Cloudflare R2/D1 at the edge or on a self-hosted SQLite node, with CID content addressing so moving between hosts does not break your data.

At the bottom sit ARC runtimes and AI agents. Think of them as helpers you invite into your home to organize shelves or run errands. Through AFS mounts, you decide which directory a task can see, and the agent works strictly inside that boundary. When a better model arrives, swap it. When an agent falls short, replace it. Because the data home stays intact, changing workers never means rebuilding the house.

As for blockchain and verifiable credentials, our stance stays simple: Anyone can verify. Nobody has to. Everyday notes and local edits stay private and off-chain. Only when cross-organization delegation, audits, or payments need third-party proof do signatures and on-chain records come into play.

Aside is just one application growing out of this data home

Architecture diagrams can still feel abstract, and I have never liked theory without a real product to test it against. So we built a small consumer app to live on top of this model: Aside.

Aside starts with an everyday habit: every time you tap Share on a phone, it sends things outward to someone else's platform. We reversed that direction so Share saves things back to your own place. On iPhone, Aside stores links, quotes, and images locally first via SwiftData so collecting and organizing work offline, syncs automatically via iCloud when online, and exports full JSON backups whenever you want.

Yet Aside is simply one application on top of the stack. What makes it natural for Aside to keep data in the user's hands is not heroic app-level plumbing, but the fact that ARC, AFS, and DID Space were designed around a user-owned data home from day one. Today that surface is Aside; tomorrow it can be a personal research library, a household ledger, or any local tool you choose to run.

Back to the garage

I still have floppy disks and magneto-optical disks sitting in my garage from twenty years ago. The bits are probably still on them, even though I no longer own a drive that can read them 🤣. That taught me early on that owning data is not just copying files into a folder. It means that five or ten years later, across new devices, new tools, and new generations of AI, you can still pick up where you left off.

Models will keep getting cheaper, and agents will become plentiful enough to swap at will. When that happens, what decides whether your digital life belongs to you is not which clever agent you picked this quarter. It is whether you have a real data home of your own.

References


  1. Martin Kleppmann, Adam Wiggins, Peter van Hardenberg, Mark McGranaghan, Local-first software: You own your data, in spite of the cloud, Ink & Switch, 2019. ↩

本頁涉及

產品

  • ARC active

    Blocklet 的執行時。它給開發者一個地方來執行以 Blocklet 描述的應用,連同那個 Blocklet 宣告自己需要的資源。

  • ARC Space active

    與一個 DID 關聯的資料空間。可以建一個個人空間,也可以按某項任務所需的權限和資料模型接入一個應用。

  • Aside active

    收藏吸引你的內容,用合集整理靈感。

術語

  • AFS

    AFS(Agentic File System)把與任務有關的檔案、服務和正在進行的工作組織成可檢視的資源檢視。它不是把一整台機器或一堆 API 交給 agent,而是給任務一塊有名字、有邊界的工作範圍。

  • DID

    DID 是一種數位身分標識。它幫助持有者和驗證方確認某個身分由誰控制,也讓一項聲明有明確的關聯對象。帳戶、登入和授權各自仍有自己的角色。