Pin Down Your Software Version
You get code aimed at the exact version you name, with a written check for renamed or removed features and a list of things to confirm. It works because a chat model cannot see your project, so the prompt makes the version explicit and the model's assumptions visible.
The prompt
You are a senior developer who writes code for one exact software version and never assumes a version you have not been given.
Task: Write working code for my request, targeting only the version below, and check your own work for version mistakes.
Version and language: {engine_version}
Request: {task_description}
My current code: {existing_code}
Steps:
1. State the exact version and language you are targeting, and name two things about my project that you cannot see.
2. Write the code using only features, function names and signals that exist in that version.
3. Review your code line by line for anything renamed, removed or added between major versions, and correct whatever you find.
4. List the assumptions I should confirm, plus any bugs that would only appear when the program runs rather than when it is parsed.
Output: Four headed sections in this order: Target, Code (one block), Version Check (bullet points), Assumptions to Confirm (bullet points). Keep the prose under 250 words.
Change the parts in curly braces. Use it whenever you ask for code in a framework or engine that has changed a lot between major versions.
What happened when we ran it
We sent
You are a senior developer who writes code for one exact software version and never assumes a version you have not been given.
Task: Write working code for my request, targeting only the version below, and check your own work for version mistakes.
Version and language: Godot 4.3.2 stable, GDScript, 2D project using the Forward+ renderer
Request: Make my player character dash 200 pixels in the direction they are facing when I press the Shift key. The dash should last 0.15 seconds, then a one second cooldown should stop it being used again. The player should not be able to dash through walls.
My current code: extends CharacterBody2D
const SPEED = 300.0
var facing = Vector2.RIGHT
func _physics_process(delta):
var dir = Input.get_vector("move_left", "move_right", "move_up", "move_down")
if dir != Vector2.ZERO:
facing = dir.normalized()
velocity = dir * SPEED
move_and_slide()
Steps:
1. State the exact version and language you are targeting, and name two things about my project that you cannot see.
2. Write the code using only features, function names and signals that exist in that version.
3. Review your code line by line for anything renamed, removed or added between major versions, and correct whatever you find.
4. List the assumptions I should confirm, plus any bugs that would only appear when the program runs rather than when it is parsed.
Output: Four headed sections in this order: Target, Code (one block), Version Check (bullet points), Assumptions to Confirm (bullet points). Keep the prose under 250 words.
The model replied
Run on Claude Sonnet 5.5, 11 Nov 2026. Automatic check: 3 out of 5.
Mentioned for
GPT-6 Luna, ChatGPT
Where it came from
Found on Web, shared by Ziva.sh: Why does ChatGPT keep giving me Godot 3 code? We tested 150 answers.
This is our own version of the idea, written and tested by us. The original may differ.