Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Transform your AI Agent into a PlayStation 2 Reverse Engineering God. An autonomous Claude Code skill packing the MIPS R5900 ISA, topological multimodal vision, and the complete PS2Recomp knowledge.
Fetched from the repository for this visit.
Welcome to the PS2 Recomp Mastery: a complex, hyper-structured Operating System for LLM Agents (like Antigravity or Cursor) that gives them architectural knowledge, procedural workflow and persistent memory required to autonomously reverse engineer and recompile PlayStation 2 games through PS2Recomp project (even if still in dev process).
This guide explains how you, the human driver, should use this skill to extract maximum performance from the AI.
Before using this, you must change how you interact with the LLM. Do not treat it as a chatbot. Treat it as a Junior Reverse Engineer working on your machine.
PS2_PROJECT_STATE.md file in your root directory. This is its "external hippocampus". It allows you to pause a session on Monday, start a new chat on Thursday, point to the state file, and the agent will resume exactly where it left off without forgetting what registers it was analyzing.For the agent to work flawlessly, your machine must have the following ready:
mcp_config.json inside your AI environment (Cursor/Antigravity) is configured to connect to the local GhydraMCP server. This allows the Agent to drive Ghidra, not you!mcp_config.json in your AI environment points to the PCSX2 MCP server (default port: 21512 for DebugServer, 28011 for Pine IPC).ps2-recomp-Agent-SKILL/ folder inside your root PS2Recomp workspace, alongside ps2xRecomp and ps2xRuntime.Copy-paste this entire block into your AI IDE (Cursor, Antigravity, Claude Code, etc.) to activate the skill. It works whether you have a brand-new project, a half-done manual port, or need to resume from a previous session.
Read the skill file `ps2-recomp-Agent-SKILL/SKILL.md` and BOTH boot sequence references
(`resources/03-ps2recomp-pipeline.md` and `resources/04-runtime-syscalls-stubs.md`).
Do NOT proceed until you have read all three files.
Then execute this startup sequence:
1. INSPECT my workspace. Look for:
- Any `PS2_PROJECT_STATE.md` (persistent memory from a previous session)
- Any build directory (`build64/`, `build/`, etc.)
- Any `game.toml` or ELF files (may be in a SEPARATE game workspace folder!)
⚠️ DANGER: Do NOT list or search inside `runner/` directories!
They contain 30,000+ files and WILL crash you. Instead use:
Test-Path ps2xRuntime/src/runner (True/False)
(Get-ChildItem ps2xRuntime/src/runner -Filter *.cpp).Count (number)
NOTE: Game files (ISO, ELF, TOML, recomp output) are often in a sibling
directory next to PS2Recomp, not inside it. If you can't find them here,
ASK for the game workspace path.
2. If a build directory exists, READ `CMakeCache.txt` and report:
- Generator (Ninja? Visual Studio?)
- Compiler (clang-cl? MSVC cl.exe?)
- Build type (Release? Debug?)
Then rate the config (⚡ Optimal / ⚠️ Acceptable / ❌ Critical) and
suggest improvements if needed. Do NOT change anything without my OK.
3. ASK me for anything you still don't know. Typical questions:
- What game am I porting? (title + region code like SLES_531.55)
- Where is the ISO? (absolute path)
- What phase am I in? (or should you infer it from the workspace?)
4. REPORT: Tell me what you found, what phase I'm in, and what the
next concrete step is. Then wait for my go-ahead.
Why this works: The prompt forces the agent to read first, detect second, ask third, act last. It cannot skip the skill files, cannot assume your build config, and cannot start breaking things without your approval.
If you already used the starter prompt before and just need to resume (e.g., context degradation, new chat window):
Read the skill `ps2-recomp-Agent-SKILL/SKILL.md` and the boot sequence references.
Then read `PS2_PROJECT_STATE.md` to recover our progress. Resume from there.
If you're starting a new game and want to skip the Q&A:
Read the skill `ps2-recomp-Agent-SKILL/SKILL.md` and the boot sequence references.
I'm porting [GAME NAME] ([REGION CODE], e.g. SLES_531.55).
ISO is at: [ABSOLUTE PATH TO ISO]
PS2Recomp repo is at: [ABSOLUTE PATH TO PS2RECOMP]
Game workspace is at: [ABSOLUTE PATH TO GAME FOLDER]
(If game workspace = PS2Recomp, just say "same")
Start at Phase 0 — detect my build config and report before doing anything.
While the agent is highly autonomous, PS2 reverse engineering requires your eyes:
PS2_PROJECT_STATE.md: Open this file in split-screen. You will see the agent filling out tables of resolved stubs, triage attempts, and unhandled opcodes in real-time. If it hallucinated something, correct the Markdown file directly. The agent will read your correction on the next refresh.cmake --build, let it finish. It might take 10-20 seconds. The agent will read the compiler output and fix syntax errors itself.cmake --build build64 directly."PS2_PROJECT_STATE.md."This AI Skill directly leverages the revolutionary PS2Recomp project created by ran-j. PS2Recomp is a monumental milestone in PlayStation 2 preservation and static recompilation. This AI workflow is built strictly around his open-source pipeline to automate the heavy lifting of reverse engineering. Huge thanks to ran-j and all contributors pushing the boundaries of the PS2 scene!
Created by the Antigravity Deepmind System for flawless PS2 porting.
GitHub checked 64h ago - refresh overdue. Recently viewed repositories target hourly refresh.