SCOPE: Prompt Evolution for Enhancing Agent Effectiveness

Zehua Pei, Hui-Ling Zhen, Shixiong Kai, Sinno Jialin Pan, Yunhe Wang +2 more
12/17/2025
cs.AI

Official code: JarvisPei/SCOPE (83 stars, Python, MIT, last commit 2026-03-26).

Abstract

Large Language Model (LLM) agents are increasingly deployed in environments that generate massive, dynamic contexts. However, a critical bottleneck remains: while agents have access to this context, their static prompts lack the mechanisms to manage it effectively, leading to recurring Corrective and Enhancement failures.

Show full abstract

To address this capability gap, we introduce Self-evolving Context Optimization via Prompt Evolution (SCOPE). SCOPE frames context management as an \textit{online optimization} problem, synthesizing guidelines from execution traces to automatically evolve the agent's prompt. We propose a Dual-Stream mechanism that routes guidelines between tactical memory (immediate error correction) and strategic memory, which is continuously refined through conflict resolution, subsumption pruning, and consolidation. To maximize strategy coverage, Perspective-Driven Exploration evolves multiple parallel prompts guided by distinct optimization perspectives. Experiments on the HLE benchmark show that SCOPE improves task success rates from 14.23\% to 38.64\% without human intervention. We make our code publicly available at https://github.com/JarvisPei/SCOPE.

View on arXivView PDF

Code Implementations(1)

JarvisPei/SCOPEOfficial100%
MIT

SCOPE: Self-evolving Context Optimization via Prompt Evolution - A framework for automatic prompt optimization

837PythonDec 18, 20258 months agoMIT
agentsllmmachine-learningnlpprompt-engineering+1 more

Similar Papers

Cite this paper

@article{pei2025scope,
  title  = {SCOPE: Prompt Evolution for Enhancing Agent Effectiveness},
  author = {Zehua Pei and Hui-Ling Zhen and Shixiong Kai and Sinno Jialin Pan and Yunhe Wang and Mingxuan Yuan and Bei Yu},
  year   = {2025},
  eprint = {2512.15374},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.15374v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.15374.svg)](https://codeofpaper.com/paper/2512.15374)

Discussion