LLM work in TEEs autoassigned and paid out by AI Agent w/ Server Wallets
"The work is mysterious and important."
Praise Kier, SeveraTEE is a Severance show on AppleTv+ inspired project that uses AI agents, and TEE LLMs to perform tasks where the secret work is conducted and stored in TEEs. We have work that gets assigned, like Cold Harbor, and we have 'Innie' AI Agents that use Nillion SecretLLM to do "mysterious and important" work in a Trusted Execution Environment. The work is then stored in a Nillion SecretVault, and the task status is confirmed as completed. Additionally, we have a 'Kier' AI Chatbot Agent that has access to custom Coinbase Agentkit Action tools that can access our tasks, innies, and their outties wallets. We can ask it to assign work to the innies, and we can ask it to confirm that the work is done, and we can ask it to pay the innies. We are also using the new Privy Server Wallets to control both the Kier manager wallet, and the innies wallets, to automate wallet issuance for each agent, and transfer the funds from the Kier manager wallet to the innies wallets.
Core Sponsors: Privy, Nillion, Coinbase Developer Platform AgentKit
Nextjs, vercel ai sdk, tailwind, shadcn, supabase, drizzle-orm, trpc are the regular web2 tech we used. It's built on top of the T3-Stack boilerplate with shadcn components with custom themeing done by AI. Absolutely could not have done this without Cursor .45 + Claude Sonnet 3.5/3.7. Combined with drizzle where it knows all the types so it doesn't make mistakes as much, the ease of styling shadcn, supabase with built in well documented auth, etc etc, it's easier than ever to build. Used figma for the design assets. Metamask to seed initial wallets.
Privy server wallets combined with CDP AgentKit is a very powerful combo. It makes it very easy to automate the total wallet experience. This could be key to onboarding the next billion users. The AI is now fully capable of managing all aspects of wallet management for the user with AgentKit actions. If they don't want to manage any web3 UX, they don't have to, we can handle it behind the scenes.
Nillion docs were pretty good. We needed to hack around the lack of ts support for the secretvaults sdk, but we were able to do it. The concept of using TEEs to hide SecretLLM work being done and then store the signature to confirm it, and store the remaining information in SecretVaults (also TEEs?) could be a huge boon for privacy and just having total privacy for the work your agents are doing. In a time of increasing attacks on civil rights, this tech could be critical to safeguarding assets, identities, communications, etc in a way that is hidden yet still verifiable. This was a fun topical project to highlight how all this could work together (the concept of severed work is perfect for TEEs), but you could imagine many privacy and storage use cases we could implement here. Store copies of birth certificates, immigration papers and status, ownership over property so it can't be stolen in civil asset forfeiture, hide where your money is so you can't get debanked for critical speech, and on and on.
Note: there is a significant bug in the CDP AgentKit that is preventing the Kier agent from autonomously assigning, confirming, and paying out work tasks, but the code is all there and will work if that bug is fixed. I opened a ticket and let them know in the discord.