Skip to main content

WoWState

WoWState (wow-state) is a lightweight, zero-UI World of Warcraft addon and stdlib-only Python CLI designed so AI agents and coding assistants (Claude, ChatGPT, Codex, Gemini, Antigravity, custom scripts, etc.) can read, interpret, and analyze your live WoW character outside the game — with zero screenshots or manual copy-pasting.

Because WoW addons cannot write JSON directly to disk, WoWState exports your character state into SavedVariables/WoWState.lua (WoWStateDB), and the companion wow-state CLI auto-discovers that file and converts it into compact, token-efficient JSON tailored for LLMs (~80–90% smaller than raw Lua, stripping raw hyperlink codes and zero-valued noise).

Downloads & Directories: PyPI (wow-state) · CurseForge · Wago Addons · WoWInterface · GitHub Releases

Why Agents Use WoWState

Once wow-state outputs your character's live JSON digest, an AI assistant can answer concrete, personalized questions immediately:

  • Gear, stats & upgrades: "Compare my equipped gear and stats — which slot should I upgrade next, and am I hit/crit capped?"
  • Talents, rotation & action bars: "Look at my current talents, spellbook, action bars, and macros — what rotation should I use or what's missing from my bars?"
  • Professions, bags & crafting: "Check my bags, bank, and learned recipes — what can I craft or sell right now, and what materials am I short on?"
  • Quests, travel & endgame: "Look at my zone, active quest log, lockouts, and Great Vault — what quests should I turn in nearby or do next?"

Step-by-Step Instructions

1. Install the WoW Addon

Install WoWState into your Interface/AddOns/ directory using whichever method you prefer:

2. Capture & Flush Your State In-Game

WoWState automatically refreshes your snapshot in memory on login, level-up, gear changes, loot, quests, zone changes, and combat end, as well as on a 3-minute heartbeat — and WoW flushes SavedVariables/WoWState.lua to disk whenever you reload or log out:

  • Type /wowstate (or /wstate) in chat whenever you want to capture fresh state and immediately write it to disk (triggers a clean UI reload outside combat).
  • Optional (one-time per session / update):
    • Open your Bank once (BANKFRAME_OPENED) to snapshot Character Bank, Reagent Bank, and Warband Bank contents (automatically carried forward on later collects).
    • Open your Profession window(s) once (TRADE_SKILL_SHOW) to record all learned recipes per profession.
  • /played time is captured automatically shortly after login (TIME_PLAYED_MSG).

3. Let Your AI Agent Read It (uvx wow-state)

Run wow-state with zero installation using uvx (uses only Python 3.10+'s standard library), or install it once from PyPI:

# Zero-install from PyPI — outputs single-line, AI-ready JSON for your newest character
uvx wow-state

# Slice specific sections to minimize context tokens
uvx wow-state --only character,stats,equipment
uvx wow-state --only inventory,bank,recipes

# Install globally once (optional)
pip install wow-state
# or: uv tool install wow-state / pipx install wow-state

# Run from a local repo checkout without PyPI
PYTHONPATH=src python3 -m wow_state

If you use a coding agent inside this repo, it can also read the included AI skill at .agents/skills/wow-state/SKILL.md (and .agents/skills/wow-state/references/schema.md).

What Data & Stats WoWState Saves

All sections run inside isolated xpcall handlers with multi-flavor fallbacks across Retail, Mists Classic, Cataclysm Classic, TBC Classic, Classic Era, and custom 16001 builds, combat deferral, burst coalescing, and keep-last-good merge on teardown.

Character Stats (stats)

  • Resources: health, healthMax, primary power / powerMax / powerToken (MANA, RAGE, ENERGY, FOCUS, RUNIC_POWER, etc.), plus class-gated secondaryPowers (comboPoints, runes, soulShards, holyPower, chi, arcaneCharges, essence).
  • Primary Attributes & Item Level: itemLevel (overall, equipped, pvp) and attributes (strength, agility, stamina, intellect, spirit — each with base, effective, posBuff, negBuff).
  • Defense & Resistances: armor & armorParts, defense (base, modifier, total), dodge, parry, block, blockValue, and elemental resistances (fire, nature, frost, shadow, arcane).
  • Melee & Ranged Combat: attackPower (+ attackPowerParts), meleeDamage (mainHandMin/Max, offHandMin/Max, mainHandSpeed/offHandSpeed, percent), critChance, hitModifier, meleeHaste, expertise (mainHand, offHand, ranged), armorPenetration, rangedAttackPower (+ rangedAttackPowerParts), rangedDamage (min, max, speed, posBuff/negBuff, percent), rangedCrit, and rangedHaste.
  • Spellcasting & Regen: spellCrit + spellCritBySchool (holy, fire, nature, frost, shadow, arcane), spellBonusDamage by school, spellBonusHealing, spellHaste, spellHitModifier, spellPenetration, manaRegenBase, and manaRegenCasting.
  • Secondary / Tertiary Ratings & Speed: haste, mastery, masteryBonus, versatility (damageDone, damageTaken, rating), leech, avoidance, speed, full non-zero combatRatings (rating and bonus for hit/crit/haste/dodge/parry/block/expertise/ArP/mastery/versatility/resilience/etc.), and movementSpeed (current, run, flight, swim).

Full Snapshot Sections

  • character: name, realm, class, race, faction, level, xp, xpMax, restedXP, gold / goldCopper, bindLocation, guild (name, rankName, rankIndex), isPVP, and playtime (total, level, totalSec, levelSec).
  • location: zone, subZone, mapName, mapID, x/y coordinates (0–100%), and continent (open world) or instance (name, type, difficultyID, difficultyName).
  • equipment & Bags: Equipped gear for slots 0–19 (slotName, name, itemID, quality, itemLevel, durability/durabilityMax) plus equipped bag slots 1–5.
  • inventory, bank, reagentBank, warbandBank: Raw slot-by-slot stacks in SavedVariables; automatically aggregated by item into { itemID, name, count } + totals in the AI JSON digest, with bankCapturedAt freshness timestamps.
  • skills & recipes: Professions, weapon skills, defense, and languages (rank, maxRank, modifier), plus per-character learned recipes per profession (learnedCount, totalAvailable, capturedAt, recipes).
  • talents, spellbook, actionBars, macros: Classic talent tabs + spent talents, Retail specialization, loadout name/import string, hero talent spec ID & purchased trait nodes; highest-rank-collapsed spellbook by tab; action bar slots 1–180 (with item/spell name resolution); and account/character macros (name, body).
  • quests, reputations, currencies, buffs, debuffs: Active quest log (title, id, level, complete, failed), completed quest count & IDs (questsCompleted, up to 4000), faction reputations (standing name, within-tier bar/barMax), currencies (name, quantity, maxQuantity), and active buffs/debuffs (stack count, remaining duration).
  • collections, pvp, endgame, pet: Owned mount count & mount names, achievement points; lifetime/session/yesterday HKs, PvP rank, honor level, rated brackets (2v2, 3v3, RBG, Solo Shuffle, Battleground Blitz); instance lockouts, world bosses, Mythic+ score/keystone/weekly runs, Great Vault progress; and active pet/companion stats (name, family, level, health, power, xp, happiness, loyalty, attackPower, armor).

Features & Resilience

  • Self-healing & combat-safe: Every collector section runs inside xpcall; Collect() is pcall-guarded with re-entrancy protection, burst coalescing (trailing collect on rapid loot/bag events), combat deferral (PLAYER_REGEN_ENABLED catch-up), scheduled timers, a 30s/180s OnUpdate watchdog, and native ADDON_LOADED SavedVariables sync across sessions.
  • Keep-last-good merge: Torn-down logout or early-login collects never overwrite populated character sections with empty/zeroed state, and restricted/secret client values are safely ignored.
  • Multi-flavor TOC support: Ships with a multi-flavor ## Interface: manifest for Retail (Mainline), Mists of Pandaria Classic (Mists), Cataclysm Classic (Cata), TBC Classic (TBC), Classic Era (Vanilla), and custom 16001 builds.
  • Zero-dependency Python parser & archiver: Parses WoW's Lua SavedVariables (including \ddd UTF-8 byte escapes and long strings) using only Python's standard library, with auto-discovery across Windows, macOS, Wine/Steam, and custom WoW folders.

In-Game Slash Commands

  • /wowstate or /wstate (also /wowstate save) — refresh the snapshot and immediately reload the UI to flush SavedVariables/WoWState.lua to disk
  • /wowstate collect — refresh the snapshot in memory only (without reloading the UI)
  • /wowstate status — print addon version, load count, collect counts, and last collect status
  • /wowstate help — show slash command usage

Python CLI Usage

Inspect SavedVariables (wow-state)

# Print a compact AI-ready JSON digest for the latest character (default; --only names are case-insensitive)
wow-state
wow-state --only character,stats,equipment
wow-state --character "Lyra" --indent 2
wow-state --all

# Discover SavedVariables files or list characters
wow-state --discover
wow-state --list

# Print a compact human-readable summary
wow-state --summary
wow-state --summary --character "Lyra"
wow-state --summary --all

# Query a single raw section as JSON (Lua sequences become arrays; --no-arrays keeps raw keys)
wow-state --section inventory
wow-state --section equipment
wow-state --section questLog
wow-state --section recipes

# Dump the entire raw parsed SavedVariables file as JSON
wow-state --raw path/to/SavedVariables/WoWState.lua

# The path may also be a WoW install, flavor, account, or SavedVariables folder
wow-state "/Applications/World of Warcraft"

Environment variables:

  • WOW_STATE_SV: explicit path to WoWState.lua
  • WOW_DIR: additional World of Warcraft root directory to scan during --discover

Archive Snapshot History (wow-state-archive)

World of Warcraft overwrites SavedVariables/WoWState.lua on every /reload or logout. Archive changed snapshots along with validated .json sidecars:

wow-state-archive --dest ./history

The archiver hashes only the Lua data portion (ignoring any optional bootstrap carrier), writes atomically, and skips unchanged files.

Packaging & Extras

  • Package addon ZIP: sh scripts/package.sh writes dist/WoWState-<version>.zip (with WoWState*.toc, WoWState.lua, and LICENSE) and prints its SHA-256 checksum. Also includes .pkgmeta and BigWigsMods/packager automation in .github/workflows/release.yml (set optional CF_API_KEY, WAGO_API_TOKEN, and WOWI_API_TOKEN repository secrets to publish to CurseForge, Wago Addons, and WoWInterface on v* tag pushes).
  • macOS launchd templates: see extras/launchd/README.md for scheduled background archiving.
  • Custom-client SavedVariables carrier: see extras/sv-carrier/README.md (only needed for private/custom clients that pin addon files after first load).

Development & Testing

# Run the Lua test harness under both LuaJIT (Lua 5.1) and Lua 5.4
luajit tests/lua/harness.lua
lua tests/lua/harness.lua

# Run the Python test suite
python3 -m pytest -v

# Lint shell scripts
shellcheck scripts/*.sh extras/sv-carrier/*.sh extras/launchd/*.sh

License

MIT License — see LICENSE.

Metadata

Release files for wow-state 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wow-state 1.1.2
File Size Uploaded Provenance Actions
wow_state-1.1.2.tar.gz 59.0 kB With provenance Details for wow_state-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wow-state 1.1.2
File Interpreter ABI Platform Actions
wow_state-1.1.2-py3-none-any.whl Python 3 none any Details for wow_state-1.1.2-py3-none-any.whl

Total release size: 88.4 kB

Release files / wow_state-1.1.2.tar.gz

Download URL wow_state-1.1.2.tar.gz
Size 59.0 kB
Tags Source
SHA-256 checksum
How to use checksums
06896c6b4fc8de516cdfb8882090ca9bdb577ba9ec306248fd64e750bdc4ffac
BLAKE2b-256 checksum
How to use checksums
ffbd675b90dfc9ae4ebf220ed6b2c731528a8aa0beb91b430e08bbd7cbb1ffd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / wow_state-1.1.2-py3-none-any.whl

Download URL wow_state-1.1.2-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3da56b00b2cbcb1b181362c1928ed018d4a3b8a8ef2faf29aeaf5b1b422a9090
BLAKE2b-256 checksum
How to use checksums
a903cf6df88b0fd5c29eee4ca2bc05cdef2912ebac5fb2fccf985d31fdf2a6ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for wow-state 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wow_state-1.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page