
Screenshots

Watch trailer on Steam ↗Pragma Twice
Bryan Gillespie · Published by Bryan Gillespie · Official site ↗
Positive — 100% positive (11 reviews)
Last updated 6 Oct 2026
You've awoken deep within a research facility in a new, programmable robot body. You have holes in your memories. At least you no longer have that hole in your head...
Navigate through a mysterious research lab in Pragma Twice, a simulation crafted by Bryan Gillespie. Your memories are scattered, but each robot body holds clues to your past.
About this game
You've awoken deep within a research facility in a new, programmable robot body. You have holes in your memories. At least you no longer have that hole in your head...
Pragma Twice is a dystopian sci-fi programming/puzzle game in which you must augment your character's "kernel" with additional functionality and abilities in order to get through increasingly complex levels.
Craft Your Kernel - Kernels are written in vanilla JavaScript via an in-game editor. Can't move? Register a keyboard event to a movement call! Puzzle seems tedious or repetitive? Automate the tedium in your kernel!
Everything Has An API - Everything from blocks, to switches, to doors has an API. Studying an object's API can give you clues on how to interact with and leverage it for problem solving.
Make It Autonomous - every level can be beaten autonomously, that is, without any player input from the keyboard. You may even be able to craft a tool that records keyboard inputs in order to generate autonomous, level-solving kernels...
Important Note: While the game introduces each concept required for players to develop their kernels and interact with objects, the game does not teach programming from ground up. The player is expected to already have knowledge of programming and its primary problem-solving constructs: functions, variables, if statements, loops, data manipulation, etc.
System Requirements
Will my PC run this? →Minimum
- Requires a 64-bit processor and operating system
- Memory: 4 GB RAM
- Storage: 300 MB available space
Recommended
- Requires a 64-bit processor and operating system
Supported Languages
Latest news
Patch NotesOfficial
Update Notes v1.1.0
Added a new canonical, external "save.pt" save file to enable cloud save Adjusted length of time required to beat "Proof of Work" so that it's much shorter Fixed an issue where alt-tabbing could create "ghost windows" in Windows 11 "console" global function now behaves as a no-op in non-player kernels instead of a crash Expanded "console" methods to include debug, warn, and error for player kernels. console.error will show up red in console Console errors are now permanently red Added new global "level" object available in player kernels which allows programmatically restarting, exiting, and querying the name of the current levelRead full article on Community Announcements (rpgillespie)Patch NotesOfficial
Update Notes v1.0.4
Fixed two bugs that can affect the "Elite Corridor" level under specific circumstances when using the cc in the final room: One of the bugs can cause the player to die because of previously cloned/rubbled objects that can persist across level restarts One of the bugs can cause an external robot kernel crash, ending scripted dialogue and improperly allowing access to the "good" endingRead full article on Community Announcements (rpgillespie)Patch NotesOfficial
Update Notes v1.0.3
Bundled in "Source Code Pro" font and set it as the new default (previous default: Consolas)Added font selection to settings for customizing editor/console font with system fonts Connected objects returned by router.getConnectedObjects() are now sorted by name instead of order-of-connection Clarify how to get best time/golf to fill in on Nexus terminalsAdded a third (hint) terminal to Mind Control near the crashed robot sectionFixed a small bug in pressure_plate that can cause an "undefined" value to displace the "false" enabled state of things it controls, such as laser_emitter. Standardized terminal text on "logical" style quotes/punctuation instead of "typesetter's" (American) styleRead full article on Community Announcements (rpgillespie)Patch NotesOfficial
Update Notes v1.0.2
- Fix issue where the "Error Correction Code" achievement was being achieved automatically on game start - Add game version/build commit to bottom right corner of title screen - Update credits with play testing information - Adjust layout of "Settings" page to be more consistent in symmetry and spacingRead full article on Community Announcements (rpgillespie)






