Copy library / Guides / Grok Bot
Grok Bot asar recovery — tree-sitter startup fix
Title and summary are in the original language, not translated.
# Grok Bot asar recovery — tree-sitter startup fix Source: https://github.com/Pitchfork-and-Torch/grok-bot-asar-recovery Community recovery runbook when Grok Bot desktop fails to start after a broken app.asar leaves empty tree-sitter dep stubs.
- What it does
- Community recovery runbook when Grok Bot desktop fails to start after a broken app.asar leaves empty tree-sitter dep stubs.
- Scenarios
- Code & ship
- What the source covers
- Author & original linkYes
- What it doesYes
- Verbatim source excerptYes
- Screenshots / mediaYes
- Steps / chaptersYes
- Verbatim prompt / configNot in source
- Results / numbersNot in source
- Risk notesYes
- Related entriesYes
— means the source doesn't say; we don't fill it in.
- Verbatim source excerpt
Recover Grok Bot desktop when the main process dies on startup with:
RongleCat/awesome-grok-bot (GitHub) · Open original ↗ From the project README, verbatim and untranslated.
- Screenshots

Image from the project README - Steps / points from the source
- Electron main sets NODE_PATH to app.asar/dist/deps and requires tree-sitter (shell parser).
- Native deps are shipped under app.asar.unpacked/dist/deps (real package.json + .node files).
- A same-day app.asar rewrite left only empty directory stubs for dist/deps/* inside the archive.
- Module resolution looked inside the broken asar path and failed, even though unpacked packages were still on disk.
- If dist/deps/tree-sitter/package.json is already in the current app.asar with a size above zero, the script exits and leaves the file alone.
- A backup is eligible only when its header has that same file. A larger file is not preferred just because it is larger.
- Names containing broken are never chosen, including app.asar.broken-before-restore-*.
- -CheckOnly prints the result and changes nothing. Exit 0 means healthy. Exit 2 means the index is missing tree-sitter.
Verbatim from the source, untranslated.
- Prompt
The source does not include a prompt you can copy verbatim.
- How to copy
- Open the repo: github.com/Pitchfork-and-Torch/grok-bot-asar-recovery ↗
- Read the README, send the repo link to your Bot and have it reproduce it
- Get it working small first, then add a routine
- Risks and limits
- Involves payments, orders or bookings: let the bot draft first and act only after you confirm
- The author's result may not reproduce for you; the original post is the reference
- Usage estimate
- Estimate with the metal calculator