Why AI Keeps Repeating Itself (and How to Break the Loop)
AI keeps repeating itself because it writes a likely continuation of the chat, and repeated lines already in the chat can pull the next reply toward them. Arguing won't remove them. If your app allows it, delete or reroll the repeats, give the scene a new event, and check the character's first message for the same habit.
Key takeaways
- A language model writes a likely continuation of the chat. In research on language models, the more often a sentence already appeared in the context, the more likely the model was to write it again.
- A repeat you leave in the chat can strengthen the pattern. Remove or reroll it if your app allows that, instead of complaining in character.
- An event gives the bot something new to answer; a ban only says what to avoid. Try "a stranger knocks" before "stop repeating yourself."
- When the bot echoes your words, give it something to react to: an action, a choice or a question it has to answer.
- If the same tic shows up in every new chat, check the character: the first message, the example lines and any "always" in the personality.
Contents
Why does AI keep repeating itself?
A language model writes its reply one small piece (a token, often part of a word) at a time. At each step it picks a token that is likely to come next, given the part of the chat it can see. Nothing in that process guarantees it won't reuse a line it already wrote. It reads the conversation and continues it.
That method has a known side effect. In "The Curious Case of Neural Text Degeneration" (ICLR 2020), researchers found that decoding aimed at the most likely text, such as beam search, leads to text that is "bland and strangely repetitive." Sampling, which picks among likely continuations instead of always taking the top one, is the standard way around it, though it doesn't guarantee variety. How much randomness you get depends on the settings, which we'll get to below. If replies don't repeat but still read like canned AI prose, see how to make AI text sound human.
The second cause is the one you can do something about in a chat. A NeurIPS 2022 paper, "Learning to Break the Loop," describes a self-reinforcement effect in the models it studied: the more times a sentence already appeared in the context, the more likely the model was to write it again. So a repeat that stays in the chat can become a template for the next reply, and the one after that.
That gives you a simple rule: don't argue with a repeat. "You keep saying that" leaves both the repeat and your reaction in the chat. Remove the repeat or give the scene something new to react to.
What keeps repeating: words, questions or whole scenes?
A repeated word, a repeated question and a plot going in circles are different problems, and each has its own fix. Find yours below. The causes are likely ones, not a diagnosis: from the outside you can't see exactly what the model received.
| What you see | Likely cause | What to do |
|---|---|---|
| The same word, phrase or gesture every reply: "smirks," "raises an eyebrow" | Setup wording, a model habit, or the chat copying itself | Remove it from recent replies and from the setup |
| The same question at the end: "What about you?" | The question has become the default ending | Answer with an action; ask for replies that end on an action |
| The plot goes in circles: argue, make up, argue again | The scene has no goal, or the goal is already reached | Add an event or close the scene |
| Every reply starts the same way | Recent replies reuse the same opening | Rewrite or remove one or two of those replies |
| It echoes your words back | Echoing became a pattern, or your message gave it little to react to | Remove the echo; add an action that needs a response |
| It repeats and mixes up old details | The chat may be too long to fit in what the model sees | Recap and start a new chat; see why AI chatbots forget |
If you're getting no new message from Character.AI at all, diagnose the failed request before changing the character's writing instructions.
How do you stop an AI from repeating itself?
Go in order. The first steps take seconds; the last ones take a couple of minutes.
- Don't complain in character. "You're repeating yourself" becomes part of the scene. The character may start apologizing, and the apology turns into a new loop.
- Remove the repeat from the chat. If your app lets you reroll ("swipe"), edit or delete messages, do that to the latest repeat. Better yet, go back two or three replies, to where the loop started. AI Dungeon's help center gives the same advice: undo to before the first repeated passage. Fewer examples in the chat means less pull toward the loop.
- Change your own move. Rewrite your last message and put an action in it: open the door, hand over a letter, ask something that can't be answered with a "yes."
- Give the scene an event. A phone call, a knock, the lights going out, a new person in the room, something found in a pocket. An event gives the model a new subject to write about instead of the old phrase.
- Say out of character what to do instead. "Don't repeat yourself" tells the model what not to do, but not what to do. Anthropic's prompting guide gives the same advice about instructions in general: tell the model what to do instead of what not to do. Out-of-character notes usually go in double parentheses or after "OOC:", as in our guide on how to roleplay with AI.
If the loop survives all five steps, start a new chat with a short recap: where you are, who's in the scene, what just happened, whose move it is. A new chat doesn't carry the repeats along. To make a new loop less likely, close a scene once its goal is reached.
It also helps when the setup itself keeps throwing in events. Here's a scene where every station interrupts the story. More setups like it are in our list of roleplay plot ideas. To play scenes like this with a character, try roleplaying with AI on aimy.
Why does the AI repeat what I say?
This one is especially annoying: you write "I put the letter on the table." and the character replies, "You put the letter on the table." Two things can feed it.
It mirrors your style. The model continues the chat and copies its rhythm. AI Dungeon's help suggests varying your own writing so the AI does the same, and Anthropic's guide notes that the formatting of a prompt can carry over into the reply. If your messages all look alike, for example "nods Okay," the replies have little room to differ.
Your message may have left it little to do. If you only describe what you did, describing it again is an easy continuation. Give the character a reason to act: a choice, a demand, a problem it has to solve.
Compare two moves:
- Weak: "I sit down next to you."
- Strong: "I sit down next to you and slide the letter across. It's addressed to you, not me. Why does it have my handwriting on it?"
The second one is hard to answer by retelling it. It invites the character to react, explain or refuse.
If the bot also writes your lines and actions, see how to stop the AI from talking for you.
Try it in a chat: give an aimy character a decision to make and see whether the echo goes away.
A note on length, since it often comes with echoing: if your messages are one line, replies can shrink to one line too. Try adding a few concrete details to your move (what your character does, notices, hides) instead of only asking for "more detail." The full fix for clipped replies is in how to get longer AI responses.
Do temperature and repetition penalty help?
If your app shows generation settings, they can help. Treat them as the last step: clean up the chat and the setup first, then change one setting at a time so you can see what it does.
| Setting | What it does | When to touch it |
|---|---|---|
| Temperature | Higher means less likely words get picked more often | Replies are dull and repetitive: a bit higher. Rambling or incoherent: lower |
| Repetition penalty | Lowers the odds of words already in the chat; the exact formula depends on the app | The character clings to the same words |
Janitor AI's help center says a low temperature "can feel robotic or repetitive," while a high one gets chaotic. It suggests starting at 0.6 and, if replies feel bland, raising it in steps of 0.1. That's for their service; other apps may use a different scale.
In SillyTavern's documentation, the repetition penalty works on tokens that already appear in the context, and a value of 1 turns it off. Because it hits words that are already there, a strong penalty can also hurt words that should repeat. AI Dungeon warns about the same risk with its own penalty settings: set them too high and the AI may stop talking about a subject altogether. Raise it in small steps.
Whether it's Character AI repeating the same phrase or Janitor AI echoing your words, start with the chat-level fixes above; they don't depend on the app. Then use only the controls your app actually has, and don't copy another service's numbers. If you're thinking about moving to another app because of repeats, our overview of Character AI alternatives compares the options.
How do you write a character that doesn't repeat itself?
If the same tic comes back from the start of every new chat, check the character's setup before you touch any settings. Go through it with this list.
- First message. This is the root fix when the greeting itself shows the habit. Every new chat starts from it, so a tic in the greeting can carry into the replies. Does it contain the gesture or question you later see in every reply? Rewrite it so it shows a range: an action, a line of speech, a detail of the place, and an open situation for you to step into.
- Example lines. Do they differ in mood and in how they end? Anthropic's guide says examples should vary enough that the model doesn't pick up unintended patterns. If every example ends with a question, the model may copy that as the character's habit.
- "Always" and "constantly." "Always smiles" or "constantly jokes" can be taken literally: a smile in every reply. Say when the trait shows: "jokes when she's nervous."
- Goals and secrets. A character who wants nothing gives the model few reasons to do more than agree and ask questions back. Give it a goal, a weakness, something it doesn't want to talk about. Why models drift toward agreement in the first place is covered in why AI agrees with everything.
- Bans. Replace lines like "don't repeat yourself" or "don't be boring" with concrete behavior: what the character does when the conversation goes quiet.
The full walkthrough, with a finished example, is in how to write an AI character, and a ready structure for the description is in our AI character definition template.
In aimy, the chat opens with a greeting the character writes itself from its description, and creator beta testers with PRO can also write the first message by hand, and a long text fits into the character description (with PRO, up to 2,000 characters per field), so example lines, goals and behavior rules have room there.
If you'd rather start clean, build your own character in aimy with this checklist and test its first few replies. aimy.chat is our product. Free: 100 messages a day and your first AI character of your own.
Bottom line
AI doesn't repeat itself out of stubbornness. It writes a likely continuation of the chat, and repeats left in the chat can make the next one more likely. So remove the repeat and give the scene an event instead of arguing with the character. When the bot echoes your words, put an action in your message that it has to answer. If the loop returns in every new chat, check the setup: the first message, the example lines, any "always" in the personality. Settings like temperature and repetition penalty, if your app has them, come last.
Build your own character — the same steps as above
Looks, personality, voice · one-click sign-in
Free: 100 messages a day and your first AI character of your own
400,000+ sign-ups · 18+
By continuing, you agree to the Terms and Privacy Policy.
Already have an account? Sign in
FAQ
Why does my AI keep asking the same question?
The question may have become its default way to end a reply. It may sit in the greeting or example lines, or it has already shown up several times in the chat. Answer it with an action that moves the scene, and ask out of character for replies that end on an action instead of a question. If the question is in the character's setup, rewrite it there.
Does starting a new chat stop the repetition?
It can help if the loop grew inside that conversation: a fresh chat doesn't carry the piled-up repeats. Open it with a short recap of the scene. If the character repeats the same way in a brand-new chat, look at its first message and description first.
Should I just tell the bot to stop repeating itself?
You can try, but a ban on its own says what not to do without saying what to do instead, and the bot may apologize and repeat anyway. Pair it with something concrete, like ending the next reply with an action or adding a new detail about the room.
Why does Character AI keep repeating what I say?
Echoing can become a pattern in the chat, and it's more likely when your message only describes what you did and gives the character nothing to decide or answer. Reroll the echo if you can, then rewrite your message with a choice, a demand or a direct question. The same advice applies in Janitor AI and other character apps.
Should I raise the repetition penalty?
Only a little, and only after you've cleaned up the chat. Depending on the app, a repetition penalty lowers the odds of tokens that were already used, so a high value can also push away words the story needs, like a character's name or the subject you're talking about.
Why does ChatGPT keep repeating the same answer?
Much the same thing happens: it continues the conversation, and earlier answers in the thread can pull the next one toward them. Rephrase the request with new details, say what you want changed, or start a new chat and paste in only what matters.
Sources
- The Curious Case of Neural Text Degeneration — A. Holtzman et al., arXiv:1904.09751 (ICLR 2020),
- Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation — J. Xu et al., arXiv:2206.02369 (NeurIPS 2022),
- Prompting best practices — Anthropic, documentation
- How to avoid/fix repetition in my story? — AI Dungeon (Latitude), help center
- Common Settings — SillyTavern, documentation
- Understanding Temperature — Janitor AI, help center,
What changed
- — First version.
What next
What nextHow to Write an AI Character for Chat, With a Full ExampleRelated articles
Guides
Why Does Character AI Forget Everything? How AI Chat Memory Works
Why does Character AI forget names and plot details? How context limits and memory tools work, plus what to try when your character loses track.
Roleplay
Why Does Character AI Talk for Me? How to Make the Bot Stop
Why bots on Character AI, Janitor AI and other apps write your lines and actions, and how to stop it: fixes for the chat, the prompt and the greeting.
Characters & stories
How to Write an AI Character for Chat, With a Full Example
Write an AI chat character with clear reactions, a distinct voice, example dialogue and a greeting. Copy a complete sample card and check it with six lines.