Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Self-evolution for any agent harness. Plug in. Evolve. Measure.
Fetched from the repository for this visit.
Bring your harness. Compose the method. Evaluate and visualize the evolution.
Agent Skills • Quick Start • Harnesses • Methods & Composition • Evaluators • Visualization • Experiments • Technical Report • Docs
Proteus is a modular framework for building and studying self-improving agents. Optimize prompts, memory, skills or harness source code while keeping the optimization method, agent runtime and evaluation protocol independently configurable.
Technical report (PDF): Proteus: A Modular Framework for Agent Self-Improvement.
The quick start installs Proteus 1.0 from
main. See the release notes for the version scope and GitHub releases for published versions.
Watch a Native evolution replay.
Explore the interactive demo →
https://github.com/user-attachments/assets/63311c1e-1ad9-4821-81b4-044cf5bf4650
Give your coding agent the goal; let it configure the harnesses, method and evaluators, run the experiment, then explain the evidence. Proteus includes two companion Agent Skills in this repository:
| Skill | Use it to |
|---|---|
proteus-use | Choose or compose a method, bind harness roles, configure evaluation, run/resume experiments, export results and visualize Native sweeps |
proteus-contribute | Extend methods, stages, harnesses, evaluators and other framework components through the public contracts; validate and prepare a contribution |
The contribution skill is optional guidance, not a requirement for submitting
a PR. Both skills use SKILL.md instructions, with optional Codex display metadata;
the workflows are not tied to Codex as the experiment's harness.
In Codex, ask the built-in skill installer to install the usage skill from main:
$skill-installer install the skill at skills/proteus-use from
proteus-evolve/Proteus, ref main.
For framework development, install skills/proteus-contribute the same way.
After installation, select the skill or invoke it by name. See the
Codex skill documentation for local
discovery and installation behavior.
With another agent, copy the selected skill folder into that agent's supported
skills directory. An agent that can read files and run shell commands can also
read skills/proteus-use/SKILL.md directly from a Proteus checkout. The skills
are distributed through Git, separately from the Python wheel; use the same
tag or commit as your Proteus checkout. Install the Python package using the
quick start below, or ask your agent to do so.
Try this first:
Use $proteus-use to set up Proteus and run its offline candidate-comparison
example. Check recovery, export the results, then create a small Native demo
and open the visualization. Use no API calls or Docker.
For an experiment with your own agent:
Use $proteus-use to improve my harness on the attached tasks. Compare Native
self-evolution with a compatible method using a separate coding proposer.
Keep the same visible/hidden split and external evaluator, explain which
combinations are supported, and prepare a minimal pilot for each. Show me
the exact recipes and resource estimates before starting paid runs.
For a contribution:
Use $proteus-contribute to add a typed self-evaluation stage as an external
plugin. Demonstrate that a later stage consumes its output, keep the external
task score separate, and run the scaffold's offline checks.
Install Proteus 1.0 from main with Python 3.10 or newer:
git clone --branch main https://github.com/proteus-evolve/Proteus.git
cd Proteus
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
proteus recipe catalog
Run an offline candidate-comparison recipe. It needs no API key or Docker:
PROTEUS_EXAMPLE="$(mktemp -d)/comparison"
proteus recipe example candidate-comparison --out "$PROTEUS_EXAMPLE"
proteus recipe check "$PROTEUS_EXAMPLE/recipe.json"
proteus recipe lock "$PROTEUS_EXAMPLE/recipe.json" \
--source "proteus=$PWD" --out "$PROTEUS_EXAMPLE/lock.json"
proteus recipe run "$PROTEUS_EXAMPLE/recipe.json" \
--lock "$PROTEUS_EXAMPLE/lock.json" \
--artifact-store "$PROTEUS_EXAMPLE/artifact-store" --out "$PROTEUS_EXAMPLE/run"
proteus recipe resume "$PROTEUS_EXAMPLE/recipe.json" \
--lock "$PROTEUS_EXAMPLE/lock.json" --out "$PROTEUS_EXAMPLE/run"
proteus recipe export "$PROTEUS_EXAMPLE/run" --out "$PROTEUS_EXAMPLE/export"
This creates two immutable, fixed candidates, evaluates each and exports
report.json plus eight CSV tables. The completed resume reuses settled
work. Private test scores require an owner-side export with --include-private.
This offline fixture demonstrates the pipeline; it is not a model improvement
result. The separate search-policy example
demonstrates candidate selection. See the catalog for
method examples and benchmark preparation instructions.
To try the interactive viewer, generate a small Native sweep in the same environment:
PROTEUS_NATIVE="$(mktemp -d)/native-demo"
proteus run --harness minimal --arm neutral --arm review:notes \
--episodes 8 --seeds 2 --evaluator tool-calls@observe \
--eval-initial tool-calls --out "$PROTEUS_NATIVE"
proteus visualize --out "$PROTEUS_NATIVE"
# Open http://127.0.0.1:8301
The minimal harness is a deterministic offline policy. Its snapshots, evaluator
records and visualized trajectories are real outputs of that fixture.
A method defines how to improve. A harness supplies how an agent runs. A candidate is what changes: text components, a playbook, memory or source files. The subject runner executes that candidate on a task; the evaluator grades its output.
flowchart LR
M["Method + reusable stages"] --> O["Optimizer / coding harness"]
O --> C["Candidate<br/>prompts · memory · code"]
C --> S["Subject harness<br/>runs the task"]
S --> E["External evaluation"]
E -->|Permitted feedback| M
C --> R["Evidence + reports"]
E -->|Recorded outcomes| R
Bind optimizer, subject and model-grader roles separately in a recipe. Native self-evolution can use the same harness integration to propose changes and run the evolving candidate. Another setup can use a coding harness to modify a candidate that a different subject executes.
| Integration | Available use | Setup |
|---|---|---|
| Pi | Agent/coding roles and staged source evolution | Prepared Docker image + model credentials |
| DeepSeek Harness | Agent/coding roles and staged source evolution | Prepared Docker image + model credentials |
| Codex | Agent/coding roles and staged source evolution | Pinned Rust Docker image + Codex authentication |
llm | HTTP model actor, candidate execution and file evolution | Compatible model endpoint + credentials |
minimal | Offline Native demo and fixture actor | No API key or Docker |
| Your harness | Roles advertised by your adapter and integration | Register an integration |
Registration declares roles and capabilities once; methods use those contracts rather than a separate implementation for every harness pair. Candidate formats and method protocols still have to match. The role and evidence matrix documents supported combinations and 16 bounded live pilot cells; it is not a claim that every method × harness × role combination has been tested.
For source evolution, all phases execute the last-valid harness while editing a separate candidate. Proteus validates the candidate before activating it in the next episode, retaining a failed candidate for repair. See the Native evolution profile and adapter guide. The existing Native CLI, including the Aki research adapter, remains available through its compatibility path.
Proteus includes the following method profiles and their original-domain recipes. Each profile records the upstream source and its supported options.
| Method | What it provides | Recipe / implementation | Original work |
|---|---|---|---|
| GEPA | Reflective evolution of text components and candidate selection | AIME · method | Paper · Code |
| ACE | Playbook updates through generator, reflector and curator roles; offline and online learning | Formula · method | Paper · Code |
| Meta-Harness | Candidate-code proposals, historical evidence retrieval and memory learning | MCE · method | Paper · Code |
| Combee | Parallel learning and aggregation for ACE and GEPA, with fixed or dynamic batches | Formula · ACE / GEPA | Paper · Code |
| CORAL | Persistent research workers, shared knowledge, formal submissions and event-driven interventions | Circle packing · method | Paper · Code |
| Native | Harness self-evolution with candidate validation and next-episode activation | Shared external evaluation · episode protocol | Native Pi experiment and software credit |
Composition is about reusing mechanisms as well as choosing a named method:
Methods retain their own control flow. Adding a stage does not silently change every algorithm: a composing method must invoke it. New update rules and loops use the versioned plugin API, with shared artifact, evaluation, budget and recovery services.
Choose the evaluator independently of the optimization method and subject harness. Proteus supports deterministic task scoring, benchmark verifiers, private Harbor/Docker graders, managed model judges and custom evaluator plugins.
| Evaluation role | Purpose | How the evidence is used |
|---|---|---|
| Visible external evaluation | Measure the candidate against declared tasks | Release permitted scores, feedback or traces to guide later updates |
| Hidden external evaluation | Audit generalization on held-out tasks | Keep private grades outside optimizer/subject feedback; owner-side reporting is explicit |
| Self-evaluation stage | Let the agent assess its own proposal or candidate | Produce separate stage evidence that the method can consume |
| Structural and behavioral measurements | Track what changed in the candidate or action trajectory | Describe evolution alongside task scores |
An agent's self-assessment does not become the external benchmark score. Recipes bind task splits, evaluator identities and evidence permissions; model grading can use its own harness/model role and usage accounting. Native episodes also support H0 evaluation, cadence and explicit checkpoints, with visibility, selection eligibility and scheduling configured independently.
Start with benchmark and evaluator controls,
independent model grading,
or the custom evaluator template.
Native additionally supports goal-free, single-goal and multi-goal conditions through
GoalConfig.
Proteus Visualize is a local workspace for inspecting Native sweeps as they run or replaying completed experiments. It ships with the Python package and opens without a frontend build or model call:
proteus visualize --out /path/to/native-sweep
The viewer is read-only by default. Run launching is an explicit opt-in, and hidden scores are available to the local owner without feeding them back to the agent. See the viewer guide for configuration and export controls.
For general method recipes, use JSON/CSV export and study comparisons to analyze task scores, candidate lineage, role/stage usage, failures and measured timing. Supported candidate formats also provide artifact and lineage measurements. The interactive sweep viewer and recipe exports are distinct interfaces today.
Recipes bind method options, actors, tasks, evaluators, budgets and source/dependency locks. Candidates and evidence retain immutable identities; completed managed work can be recovered without repeating it. Uncertain external calls require reconciliation. Local and Harbor/Docker backends have explicitly declared execution boundaries.
Saved records distinguish baseline, selected and last candidates, retain failures,
and leave unavailable scores, costs or timing unknown. Native source histories can
also be exported as Git repositories with proteus repo export. These records let
you inspect both the task result and the changes that produced it.
The frozen experiment recipes contain launchers, reproduction instructions and results for 15 historical profiles: 14 adapted method studies and one Native mechanism study, across 16 recipes. They are separate from current integration pilots and generic benchmark builders. Adapted results do not imply matched paper reproduction, multi-seed significance or gains for every combination. Exact upstream pins and deviations are in method references.
CI covers Python 3.10–3.14, installed wheel/sdist examples and pinned reference contracts. Harbor runs real Docker integration checks; the complete live smoke covers minimal, HTTP LLM, Pi, DSH and Codex. The release procedure keeps preparation, integration and final tag checks separate.
Add a method, stage, evaluator, subject, policy or harness integration through the
extension templates. See
CONTRIBUTING.md for setup and contribution guidelines.
An agent can follow the optional proteus-contribute
skill to choose an extension point, preserve framework contracts and validate the change.
Cite Proteus using CITATION.cff, and cite the original papers and software for the methods you use. Method references include official repositories, source pins and licenses; references.bib provides BibTeX entries.
MIT. Upstream software and datasets retain their own licenses and attribution.
GitHub checked 111h ago - refresh overdue. Recently viewed repositories target hourly refresh.