Skip to content
anzaldoivanPublic

About

Claude Code plugin that bootstraps PlayStation 1 (PS1/PSX) matching decompilation projects: disc identification, prior-art research, splat/maspsx toolchain, Project Architect.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PSXDecomp: PlayStation 1 matching decompilation toolkit

PSXDecomp: PS1 decompilation bootstrapper for Claude Code

A Claude Code plugin that bootstraps PlayStation 1 (PS1/PSX) matching decompilations. Starting from an empty folder and a disc dump you own, it identifies the game, researches prior work, pins a library of SDK and tooling references, and installs Project Architect with the decomp-architect kit. The result is a repository ready for its first planning phase, and it keeps working without the plugin.

Important

AI policy: LLMs produce negligible decompilation results without good guidance. Investigate and familiarize yourself with the console's architecture and the game you are decompiling, and always use your own judgment. Humans drive the decisions; AI reads and writes the code.

PlayStation 1 only, at version 0.1.0. Other consoles are planned as profiles (docs/PROFILES.md).

Games

Each backtest replays a real bootstrap with its community leads blanked; the research stage has to find them again.

Game Serial Bootstrap
Mega Man X6 SLUS-01395 (v1.1) mmx6, 2026-10-01
Mega Man X5 SLUS-01334 mmx5, 2026-10-03
Dino Crisis 2 SLUS-01279 the DC2 branch, 2026-09-30
Brave Fencer Musashi SLUS-00726 BFM-decomp, the kit's home project (2026-10-01)

What it does

  • Identification. The disc is read in place: boot executable, track layout, PsyQ library stamps. Only facts are recorded, and no byte of the dump is copied.
  • Research. Parallel agents look for existing decompilations (decomp.dev's listing first), sibling games and their toolchains, symbol maps, ports and releases. Findings stay leads until a later phase verifies them, and nothing is installed before you confirm the report.
  • Repository. The ROM firewall is the first commit, after its negative control. Project Architect and the kit follow, each at a pinned version checked by hash (compat.toml).
  • Reference library. Core upstream sources (splat, maspsx, old-gcc, ghidra_psx_ldr) are cloned at their pins into refs/, which git ignores and agents can still search, with a committed index by licence class.
  • Handoff. A health check and a bootstrap record. The next session opens on Project Architect's planner.

Getting started

Requirements

Git, Python ≥ 3.12, Claude Code, and your own dump of the game as a Redump CUE/BIN, kept outside the project folder. Project Architect is installed once per machine; the first run prints the command. gh is optional: research uses it for repository facts, and the doctor for the GitHub check. Docker is needed from the first build phase, not to bootstrap.

macOS

brew install git python@3.14 gh
brew install --cask claude-code docker-desktop

Linux (Ubuntu 24.04+ or Debian 13+; on Windows, WSL 2)

sudo apt install git python3 python3-venv docker.io
curl -fsSL https://claude.ai/install.sh | bash

gh comes from GitHub's apt repository or brew install gh: the distributions' own package is broken. Older releases, Homebrew on Linux and WSL are covered in the Linux host recipe; each game repository receives its machine's recipe, with the build and debugging tools, as docs/ops/host-recipe.md.

Install the plugin

/plugin marketplace add anzaldoivan/psxdecomp
/plugin install psxdecomp

Bootstrap a game

Session Command Stages
1 /psxdecomp:new in an empty folder interview, identification, research, your confirmation, repository, Project Architect
2 claude --agent plain, then /psxdecomp:new --resume intake, kit, reference library, handoff
3 claude Project Architect's planner drafts the roadmap

The restart between sessions 1 and 2 loads Project Architect's hooks; when session 2 opens, psxdecomp's own hook prints the resume line. A bare claude opens Project Architect's router (agent: pa-session in .claude/settings.json); claude --agent plain is the way around it. --answers FILE replaces the interview with a prepared file; --deep widens the research.

Other commands

Command Purpose
/psxdecomp:doctor Read-only health check: pins, firewall, reference library, documentation hygiene. It also lints a decomp.dev progress workflow and the GitHub security settings, and names the fix for each finding.
/psxdecomp:upgrade Adopts a repository that was set up by hand.

What a game repository contains

your-game/
  README.md               the project's front page, with the AI policy above
  config/psxdecomp.toml   the bootstrap record: pins, profile, PsyQ lead
  docs/prior-art.md       the research report you confirmed
  docs/ops/refs.md        the reference-library index (the sources sit in the ignored refs/)
  docs/ops/host-recipe.md the tools for this machine, with install commands
  .ignore                 keeps refs/ searchable for agents although git ignores it
  HOW_WE_WORK.md          Project Architect's working card for agents
  tools/audit_public.py   the ROM firewall, enforced from the first commit

No game data

No game byte, SDK file or disc image enters a repository, its CI or the tests. The dump is read where it sits; the PsyQ SDK is bring-your-own and never fetched; the tests run on a synthetic disc built at test time; and tools/audit_public.py rejects disc images, executables and SDK paths on every push.

Learn more

Read For
docs/ARCHITECTURE.md the design, its reasons, and the test tiers
skills/new/reference/stages.md each stage: what it reads, writes and records
compat.toml and docs/ECOSYSTEM.md the pinned versions and the upstreams watched
docs/REFS.md the reference library
docs/PROFILES.md console profiles and the consoles planned next
CONTRIBUTING.md tests, releases and pin bumps

Thanks

psxdecomp builds on:

docs/ECOSYSTEM.md records the commit each was checked at.

Licence

MIT (LICENSE). The fixture program and the banner are CC0; the banner's wordmark is drawn from Exo 2 (SIL Open Font License 1.1, docs/assets). Nothing here is derived from any game.

About

Claude Code plugin that bootstraps PlayStation 1 (PS1/PSX) matching decompilation projects: disc identification, prior-art research, splat/maspsx toolchain, Project Architect.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages