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/pob4agentsfor pioneering agentic Path of Exile 1 workflows.poe2brainis 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 outpob4agents!
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 48 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 Hit | Generic LLM / Ad-Hoc Scripts | poe2brain (Patch 0.5.5) |
|---|---|---|
| PoE1 vs PoE2 Mechanics | Hallucinates 75% Block, Scouring/Alt, Bench, PoE1 bases | SQLite + FTS5 truth: 769 GGG popups, 54 0.5.5 anti-hallucination rules, 23 Ascendancies, EN + zh-CN/zh-TW |
| Fake PoB-Warrior Numbers | Trusts inflated 100% Shock / flask-up tooltip DPS | Headless LuaJIT PoB2 (GetMiscCalculator()) with automatic dewatering audits + top-5 upgrade bottlenecks |
| Finding Hidden Builds | Scrapes stale guides or top-1 meta mirror builds | Daily-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 Eye | Hard to tell which unfinished weapon actually adds more real DPS | Queries live Trade2 using your PoB2 stat weights, simulates +20% Quality + Runes, and ranks by true DPS/EHP gain |
| Crafting Cost Guessing | Eyeballs odds or recommends removed 0.4 Omens / 0.5 Recombinators |
Exact conditional mod-pool MDP + Monte Carlo (p50/p80/p95) with mid-craft collateral brick protection |
| Loot Filter Clutter & Crashes | Hand-written .filter rules crash PoE2 or miss ilvl 82 / Exceptional bases |
7-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 Setup | Asks for POESESSID cookies or breaks compiling C/Lua on Windows |
Zero 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 poe2brain |
With poe2brain |
Improvement |
|---|---|---|---|
| Exact Task Pass Rate | 6 / 22 (27.3%) |
22 / 22 (100.0%) |
+72.7 pp (3.7×) |
| Sub-Check Factual Accuracy | 38 / 75 (50.7%) |
75 / 75 (100.0%) |
+49.3 pp |
| PoE1 / Stale-Patch Hallucinations | 4 / 22 (18.2%) |
0 / 22 (0.0%) |
Zero hallucinations |
Sample Benchmark Questions (Without vs. With poe2brain)
| # | Real Player Question (Patch 0.5.5) |
Without poe2brain |
With poe2brain |
|---|---|---|---|
| Q02 | Base 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 |
| Q09 | On 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×) |
| Q10 | 0/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 |
| Q12 | Compile 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) |
| Q17 | Legal 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) |
| Q19 | Balanced 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 |
| Q22 | Exact 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:uv run python benchmarks/run_benchmark.py score benchmarks/results/codex_0_5_5.json
Real Output Showcase
1. Find Underrated High-DPS, High-Mobility Builds in 1 Command
uv run poe2 ninja search --preset sleeper --limit 5
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)
# Dewatering audit + automatic top-5 bottleneck diagnosis + mobility & CI immunity
uv run poe2 pob audit --slot main
# 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
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 (48 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
- Knowledge, Ascendancies & Live Ladder Meta (
poe2brain.knowledge), Read-only SQLite + FTS5 index (data/poe2_0.5.5.sqlite) over 769 official GGGKeywordPopups, 54 Patch0.5.5anti-hallucination rules & formulas, 1,711 gems, 443 uniques (439 live in 0.5.5), 3,219 live PoE2 bases (catching PoE1 / stale0.1Expertbase traps), 313 socketable augments, 293 crafting levers, and 882 Verisium/Kalguuran runeforge recipes, plusMetaService(TreeData/0_58 playable classes & 23 Ascendancies,Abyssal Lichinheritance, choice notables, bilingualzh-CN/zh-TWaliases, and live SC/HC/SSF/HCSSF ladder shares). - Headless Path of Building 2 (
poe2brain.pob), Persistent nativeLuaJIT+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.buildJSON I/O, dewatering audits with automatic upgrade bottlenecks,explain_calcformula provenance,rank_support_gems,rank_radius_jewels, transactionalwhat_ifsandboxing,<10msGetMiscCalculator()item sweeps, and marginaltrade2stat weights. - Live Economy, Arbitrage & Official Trade2 (
poe2brain.trade), 3-tier pricing router normalized toExalted Orb = 1.0combiningapi.poe2scout.com+poe.ninjaexchange overviews with unauthenticatedpathofexile.com/api/trade2(GGGRateLimiter+1.0sbuffer),ArbitrageScanner(--budget/--gold,profit_ex_per_10k_gold, compounding ladders, trap filters),Exiled-Exchange-2-backed EN/ZHCtrl+C/Ctrl+Alt+Citem parsing, PoB2-ranked slot upgrade search (auto-simulating+20%quality + Greater Runes), and multi-item quad-tab triage. - Exact Crafting Odds, Policy & Profit Scanner (
poe2brain.crafting), ConditionalModPoolEngine(display_tier = 1best, tiered orbmin_mod_levelfloors, family mutual exclusion, dynamic elemental tag-blocking, 3-draw without-replacement Well of Souls unveil,Omen of Whittling, cross-poolCrystallisation, blocking removed0.4Homogenising Omens &0.5Recombinators) + sunk-cost-disciplinedCraftingPlanner(4-mod Fracturing Orb,p50/p80/p95Monte Carlo, buy-vs-craft) +CraftProfitScannerwith automaticcompetition_level&niche_score. - PoE Ninja Builds Discovery & Live Character Import (
poe2brain.ninja), Livepoe.ninjabuild-index-state&snapshot-versionstelemetry across SC/HC/SSF/HCSSF, pure-stdlibSearchResultprotobuf +NDIC\x02decoder,<2ms<PathOfBuilding2>XML inspector, multi-facet search with 5 intent presets,!Termnegation, and a runtime SQLiteBuildStore(~/.cache/poe2brain/builds.sqlite) synced via ETag from the daily GitHub Actions rollingbuild-indexrelease (plus write-through caching on live imports and time-machine budget stepping-stone discovery). - PoB2-Aware Loot Filter, NeverSink Restyler & Voice Callout Studio (
poe2brain.filters), Self-validating PoE20.5.5.filtercompiler &FilterValidatorenforcing all 7 client-crash traps, live economy tiering, PoB2 build-priority + Exceptional (21%+quality /3+sockets) +ilvl 81/82jewellery & weapon crafting bases, clean endgame Uncut Gem / Flask / Charm clutter pruning, 8 WCAG-verified visual presets (plus optional CVD-safe & night-mode modifiers), pure-stdlib44.1 kHz16-bitstereo.wav/.mp3synth + bilingual EN/ZHvoice_calloutpacks,NeverSink0.10.4aauto-healing & restyling, Filter Doctor (poe2 filter heal), and interactive HTML drop previews.
60-Second Quickstart
Requirements: Python 3.12+ and uv.
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:
uv run poe2 pob import-local --list uv run poe2 pob import-local --slot main - Option 2,
poe.ninjaCharacter URL or Any PoB2 Share Code (poe2db/maxroll/pobb.in/ WeGame):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
poe2brainclient ID currently returnsinvalid_client. Use Option 1 or Option 2 unless you supply your own GGG-approvedPOE2BRAIN_OAUTH_CLIENT_ID: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:
- Claude Code / Cursor: Open this repo directly (uses .mcp.json), or add globally via the snippet below.
- Antigravity: Ready-to-load plugin manifest in plugin.json, workspace MCP config in .agents/mcp_config.json, and skill in .agents/skills/poe2brain/SKILL.md.
- Devin: Workspace MCP config in .devin/mcp_config.json.
- Codex CLI / Shell Agents: Invoke
uv --directory /path/to/poe2brain run poe2 ... --jsondirectly.
Copy-Paste MCP Config (Claude Desktop / Cursor / Cherry Studio / Generic MCP)
{
"mcpServers": {
"poe2brain": {
"command": "uv",
"args": ["--directory", "/ABSOLUTE/PATH/TO/poe2brain", "run", "poe2brain-mcp"]
}
}
}
Manual stdio launch:
uv run poe2brain-mcp