Bg3 Agent Harness — AI skill for Claude Code
An AI agent plays Baldur's Gate 3 on Linux through a Lua mod and an MCP server, seeing only what a player sees.
How to install Bg3 Agent Harness
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Bogzx/bg3-agent-harness and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Bg3 Agent Harness does
An AI agent plays Baldur's Gate 3 on Linux through a Lua mod and an MCP server, seeing only what a player sees. Includes a model benchmark and a playthrough app.
Alternatives in AI
- ARIS Agent Guide — For AI agents reading this repo 6.2k ★
- CicaTavern — Agent 式的 SillyTavern 角色卡酒馆:高缓存命中,兼容酒馆角色卡与世界书,自带配图和一键朗读,角色形象固定,引导式创作角色卡 62 ★
- Helix Agent — Personal AI agent harness powered by Claude Code 46 ★
README
bg3-agent-harness
An AI agent playing Baldur's Gate 3, plus the tools to run it, measure it and watch it.
[](LICENSE) [](packages/harness/pyproject.toml) [](docs/SETUP.md) [](#limits)

The playthrough app's Replay page on a recorded session: the `vessa` playthrough (Claude Opus 5.5, Balanced), session S004 on 2026-10-24, a fight in Act 1. On the left, the recording of the game window; on the right, the agent's tool calls and what it said, in step with the playhead.
A Lua mod inside the game reads what a player could see and carries out the agent's actions. An MCP server (the bridge) turns that into tools any MCP client can call, and a harness launches the game, starts the agent and recovers from crashes. On top of the harness sit a benchmark for comparing models and an app for watching an agent play the whole game.
The agent plays fair: it gets only what is on screen or what it remembers having seen, and it acts through the game's own UI, engine actions, and mouse and keyboard input. The mod runs through [bg3le](https://github.com/lenonk/bg3le), a Linux port of Norbyte's Script Extender, on the native Linux build of the game.
This is a research project and a work in progress. It has finished the game once. Setup needs Linux, a Steam copy of the game and some patience, and things break when the game updates.
See it play
These are screenshots the agent took for itself with its screenshot tool, at the size it saw them.
| ![The burning inn at Wau |
Related Skills
AI Harness Arena
Self-adapting AI mesh for AI Harness Arena (EESTEC Olympics 14 Hackathon). Given the rules of a secret two-pla
LS25 Modding Guide
Verified knowledge, tools and a mod template for Farming Simulator 25 (FS25/LS25) Lua script mods: shop config
Nethergate
An audited gate that lets AI agents (Claude Code / Codex) defend a Linux server through narrow MCP tools — no
Fvtt Mod Crystalball
Open Roll 5e: Crystal Ball. A crystal ball on the sidebar: a player asks a Claude model about the game as thei
Keyhandoff
A keyring your AI agents use for you — local, encrypted, open source. Claude Code, Codex, Cursor and any MCP c
Claude Code Secret Guard
Claude Code mod that keeps API keys, tokens and passwords out of the model's context: gitleaks scans every too
Related Agents
Character Player
Plays one saved character-forge character inside a scene (experimental meet). Lives the moment from inside the
Pz Explorer
Explorador read-only do workspace Project Zomboid (.lua, scripts .txt, .xml, mod.info). Localiza arquivos, def
Hornet Swarm Tester
One Hornet Swarm sub-agent. Plays one test-account label on an authorised website, runs sign-in checks and jou