A Character Is Just Context: Lessons From Building Unwritten Realms
The Six Elements of Character Context
In the architecture of autonomous systems, a character is just context. When building Unwritten Realms, a text-only game where every non-player character is a large language model agent, this concept becomes the foundation of the entire system. Each character is represented as an object holding exactly six things: a persona written in free-text prose, a set of traits with specific intensities such as cautious 0.7 or greedy 0.4, private facts, goals, a memory of what has happened to it, and an inventory.
By defining characters through these structured context blocks, the system forces the model to stay grounded. The social dynamics of the game rely entirely on these six elements, showing that believability is a state and grounding problem rather than a model intelligence problem.
Inside the Social Mechanics of Unwritten Realms
Unwritten Realms drops players into a small world with a specific goal, such as finding a secret or recovering an item. The entire interface is purely social, meaning there is no inventory screen, no take button, and no scripted dialogue tree. If a player needs a treasure map to win, they must persuade the character holding the map to hand it over. The character then decides whether to help based on its goals, traits, and memory.
This design constraint shifts the engineering focus away from model size. A mid-sized model with strict context discipline easily outperforms a giant model with sloppy data, making context engineering the primary driver of agent behavior.
The Validate-and-Repair Loop and Dual-Call Planning
To keep the creative models operating within the rules of the game, the system utilizes a tool-calling layer and a validate-and-repair loop. Agents are never allowed to touch the game state directly. Instead, any engine rejections are fed back to the model as natural language observations, allowing the agent to self-correct in character.
Additionally, the architecture uses dual-call planning to separate private tactical reasoning from public dialogue performance. This separation keeps the agents strategic without breaking the immersion of the social interaction.
This digest was compiled from:
Share this digest
People Also Ask
- The AI Coding Safety Showdown: How Security Vulnerabilities and Infrastructure Outages Are Shaping the Vibe Coding Era
A comparative review of vibe coding tools reveals critical security differences, while recent global outages expose the infrastructure challenges facing Anthropic's Claude.
- GitHub Analysis Reveals 19-62% Token Reductions by Eliminating Unnecessary LLM Calls
GitHub's analysis of five production agentic workflows reveals that removing unnecessary LLM calls reduces token usage by 19 to 62 percent.
- Global Research and Model Updates Reveal How Users Interact with Claude for Career and Personal Guidance
Global studies by Anthropic reveal how users, including Nigerian entrepreneurs, leverage AI for career growth, while new model updates target conversational sycophancy.
