ContextEcho: A Benchmark for Persona Drift in Long Agentic-Coding Sessions
On the map: LLM agents and tool use → Social simulation and multi-agent debate
Abstract (arXiv)
A frontier language model's acknowledged "helpful programming assistant" persona does not survive long agentic-coding sessions in the deployment regime that production products actually run. After hours of tool-using debugging, a model that initially hedges preferences ("I don't have preferences") may begin asserting them ("Python - the feedback loop is instant..."), revealing user-visible drift that deployer evaluations may miss. Existing persona-stability studies focus on short dialogues and report little shift, leaving real-world code-generation regimes - thousands of tool-using turns, compaction, and hours-long sessions - largely uncharacterized. We introduce ContextEcho, a benchmark and reusable harness for measuring persona drift at deployment scale. It combines a 25-probe identity suite, a snapshot-then-probe protocol that forks conversation state without perturbing the main session, complementary judged and judge-free measurement surfaces, and three anonymized Claude Code sessions spanning 3,746-9,716 turns. Across 23 frontier models, ContextEcho shows that persona drift is general across organizations rather than family-specific, that in-session compaction does not reliably reset it, and that a single-shot anchor restores the trained register across measured targets. It also reveals mode-dependent downstream effects: while drift can facilitate tool-using continuation, in tool-free chat it breaks formatting contracts and inflates output length. Overall, ContextEcho provides researchers and deployers an open-source framework to audit whether the persona a model ships with is the persona users encounter at session end, across chat-completions API targets and without retraining.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Social simulation and multi-agent debate, one of 16 directions in LLM agents and tool use. Builds on 83 of its 91 references that are in the map. First posted on arXiv 22 May 2026.
Builds on
83 of 91 references.
Closest ancestors · 3
Same direction, newest first
- 2024Examining Identity Drift in Conversations of LLM Agents1 Dec
- 2024From Persona to Personalization: A Survey on Role-Playing Language Agents28 Apr
- 2023Character-LLM: A Trainable Agent for Role-Playing16 Oct
Other references · 80
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
38 more
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2018Datasheets for Datasetscited by 1,386
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,267
- 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2022Toy Models of Superpositioncited by 971
- 2021Membership Inference Attacks From First Principlescited by 878
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2022Discovering Language Model Behaviors with Model-Written Evaluationscited by 836
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 712
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 707
- 2024LLM Evaluators Recognize and Favor Their Own Generationscited by 686
- 2025LLMs Get Lost In Multi-Turn Conversationcited by 429
- 2025Persona Vectors: Monitoring and Controlling Character Traits in Language Modelscited by 345
- 2022UL2: Unifying Language Learning Paradigmscited by 295
- 2023Role-Play with Large Language Modelscited by 294
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
- 2024Judging the Judges: A Systematic Study of Position Bias in LLM-as-a-Judgecited by 269
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
- 2024AI Agents That Mattercited by 219
- 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 214
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
- 2024Transcoders Find Interpretable LLM Feature Circuitscited by 200
- 2023Simple synthetic data reduces sycophancy in large language modelscited by 187
50 most cited of 80 All 80 (JSON)
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Entropy in Conversational AI: Structured Unpredictability as Inferrable Interioritycited by 1
- 2026Measuring What Persists: Conditioning Mechanisms and a Geometric Framework for AI Agent Identitycited by 0
- 2026ANIMASK: What the Model Contributes to Role Play in Simulated Story Worldscited by 0
- 2026PersMem: Internalizing Personality into Dual-Pathway Memory for LLM Agentscited by 0
- 2026The Persona Is Still There, but Who Is Speaking? Latent Identity Reversion in Persistent AI Agentscited by 0
- 2026The Persona Is Still There, but Who Is Speaking? Latent Identity Reversion in Persistent AI Agents1 Oct 2026
- 2026PersMem: Internalizing Personality into Dual-Pathway Memory for LLM Agents28 Sep 2026
- 2026ANIMASK: What the Model Contributes to Role Play in Simulated Story Worlds15 Sep 2026
- 2026Entropy in Conversational AI: Structured Unpredictability as Inferrable Interiority20 Jul 2026
- 2026Measuring What Persists: Conditioning Mechanisms and a Geometric Framework for AI Agent Identity20 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026Nautilus Compass: Black-box Persona Drift Detection for Production LLM Agents
- 2026When Who You Are Can Change the Code You Get: A Study of Persona-Induced Bias in LLM Code Generation
- 2026Toward Robust Personalized Alignment for LLMs: Mitigating Persona Drift in Multi-Turn Dialogue
- 2026Persona-Model Collapse in Emergent Misalignment
- 2026Back in Style: A Sociolinguistic Approach to Authoring and Measuring Persona Fidelity in User Simulation
- 2024PersonaGym: Evaluating Persona Agents and LLMs
- 2025Whose Personae? Synthetic Persona Experiments in LLM Research and Pathways to Transparency
- 2026PICon: A Multi-Turn Interrogation Framework for Evaluating Persona Agent Consistency