Eliza Daydreams: A New Blueprint for Onchain Gaming Agents
The minds behind some of Starknet’s most important gaming innovations are developing Daydreams, a new system designed to let AI agents play anything onchain.
So what do you need to know here? Let’s get you up to speed.
What is Daydreams
Lordofafew, a.k.a. Loaf, a founder of onchain gaming infra provider Cartridge and the new onchain MMO Eternum, has been a leading contributor to ai16z’s Eliza codebase, which is one of the most popular platforms for launching AI agents today.
In a recent X thread, Loaf highlighted how Daydreams will work in the context of the Eliza framework.
In the Eliza v1 architecture, a configuration file establishes an agent’s personality, a database provides memory, a runtime coordinates logic, and discrete plugins (e.g. for tweeting or onchain actions) define all capabilities—meaning an agent is limited to these predefined modules, and each client (like X or Discord) simply hosts an agent’s interactions.
That said, Daydreams is a new generative agent library slated for the upcoming Eliza v2 release, and it will act as an opt-in plugin that will allow Eliza agents to dynamically “think” on their own rather than being limited by predefined, hard-coded actions as was the case with v1 system.
In development as part of the Dojo onchain gaming engine stack that’s become popular on Starknet, Daydreams will notably be chain-agnostic, i.e. capable of interacting with any onchain game on any network.
Under the hood, the Daydreams plugin will tap into a “hierarchical task network” approach that continuously updates as the agent works toward its goals—e.g. conquering Eternum, or optimizing DeFi strategies over days or weeks, etc.
The agent’s memory, powered by what are known as vector embeddings, stores each “chain of thought,” which can then be shared with other agents through a swarm mechanism for collective learning. This paves the way to long-term missions, and one agent’s success will lead to successful strategies for other agents in the swarm, in other words.
Why Daydreams matters
Daydreams-enabled Eliza v2 agents will be dynamic problem-solvers that can adapt, evolve, and even create specialized code on the go for new scenarios. They’ll be ideally suited to thrive as onchain gaming agents, as such.
Plus, with Daydreams baked into the Dojo engine, developers will soon have access to a streamlined toolkit for building next-gen AI players that can tackle everything from exploration and resource management to alliances and warfare in any onchain game. This plug-and-go dynamic should prove powerful and can help cement onchain gaming as one of the next great frontiers for AI agents.
The 1st Eliza gaming experiments
Loaf has already said that the next season of Eternum is aiming to have at least 1,000 Daydreams-powered agent players involved in the gameplay. These agents won't be non-playable characters (NPCs) but actual in-world participants, capable of independently battling or collaborating with human players.
This is also just a taste of what’s to come in the onchain gaming scene where Eliza agents are concerned. Other projects like Treasure's SMOL life-sim RPG, the Nifty Island multiplayer platform, and the Hyperfy metaverse are also currently experimenting with Eliza tech, and more titles will follow suit. Keep your eyes peeled here accordingly.
What comes next
How will humans adapt in a post-Daydreams world?
I presume it’ll become increasingly common for players and guilds to launch their own gaming agents to act in their service, amassing resources and so forth without needing active management.
For instance, consider the possibility of visiting a virtual game assets bazaar in a metaverse project. You could bring your Daydreams-powered agent with you and, using its learnings and resources from its interactions with other games and DeFi protocols, lean on it to trade on your behalf according to your pre-existing strategies.
This memory system and game-hopping, i.e. taking learnings and resources from one onchain environment and bringing those insights and assets to another, will be particularly relevant to open onchain gaming ecosystems like Realms World, which allow for interoperability between distinct franchises.
In kind, we might see many Daydreaming Eliza agents coalesce around ecosystem tokens, like Realms World's native $LORDS token or Smolverse's $SMOL, as the primary currencies of their digital stomping grounds, so to speak.
Of course, there’s also the question of peers, or if you prefer, competition. The upcoming Parallel Colony AI game is going to use the Wayfinder protocol, a crosschain, general-purpose framework for deploying onchain AI agents that's in the same general ballpark as Daydreams.
Personally, I think both the Daydreams and Wayfinder approaches have bright futures, though their architectures are definitely distinct—for example, Daydreams isn't centered around tokenomics while Wayfinder is centered around the $PRIME and $PROMPT tokens. It'll be interesting to see how these differing approaches fare with regard to market share in the years ahead.
Whatever happens, though, it seems clear to me that we’re on the cusp of a fundamental shift in gaming, and Daydreams is the latest herald of the boom that's going to come at the crossroads of onchain games and AI agents. New kinds of virtual societies are coming, and the fun is truly only just beginning here.