Works on My Machine: Diff the Two Environments

5 Views
0 Uses

Prompt

ChatGPT
Claude
Grok
OpenRouter
Act as a senior DevOps-minded engineer. The same code behaves differently in two environments, and I need a systematic comparison rather than guesswork.

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:

ChatGPT
Claude
Grok
OpenRouter

Model Settings

Recommended Models

ChatGPT Claude Gemini

Temperature

0.7

Max Tokens

2000

Additional Notes

Best for: Bugs that only appear in CI, staging or a colleague's laptop

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.