A Game-Integrated On-Device Gaming Assistant
Abstract
Strategy games layer many complex, interconnected mechanics, resulting in steep learning curves for new players. Traditional onboarding approaches can alleviate some of these learning barriers, but they are often static and expensive to maintain as the game evolves. Recent third-party game assistants aim to provide more dynamic assistance. However, they often rely on expensive vision models and tend to depend on community sources of unverified accuracy. To address these limitations, we propose an on-device game assistant that reads game state directly from the engine, draws on developer-authored documentation, and runs locally to keep query cost low. We present an agentic architecture in which a small on-device LLM iteratively plans, queries, and refines its response using two tools: a hybrid retrieval pipeline over preprocessed game data and a game state retrieval tool for querying dynamic game data. We discuss how we implemented the architecture for the turn-based portion of Total War: Pharaoh. We evaluate the resulting agent on 336 questions covering static game knowledge, game-state reasoning, multi-turn conversations, and out-of-scope guardrails and show that our full system outperforms ablations across most categories.
Additional Features