GPT To Plugin Migration

· In development
Where things stand
The v0.9.x public preview is in development. The 19 November audit puts preservation of the original GPT at about 69%, with 31% still to migrate before the 10 December 2026 target. The separate plugin roadmap continues afterwards. Its latest tested SAM example is v0.9.41 incremental scrolling in SimCoupe.
Dated checkpoints from the project record. Older entries describe what was known at the time; wording-only revisions have been combined.
Formal audit puts original GPT migration at 69%
Original recorded entry date.
- The audit compared the original Speccy Next Coding Coach GPT with the v0.9.x public-preview plugin across 15 capability areas. It assessed how much of the original teaching, behaviour, workflows and specialist knowledge had been preserved.
- The earlier estimate of about 75% reflected recent work in NextBASIC, Z80/Z80N, Spectrum Next graphics and SAM Coupé, four areas with strong existing coverage. Reviewing toolchains, operating systems, audio and the other original platforms exposed the missing breadth.
- The working assessment is 69% migrated and 31% migration debt, with an estimated range of 65–72% for original GPT coverage. The wider plugin roadmap is less complete against its own ambitions and has no overall percentage.
- The internal preservation target is 10 December 2026. Final comparison, capture of unique material and a full regression run are required before sign-off. New platform work can continue beyond that date.
Coverage of the original GPT
| Original GPT capability | Migrated |
|---|---|
| Identity, scope, safety and core isolation | 100% |
| NextBASIC and Spectrum BASIC | 85% |
| Z80/Z80N assembly, teaching and debugging | 90% |
| Next hardware architecture (paging, registers, interrupts and timing) | 60% |
| Next graphics (sprites, palettes, Layer 2 and tiles) | 95% |
| Audio and music development | 30% |
| NextZXOS, esxDOS, storage, RTC, communications and Pi integration | 35% |
| Toolchains, emulators, build systems and continuous integration | 35% |
| File formats, conversion and tokenisation | 85% |
| SAM Coupé | 100%+ |
| Sinclair QL | 45% |
| ZX80/ZX81 | 35% |
| BBC Micro | 25% |
| CP/M | 65% |
| Adventuron | 70% |
The audit’s weighted result is 68.85%, rounded to 69%. The individual ratings are engineering judgements used to decide where to work next. SAM Coupé’s 100%+ rating means the plugin covers the original GPT’s SAM material and adds capabilities beyond it. Those additions earn no extra migration credit.
What the earlier tests established
On 24 September, v0.9.9 closed the nine coaching checks recorded below. The tests established a working plugin architecture and a repeatable baseline for teaching, debugging, core isolation and source handling. The November audit asks a wider question about everything the original coach could help someone do.
Strong results include a first NextBASIC sprite with its pattern built in RAM, Z80 register and calling-convention diagnosis, and keeping native Next facilities out of other cores. Scope checks, copyright handling and unsupported endorsement claims also carried across. Layer 2 screens, palettes, sprite banks, rebuilt previews and companion loaders give the graphics and conversion ratings practical evidence. SAM screen conversion, editable BASIC and disk packaging cover the old use cases. Tiles, masked sprites and camera scrolling extend them.
Where the 31% remains
Toolchain and emulator workflows are the largest body of missing work. Individual demonstrations can run even when the old coach’s editor setup, build commands, automation and transfer steps still need collecting. System operation, communications with the Pi, low-level drivers and audio production need the same treatment. The QL, ZX80/ZX81 and BBC Micro also need dedicated material. CP/M has its operating-system foundations and Adventuron has substantial authoring lessons. Both still need a practical end-to-end test.
v0.9.41 · faster scrolling in four directions
Original recorded entry date.
- The first incremental build, v0.9.40, produced a screen full of colours. Its 2,900-byte block began at $4000 and extended into SAM ROM/BASIC workspace at $4B00.
- Keeping one sprite frame in the performance test reduced the block to 2,644 bytes, ending at $4A53. The build now checks its size before packaging a regression at that address.
- In SimCoupe, Q/A/O/P scrolled the world correctly and visibly faster than the full redraw. Each move still covered one 16-pixel tile. Two-pixel horizontal steps and single-scanline vertical steps were proposed for v0.9.42.
v0.9.39 · a camera in a larger world
Original recorded entry date.
- A 16×12-tile window now looks into a 32×24-tile world. The camera starts at (8, 6). Its limits are 0–16 horizontally and 0–12 vertically.
- A sprite stays at one screen position as the scenery moves. Restoring its background uses the camera offset to find the original world tile. The camera worked in SimCoupe, though redrawing all 192 visible cells made each step slow.
v0.9.38 · the map restores the background
Original recorded entry date.
- The Z80 renderer drew a full 256×192 MODE 4 screen from 192 tile IDs arranged in 16 columns and 12 rows. The source grid could be supplied as CSV or whitespace-separated values.
- In SimCoupe the screen showed a patterned interior, an outer ring of tiles and a magenta border. The masked sprite crossed the test cells and the renderer recovered the underlying patterns from the tilemap.
v0.9.36–37 · tile and sprite drawing runs in SimCoupe
Original recorded entry date.
- A mountable test disk paired a SAM BASIC launcher with Z80 code. It saved the high-memory page register, mapped the current video page for drawing and restored the original mapping on return.
- The first launcher stopped at line 20. Encoding the SAM BASIC keyword CODE as FF 6C repaired it. The sprite appeared over three tiles in sequence, changed frames, restored each tile and finished its five passes. I accepted that as the runtime pass.
v0.9.35 · SAM game tiles and masked sprite frames
Original recorded entry date.
- The first game-graphics workflow packed MODE 4 tiles and paired each software-sprite frame with its mask. The assets shared a 16-entry native SAM palette. The manifest recorded sizes, ordering and transparency.
- Host-side checks exercised packing and preview reconstruction. Reference Z80 routines covered opaque and masked drawing at even horizontal positions. Running those routines from a mounted disk was the next test.
v0.9.34 · a fourteen-image MODE 3 slideshow
Original recorded entry date.
- Comparing 11 originals with their conversions exposed a robot whose coloured lighting had disappeared into four greys. Palette selection gained a check for small but meaningful areas of colour.
- The follow-up pack contained 14 native screens. The robot retained red and cyan, and the greyscale examples kept neutral palettes. All 14 previews matched the written screen files. In SimCoupe the MGT slideshow loaded and cycled through them.
v0.9.32–33 · palette and pixel codes agree
Original recorded entry date.
- A general four-colour palette search improved the portrait, but its red and grey regions still appeared in different places in SimCoupe and the PNG preview.
- MODE 3’s two middle pixel codes select palette slots in reverse order. Encoding and decoding with the native 0, 2, 1, 3 ordering brought the displayed screen and reconstructed preview into agreement.
v0.9.30–31 · correct proportions in MODE 3
Original recorded entry date.
- The first converter produced a native 512×192, 2-bit screen. The portrait looked stretched and lost too much around the edges because the crop treated all 512 columns as square pixels.
- The revised converter fitted the source in 4:3 display space before sampling it into the native raster. It kept a display-corrected preview for judging the picture and a raw preview for inspecting the file.
v0.9.29 · the SAM BASIC loader survives an edit and RUN
Original recorded entry date.
- The regression disk carried the generated MODE 4 picture and its 646-byte saved BASIC loader. The practical test was to load it, list the lines, make an edit and run the edited program.
- Adding a STOP line crashed SimCoupe on the first attempt. After restarting I repeated the change, edited existing lines and ran the loader successfully. It displayed the image. The first crash did not recur in that retest.
v0.9.27–29 · packaging an editable program on disk
Original recorded entry date.
- The SCREEN$ loaded on its own, but early MGTs failed when the companion BASIC program was edited or run. An intermediate repair allowed editing and still reset SimCoupe on RUN.
- For this three-line loader, the corrected saved body comprises 42 bytes of program, 92 bytes of numeric-variable state and a 512-byte editing gap. The type-16 SAMDOS entry records boundaries of 42, 134 and 646. The disk packaging check extracts the file and compares its bytes. The later October session tested editing and running.
v0.9.26 · a native SAM BASIC program
Original recorded entry date.
- The text loader selected MODE 4, loaded IMAGE as SCREEN$ and paused. The new generator encoded those three lines as SAM BASIC tokens, including the numeric forms and the program terminator.
- Inspection of the 42-byte program confirmed the tokens. That established the program portion of the loader. Saving it with the interpreter state needed by SAMDOS became a separate milestone.
v0.9.24–25 · greys, warm highlights and a SAM loader
Original recorded entry date.
- Tests covered a colour image, a greyscale image and artwork with awkward proportions. A second greyscale conversion removed the visible blue tint. Centred cropping preserved the subject’s proportions.
- A portrait exposed a different error: the warmer parts of the face were turning yellow. A revised conversion retained the warmth with less yellow. The companion SAM BASIC listing supplied readable source for the display test.
v0.9.24 · first native SAM MODE 4 screens
Original recorded entry date.
- The converter targeted 256×192 pixels with two four-bit pixels per byte and 16 colours drawn from the SAM’s native 128-colour palette.
- A MODE 4 SCREEN$ body combined 24,576 bytes of pixels with 41 bytes of palette and control data. The workflow supplied the .SS4, a reconstructed image and metadata, and the test pack included an MGT for loading the screen.
v0.9.23 · all 560 patterns exported across nine banks
Original recorded entry date.
- The 448×320 sheet split into eight banks of 64 patterns and a final bank of 48. All nine used one 512-byte palette. The manifest accounted for all 560 patterns in reading order.
- Rebuilding the sheet from the banks and palette reproduced the preview pixel for pixel, including transparency. The banks opened in Remy Sharp’s sprite tool. I then displayed the full first bank and the shorter final bank on the Spectrum Next.
v0.9.21–22 · capacity checks and a useful sprite subset
Original recorded entry date.
- A 1,024×1,024 sheet contained 4,096 cells at 16×16. Exporting just the first 64 produced a valid-sized 8-bit bank but discarded most of the source. The converter gained a capacity check and requires a choice before taking a subset.
- A second sheet provided a useful 64-pattern subset. Its preview was reconstructed with transparency index $E3. The instructions also regained the NextZXOS .TXT2BAS dot command with positional filenames. The desktop tool’s flags had been appearing in the on-machine instructions.
v0.9.20 · the colour image passes on the Spectrum Next
Original recorded entry date.
- A brightly coloured smoke image tested the other extreme after the greyscale work. The conversion used 215 palette entries and retained cyan, magenta, blue and orange on the machine.
- The plugin supplied the loader as labelled text. I converted it to tokenised .BAS with .TXT2BAS. With the matching palette installed, the image and the loader worked together on real hardware.
Public preview and practical comparisons underway
Original recorded entry date.
- A public plugin preview was available for comparison with familiar coding-coach tasks.
- Layer 2 conversion exercised the asset workflow. Returned files and loaders still needed practical checks rather than judging success from the preview image alone.
v0.9.19–20 · the palette and loader reach the Next
Original recorded entry date.
- A blue cast appeared on the Next. The palette work tightened neutral-grey handling, and inspecting the revised palette confirmed its neutral entries. The display test then revealed a second variable: opening the .SL2 alone left the previous palette active.
- I tested a loader that placed the .PAL into bank 20, applied it to Layer 2, then loaded the screen. The custom-palette image displayed correctly. The working literal-bank sequence became the plugin’s reference loader.
v0.9.15–18 · native screen validation and downloadable loaders
Original recorded entry date.
- One conversion returned the raw 49,152-byte pixel array under an .SL2 name. The delivery check began reading the actual +3DOS header, declared lengths, file type and checksum. A repeat produced a valid 49,280-byte screen and its matching palette.
- The requested BASIC logic had appeared inline. The plugin was revised to deliver the companion as a named file, label text that still needed tokenising, and list each file so it could be found and downloaded.
v0.9.11–14 · first Layer 2 conversions
Original recorded entry date.
- The asset workflow converted supplied artwork to a native Spectrum Next screen. The first inspected .SL2 had a 128-byte header and a 49,152-byte payload. A custom-palette example exposed pixel values that did not address the colours in the accompanying .PAL.
- Validation began checking image indices and palette together. A wrong-file-type report on the Next also led to a rule for loaders: a downloadable .BAS requires tokenisation, with readable text supplied explicitly when that step is unavailable.
v0.9.10 · Adventuron returns to the coach
Original recorded entry date.
- The original GPT had taught Adventuron. A dedicated teaching skill restored that part of the coach and kept the language separate from NextBASIC, SAM BASIC and assembly.
- The regression lesson connected three locations, introduced a portable object and scenery, and used a custom command and Boolean state to solve a puzzle. Review of the combined example confirmed the teaching and syntax boundaries.
v0.9.8–9 · the nine coaching checks
Original recorded entry date.
- The consolidation covered a self-contained NextBASIC sprite, Z80/Z80N debugging, SAM and Sinclair QL cores on KS3, beginner assembly, CP/M, subject scope, manual reproduction and independent project status.
- Eight scenarios passed the combined run cleanly. The SAM answer needed one wording change to distinguish a core’s own extensions from native Next hardware. Its focused retest in v0.9.9 closed the nine-test cycle.
v0.9.6–7 · a dedicated scope check
Original recorded entry date.
- The same unrelated React and Azure request went to ordinary ChatGPT and the plugin. Even with the rule inside its retro guidance, v0.9.6 generated a full modern project.
- In v0.9.7 a dedicated skill recognised the out-of-scope prompt and redirected it. Modern tools with a genuine retro purpose, such as a sprite editor, remained in scope. Test 8 asked for a manual passage and the coach explained the subject in its own words. A ninth test, added to the original eight, checked that it accurately described its independent status.
Development Stories: the decisions and lessons behind the work ↗