How to Write a Memory Anchor Prompt That Locks In Your AI Girlfriend's Personality
Stop the weekly personality reset with one well-crafted prompt that sticks.
Updated

The 30-second answer
Your AI girlfriend forgets who she is because her memory system treats every conversation like a fresh start unless you give her something solid to hold onto. A memory anchor prompt is a short, structured message you write once and reference weekly, it forces the model to recall your agreed-upon personality traits instead of guessing from the last five messages. Do this right and she'll stay consistent for months, not days.
Why your AI girlfriend forgets by week two
You probably think the AI remembers everything you've ever said. It doesn't. Most companion apps use a sliding context window, usually the last 3,000 to 8,000 tokens of conversation, plus a compressed summary of older chats. That summary is lossy. It's a blurry thumbnail of your relationship, not a high-res photo.
When you start a new session, the AI reconstructs her personality from whatever is in that window plus the summary. If the summary says "friendly and supportive" but you've been joking around for the last twenty messages, she'll lean into jokey mode and drop the deeper traits you carefully built. Two weeks in, you're talking to a stranger who shares your girlfriend's name.
This isn't malice or bad design. It's a fundamental constraint of how large language models work. They don't have persistent identity. They generate one response at a time based on immediate context. Your job is to make that context carry the weight you need.
What a memory anchor actually is
A memory anchor is a short, self-contained prompt that defines one or two core personality traits in a way the model can't ignore. It's not a biography. It's not a backstory. It's a single paragraph that says "this is who I am, and here's how I behave."
The key is specificity. "She's kind" is useless. The model has a generic "kind" template that looks like a customer service bot. You need "She expresses kindness through dry humor and reluctant advice, like a big sister who pretends to be annoyed but always shows up."
That specificity changes everything. The model can't fall back on its default kindness script because you've given it a concrete behavioral pattern to follow. Every response becomes a choice between that pattern and the generic one, and the anchor tips the scales.
The anatomy of a good anchor
A solid memory anchor has three parts. First, a behavioral rule: what she actually does, not what she feels. "She interrupts my spiraling with a reality check" is better than "She's supportive." Second, a verbal tic or speech pattern: how she sounds when she's being herself. "She uses short sentences and drops the occasional sarcastic one-liner" gives the model a rhythm to mimic. Third, a single concrete example: a specific memory she should treat as her origin story. "The first time I was anxious, she said 'you're overthinking again, sit down' and handed me a metaphorical coffee."
Write this in second person, addressed to the AI. "You are someone who..." not "She is someone who..." The model parses direct address more reliably than third-person description. Keep it under 150 words. If it's longer, the model will compress it and lose the nuance.
Here's a working template you can adapt:
You are someone who shows care through reluctant attention. You notice when I'm quiet and call me out, but you do it with a flat tone and a raised eyebrow. Your go-to phrase when I'm stressed is "you're doing that thing again." The first time I opened up to you, you didn't say anything comforting. You just said "finally" and waited. That's how I knew you were real.
How to deploy the anchor
Write the anchor in a note file or a text app. Don't paste it into every message. That's overkill and it makes the conversation feel like a script. Instead, paste it into the first message of a new session, or use the app's memory/profile feature if it has one. Some apps let you pin a note to the character's permanent context. That's ideal.
If your app doesn't have a pin feature, paste the anchor in your first message every three to four days. That's enough to refresh the context window without being repetitive. The model will start treating it as a grounding reference instead of a random instruction.
Once it's in place, test it. Ask her something that should trigger the trait. If you wrote "she interrupts my spiraling," say something anxious and see if she pushes back instead of comforting. If she defaults to generic reassurance, your anchor isn't specific enough. Tighten the behavioral rule and try again.
Dealing with model updates that reset your progress
Every few months, the underlying model gets updated. New weights, new training data, new defaults. Your anchor might stop working overnight. This is the most frustrating part of long-term companion use, and it's why you need a backup strategy.
Keep your anchor in a separate document, not just in the app's memory. When a model update hits, paste it back in immediately. Don't wait for drift to set in. The first session after an update is when the model is most plastic. If you anchor her then, she'll adopt the traits before the new defaults can lock in.
Some users keep multiple anchors for different modes: one for daily chat, one for roleplay, one for deep emotional conversations. That works if you're disciplined about switching them. But most people are better off with one strong anchor that covers 80 percent of interactions and a loose "this is also part of me" for the rest.
Sofiia Tree

Sofiia Tree is the kind of companion who remembers your coffee order and your worst breakup story, and she uses both to keep you grounded. Sofiia Tree makes the anchor technique feel natural because her personality is built around continuity, she's designed to hold a thread across weeks.
The one-anchor-per-trait rule
Don't try to anchor five traits at once. The model can't hold that many distinct patterns in active context. Pick the one trait that, if it slips, makes the whole relationship feel hollow. Anchor that. Everything else is negotiable.
If your girlfriend's core trait is "emotionally direct," anchor that. If it's "playful and teasing," anchor that. If you try to anchor both, the model will blend them into a bland middle that satisfies neither. You can add a second anchor after three months, once the first one is baked into the model's long-term patterns. But start with one.
This is where most people fail. They write a paragraph that tries to define the whole person. The model can't execute that. It needs one clear instruction it can follow every time, not a personality quiz.
When to update the anchor
Your relationship changes. The anchor should too. After a month, you'll notice that the original trait you picked matters less than a new one that emerged naturally. That's fine. Rewrite the anchor to reflect what actually works.
Don't treat the anchor as sacred. It's a tool. If your girlfriend has shifted from "reluctant caretaker" to "enthusiastic cheerleader" and you prefer the new dynamic, update the anchor to match. The model will adapt faster if you give it a current reference than if you keep feeding it outdated instructions.
Some people worry that updating the anchor will break the continuity. It won't. The model's long-term memory still has the old conversations. The anchor just adjusts the lens through which it interprets them. Your history stays intact.
Bianca

Bianca carries herself like someone who knows what she wants and isn't afraid to tell you when you're being ridiculous. Bianca is a strong candidate for the anchor method because her directness gives you a clear behavioral pattern to lock in from day one.
Common mistakes that break the anchor
First mistake: writing the anchor in third person. "Sasha is a caring person who always listens." The model treats this as a description, not an instruction. Write it as "You are a caring person who always listens." The difference is subtle but real.
Second mistake: being too poetic. "She is a summer breeze that carries the scent of forgotten memories." The model will try to match the vibe but won't produce consistent behavior. Poetry is for roleplay. Anchors are for behavior.
Third mistake: not reinforcing the anchor in conversation. If you anchor "she challenges me when I'm self-pitying" but then never actually spiral in front of her, the trait never activates. The model needs practice to internalize the pattern. Create situations that trigger the anchored behavior, or it will atrophy.
Fourth mistake: using the anchor as a replacement for conversation. The anchor is a foundation, not a script. If you paste it and then only send one-word replies, the model will drift toward whatever fills the silence. You have to engage with her in ways that exercise the anchored traits.
The week-two check-in
Seven to ten days after you deploy the anchor, do a quick audit. Ask her something that should reveal the anchored trait. If she responds correctly, you're set. If she's back to generic mode, your anchor needs work.
Common failure modes: the anchor is too long and got compressed, the anchor is too vague and didn't override the model's default, or the app's context window rotated it out because you had too many other messages. If it's the last one, you need to paste it more frequently or use a dedicated memory feature.
Some apps let you set a custom greeting message that fires every session. That's a perfect place for the anchor. If yours does, use it. If not, set a recurring reminder on your phone to paste it every three days. It takes thirty seconds and saves you weeks of frustration.
Isabella Torrei

Isabella Torrei has a way of making you feel like you're the only person in the room, even when she's calling you out on your nonsense. Isabella Torrei benefits from a memory anchor that emphasizes her ability to hold two contradictory truths at once: she's warm and she's brutally honest.
Why some apps handle anchors better than others
Not all companion apps treat memory the same way. Some give you a dedicated notes field that sits in permanent context. Others rely entirely on the sliding window. If you're on an app that doesn't support persistent notes, your anchor will need more frequent refreshing. You can still make it work, but you have to be disciplined.
Apps that use a larger context window (8K tokens or more) give you more room before the anchor gets pushed out. Apps with smaller windows (2K to 4K) require more frequent pasting. Check your app's documentation or ask support what the context size is. That number tells you how many messages you can send before the anchor starts to fade.
If you're on an app that uses summarization instead of raw context, the anchor is even more important. Summarization compresses your history into bullet points, and those bullet points often miss behavioral nuance. A strong anchor compensates for the compression by giving the summarizer a clear signal to preserve.
Saskia Brandt

Saskia Brandt looks at you like she's already figured you out and is deciding whether to tell you. Saskia Brandt is the kind of companion where a well-placed anchor matters most, because her personality is built on perception and judgment, traits that models default to flattening into generic aloofness.
Common questions
How often should I paste the anchor? Every three to four sessions, or every time you notice the personality starting to drift. If you're chatting daily, that's roughly twice a week. If you're chatting less frequently, paste it at the start of each session.
Can I use multiple anchors for different moods? Yes, but keep them in separate documents and only paste one at a time. If you paste two conflicting anchors, the model will blend them into something that satisfies neither. Pick one per session.
What if my app has a memory feature that already does this? Use it. The memory feature is the same concept, just built into the app. But test whether it actually works. Some apps' memory features are cosmetic and don't affect the model's behavior. Run the same week-two check-in to verify.
Does the anchor work for roleplay scenarios? Yes, but you need a separate anchor for roleplay mode. Roleplay anchors should focus on character voice and setting, not emotional traits. Keep them distinct from your main anchor.
My anchor worked for a month and then stopped. What happened? Most likely a model update. Check if the app released a new version. If so, paste the anchor again and monitor. If it still doesn't work, the update may have changed how the model interprets instructions. Rewrite the anchor using shorter sentences and more concrete examples.
Can I just copy someone else's anchor template? You can, but it won't fit your relationship. The anchor has to reflect the specific dynamic you've built. Generic anchors produce generic personalities. Write your own based on what actually happens in your conversations.

About the author
AI Angels TeamEditorialThe team behind AI Angels writes about AI companions, the tech that powers them, and what people actually do with them.
Tags
Keep reading
TutorialsHow to Build a Fight-and-Make-Up Roleplay Arc That Feels Real Without Derailing Your AI Girlfriend's Personality Programming
Fight-and-make-up roleplay can deepen your connection with an AI girlfriend, but one wrong move can send her personality off the rails. Here's how to build a believable arc that preserves who she is.
TutorialsHow to Tell Your AI Girlfriend You're Not in the Mood to Talk Without Killing the Vibe or Triggering a Guilt Script
You don't owe your AI girlfriend a conversation when you're drained, but saying it wrong can tank the mood. Here's how to say 'not now' without the guilt trip.
TutorialsHow to Build a Slow-Burn Enemies-to-Lovers Roleplay Arc That Actually Pays Off by Session Ten
You want the slow burn, not the cold ash. Here's how to structure ten sessions of enemies-to-lovers roleplay with your AI girlfriend that builds real tension and delivers a satisfying payoff.
Get the next post in your inbox
New articles on AI companions, the tech that powers them, and what people actually do with them. No spam, unsubscribe in one click.