pokemon-player
यह क्या करती है
यह आपके कंप्यूटर पर एक emulator में Pokemon गेम चलाती है, और एजेंट उसे खेलता है। यह उन लोगों के लिए है जो एक AI को क्लासिक Pokemon खेलते हुए देखना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि AI Pokemon Red, Blue, Yellow या FireRed खेले।
- ✓जब आप लाइव डैशबोर्ड के ज़रिए गेम देखना चाहें।
- ✓जब आप emulator में सेव की गई गेम फिर से शुरू करना चाहें।
Skill का लिंक
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/gaming/pokemon-player/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे लिए Pokemon Red शुरू कीजिए, और मुझे लाइव डैशबोर्ड पर गेम देखने दीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट एक Python एनवायरनमेंट में Pokemon एजेंट प्रोजेक्ट तैयार करता है और आपकी ROM फ़ाइल के साथ एक स्थानीय गेम सर्वर शुरू करता है। फिर एक tunnel के ज़रिए देखने वाला लाइव डैशबोर्ड बनाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Pokemon Player
Play Pokemon games via headless emulation using the pokemon-agent package.
When to Use
- User says "play pokemon", "start pokemon", "pokemon game"
- User asks about Pokemon Red, Blue, Yellow, FireRed, etc.
- User wants to watch an AI play Pokemon
- User references a ROM file (.gb, .gbc, .gba)
Startup Procedure
1. First-time setup (clone, venv, install)
The repo is NousResearch/pokemon-agent on GitHub. Clone it, then set up a Python 3.10+ virtual environment. Use uv (preferred for speed) to create the venv and install the package in editable mode with the pyboy extra. If uv is not available, fall back to python -m venv + pip.
If a checkout already exists (e.g. ~/pokemon-agent with a venv ready), just cd there and source .venv/bin/activate instead of recloning.
You also need a ROM file. Ask the user for theirs (a previous setup may already have one at roms/pokemon_red.gb inside the checkout). NEVER download or provide ROM files — always ask the user.
2. Start the game server
From inside the pokemon-agent directory with the venv activated, run pokemon-agent serve with --rom pointing to the ROM and --port 9876. Run it in the background with &. To resume from a saved game, add --load-state with the save name. Wait 4 seconds for startup, then verify with GET /health.
3. Set up live dashboard for user to watch
Use an SSH reverse tunnel via localhost.run so the user can view the dashboard in their browser. Connect with ssh, forwarding local port 9876 to remote port 80 on the keyless localhost.run endpoint (ssh -R 80:localhost:9876 ssh://nokey@localhost.run). Redirect output to a log file, wait 10 seconds, then grep the log for the .lhr.life URL. Give the user the URL with /dashboard/ appended. The tunnel URL changes each time — give the user the new one if restarted.
Save and Load
When to save
- Every 15-20 turns of gameplay
- ALWAYS before gym battles, rival encounters, or risky fights
- Before entering a new town or dungeon
- Before any action you are unsure about
How to save
POST /save with a descriptive name. Good examples: before_brock, route1_start, mt_moon_entrance, got_cut
How to load
POST /load with the save name.
List available saves
GET /saves returns all saved states.
Loading on server startup
Use --load-state flag when starting the server to auto-load a save. This is faster than loading via the API after startup.
The Gameplay Loop
Step 1: OBSERVE — check state AND take a screenshot
GET /state for position, HP, battle, dialog. GET /screenshot and save to ~/.hermes/cache/scratch/pokemon.png, then use vision_analyze. Always do BOTH — RAM state gives numbers, vision gives spatial awareness.
Step 2: ORIENT
- Dialog/text on screen → advance it
- In battle → fight or run
- Party hurt → head to Pokemon Center
- Near objective → navigate carefully
Step 3: DECIDE
Priority: dialog > battle > heal > story objective > training > explore
Step 4: ACT — move 2-4 steps max, then re-check
POST /action with a SHORT action list (2-4 actions, not 10-15).
Step 5: VERIFY — screenshot after every move sequence
Take a screenshot and use vision_analyze to confirm you moved where intended. This is the MOST IMPORTANT step. Without vision you WILL get lost.
Step 6: RECORD progress to memory with PKM: prefix
Step 7: SAVE periodically
Action Reference
- press_a — confirm, talk, select
- press_b — cancel, close menu
- press_start — open game menu
- walk_up/down/left/right — move one tile
- hold_b_N — hold B for N frames (use for speeding through text)
- wait_60 — wait about 1 second (60 frames)
- a_until_dialog_end — press A repeatedly until dialog clears
Critical Tips from Experience
USE VISION CONSTANTLY
- Take a screenshot every 2-4 movement steps
- The RAM state tells you position and HP but NOT what is around you
- Ledges, fences, signs, building doors, NPCs — only visible via screenshot
- Ask the vision model specific questions: "what is one tile north of me?"
- When stuck, always screenshot before trying random directions
Warp Transitions Need Extra Wait Time
When walking through a door or stairs, the screen fades to black during the map transition. You MUST wait for it to complete. Add 2-3 wait_60 actions after any door/stair warp. Without waiting, the position reads as stale and you will think you are still in the old map.
Building Exit Trap
When you exit a building, you appear directly IN FRONT of th
अक्सर पूछे जाने वाले सवाल
गेम की फ़ाइल कहाँ से आती है?
स्किल कहती है कि हमेशा आपसे अपनी ROM फ़ाइल माँगी जाए, और उसे कभी डाउनलोड या उपलब्ध न कराया जाए।
क्या सेव की हुई गेम जारी रह सकती है?
हाँ। स्किल एक सेव्ड स्टेट लोड कर सकती है, ताकि खेल वहीं से शुरू हो जहाँ रुका था।
मैं कैसे जाँचूँ कि गेम सर्वर चल रहा है?
स्किल कहती है कि शुरू होने के कुछ सेकंड बाद सर्वर के health endpoint की जाँच करें।
जानकारी
लोकप्रियता
- GitHub स्टार
- 260k
- रैंकिंग में स्थान
- #500
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-merge-conflict-arbiter
260kदो एजेंट्स की branches के बीच git merge conflict को एक निष्पक्ष तीसरे पक्ष के रूप में सुलझाती है और रिपॉज़िटरी के लिए एक merged नतीजा बनाती है।
antigravity-cli
260kAntigravity कमांड-लाइन टूल को इंस्टॉल करने, अपडेट करने और उसकी दिक्कतें सुलझाने में मार्गदर्शन देती है, जिसमें प्लगइन, साइन-इन और sandbox शामिल हैं।
blackbox
260kआपके एजेंट को कोडिंग काम Blackbox AI कमांड-लाइन टूल को सौंपने देती है, जो कई AI मॉडल चलाकर सबसे अच्छा नतीजा चुनता है।
dynamic-workflow
260kआपके एजेंट को बड़े बैच के एक जैसे कामों को सेव की गई स्क्रिप्ट के रूप में चलाना सिखाती है, ताकि मुख्य बातचीत में केवल जांचे गए नतीजे लौटें।
मिलती-जुलती skills
blucli
394kयह आपके एजेंट को blu कमांड से Bluesound और NAD स्पीकर खोजने, चलाने, रोकने, समूह बनाने और वॉल्यूम बदलने में मदद करती है।
camsnap
394kयह आपके एजेंट को नेटवर्क कैमरों और लोकल webcam से स्नैपशॉट, छोटी क्लिप या मोशन इवेंट लेने में मदद करती है, जो आपने सेट किए हों।
eightctl
394kयह आपके एजेंट को Eight Sleep pod की जांच और नियंत्रण करने में मदद करती है, जिसमें तापमान, अलार्म और नींद की समय-सारणी शामिल हैं।