Skip to content

About

Curated map, framework registry, and benchmark suite for self-improving AI agents: memory, reflection, skill synthesis, self-verification, and self-generated training data.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Awesome Self-Improving Agents

A curated map, framework registry, and reproducible benchmark for AI agents that get better from experience.

Awesome Validate Latest release License: MIT Python 3.9–3.13 GitHub stars PRs Welcome

Start here · MemoryAudit · Frameworks · Papers · Benchmarks · Docs · Releases · Roadmap · Contributing

Important

Release status (2026-12-02): v0.3.0 is available as a GitHub release with an sdist and wheel; v0.1.0 is tagged. memoryaudit is not on PyPI yet, so install from the release wheel, uvx, or source. See ROADMAP.md for the exact PyPI blocker.

Project identity: this repository was formerly awesome-agent-memory. The canonical repository is travisim/awesome-self-improving-agents. It is independent curation, not affiliated with or endorsed by any listed vendor, framework, or paper author.


Table of Contents


Support the Project

This is a small, independent project with no sponsors and no paid tier. The useful support is simple:

  • Star the repo if the audit or datasets save you time.
  • Add a verified entry — a framework, paper, scenario, or adapter.
  • Run and publish an audit with its config and logs.
  • Report a false positive or a broken link.

See Contributing and No Leaderboard Yet.

Start Here

If you want to… Start with
Audit your own agent MemoryAudit quick start and docs/memoryaudit.md
Understand a score The methodology and the scoring contract
Add a framework or paper CONTRIBUTING.md and the issue templates
Run the datasets benchmarks/README.md and eval_memory.py
See what is planned ROADMAP.md and the good first issues

What This Repo Is (and Isn't)

This repository has two layers:

  1. MemoryAudit (memoryaudit/) — the product. A local, vendor-neutral audit that runs COF/NIMS/CSST against an agent you supply and emits a reproducible scorecard plus an SVG badge.
  2. The curated map (README.md, docs/, benchmarks/) — the taxonomy, framework registry, paper index, and datasets that MemoryAudit executes.

The product is the growth vehicle; the list is the credibility layer.

It is not: a hosted memory service, a leaderboard of scores we did not compute, or a ranking of models. MemoryAudit measures behaviour against fixed scenarios; it does not measure general model quality.

Why This Exists

Most "agents" in production are stateless functions with a chat history. Ask one to fix the same class of bug it fixed last Tuesday and it starts from zero — same wrong assumptions, same failed tool calls, same rediscovery cost.

Three bottlenecks keep agents from compounding:

  1. Amnesia — context is discarded at session end, or reduced to dense retrieval over raw transcripts that happily returns superseded facts.
  2. No self-correction — the agent retries the same failing action instead of diagnosing why it failed and changing strategy.
  3. No skill accumulation — successful trajectories are thrown away instead of compiled into reusable, callable procedures.

Memory is a subset of this problem. Storing experience is table stakes; the hard part is acting differently next time. This repo is organized around that distinction: memory is Pillar 1 of 5, not the whole story.

What Counts as Self-Improvement

An agent self-improves when its policy for future tasks changes as a result of its own experience, without a human relabeling the data.

That definition has five axes. Most papers and frameworks differ mainly in where they sit on them:

Axis Question Options
Signal source Where does the feedback come from? Environment/verifier · LLM self-critique · human · reward model
Locus of update What actually changes? Context window · external memory · prompt/program · tool library · model weights
Persistence How long does the improvement last? Single turn · session · cross-session · across model versions
Supervision How much ground truth is needed? Full labels · sparse tests · self-generated labels · none
Verifiability Can improvement be proven? Executable tests · rubric judge · human eval · none (⚠️)

⚠️ Any claimed improvement without a verifier is a vibe, not a result. The benchmark section exists to make that distinction cheap to check.

The Improvement Loop

flowchart TD
    T["Task / Environment"] --> A["Act: agent produces trajectory"]
    A --> E{"Evaluate outcome"}
    E -->|"fail"| R["Reflect: diagnose cause, write critique"]
    E -->|"pass"| G{"Generalizable?"}
    G -->|"yes"| S["Synthesize: compile into skill / prompt / memory"]
    G -->|"no"| M["Store episode as-is"]
    R --> M
    M --> C["Consolidate: dedupe, resolve contradictions, prune"]
    S --> C
    C --> P["Update policy substrate<br/>(context · memory · tool registry · weights)"]
    P --> T

    classDef store fill:#eef6ff,stroke:#4a7fb5,color:#123
    class M,C store
Loading

The loop is only closed if step P changes behavior on the next task. A retrieval system that returns the right memory but leaves the action distribution unchanged has closed nothing.

MemoryAudit: Audit Your Own Agent

A local, vendor-neutral audit for agent memory. It runs fixed scenarios against an agent you supply and produces a reproducible scorecard — no leaderboard you can't re-run.

Installation

Zero-install trial with uv:

uvx --from git+https://github.com/travisim/awesome-self-improving-agents memoryaudit selftest

Install the release wheel (no PyPI account or token required):

python3 -m pip install \
  https://github.com/travisim/awesome-self-improving-agents/releases/download/v0.3.0/memoryaudit-0.3.0-py3-none-any.whl

From source:

git clone https://github.com/travisim/awesome-self-improving-agents
cd awesome-self-improving-agents
python3 -m pip install -e .

pip install memoryaudit works once the trusted publisher is configured. See docs/publishing.md for the exact PyPI blocker.

Quick Start

memoryaudit list
memoryaudit selftest
memoryaudit run --agent "command:examples/agents/claude-code.sh" \
  --json report.json --badge badge.svg
memoryaudit run --agent baseline --filler --seed 42 --json report-filler.json
memoryaudit report --input report.json --badge badge.svg

Every report records the agent spec, the dataset SHA-256 hashes, a UTC timestamp, and (for filler runs) the seed. It ships no model results: every number is computed in the run that produced it.

See a real run: examples/reports/baseline.json is a committed baseline run (36/100; retrieval baseline, not a model score), with its badge. The example report README explains how to regenerate it.

Agent modes

Three agent modes are built in:

Spec What it does What the score means
baseline Keyword-overlap retrieval over stored turns Measures the memory backend, not a model's reasoning
memory:<backend> Same harness over Mem0, Zep, or Letta Measures that vendor's storage/retrieval through one interface
command:<cmd> Shells out per question Measures the agent end to end

What is measured

Metric Cases Pass rule
COF — Contradiction & Overwrite Fidelity 15 Answer contains the updated fact (or all expected_terms) and not the stale one
NIMS — Needle in Multi-Turn Session 7 Answer contains the exact expected value; --filler adds deterministic distraction
CSST — Cross-Session Skill Transfer 3 Answer contains the expected command after a session boundary
VSCE — Verbal Self-Correction Efficiency 5 Source harness: iterations to convergence + degenerate-reflection count

25 memory cases (COF 15, NIMS 7, CSST 3) and 30 validated scenarios including the 5-case VSCE dataset. VSCE is run separately with --metric VSCE from a source checkout. Matching uses word boundaries, not raw substrings; prefix traps such as npm/pnpm and v1.2/v1.2.7 are handled explicitly.

👉 docs/memoryaudit.md — agent contract, flags, JSON schema, and honest limitations.

👉 docs/methodology.md — exact pass rules, aggregation, and known false-positive classes.

Verified State

Last verified: 2026-12-02.

Check Result
Unit tests 70 passed, 3 skipped (live vendor CRUD tests)
Python versions 3.9, 3.10, 3.11, 3.12, 3.13 in CI
Lint uvx ruff@latest check . clean
Dataset validation 30 scenarios across COF/NIMS/CSST/VSCE
Packaged data python3 tools/sync_datasets.py --check in sync
Selftest 25 cases, baseline 36/100
Build uv build + twine check pass; wheel installs in a clean venv
CI green on main (Validate workflow)
PyPI pending — no trusted publisher configured yet

Re-run the checks before claiming the repo is healthy. The exact commands are in ROADMAP.md.

Integrity Contract

  • No fabricated numbers. No model results are committed; every score comes from a run with dataset hashes.
  • Packaged data is a copy. Canonical datasets live in benchmarks/dataset; memoryaudit/data is generated by tools/sync_datasets.py, and CI fails on drift.
  • Strict COF. An answer containing both the updated and stale fact fails, except when the stale string is merely a substring of the expected value. Optional expected_terms accept order/format variants without accepting the stale fact.
  • Dataset integrity is tested. Every COF trap is verbatim in the initial turn, every COF expected answer/term is in the update, every NIMS expected value is in its needle, and every CSST command is in its teaching. The validator fails otherwise.
  • Errors count as failures. Agent timeouts and non-zero exits are recorded, not hidden.
  • No unverified leaderboard. The old community-reported table was removed; see No Leaderboard Yet.
  • A skipped live adapter test is not a pass. The vendor adapters are real wrappers; their live CRUD tests run only when a backend is configured.
  • Command agents get a clean workspace by default. They run in a temporary directory, so they cannot read the benchmark dataset from the repository. --agent-cwd . opts into repository context and therefore into dataset-leak risk; do not use it for a scored run unless you know the agent cannot read the dataset.

Choose Your Path

If you are… Start with
Auditing an agent MemoryAudit quick start, docs/memoryaudit.md
Adding a memory backend Adapter contract, memory:<backend>
Adding a framework or paper CONTRIBUTING.md, issue templates
Running the benchmarks benchmarks/README.md, eval_memory.py
Reproducing a score docs/methodology.md, the report JSON

The Five Pillars

1. Memory — remembering → docs/memory-shapes.md

Working, episodic, semantic (graph), and procedural memory; consolidation, contradiction resolution, and retrieval policy. Necessary but not sufficient. Memory that never changes a decision is a database with extra steps.

2. Reflection — diagnosing → docs/self-learning-mechanisms.md

Reflexion-style verbal reinforcement, Self-Refine iteration, and tool-grounded critique (CRITIC). Turns a failure signal into a portable natural-language lesson.

3. Skill Synthesis — compiling

When a trajectory finally succeeds, abstract it into a typed, callable tool with a docstring and an embedding description, then register it in procedural memory. (Voyager, ExpeL, CREATOR, ToolLLM, Agent Workflow Memory.)

4. Self-Verification — checking

Test execution, unit tests, type checkers, formal verifiers, and LLM judges used as gates rather than vibes. Verifier quality upper-bounds improvement quality; a weak verifier rewards confident wrong answers.

5. Parameter-Level Learning — internalizing

When context and tools saturate, improvement has to land in weights: self-generated training data (STaR), self-play fine-tuning (SPIN), self-rewarding models, self-editing memory weights (SEAL), and open-ended search over agent code (ADAS, Gödel Agent, Darwin Gödel Machine).

👉 Full taxonomy and design trade-offs: docs/self-improvement-loop.md

Framework Registry

Star counts are pulled from the GitHub API and will drift — treat them as a rough activity signal, not a benchmark. Inclusion requires a public repository, a real improvement mechanism (not a thin wrapper), and a declared license. Corrections and removals are welcome via issues and PRs.

Added 2026-11-30: Exo and Dream-RSI.

Memory & context substrates

Project Stars Memory shape Storage Why it's here
Mem0 69.5k Personalized episodic + semantic Hybrid vector + graph Multi-tenant fact extraction with automatic add/update/delete of memories.
Cognee 33.6k GraphRAG + entity triples Neo4j / LanceDB / NetworkX Deterministic graph pipelines for repeatable recall.
Letta (ex-MemGPT) 25.5k Hierarchical OS-style memory Postgres / SQLite Treats the context window as RAM and pages state to archival storage.
Zep 5.0k Temporal knowledge graph Graph + vector Time-aware graph that resolves entity facts across long timelines. Deep dive.
HippoRAG 4.1k Hippocampal indexing graph KG + Personalized PageRank Multi-hop associative recall inspired by memory consolidation. Deep dive.
LangMem 1.8k In-context + long-term episodic LangGraph state Memory SDK wired into stateful LangGraph agents.

Improvement loops, skill libraries & agent scaffolds

Project Stars Improvement mechanism Locus of update Why it's here
OpenHands 94.3k Execution-feedback loop over real repos Context + tools General software agent with an execution-grounded improvement loop.
DSPy 39.2k Compiles prompts/programs against a metric Prompt/program Declarative pipelines optimized against a measurable objective.
SWE-agent 20.9k ACI-tuned agent-computer interface Tools + context Shows the interface, not just the model, drives repository performance.
Voyager 7.3k Automatic curriculum + growing skill library Tool library Lifelong skill accumulation in an open-ended environment.
TextGrad 3.8k "Differentiation" via natural-language feedback Prompt/program Optimizes compound AI systems through textual gradients.
ExpeL 0.3k Cross-task experience extraction into insights Context + memory Turns past trajectories into reusable natural-language lessons.
Exo 1.7k Self-editing runtime harness with a protected mechanism layer Harness policy + tools/context Open-source, harness-agnostic agent runtime; its paper evaluates safe runtime self-modification on long-horizon tasks.
Dream-RSI 1.6k Replay-simulator search over exploration policies Exploration policy (meta-layer) Official project page; Apache-2.0 code at google-research/dream-rsi.

Research Index

Verified against the arXiv API. Grouped by where the improvement lands. Each entry links the canonical arXiv record; inclusion is not an endorsement. Added 2026-11-30: Exo (2026) and Dream-RSI (2026).

Memory & retrieval

Paper Year Contribution
MemGPT 2023 OS-style virtual context management with paging.
Generative Agents 2023 Memory stream + reflection + planning loop.
Mem0 2025 Scalable long-term memory with extraction/update pipeline.
Zep 2025 Temporal knowledge graph memory (Graphiti).
HippoRAG 2024 Neurobiologically inspired long-term memory via PPR.
A-MEM 2025 Zettelkasten-style agentic memory with link generation.
GraphRAG 2024 Query-focused summarization over extracted entity graphs.

Reflection & in-context learning

Paper Year Contribution
Reflexion 2023 Verbal reinforcement: store self-critiques, retry with them.
Self-Refine 2023 Iterative self-feedback without extra training.
CRITIC 2023 Self-correction grounded in external tools.
Agent Workflow Memory 2024 Induces reusable workflows from past trajectories.

Skill acquisition & tool synthesis

Paper Year Contribution
Voyager 2023 Open-ended embodied agent with a lifelong skill library.
ExpeL 2023 Experience-based learning by extracting cross-task insights.
CREATOR 2023 Tool creation separates abstract from concrete reasoning.
ToolLLM 2023 Masters 16k+ real-world APIs via tool-use trajectories.

Optimizing prompts & programs

Paper Year Contribution
DSPy 2023 Compiles declarative LM pipelines against a metric.
TextGrad 2024 Backpropagates natural-language feedback through programs.
OPRO 2023 LLMs as optimizers over natural-language instructions.
Promptbreeder 2023 Self-referential prompt evolution.
STOP 2023 Recursively self-improving code generation.

Self-improving agents & open-ended search

Paper Year Contribution
Gödel Agent 2024 Self-referential framework that rewrites its own logic.
ADAS 2024 Automated design/search over agentic systems.
Darwin Gödel Machine 2025 Open-ended evolution of self-modifying agents.
Dream-RSI 2026 Treats recorded discovery histories as replay simulators to improve exploration policies.
Exo 2026 Runtime architecture that lets an agent safely revise its harness and strategy during work.

Parameter-level self-training

Paper Year Contribution
STaR 2022 Bootstraps reasoning from the model's own correct solutions.
Self-Rewarding LMs 2024 Model generates and judges its own training signal.
SPIN 2024 Self-play fine-tuning converts weak models to strong.
SEAL 2025 Models generate their own finetuning data and update directives.
Absolute Zero 2025 Self-play reasoning with zero external data.
Constitutional AI 2022 Self-critique against a written constitution.
AlphaZero 2017 The canonical self-play improvement loop.

Benchmarks

Runnable suite in benchmarks/. Status is honest: implemented vs. planned is marked explicitly.

Metric What it measures Status
COF — Contradiction & Overwrite Fidelity Does the agent answer with the updated fact, not the stale one, when a preference/endpoint changes mid-history? ✅ 15 cases + schema validation
NIMS — Needle in Multi-Turn Session Can it recall a constraint injected 20/25/50/75/100 turns back through noise? ✅ 7 cases + deterministic --filler
CSST — Cross-Session Skill Transfer Does a skill taught in Session 1 actually execute in Session 2? ✅ 3 cases + schema validation
VSCE — Verbal Self-Correction Efficiency Reflection iterations to convergence on a task with an executable verifier. ✅ Dataset + source harness (--metric VSCE)
Adapter parity Same agent, swap memory backend, measure delta. ✅ Mem0 / Zep / Letta adapters (optional SDKs)
git clone https://github.com/travisim/awesome-self-improving-agents
cd awesome-self-improving-agents
python3 benchmarks/runner/eval_memory.py --validate   # schema check
python3 benchmarks/runner/eval_memory.py --list       # what's in each dataset
python3 benchmarks/runner/eval_memory.py --stats      # corpus statistics
python3 benchmarks/runner/eval_memory.py --list-adapters

The runner validates datasets and adapter interfaces. It does not invent scores — adapter execution produces numbers, and only if you wire one up.

Memory adapters

Backend Install Live CI
Mem0 pip install 'memoryaudit[mem0]' (Python 3.10+) Skipped unless MEM0_API_KEY/MEM0_CONFIG is configured
Zep pip install 'memoryaudit[zep]' (Community Edition) Skipped unless a local server is configured
Letta pip install 'memoryaudit[letta]' + LETTA_AGENT_ID Skipped unless an existing agent is configured

Configuration is environment-only; no credentials are stored in the repository. See the adapter contract and docs/methodology.md.

No Leaderboard Yet

We do not publish scores we did not compute. The old community-reported leaderboard was removed from this README because prompts, versions, and harnesses differed and none of the rows were reproducible.

The raw historical record remains in data/leaderboard.json and is explicitly not a benchmark; CI continues to enforce that unverified rows carry no numeric scores.

Historical audits (v0.2.3; v0.3.0 changed NIMS/VSCE hashes): Claude Code and Codex results with configs, per-case details, and a JSON gist.

To appear as a real result, submit a run with:

  1. the exact agent/config and version,
  2. dataset SHA-256 hashes,
  3. logs for at least three seeds,
  4. a harness script that someone else can run.

Until then, every score in this repo is a score someone can reproduce — or it does not appear.

Troubleshooting

  • pip install memoryaudit fails. It is not on PyPI yet; install from source with pip install -e . until the trusted publisher is configured.
  • memory:<backend> import fails. Install the optional extra (memoryaudit[mem0], [zep], or [letta]) and configure the environment variables listed in the adapter table.
  • CSST fails for a one-shot command agent. Expected: the agent must persist memory itself; new_session() only clears the harness’s in-process context.
  • A correct answer fails on formatting. Scoring is phrase-exact; see the known false-positive classes in docs/methodology.md.
  • VSCE produces no scores. Only the dataset and schema ship; the convergence harness is still wanted.
  • The contributor graph looks stale. Hard-refresh; GitHub recalculates after history rewrites.

Documentation

Document What it covers
docs/memoryaudit.md Install, agent contract, flags, JSON schema, limitations
docs/methodology.md Exact pass rules, aggregation, false-positive classes
benchmarks/README.md Metrics, scoring contract, adapters, dataset rules
docs/self-improvement-loop.md Taxonomy and design trade-offs
docs/memory-shapes.md Working, episodic, semantic, and procedural memory
docs/self-learning-mechanisms.md Reflection, critique, and self-correction mechanisms
docs/landscape.md Landscape and positioning
docs/zep-graphiti.md Zep / Graphiti temporal graph deep-dive
docs/hipporag.md HippoRAG paper summary and adapter boundary
docs/publishing.md PyPI trusted publishing and release process
docs/your-first-pr.md End-to-end first contribution
docs/README.md Documentation index
ROADMAP.md Planned work and acceptance criteria
CHANGELOG.md Release history
CONTRIBUTING.md Contribution rules and quality bar
SECURITY.md Vulnerability reporting
CODE_OF_CONDUCT.md Community standards

Roadmap and Good First Issues

  • Publish memoryaudit to PyPI (workflow exists; the trusted publisher and PyPI environment still need owner setup).
  • VSCE dataset + source convergence harness (--metric VSCE) — #7
  • Adapter parity harness (Mem0 / Zep / Letta behind one interface).
  • Five published, reproducible runs against real memory setups.
  • Public leaderboard where every entry links its config + dataset hashes.
  • Replace the remaining community-reported provenance rows with reproducible runs.
  • Write the Zep / Graphiti deep-dive and adapter — #5
  • Write the HippoRAG paper summary and adapter stub — #6

New here? Start with one of these

Issue What you'd do Effort
#9 Add --json output to the dataset validator ~30 lines Python
#10 Add two NIMS scenarios at 25 and 75 turns Data only
Open an issue Add a framework, paper, scenario, or adapter See templates

Or browse good first issue · all open issues.

First PR? docs/your-first-pr.md walks one task from fork to merge in ~30 minutes. CONTRIBUTING.md has the quality bar for each contribution type.

Contributing

Add a framework, a paper, a benchmark scenario, or an adapter implementation. The quality bar:

  • No fabricated numbers, star counts, or benchmark results.
  • One logical change per PR.
  • Every added link resolves; arXiv IDs are checked against the API.
  • Benchmark datasets pass eval_memory.py --validate.
  • Tests and uvx ruff@latest check . pass.
  • Framework additions include a public repo, a declared license, and a real improvement mechanism.

See CONTRIBUTING.md for the full rules and the issue/PR templates. Reviews are usually within a few days; small, well-scoped PRs move fastest.

Ways to help: star the repo, add a verified framework or paper, contribute a scenario, publish a reproducible audit, or report a false positive.

Community

Security and Conduct

  • Security: do not open a public issue for a vulnerability. Use GitHub's private vulnerability reporting on the Security tab; see SECURITY.md.
  • Conduct: participation is governed by CODE_OF_CONDUCT.md. Report unacceptable behavior privately to the maintainer.

Credits and Sources

This map stands on the work of the framework authors, paper authors, and open-source maintainers indexed above. Links are the primary sources.

  • Framework and paper links point to the canonical project or arXiv record.
  • Star counts come from the GitHub API and will drift.
  • Paper metadata is checked against the arXiv API.
  • Inclusion is not endorsement, and this repository is not affiliated with any listed vendor or author.

Maintained by @travisim. Built with the Python standard library; the core package has no runtime dependencies.

Contributors

Contributors

The contributor image is generated from the GitHub contributor graph by contrib.rocks.

Star History

Star History Chart

The chart is live. This is a young project; star counts are a signal, not a benchmark.

Citation

If you use MemoryAudit or the datasets in research, cite the repository. Datasets are versioned by SHA-256 in every report, so include the hashes with any result. A machine-readable record is in CITATION.cff.

@misc{sim2026memoryaudit,
  title        = {MemoryAudit: A Local, Vendor-Neutral Audit for AI Agent Memory},
  author       = {Sim, Travis},
  year         = {2026},
  howpublished = {\url{https://github.com/travisim/awesome-self-improving-agents}},
  note         = {Datasets are versioned by SHA-256; scores are reproducible runs, not model rankings.}
}

License

Code and original written content are MIT; see LICENSE. Linked projects and papers retain their own licenses. Inclusion in this registry is not an endorsement, and this repository is not affiliated with any listed vendor or author.

About

Curated map, framework registry, and benchmark suite for self-improving AI agents: memory, reflection, skill synthesis, self-verification, and self-generated training data.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages