TypeScript · 2026 · VS Code · Pop!_OS
CosmicCode
A robot coding buddy that trades code for Roblox time. An offline VS Code extension for kids. A robot buddy called Byte gives friendly error hints, awards XP for real working programs, and turns that XP into coins you can spend on minutes of Roblox. Parents can lock it behind a password.
What it does
A buddy called Byte.
Friendly error hints
"Hmmm, I think you missed a parenthesis on line 22!" Hints come from VS Code diagnostics for every language, plus a built-in Python checker.
XP for real programs
Hello World does not count. You earn XP for working programs with some complexity.
Quests
Challenges like Make a Calculator or Say Hello are detected automatically from your program's output.
Coins become playtime
XP mints coins, and coins buy minutes of Roblox through the Sober launcher on Pop!_OS.
Parent controls
An optional password gate on the Add XP button. It is a kid-gate, and the README says so honestly.
Fully offline
No API and no internet. Byte knows syntax patterns and cheers you on locally.
The economy
Code first. Then Roblox.
Every real script you run earns XP. XP mints coins, and coins buy minutes on top of the free daily time, up to a hard cap. All of it is configurable in Settings.
How the two halves talk
The VS Code extension and a small Linux launcher share one JSON file. The extension writes XP and coins; the launcher reads the balance and counts down your minutes.
VS Code extension ──writes──▶ ~/.cosmiccode/state.json
▲
linux/sober-locked.sh ──reads/writes──┘
(time-locked Roblox launcher on Pop!_OS)Commands
| Command | What it does |
|---|---|
| Run & Check | Run the current file, award XP, check quests. Ctrl+Alt+R. |
| Show Quests | List quests and your progress |
| Buddy Status | Byte tells you your XP, coins and minutes |
| Trade Coins | Spend coins on playtime |
| Parent: Add XP | Password-gated bonus XP |