ghostty-crash
Installation
SKILL.md
List dumps with ghostty +crash-report.
Crash dumps live in ~/.local/state/ghostty/crash/.
Crash file format
A .ghosttycrash file has two parts:
- JSON header - Sentry event data with build info, OS version, session duration
- Minidump - Binary starting with
MDMPmagic
Read JSON metadata (everything before MDMP). The header contains multiple JSON lines; the last line is the main Sentry event:
OFFSET=$(LC_ALL=C grep -ob 'MDMP' <crashfile> | head -1 | cut -d: -f1)
head -c $OFFSET <crashfile> | tail -1 | python3 -c "import sys,json; print(json.dumps(json.load(sys.stdin), indent=2))"
This replaces the current "Read JSON metadata" section. The key change is adding `| tail -1` to grab only the last JSON line (the main Sentry event), avoiding the `Extra data` parse error from the multi-line format.