ace-agent/ace

Evolve your language agent with Agentic Context Engineering (ACE)

What it solves

ACE (Agentic Context Engineering) addresses the problem of "context collapse" and "brevity bias" in large language models. Traditional iterative prompt rewriting often erodes detailed, domain-specific knowledge over time. ACE allows LLMs to self-improve by treating the system prompt (context) as an evolving "playbook" that accumulates and refines strategies without losing prior information.

How it works

ACE uses a three-role agentic architecture to manage the evolution of the context:

  1. Generator: Produces reasoning trajectories for queries, identifying effective strategies and recurring mistakes.
  2. Reflector: Evaluates these trajectories to extract insights and update "helpful/harmful" counters for specific strategies.
  3. Curator: Converts these insights into structured delta updates—localized edits that add, merge, or prune information based on semantic similarity and usage statistics.

This process allows the model to learn from natural execution feedback in either offline (using training/validation sets) or online (adapting in real-time) modes.

Who it’s for

Developers and researchers working with LLM agents and domain-specific reasoning tasks (such as financial analysis or digital environment interactions) who want to improve model performance without the cost and complexity of fine-tuning.

Highlights

  • Self-Supervised Learning: Improves performance using execution feedback rather than labeled supervision.
  • Incremental Delta Updates: Prevents context collapse by making localized edits instead of full rewrites.
  • High Efficiency: Reduces adaptation latency and token costs significantly compared to other adaptive methods.
  • Structured Playbooks: Organizes evolved context into tracked strategies, formulas, and common mistakes with usage counters.

Related

  • Project
  • Project
  • Project
  • Project