REDnode docs
REDnode is a Node.js API for scripting Cyberpunk 2077 (PC, single-player). These pages track the design, the research and how to set up a machine to work on it.
What REDnode is made of
| Part | What it does | In the repo | In the game folder |
|---|---|---|---|
Plugin (REDnode.dll) |
Runs inside the game, loaded by RED4ext: draws the overlay windows on the game’s frame, takes input (F10), runs game calls on the game thread (the generic game API), sends game events, and starts the host | native/ |
red4ext/plugins/REDnode/REDnode.dll |
| Plugin scripts | Small redscript parts: the game events REDnode sends, and the world support, which compiles only when Codeware is installed | native/scripts/ |
red4ext/plugins/REDnode/Scripts/ |
| Overlay host | An Electron app beside the game: renders overlay apps, runs Node mods in their processes, the kernel MCP server, the agent broker, hot reload, settings | packages/overlay/ |
red4ext/plugins/REDnode/host/ |
| Built-in apps | The launcher, the Mod log, the Mod Manager and the Welcome window, inside the host | packages/overlay/launcher/, modlog/, manager/, welcome/ |
Inside the host |
rednode package |
The API mods and apps import: game, api (typed from the game’s own data), ui, world, agent, pkg, secrets, kernel, channel |
packages/rednode/ |
host/resources/sdk/ |
| UI kit | Web components and themes for overlay apps | packages/ui/ |
Inside the host, served as rednode://ui/ |
| Sample packages | Example apps and mods (Hello mod, Ask mod, World test, Test timer…). Each has its own version | packages/overlay/apps/ |
red4ext/plugins/REDnode/apps/ |
REDswap (REDswap.dll) |
A second RED4ext plugin that swaps archives into the running game; archives.reload uses it. Its own version, changelog and Nexus page, and also in REDnode’s zip |
native/redswap/ |
red4ext/plugins/REDswap/ |
Versions. REDnode has one version, shared by every part above except the samples and REDswap. It is in VERSION at the root of the repo: the plugin’s build reads it, and node tools/version.mjs <version> copies it into the host, the package, the UI kit and the built-in apps. tools/build-native.ps1 stops if any part differs. The plugin’s log says REDnode <version> loading, the host’s log REDnode overlay host <version>, and the launcher shows it. Releases will ship the parts together as one REDnode bundle.
| Document | What it covers |
|---|---|
| API reference | The rednode package: every function, interface and type, generated from the source |
| Game API | Every class, struct, enum and global function in the base game (2.5), with REDnode’s notes |
| Design | Architecture: the two tiers, the native bridge, the API sketch, safety rails, risks and roadmap |
| MCP server | The kernel’s tools for AI agents: Claude Code can read mod logs, see overlay windows, look up game types and call the game |
| Overlay apps | Guide with tested examples: your first app, UI kit windows, a native-looking button, and playing game sounds |
| World API | The plan for building and placing objects in the game from a package: $new, $set, resource references, entity events, api.spawn, requires and kernel.bridge() |
| TweakDB API | The plan for reading and changing TweakDB, the game’s tuning database, from a package |
| REDswap | The archive swap plugin: what a swap does, its checks, and calling it from a package, an AI assistant, redscript or a RED4ext plugin, with examples |
| Hot swap research | Research toward a swap that every user of an archive’s files picks up at once, worn clothing included: what a swap does today, the crashes of 2026-10-22, the engine’s pieces, phases HP0 to HP5 |
| Sound API | The plan for REDnode’s own audio engine: a package’s audio files in the game, following its volume and pause, on entities |
| HTML overlay | Design of the overlay: how it works, in-game test results, and the plan for phases O1 to O9 |
| P0 findings | How RED4ext loads plugins, the plugin entry points, and what that means for the bridge |
| Tests | Every test so far, automated and in the game: how to run it again, what to expect, and what it showed |
| P1 results | The in-game probe test: what passed, the logs, and when OnGameAttached fires |
| Dev setup | Every tool and step needed to build and test REDnode on a new machine |
Roadmap status
| Phase | Status |
|---|---|
| P0 Research | RED4ext side done. Cyber Engine Tweaks analysis deferred |
| P1 Proof | Done. Passed in game on 2026-10-11. See P1 results |
| HTML overlay | O1 to O6 passed in game: Node mods run beside overlay apps, and api calls any game function, typed. O8 Mod Manager (a table of every package, Pin to launcher, Pin to HUD) passed in game. O9 Debugger (DevTools for apps and Node mods, in the game; Developer mode) passed in game. Then O7 Display. See HTML overlay |
| REDagent | An in-game assistant, powered by Claude, that writes, runs and fixes REDnode mods with the player. C1, the kernel MCP server in this repo, and C2, the chat in the game, passed in game. C3, authoring, passed in game. C4, chat history and a picture of the game’s screen (game_image), passed in game. C5, other mods asking REDagent (agent.ask), passed in game. Its guide, repo and design: Edgemodders/REDagent |
| World API | Planned: W1 (build objects, set properties, resource references, entity events through Codeware, api.spawn) and W2 (requires in manifests, kernel.bridge()), asked for by EDGEbuilder. W1 and W2 passed in game. W3, REDbridge for players (the Mod Manager’s Get REDbridge fetches it and .NET 10 per user, no VS Code needed), passed in game on 2026-10-17 (REDnode 0.25.0, with the launcher’s Tooltips switch). #12 hot-loading archives: H0, RED Hot Tools in game 2.31, passed on 2026-10-18 (REDnode 0.25.1, with the Welcome window); H1 archives.reload (a package call and an MCP tool driving RED Hot Tools) passed in game on 2026-10-19 (REDnode 0.26.0, and 0.26.1 with a quoted path). H1d, swapping sound archives into the running game (the audio held, the game’s sound index loaded again), passed in game on 2026-10-19 (REDnode 0.26.8). H2 (what V wears shows a swapped archive): after the RED Hot Tools lookup fix (the Edgemodders build), H2b refreshes worn clothing after each swap with no button, Equipment-EX’s slots included; passed in game on 2026-10-22 (REDnode 0.26.20 and 0.26.21). H2c, things in the world (NPCs, props, EDGEbuilder scenes): plan agreed on 2026-10-23; H2c-a, the spike, done on 2026-10-26; H2c-b (spawns per package, world.near and world.files in the plugin, scenes with world.load, MCP world tools, the refresh after a swap) passed in game on 2026-10-26 (REDnode 0.40.1), the refresh after a swap unverified until RED Hot Tools supports game 2.5. World pins (#43): WP1, the spike, passed in game on 2026-11-09 (REDnode 0.59.0); WP2 (styles, the fit, world and screen scales, walls from the game’s ray casts, pins on entities, labels on spawns, MCP tools) passed in game on 2026-11-10 (REDnode 0.60.0); WP3, the Pins window (Drop a pin here, Go there, pin sets as .pins.json files, Click a pin to go there, world.goTo, world.pinSet), built in REDnode 0.64.0, passed in game on 2026-11-14 (#43 closed). REDnode 0.71.0 (#59, #60), passed in game on 2026-11-25: world.spawn puts a person on the ground, world.ray, and world.pick’s collision groups. Fight events (#61), game.on("combat") and game.on("npcDowned") from the game’s own handlers, built in REDnode 0.73.0 and 0.73.1 on 2026-11-25, passed in game the same day. The scene spike (SC1, for EDGEdir: a walk, the gaps around a workspot, moves during one, directing a person through a device, the cutscene copy of V), built on 2026-11-25, awaits its in-game test. Scene format 3 (#51 step 1: its objects load, its world edits counted in notes) built in 0.74.0 on 2026-11-25, awaits its in-game test. Tests run by an assistant (#57, plan): step 1’s Saves spike built in 0.74.0 on 2026-11-25, awaits its in-game test. See World API |
| Window layers | O10: a tool layer for REDnode’s own windows and packages allowed front, and solo mode (ui.solo). Passed in game. See HTML overlay |
| Native game UI | The ink API (I1 to I2d: a driver in the plugin, layout and the game’s own look, bindings, the game’s language) passed in game on 2026-10-22. UI Tools: UT1 ink markup (.ink.html, ink.load), UT2 reading the game’s UI (ink.layers, ink.read, ink.inspect, ink.at, ink.boxes), UT3 the UI Workbench (Edit, Projects, To source, Try, Export) passed in game from 2026-11-02 to 2026-11-03; the UI Tools pack’s first release is 0.1.0 with REDnode 0.56.1. Next: I3 Input, so on... handlers in native UI fire. See Native game UI |
| Mod services | SV1 (calls between packages, the Task Manager) built in REDnode 0.34.0 and SV2 (descriptions from JSDoc, checked calls, rednode describe) in 0.35.0 and SV3 (mods’ @tool functions as MCP tools, the Tools Manager) in 0.36.0 on 2026-10-24; all three passed in game the same day. From REDnode 0.37.0 the Task Manager and Tools Manager are the optional Admin Tools pack, with the admin permission; passed in game the same day. Agreed on 2026-10-24: mods call each other through the host, and the functions a mod marks @tool in its JSDoc become MCP tools for assistants (SV1 Calls with the Task Manager, SV2 Descriptions, SV3 Assistants with the Tools Manager). service.providers and service.onProviders (#58), every provider of a role, built in REDnode 0.71.0 on 2026-11-25, passed in game the same day. See Mod services |
| Quest API | Asked for by EDGEquest (#15) on 2026-10-22 for its phase Q3 “Try it”: quest facts (read, set, watch), journal entries (read, change, track) and moving V, in the rednode package and as MCP tools. Q-A passed in game on 2026-10-23 (REDnode 0.32.0); #15 closed. See Quest API |
| EDGEhack’s tools in the game | Asked for by EDGEhack (#45) for its H4.6: REDnode runs EDGEhack’s MCP server for in-game assistants, as EDGEmat’s, so REDagent makes quickhacks and tries them live. Built in REDnode 0.63.0 with REDagent 0.4.2; passed in game on 2026-11-11. Players get it once EDGEhack’s server is on npm (EDGEhack 0.1.0) |
| Try Live (editor channel) | Asked for by EDGEhack (#44) for its H4: a tool on the PC changes TweakDB in the running game (tweakdb.apply, reset), refreshes V’s quickhacks and gives items, after the player’s Allow in the Editor request window. Passed in game on 2026-11-11 (REDnode 0.62.0). See Try Live |
| Quickhack functions | Asked for by EDGEhack (#42) for its phase H3c, from its spike H3c.1 (passed in game on 2026-11-05): a scan check (canUse) and an on-land function (onLand) on any quickhack, in the rednode package, open to any mod. H3c.2 passed in game on 2026-11-11 (REDnode 0.61.1; spread unverified); #42 closed. See Quickhack functions |
| Game 2.5 | The game’s 2.5 update came out on 2026-10-22; RED4ext 1.31.0, redscript 0.5.32 and Codeware 1.21.0 support it since 2026-10-25. G0 done: REDnode 0.38.0 builds on the 2.5 SDK, the sound patterns and scripts checked on 2.5, the game API from a 2.5 dump. G1, the in-game check of every part, passed on the dev PC on 2026-10-25 (0.38.0), and its 0.38.1 retest the same day. Hot swaps wait for a RED Hot Tools release for 2.5 |
| Localization | Proposed on 2026-10-18, not scheduled: the game’s language for text, Windows’ regional format for numbers and dates, t() with package locales/ files, LocKey# strings, plurals and V’s gender forms, everywhere REDnode shows text. Phases L1 to L3. See Localization |
| Console | O12, passed in game in REDnode 0.42.1 (2026-10-27): a built-in command line for free-form JavaScript with the rednode package ready, and shortcuts such as addItem. See HTML overlay |
| Pointer lock | EDGEbuilder’s request #11: the web’s Pointer Lock API in overlay pages, the cursor held by the plugin. Passed in game. See HTML overlay |
| Polish 0.24.2 | Partly passed in game on 2026-10-17 (0.24.4): tooltips failed and HUD widgets showed on the boot loading screen, the rest passed. 0.24.5 crashed the game at the title screen (a weak handle taken as strong); 0.24.6 passed the main menu and the switch’s tooltip; 0.24.7 fixes the title-bar tooltips (Chromium skipped pointerover into the icons) and passed in game on 2026-10-17: Polish done (tooltips through shadow roots with a trace, the main menu by IsPreGame()). Built: tooltips drawn by the UI kit (the browser’s never showed in the game), the Mod Manager showing tool windows in every space, an Open at start switch in the launcher, volume reads at each save load. 0.24.4 adds REDbridge from EDGEdeck (#13). See Polish 0.24.2 |
| Spaces | O11: named sets of windows the player switches between, like virtual desktops, and title-bar actions with overflow. Passed in game. See HTML overlay |
| Sound API | Sound Tools (an optional app pack, SP1 to SP4): SP1 and SP2, the Sound Tracer (every event the game posts and every sound it loads, live, each playable), passed in game on 2026-10-20 (REDnode 0.26.14), and SP3, Sound Search (every game sound event by name, tag or id, with a Scratch tab), the same day (0.26.15); SP4, the pack itself (its own zip, Hot swap for players), passed the same day over the released REDnode 0.26.15: the pack is ready for its first release. S1 Play passed in game on 2026-10-16 (REDnode 0.24.0) and its pan fix for surround devices in 0.24.1: packages’ own WAV, OGG, MP3 and FLAC files, following the game’s sliders, pausing in menus (audio in the rednode package). The S1 research spike passed in game on 2026-10-16 (REDnode 0.23.1); the scanner’s slow motion is still to find. Planned: REDnode’s own engine in the plugin (S1 play, S2 space, S3 effects and voices, S4 game events), clean room from Audioware’s docs. See Sound API |
| TweakDB API | T1 (read, from the plugin) passed in game. T2 (write through TweakXL, with undo per package) passed in game. T3 (offline through REDbridge) waits for REDbridge’s TweakDB methods. See TweakDB API |
| P2 Tier 2 | Mostly covered by overlay phase O6: the pipe bridge, the Node SDK and the generated game API. Events from hooked game functions are still to do |
| P3 Rules | Not started |
| P4 Tier 1 | Not started |
Source code and issues: github.com/Edgemodders/REDnode