1.7 KiB
§7 Session-start ritual
Claude Code load order (2026-09-05, R64 candidate):
PROJECT_CONTEXT.md→phase-ends/DIGEST.md(all phase synopses + all rules in full) → the THREE most recentphase-ends/PhaseEnd_*.md→phase-ends/CURRENT_PHASE.md, then the 🛑 SESSION CHECKPOINT block is replayed VERBATIM into the chat. Budget ≈100k tokens + the checkpoint. Never read all PhaseEnds,phase-ends/logs/, the whole cookbook ordocs/cookbook-index.mdat session start (CLAUDE.md is the authority). The Ghidra steps below apply only to RE sessions (G2) — the MCP server now runs headless via the SessionStart hook.
Order is load-bearing — MCP tools fail (sometimes silently) without an open program.
- Start Ghidra (in WSL, under WSLg):
~/ghidra_12.1_PUBLIC/ghidraRun. - Open the BFM project → open
SLUS_007.26in CodeBrowser. Confirm the GhidrAssistMCP control panel (Window → GhidrAssistMCP) shows the server up onlocalhost:8080. - Start/resume Claude Code in
~/bfm-decomp. Run/mcp— theghidraserver must be connected with ~38 tools. Then make one cheap verification call (e.g.get_binary_info) before any heavier work. No MCP round-trip = no RE work this session (rule G2). - Build preflight (when the session involves building, Phase 4+):
One tree to check — clean or intentionally dirty before starting.
cd ~/bfm-decomp git status --short && make check-env - If PCSX-Redux work is planned: launch it (under WSLg), confirm the web server port (§3) and that a RAM dump fetch returns 2 MB.
Shutdown note: Ghidra writes the program DB on save — save (or deliberately discard) before closing, and never kill Ghidra mid-MCP-write.