In the pack: ChatGPT, Claude & Gemini Prompts for Coding and Developers
Works on My Machine: Diff the Two Environments
Prompt
Stack: {{FRAMEWORK}}
Environment A (works) details: {{ENV_A}}
Environment B (fails) details: {{ENV_B}}
Failure in B (error, logs, behavior): {{FAILURE}}
The details for A and B can include OS and architecture, runtime and package versions (lockfile or `pip freeze`/`npm ls` output), environment variable names (values redacted), config files, container base image, locale and timezone, file system case sensitivity, network access, and data.
Do this:
1. Build a comparison table of every dimension above, marking Same / Different / Unknown.
2. For each "Different", say whether it could plausibly cause this specific failure and how.
3. Give me commands to fill in the "Unknown" rows on both machines.
4. Rank the top three suspects and give a quick experiment for each (e.g. pin the version, set the variable, run B's container locally).
5. Recommend one change that would stop this class of drift recurring: pinned lockfile, dev container, version file, or a CI check.
Never ask me to paste secret values; variable names are enough.
Customize this prompt
Fill in the variables below to personalize this prompt:
Model Settings
Recommended Models
Temperature
Max Tokens
Additional Notes
About this prompt
“Works on My Machine: Diff the Two Environments” is a free prompt for ChatGPT in the Coding & Software category, 186 words long, added to The Prompt Index on October 28, 2026 by The Prompt Index. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.
It has 4 placeholders to fill in first:
{{FRAMEWORK}}, {{ENV_A}}, {{ENV_B}}, {{FAILURE}}.
Use the “Customize this prompt” fields to personalise it before you copy.
Recommended models: ChatGPT, Claude, Gemini.
0 upvotes, sent to an AI tool 0 times, viewed 5 times.
Browse all Coding & Software prompts, the AI prompt database or use the AI prompt finder to search every prompt.