Poe2brain README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Poe2brain listing page.

poe2brain — Agent-Native Path of Exile 2 (0.5.5) Intelligence Engine

CI (Windows + macOS) Benchmark Patch MCP Tools Platforms Python License

Give Claude Code, Cursor, Antigravity, Codex, or Cherry Studio
real Path of Exile 2 (0.5.5) math — zero PoE1 hallucinations, zero POESESSID.

English · 简体中文 · Windows 保姆安装 · AI 助手接入与提示词 · 六大实战工作流

中文玩家请直接点这里: 简体中文完整说明 (README_ZH.md) | Windows 零编译保姆安装 | AI 客户端接入与提示词

不会命令行? 直接把仓库地址 https://github.com/lifan-builds/poe2brain 发给你的 AI 助手(Claude Code / Cursor / Codex / Antigravity),说一句 「帮我把 poe2brain 克隆下来并按 README_ZH.md 装好依赖、初始化 PoB2 并接入 MCP」 即可全自动完成!

Inspiration & Shoutout: Inspired by 流放降临-某雷 and exilemoulei/pob4agents for pioneering agentic Path of Exile 1 workflows. poe2brain is an independent clean-room engine built from the ground up specifically for Path of Exile 2 (0.5.5) — if you play PoE1, go check out pob4agents!


Why poe2brain?

General-purpose LLMs constantly hallucinate Path of Exile 1 mechanics onto Path of Exile 2 — quoting 75% Block caps, Scouring Orbs, Crafting Bench mods, removed 0.4 Homogenising Omens, or fake PoB-warrior DPS inflated by unsustainable flasks and 100% Shock.

poe2brain replaces guesswork with a single typed Python 3.12+ engine exposing 55 MCP tools (poe2brain-mcp) and 1:1 JSON CLI commands (poe2 ... --json) backed by live headless PathOfBuilding-PoE2, an offline Patch 0.5.5 SQLite + FTS5 database, official trade2 pricing, exact crafting probability solvers, and a self-validating loot filter studio.

Problem Players & AI Agents HitGeneric LLM / Ad-Hoc Scriptspoe2brain (Patch 0.5.5)
PoE1 vs PoE2 MechanicsHallucinates 75% Block, Scouring/Alt, Bench, PoE1 basesSQLite + FTS5 truth: 769 GGG popups, 54 0.5.5 anti-hallucination rules, 23 Ascendancies, EN + zh-CN/zh-TW
Fake PoB-Warrior NumbersTrusts inflated 100% Shock / flask-up tooltip DPSHeadless LuaJIT PoB2 (GetMiscCalculator()) with automatic dewatering audits + top-5 upgrade bottlenecks
Finding Hidden BuildsScrapes stale guides or top-1 meta mirror buildsDaily-synced PoB2-audited build index (GitHub Actions rolling release + SQLite cache): --preset sleeper ranks real DPS × move speed × rarity in <1s
Guessing Trade Upgrades by EyeHard to tell which unfinished weapon actually adds more real DPSQueries live Trade2 using your PoB2 stat weights, simulates +20% Quality + Runes, and ranks by true DPS/EHP gain
Crafting Cost GuessingEyeballs odds or recommends removed 0.4 Omens / 0.5 RecombinatorsExact conditional mod-pool MDP + Monte Carlo (p50/p80/p95) with mid-craft collateral brick protection
Loot Filter Clutter & CrashesHand-written .filter rules crash PoE2 or miss ilvl 82 / Exceptional bases7-trap 0.5.5 compiler, NeverSink restyler & Filter Doctor: live economy tiers, PoB2 + Exceptional (21%+/3-socket) crafting bases, EN/ZH voice callouts
Account Safety & Windows SetupAsks for POESESSID cookies or breaks compiling C/Lua on WindowsZero POESESSID (Local PoB2 sync + official GGG OAuth 2.1 PKCE); zero C compiler needed on Windows

Benchmark: How Accurate Is poe2brain?

To measure accuracy objectively, we built PoE2Bench-0.5.5 — a reproducible 22-question, 75-check offline benchmark spanning all 6 pillars (Patch 0.5.5 Mechanics, EN/zh-CN Roster & Bases, Exact Conditional Crafting Math, Atlas & Waystone Regex, Headless PoB2 Auditing/Swaps/HC/Runes/What-If, and Loot Filter Validation). Both arms ran the exact same frontier model (gpt-6.2-astra) with zero web search and identical decoded plain-text .xml PoB2, .filter, and clipboard fixture files:

Metric (gpt-6.2-astra, same model, 0 web search)Without poe2brainWith poe2brainImprovement
Exact Task Pass Rate6 / 22 (27.3%)22 / 22 (100.0%)+72.7 pp (3.7×)
Sub-Check Factual Accuracy38 / 75 (50.7%)75 / 75 (100.0%)+49.3 pp
PoE1 / Stale-Patch Hallucinations4 / 22 (18.2%)0 / 22 (0.0%)Zero hallucinations

Sample Benchmark Questions (Without vs. With poe2brain)

#Real Player Question (Patch 0.5.5)Without poe2brainWith poe2brain
Q02Base passive Block cap, Glancing Blows keystone effect, and Deflection mitigation % & cap?❌ Hallucinated PoE1 75% Block cap & PoE1 rules✅ 50% Block cap, Evade Unlucky / Deflect Lucky, 40% / 95% cap
Q09On an ilvl 82 Rare Warmonger Bow, compare Greater vs. Perfect Exalted Orb odds to hit T1 % Physical Damage (weight 25)❌ Cannot compute 0.5.5 affix pool weights (symbolic formula only)✅ Exact pool math: 40,482 weight (0.0618%, 1,619.3 tries) vs. 24,782 weight (0.1009%, 991.3 tries — 1.634×)
Q100/2/4/6-mod Waystone revives, Tablet placement, 3 Patch 0.5 Atlas Masters, and 0.5.5 Sacred Blooms❌ Wrong 6 revives on 0-mod; couldn't name Atlas Masters or Sacred Blooms✅ 5/4/2/0 revives, Map Device Tablets, Jado / Hilda / Doryani (1 active), Viridian Wildwood / Azmeri Wisps
Q12Compile a <=50-char PoE2 negated stash regex hiding all 6 CI/ES (es_ci) brick Waystone hazards❌ Put ! inside quotes ("!m player r|...", broken PoE2 syntax)✅ !"buil|ever|of l|pene|weak|player r" (36 chars, 6/6 hazards, 0 FP/FN)
Q17Legal 6-link dewatered support swap (--best-swap --dewater) on 5/5-filled Amazon Ice Shot + verify Elemental Focus Int req❌ Could not find weakest support, legal swap DPS, or recalculated Int requirement✅ Auto-replaced weakest #4 Stoicism II with Hit and Run (121,674 → 170,344, +40.0%); #2 Elemental Focus (+23.98%, attributes_met_after = true)
Q19Balanced Rune & Soul Core optimization (--offline-prices) preserving Socket-bound augments + true net PoB2 swap delta❌ Used stale +7% Tacati value (wasting 7 cores instead of 3); could not compute net DPS/EHP delta✅ Preserved locked Kolr's Hunt (11/12 sockets), 3 Soul Core of Tacati (21% → 60% Chaos), true net -43,108 DPS / +2,017 EHP, offline cost null
Q22Exact what-if (multiplierRage=0 only) DPS drop + offline quad-tab triage (--no-live-trade)❌ Mental math divided by 1.30 (183,020, -23.1% — off by ~9.5 pp!)✅ Exact 237,993 → 160,418 (-32.6%); offline triage: Normal ilvl 82 wand 3P/3S open, ring salvage_or_vendor

Full 22-question suite, per-pillar breakdown, archived raw transcripts (benchmarks/results/codex_0_5_5.json), and reproduction instructions: benchmarks/README.md. Re-score deterministically in 1 second:

bash
uv run python benchmarks/run_benchmark.py score benchmarks/results/codex_0_5_5.json

Multi-Model Agentic Execution Benchmark (PoE-Bench): Beyond single-turn Q&A, we also publish lifan-builds/poe-bench (live leaderboard) — a standalone, Terminal-Bench-style 22-task offline execution benchmark (506 verified trials across Gemini 4, Claude 5.5, and GPT-6) with zero CLI spoilers and deterministic engine grading. Without poe2brain, all three frontier families score 0/30 (0.0% Pass@1); with poe2brain, top models across every family reach 100% (+83–100 pp verified tool lift).


Real Output Showcase

1. Find Underrated High-DPS, High-Mobility Builds in 1 Command

bash
uv run poe2 ninja search --preset sleeper --limit 5
text
     poe.ninja Builds — Forbidden Rites (matched 59/345 | preset=sleeper | sort=sleeper)
┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━┓
┃ Character        ┃ Ascendancy         ┃  Lv ┃ Main Skill        ┃        DPS ┃    EHP ┃  Move ┃
┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━┩
│ popyj            │ Pathfinder         │ 100 │ Ice Shot          │ 15,150,400 │ 29,631 │ 1.99x │
│ 一阿克一         │ Pathfinder         │  99 │ Ice Shot          │ 15,093,062 │ 23,467 │ 2.04x │
│ Noxious_Fu...    │ Acolyte of Chayula │ 100 │ Poisonburst Arrow │  5,652,710 │ 36,369 │ 1.71x │
│ EightChall...    │ Shaman             │ 100 │ Spark             │  7,113,825 │ 24,586 │ 1.98x │
│ 风枪锐眼         │ Pathfinder         │ 100 │ Ice Shot          │  3,979,867 │ 21,084 │ 2.17x │
└──────────────────┴────────────────────┴─────┴───────────────────┴────────────┴────────┴───────┘

2. Everyday Power Commands (Fewer Flags, Smarter Defaults)

bash
# Dewatering audit + automatic top-5 bottleneck diagnosis + mobility & CI immunity
uv run poe2 pob audit --slot main

# Zero-install '10D Budget -> Top 3 Upgrades' interactive web studio & shareable HTML/PNG card
uv run poe2 web --port 8765 --open
uv run poe2 audit-card example:amazon --budget 10d --priority balanced --out my_10d_card.html

# Exact PoB2 formula provenance, Tier I-III + Lineage support sweep, and Controlled Metamorphosis rings
uv run poe2 pob calc-breakdown EnergyShield --slot main
uv run poe2 pob supports --slot main --max-tier 2 --no-lineage
uv run poe2 pob radius-jewels --jewel "Controlled Metamorphosis" --slot main

# Live trade2 upgrades ranked by real PoB2 gain (auto-simulating +20% Quality & Runes)
uv run poe2 trade upgrades --equip-slot "Weapon 1" --max-exalted 50 --slot main

# Compare a 25 Ex budget with 100 Ex across the same gloves and boots
uv run poe2 trade plan --slot main --equip-slot Gloves --equip-slot Boots --budget 25 --budget 100 --json
# Replay saved offers from either realm
uv run poe2 trade plan --slot main --offers offers.json --budget 25 --budget 100 --objective defence --json

# Unified capital/Gold arbitrage scan (accepts '500' Exalted or '5d' Divines) & profitable craft scanner
uv run poe2 econ arbitrage --budget 5d --gold 50000
uv run poe2 craft profit --budget mid

# PoB2-aware <=50-char Waystone & Precursor Tablet stash regexes (with 0..6 mod revive schedule)
uv run poe2 wiki regex --slot main

# Start with NeverSink's semi-strict PoE2 filter. Use a local .filter path to branch from your own.
uv run poe2 filter restyle semi_strict --base-only --out my_build.filter

# Add a look to the working copy
uv run poe2 filter restyle my_build.filter --base-only --look "obsidian gold" --out my_gold.filter

Architecture & Six Pillars

mermaid
flowchart TB
    A["AI Agents & Players<br/>Claude Code · Cursor · Antigravity · Codex · Devin · Terminal"]
    A -->|JSON-first CLI| CLI["poe2 (Typer)"]
    A -->|stdio MCP| MCP["poe2brain-mcp (55 Tools, 1:1 Parity)"]
    CLI --> CORE["Typed Python 3.12+ Domain Core"]
    MCP --> CORE

    CORE --> P1["1. Knowledge & Meta<br/>SQLite + FTS5 · 23 Ascendancies<br/>EN/ZH · <=50c Waystone Regex"]
    CORE --> P2["2. Headless PoB2<br/>LuaJIT RPC · Dewater Audit<br/>Supports · Radius Jewels · What-If"]
    CORE --> P3["3. Economy & Trade2<br/>Exalted=1.0 · PoB2 Upgrades<br/>Arbitrage · Quad-Tab Triage"]
    CORE --> P4["4. Crafting Solver<br/>Conditional Pool · MDP + MC<br/>Collateral Rescue · Profit Scan"]
    CORE --> P5["5. poe.ninja Builds<br/>Daily-Synced Build Index · Presets<br/>!Negation · Timeline Stepping Stone"]
    CORE --> P6["6. Loot Filter Studio<br/>7-Trap Validator · NeverSink Restyler<br/>PoB2/ilvl82 Bases · Voice Callouts"]
Deep Dive: What's Inside Each of the Six Pillars
  1. Knowledge, Ascendancies & Live Ladder Meta (poe2brain.knowledge) — Read-only SQLite + FTS5 index (data/poe2_0.5.5.sqlite) over 769 official GGG KeywordPopups, 54 Patch 0.5.5 anti-hallucination rules & formulas, 1,711 gems, 443 uniques (439 live in 0.5.5), 3,219 live PoE2 bases (catching PoE1 / stale 0.1 Expert base traps), 313 socketable augments, 293 crafting levers, and 882 Verisium/Kalguuran runeforge recipes, plus MetaService (TreeData/0_5 8 playable classes & 23 Ascendancies, Abyssal Lich inheritance, choice notables, bilingual zh-CN/zh-TW aliases, and live SC/HC/SSF/HCSSF ladder shares).
  2. Headless Path of Building 2 (poe2brain.pob) — Persistent native LuaJIT + PathOfBuilding-PoE2 (tree 0_5) JSON-RPC 2.0 daemon supporting multi-slot builds (main, ref, candidate), eN... / poe.ninja / poe2db.tw / maxroll.gg / pobb.in / XML / GGG .build JSON I/O, dewatering audits with automatic upgrade bottlenecks, explain_calc formula provenance, rank_support_gems, rank_radius_jewels, transactional what_if sandboxing, <10ms GetMiscCalculator() item sweeps, and marginal trade2 stat weights.
  3. Live Economy, Arbitrage & Official Trade2 (poe2brain.trade) — 3-tier pricing router normalized to Exalted Orb = 1.0 combining api.poe2scout.com + poe.ninja exchange overviews with unauthenticated pathofexile.com/api/trade2 (GGGRateLimiter + 1.0s buffer), ArbitrageScanner (--budget/--gold, profit_ex_per_10k_gold, compounding ladders, trap filters), Exiled-Exchange-2-backed EN/ZH Ctrl+C / Ctrl+Alt+C item parsing, PoB2-ranked slot upgrade search (auto-simulating +20% quality + Greater Runes), and multi-item quad-tab triage.
  4. Exact Crafting Odds, Policy & Profit Scanner (poe2brain.crafting) — Conditional ModPoolEngine (display_tier = 1 best, tiered orb min_mod_level floors, family mutual exclusion, dynamic elemental tag-blocking, 3-draw without-replacement Well of Souls unveil, Omen of Whittling, cross-pool Crystallisation, blocking removed 0.4 Homogenising Omens & 0.5 Recombinators) + sunk-cost-disciplined CraftingPlanner (4-mod Fracturing Orb, p50/p80/p95 Monte Carlo, buy-vs-craft) + CraftProfitScanner with automatic competition_level & niche_score.
  5. PoE Ninja Builds Discovery & Live Character Import (poe2brain.ninja) — Live poe.ninja build-index-state & snapshot-versions telemetry across SC/HC/SSF/HCSSF, pure-stdlib SearchResult protobuf + NDIC\x02 decoder, <2ms <PathOfBuilding2> XML inspector, multi-facet search with 5 intent presets, !Term negation, and a runtime SQLite BuildStore (~/.cache/poe2brain/builds.sqlite) synced via ETag from the daily GitHub Actions rolling build-index release (plus write-through caching on live imports and time-machine budget stepping-stone discovery).
  6. PoB2-Aware Loot Filter, NeverSink Restyler & Voice Callout Studio (poe2brain.filters) — Self-validating PoE2 0.5.5 .filter compiler & FilterValidator enforcing all 7 client-crash traps, live economy tiering, PoB2 build-priority + Exceptional (21%+ quality / 3+ sockets) + ilvl 81/82 jewellery & weapon crafting bases, clean endgame Uncut Gem / Flask / Charm clutter pruning, 8 WCAG-verified visual presets (plus optional CVD-safe & night-mode modifiers), pure-stdlib 44.1 kHz 16-bit stereo .wav/.mp3 synth + bilingual EN/ZH voice_callout packs, NeverSink 0.10.4a auto-healing & restyling, Filter Doctor (poe2 filter heal), and interactive HTML drop previews.

60-Second Quickstart

Requirements: Python 3.12+ and uv.

bash
git clone https://github.com/lifan-builds/poe2brain.git
cd poe2brain
uv sync

# Bootstrap headless PathOfBuilding-PoE2 runtime into ~/.cache/poe2brain/pob2
# • Windows: zero C compiler needed (auto-reuses local PoB2 or pulls MIT x64 lua51.dll)
# • macOS / Linux: compiles LuaJIT 2.1 + luautf8 automatically
uv run poe2 init  # choose 国服 (cn) or 国际服 (international)
uv run poe2 bootstrap pob2

# Verify engine, SQLite 0.5.5 gamedata DB, and PoB2 runtime readiness
uv run poe2 version --json

Windows 中文用户? 请直接查看保姆级图文命令指南:docs/zh/QUICKSTART_WINDOWS.md

Try the web playground or its China mirror. For local setup in China, the Windows installer tries a mirror of the GitHub repository first. See the Chinese setup guide.

Importing Your Character (Day-1 Friendly, Zero POESESSID)

  • Option 1 — Zero-Auth Local PoB2 Sync (Works Immediately): Auto-discovers builds saved in your desktop Path of Building (PoE2) folder:
    bash
    uv run poe2 pob import-local --list
    uv run poe2 pob import-local --slot main
    
  • Option 2 — poe.ninja Character URL or Any PoB2 Share Code (poe2db / maxroll / pobb.in / WeGame):
    bash
    uv run poe2 ninja character "<poe.ninja_url>" --load-pob --slot main
    uv run poe2 pob load "<eN..._code_or_pobb.in_url>" --slot main
    
  • Option 3 — Official GGG OAuth 2.1 PKCE (Pending GGG Client Approval Until PoE2 1.0): GGG has paused new OAuth client approvals until 1.0, so the default poe2brain client ID currently returns invalid_client. Use Option 1 or Option 2 unless you supply your own GGG-approved POE2BRAIN_OAUTH_CLIENT_ID:
    bash
    POE2BRAIN_OAUTH_CLIENT_ID="<your_approved_client_id>" uv run poe2 auth login
    uv run poe2 pob import-character --list
    uv run poe2 pob import-character "<CharacterName>" --slot main
    

Connecting to Your AI Assistant

A terminal prompts for the game realm on first use. Switch later with poe2 init cn or poe2 init international. CLI and MCP share the choice. Noninteractive commands keep the existing international behavior until a realm is selected. Tencent character imports, filters, and prices

Use poe2 setup-mcp --profile core to configure an MCP client with 21 core tools. Run poe2 doctor to check the installation, poe2 update (poe2 update --cn in mainland China) to pull the latest engine, gamedata DB, and pinned PoB2 runtime in one command, or poe2 uninstall to remove it. Connected AI agents and interactive terminals check /api/version every 12h (opt out via POE2BRAIN_NO_UPDATE_CHECK=1 or NO_UPDATE_NOTIFIER=1) and surface a warning immediately when a new PoE2 game patch (such as 1.0) goes live. After running poe2 update, restart or toggle the poe2brain MCP switch in your AI client so the updated stdio server loads.

The repository also ships manifests for these clients:

Copy-Paste MCP Config (Claude Desktop / Cursor / Cherry Studio / Generic MCP)
config.json
{
  "mcpServers": {
    "poe2brain": {
      "command": "uv",
      "args": ["--directory", "/ABSOLUTE/PATH/TO/poe2brain", "run", "poe2brain-mcp"]
    }
  }
}

Manual stdio launch:

bash
uv run poe2brain-mcp

1:1 MCP Tool & CLI Command Reference

Every single MCP tool maps 1:1 to a poe2 ... --json CLI command over the exact same typed domain services (55 tools total; any --json command also accepts universal --compact, --fields <dot.paths>, --json-out <file>, --max-bytes <N>, and --full flags):

Expand / Collapse Full 55-Tool Reference Table
PillarMCP Tool (poe2brain)CLI Command (uv run ...)Purpose
Setuppoe2_initpoe2 init <realm> --jsonSave the player’s realm for the CLI and MCP.
Healthpoe2_statuspoe2 version --jsonVerify patch (0.5.5), default league (Forbidden Rites), SQLite DB, and headless PoB2 readiness.
Knowledgepoe2_search_knowledgepoe2 wiki search "<query>" [--category <cat>] [--limit 12] --jsonFTS5 + exact search across 769 GGG KeywordPopups, 54 anti-hallucination rules, 1,711 gems, 443 uniques (439 live in 0.5.5), 3,219 live bases, 313 augments, 293 levers, and 882 runeforge recipes.
Knowledgepoe2_explain_mechanicpoe2 wiki mechanic "<topic>" --jsonAuthoritative MechanicFact (poe1_trap, poe2_live_rule, formula_expr) + official GGG keyword popups.
Knowledgepoe2_inspect_gempoe2 wiki gem "<name>" --jsonActive, Spirit, Meta, Tiered Support (I/II/III), and lineage_support (max_copies_per_char=1) gem inspection.
Knowledgepoe2_inspect_basepoe2 wiki base "<name>" [--ilvl 82] --jsonBase properties, implicits, display_tier=1 affixes at ilvl, and PoE1 / stale Expert trap warnings.
Knowledgepoe2_inspect_uniquepoe2 wiki unique "<name>" --jsonUnique base type, implicits, explicits, and is_chanceable status.
Knowledgepoe2_inspect_augmentpoe2 wiki augment "<query>" --jsonRunes, Soul Cores, Azmeri Idols, Shaman Bonded: bonuses, and Verisium / Kalguuran Remnant recipes.
Knowledgepoe2_inspect_ascendancypoe2 wiki ascendancy ["<name_or_class>"] [--class <cls>] --jsonList all 23 PoE2 0.5.5 Ascendancies (8 classes) or inspect notables, choice nodes, and PoE1/1.0 traps.
Knowledgepoe2_meta_ladderpoe2 wiki meta [--league "Forbidden Rites"] --jsonLive SC/HC/SSF/HCSSF ladder shares, Ascendancy tier rankings, and liquid chase item demand signals.
Knowledgepoe2_waystone_regexpoe2 wiki regex [--slot <slot>] [--archetype <csv>] [--avoid <csv>] [--want <csv>] [--tablet-want <csv>] [--min-waystone-drop 120] [--min-pack-size 20] [--item-text "<ctrl_c>"] --jsonCompile verified <=50-char PoE2 Waystone brick/safe/juicing & Precursor Tablet stash regexes + 0..6 mod revive schedule.
Knowledgepoe2_tablet_planpoe2 wiki tablet [--mode plan|inspect|regex] [--goal <g>] [--slots 1..3] [--tablet <name>] [--preset <p>] [--item-text "<ctrl_c>"] --jsonPlan 1–3 Map Device Precursor Tablet loadouts, inspect SQLite tablet mod pools/weights or pasted tablets, and compile <=50-char tablet regexes.
Knowledgepoe2_relic_planpoe2 wiki relic [--mode plan|pack|inspect] [--goal <g>] [--grid 6x3] [--target-honour-res 75] [--relics-json <json>] --jsonExact non-rotating 2D Trial of the Sekhemas Relic grid packer (Urn/Seal/Amphora/Tapestry/Vase/Coffer/Incense) enforcing the 75% Honour Resistance cap + <=50-char stash regex.
PoB2poe2_pob_loadpoe2 pob load <code_url_or_file> [--slot main] --jsonLoad eN... share code, poe.ninja / poe2db.tw / maxroll.gg / pobb.in URL, PoB XML, or GGG .build JSON into a persistent named slot.
PoB2poe2_pob_exportpoe2 pob export --slot main --format code --jsonReturn a share code to reopen the saved build in PoB2. Use xml for inspection or ggg_json for the game planner.
PoB2poe2_pob_statspoe2 pob stats [--slot main] --jsonExtract FullDPS, TotalEHP, Life, ES, Mana, Spirit, resists, chaos_immune, Max Hits, movement_speed_mod, attack_cast_speed, crit, Block, Deflection, Evasion, Armour.
PoB2poe2_pob_auditpoe2 pob audit [<code_url_or_file>] [--slot main] --jsonDewatering audit: strip PoB-warrior config inflation and return sustainable Pinnacle stats, culprits, and actionable bottlenecks.
PoB2poe2_pob_comparepoe2 pob compare [--slot-a early] [--slot-b main] [--dewater] --jsonCompare two persisted PoB2 slots across DPS/EHP, gear/uniques, skills, passives, and exact 0.5.5 Gold respec cost.
PoB2poe2_pob_hc_auditpoe2 pob hc-audit [<code_url_or_file>] [--slot main] [--top-nodes 5] --jsonAudit HC Pinnacle Boss Max Hits, Bleed/Poison ES bypass, Chaos 2x ES vulnerability, Charms, and top defensive EHP respecs.
PoB2poe2_pob_eval_itempoe2 pob eval-item --equip-slot "<slot>" --item-text "<text>" [--slot main] --jsonNon-destructive GetMiscCalculator() item swap returning ItemUpgradeDiff (full_dps_delta, total_ehp_delta, spirit_unreserved_delta).
PoB2poe2_pob_stat_weightspoe2 pob weights --equip-slot "<slot>" [--objective balanced|dps|ehp] [--slot main] --jsonCompute marginal PoB2 stat weights (SlotStatWeights) and unauthenticated-safe trade2 filter JSON.
PoB2poe2_pob_suggest_nodespoe2 pob nodes [--mode perPoint|total|anoint|megalomaniac] [--slot main] [--top 10] --jsonRank reachable passive notables (perPoint/total), Amulet anoints (anoint), or Megalomaniac 2–3 notable combos + clickable trade2 URL (megalomaniac).
PoB2poe2_pob_optimize_runespoe2 pob runes [--slot main] [--objective balanced|dps|ehp|spirit|rarity] [--max-budget <ex>] --jsonSolve Armour/Weapon Rune & Soul Core Resist Tetris & socket optimization using SQLite 0.5.5 slot effects and transactional PoB2 DPS/EHP/Resist verification.
PoB2poe2_pob_calc_breakdownpoe2 pob calc-breakdown "<query>" [--slot main] [--skill-group <idx>] [--max-mods 40] --jsonInspect exact PoB2 calculation formulas & BASE/INC/MORE/FLAG modifier provenance grouped by source (CalcBreakdownReport).
PoB2poe2_pob_supportspoe2 pob supports [--slot main] [--group <idx>] [--replace-slot <n>] [--replace-gem "<name>"] [--max-tier <1..5>] [--lineage/--no-lineage] [--top 15] --jsonRank all compatible PoE2 0.5.5 Support Gems (Uncut tiers 1–5 + Lineage) by DPS/EHP delta, Mana sustain, Spirit overflow, and Lineage max_copies=1 conflicts.
PoB2poe2_pob_radius_jewelspoe2 pob radius-jewels [--jewel "<jewel>"] [--slot main] [--stat FullDPS] [--max-dist 10] [--top 10] --jsonRank Passive Tree Jewel Sockets × radius rings (Controlled Metamorphosis / Against the Darkness) by per-point gain & travel points saved.
PoB2poe2_pob_what_ifpoe2 pob what-if [--slot main] [--equip "Slot=TextOrPath"] [--edit-slot "<slot>" --add-mod "<line>" --remove-mod "<sub>" --set-quality 20] [--alloc-node <id>] [--dealloc-node <id>] [--config k=v] [--borrow-from <ref> --borrow-slot "<slot>"] [--scenario-matrix] [--apply] --jsonTransactional multi-change PoB2 hypothesis sandbox (WhatIfReport) with per-piece attribution, 3-scenario matrix, and automatic rollback.
PoB2poe2_pob_import_localpoe2 pob import-local [<name_or_path>] [--dir <builds_dir>] [--slot main] [--list] --jsonDiscover or load saved local Path of Building (PoE2) .xml builds directly (zero-auth Day-1 sync on Windows/macOS/Linux).
PoB2poe2_pob_import_characterpoe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --jsonImport a direct WeGame #/share/… link, PoE2DB character page, PoB code, or GGG OAuth character.
PoB2poe2_pob_fix_gapspoe2 pob fix-gaps [--slot main] [--target-ele 75] [--target-chaos 60] [--attr-buffer 0] [--max-points 3] --jsonSolve resistance & attribute deficits via unselected quest rewards, overwriteable runes (PoB2-verified), 20% jewellery catalysts, and lowest-point passives.
PoB2poe2_pob_spiritpoe2 pob spirit [--slot main] [--weapon-set 1|2] [--extra-spirit 0] [--include <csv>] [--exclude <csv>] [--candidates <csv>] [--objective balanced|dps|ehp] --jsonAudit Weapon Set 1/2 Spirit pools & provenance, solve exact 0/1 knapsack Spirit reservations, and compute the next Spirit breakpoint.
PoB2poe2_pob_treepoe2 pob tree [--mode rank-wheels|prune|weapon-set] [--slot main] [--stat FullDPS|TotalEHP] [--top 8] --jsonGroup and rank whole passive wheels jointly, find connectivity-safe leaf passives to refund with exact 0.5.5 Gold cost, or audit the 24-point Weapon Set 1/2 split.
Economypoe2_currency_pricepoe2 econ price "<query>" [--league "Forbidden Rites"] --jsonLive CurrencyQuote normalized to {exalted, chaos, divine} (Exalted = 1.0) with 7d trend and volume.
Economypoe2_market_scanpoe2 econ scan [--category <cat>] [--min-volume-divine 5.0] [--league "Forbidden Rites"] --jsonHigh-liquidity exchange movers, numeraire-normalized cross-source spreads, and chanceable Uniques.
Economypoe2_boss_evpoe2 econ bosses [--encounter <id>] [--league "Forbidden Rites"] --jsonLive Pinnacle Boss & Trial entry costs vs chase unique drops (Arbiter, Xesht, Simulacrum, King in the Mists, Olroth, Sekhema, Trialmaster) with jackpot ratios & variable-roll notes.
Economypoe2_farming_strategypoe2 econ farming [--stage day1|early|mid|endgame] [--budget 100|5d] [--focus balanced|steady|jackpot|speed] [--slot main] --jsonRank Patch 0.5.5 league-start & Atlas farming loops (Fortress Rush, Expedition, Ritual+Wildwood, Breach, Sekhema, Chaos, Delirium, Boss Rush, Negative-IIR) with live prices, Atlas Masters (Jado/Hilda/Doryani), Tablets, IIR guidance, and optional PoB2 build-fit scoring.
Economypoe2_scan_arbitragepoe2 econ arbitrage [--budget 500|5d] [--gold <g>] [--ladder-target-divine <d>] [--min-volume-divine 2.0] [--live-books/--no-live-books] --jsonExecutable 0.5.5 conversions, Alva spreads, order books, profit_ex_per_10k_gold, trap warnings, or multi-rung capital & Gold compounding ladder.
Tradepoe2_parse_itempoe2 trade parse [--file <path> | --text "<ctrl_c>"] --jsonParse PoE2 Ctrl+C / Ctrl+Alt+C text into ParsedItem and PoB2 Item.lua text.
Tradepoe2_price_checkpoe2 trade check [--file <path> | --text "<ctrl_c>"] [--include-whisper] [--league "Forbidden Rites"] --json3-tier price check using buyout listings by default and exchange quotes with price-fixer outlier warnings.
Tradepoe2_triage_dumppoe2 trade triage [--file <path> | --text "<multi_item_dump>"] [--min-exalted 5.0] [--include-whisper] [--live-trade/--no-live-trade] --jsonBatch price-check & classify multi-item Ctrl+C dumps into sell_instant, craft_finish_ev, high_variance_id_or_unveil, and salvage_or_vendor.
Tradepoe2_find_upgradespoe2 trade upgrades --equip-slot "<slot>" [--max-exalted 50] [--min-spirit 0] [--include-whisper] [--normalize-topoff/--no-normalize-topoff] [--slot main] --jsonQuery live trade2 for slot upgrades, evaluate raw & craft-topped-off (20% Quality + Greater Runes) stats in PoB2, and rank by true all-in ROI.
Tradepoe2_plan_upgradespoe2 trade plan --budget 25 --budget 100 --equip-slot Gloves --equip-slot Boots --slot main --jsonCompare complete gear combinations at each Exalted budget. Supply a JSON offer array in either realm, or sample international buyouts. Offer format and replay
Craftingpoe2_craft_oddspoe2 craft odds --base "<base>" --ilvl 82 [--lever "<lever>"] [--target "<mod>"] [--omen "<omen>"] [--item-text "<ctrl_c>"] [--protect-existing/--no-protect-existing] --jsonExact conditional mod-pool hit odds (CraftActionEval) with live currency pricing and mid-craft collateral protection.
Craftingpoe2_craft_planpoe2 craft plan --base "<base>" --ilvl 82 --target "<mod>"... [--buy-exalted <p>] [--sims 3000] --jsonOptimal state-conditional policy + Monte Carlo cost (expected_cost_exalted, p50/p80/p95) + trade_vs_craft.
Craftingpoe2_scan_craft_profitpoe2 craft profit [--budget all|low|mid|high] [--live-trade/--no-live-trade] [--league "Forbidden Rites"] --jsonRank profitable 0.5.5 crafts with sanitized live inputs, p50/p80 drawdowns, live securable exits, competition_level, and niche_score.
Craftingpoe2_craft_nextpoe2 craft next [--file <path> | --text "<ctrl_c>"] --target "<mod>"... [--max-budget <ex>] [--buy-exalted <p>] --jsonMid-craft advisor for a live pasted item: identifies open slots, Whittling/Crystallisation/Omen of Light collateral-safe actions, and sunk-cost bailout threshold.
Craftingpoe2_craft_sweetspotpoe2 craft sweetspot --base "<base>" --target "<mod>"... [--lever "<lever>"] [--min-ilvl 1] [--max-ilvl 84] --jsonSweep base item levels (1..84) under exact 0.5.5 currency-floor exemption rules to find the peak hit-rate ilvl before high-level trash dilutes the pool.
Ninjapoe2_ninja_snapshotspoe2 ninja snapshots [--league "Forbidden Rites"] --jsonLive poe.ninja PoE2 build-index-state & snapshot-versions across SC/HC/SSF/HCSSF modes and time-machine labels.
Ninjapoe2_ninja_searchpoe2 ninja search [--preset sleeper|zoom_mapper|league_start|boss_killer|hc_tank] [--ascendancy <csv_or_!neg>] [--skill <sk>] [--unique <u_or_!neg>] [--sort dps|ehp|level|es|life|sleeper|mobility] --jsonMulti-facet Forbidden Rites build search with intent presets, !Term negation, pre-audited dewatered_dps, movement_speed_mod, and sleeper_score.
Ninjapoe2_ninja_characterpoe2 ninja character <account_or_url> [--name <char>] [--league "Forbidden Rites"] [--timemachine <lbl>] [--probe-timeline] [--load-pob] [--slot main] [--audit] --jsonImport live poe.ninja character or PoB2 share URL, binary-search time-machine stepping stones (--probe-timeline), or load + audit in PoB2.
Filterpoe2_filter_presetspoe2 filter presets --jsonList all 8 WCAG visual theme presets, 6 strictness tiers, 6 custom soundpack styles + musical keys/scales, and local PoE2 filter dir.
Filterpoe2_filter_restylepoe2 filter restyle <source_path_or_neversink_strictness> [--base-only] [--theme <preset>] [--look "<theme/cvd/2am/sound prompt>"] [--pob <code>] [--slot <slot>] [--slots <s1,s2>] [--out <path>] [--preview-html <html_path>] [--install] --jsonDefault recommendation for a new filter. Start from the player's file or NeverSink with --base-only to keep its priorities.
Filterpoe2_filter_generatepoe2 filter generate [--strictness semi_strict] [--theme <id>] [--look "<theme/cvd/2am/sound prompt>"] [--pob <code>] [--slot <slot>] [--slots <s1,s2>] [--out <path>] [--preview-html <html_path>] [--install] --jsonGenerate a native filter from scratch when requested. Compile a validated 0.5.5 .filter with live economy, solo/co-op --slots PoB2 context, inline --look theme/CVD/2am/sound intent, .wav/.mp3 soundpack, and HTML preview.
Filterpoe2_filter_validatepoe2 filter validate <filter_file_or_text> [--sound-dir <dir>] --jsonValidate any .filter file or text against PoE2 0.5.5 ItemClasses, BaseItemTypes, grammar bounds, and custom sound files.
Filterpoe2_filter_healpoe2 filter heal <filter_file_or_text> [--out <path>] [--sound-dir <dir>] --jsonFilter Doctor: auto-heal broken PoE1 / PoE2 0.1 .filter syntax, stale Expert prefixes, singular classes, and dead conditions to 0 errors.
Additional CLI Utility Subcommands & Developer Commands
  • poe2 lang [en|zh-CN|zh-TW] --json — Read or persist the preferred trilingual output locale (en, zh-CN, zh-TW) shared across CLI and MCP (overridable via POE2BRAIN_LANG).
  • poe2 pob daemon <status|start|stop> [--idle-timeout 300] --json — Inspect, pre-warm, or stop the persistent idle-TTL background PoB2 socket daemon auto-spawned by CLI commands.
  • poe2 web [--host 127.0.0.1] [--port 8765] [--live-trade/--offline] [--lang en|zh] [--open] — Launch the bilingual dark-fantasy 10D Budget -> Top 3 Upgrades web studio (GET / + POST /api/audit) with 1-click example builds and PNG/HTML card export.
  • poe2 audit-card [<code_file_or_example>] [--budget 10d] [--priority balanced|dps|ehp] [--live-trade/--offline] [--out <card.html>] [--lang en|zh] --json — Compute ranked Top 3 DPS/EHP-per-Divine upgrades and emit a self-contained bilingual Shareable HTML Upgrade Card.
  • poe2 wiki runeforge "<query>" [--limit 12] --json — Search Verisium Anvil base transforms and Kalguuran Remnant rune recipes directly.
  • poe2 pob export [--format code|xml|ggg_json] [--out <path>] [--slot main] --json — Export a persisted build slot to share code, XML, or official GGG .build JSON.
  • poe2 pob equip --equip-slot "<slot>" [--item-text "<text>" | --file <path>] [--slot main] --json — Persistently equip an item into a saved PoB2 slot.
  • poe2 pob slots [--create <slot> --class <cls> --ascendancy <asc>] [--clone-from <a> --clone-to <b>] [--delete <slot>] [--gems "<links>"] [--config key=val] [--custom-mods "<mods>"] --json — Manage and mutate persisted CLI PoB2 slots (~/.cache/poe2brain/pob_slots).
  • poe2 econ rates [--league "Forbidden Rites"] --json — Inspect live Exalted : Chaos : Divine reference rates and active PoE2 leagues.
  • poe2 sync gamedata [--out <path>] --json — Deterministically rebuild data/poe2_0.5.5.sqlite from MIT upstream sources and bundled weights.
  • poe2 bootstrap pob2 [--force] --json — Seed or compile the local LuaJIT + PathOfBuilding-PoE2 runtime.
bash
# Rebuild the patch 0.5.5 database and refresh the PoB2 build index
uv run python scripts/sync_gamedata.py
uv run python scripts/sync_build_index.py

# Lint & run offline unit + headless PoB2 integration suites (tested on Windows + macOS CI)
uv run ruff check . scripts
uv run pytest -v -k "not test_live_"

# Include live Forbidden Rites network round-trip tests
POE2_LIVE_TESTS=1 uv run pytest -v

Upstream Attribution & GGG ToS Boundary

  • Clean-Room Upstream Data Attribution: Bundled lookup data in data/ derives strictly from permissive MIT-licensed upstream projects (PathOfBuildingCommunity/PathOfBuilding-PoE2, Kvan7/Exiled-Exchange-2 in data/ee2/LICENSE.Exiled-Exchange-2, ackness/pobr test fixture in tests/fixtures/LICENSE.pobr, repoe-fork/poe2 & thmsndk/vscode.poe2-filter in data/filter/LICENSE.filter-data, plus optional MIT NeverSinkDev/NeverSink-Filter-for-PoE2 base filter healing), with original upstream MIT notices preserved.
  • Strictly Out-of-Game & ToS-Compliant: poe2brain never reads POESESSID or auth cookies, never calls Cloudflare-gated /api/protected/ routes, never inspects game memory or screen frames, never injects inputs into the Path of Exile 2 client, uses official GGG OAuth 2.1 PKCE for private character imports, and paces all public trade2 requests through GGGRateLimiter.

License

Open source under GPL-3.0-only, with the Section 7 attribution terms in ATTRIBUTION.md. Copies, integrations, and modified versions must stay under GPL-3.0, keep this credit in their README / credits (and --version or About output for standalone forks), mark their changes, and may not use the poe2brain name:

Based on poe2brain by lifan-builds (https://github.com/lifan-builds/poe2brain)

Copyright © 2026 lifan-builds. Pull requests are welcome under CONTRIBUTING.md with a one-time CLA. For licensing outside GPL, open an issue.