An anti-pattern is a design or development practice in software engineering that is commonly used as a solution to a problem but in practice leads to inefficiency or creates new problems. The term is the counterpart of the design pattern, which describes proven solutions. Programmer Andrew Koenig coined it in 1995, and it became widely known through a 1998 book of the same name.
In AI, the term is also applied to recurring ineffective habits in prompt writing and agent design, such as instructions written for older models that remain in place after a model upgrade and now add cost or reduce quality.