Etymology

monkey patch

Today it means: A patch which alters the behaviour of a program by forcibly overriding aspects of the original code at runtime. Full definition →

Ask AI about its historyChatGPTClaudePerplexityGoogle AIGrok

The story

Apparently from earlier guerrilla patch (“code that sneakily changes other code”), understood as gorilla patch. A monkey patch was then a more carefully written instance of such a patch. Or simply derived from monkey (“to mess with”, verb).

Etymology from Wiktionary, CC BY-SA 4.0.