AgentDescent
Website & interactive demo · Get started · Documentation
Gradient descent — but the parameters are agents. AgentDescent evolves prompts, skills, agent directories, agent code and host plugins against your own examples. N workers propose edits in parallel, one aggregator merges them into a version-controlled artifact, and a held-out gate decides what is kept. Use it from Python with one
evolve()call, from the CLI, or from inside Claude Code, Codex, OpenCode, DeepSeek Harness or Grok Bot.
Install
pip install "agentdescent[mcp]>=0.11.0"
agentdescent demo # a complete evolution, offline, no API key, ~10 s
agentdescent doctor # which agent CLIs and provider keys this machine has
The default host / MCP loop is Path A (doctor → plan → start → apply).
Advanced MCP tools need agentdescent mcp --advanced — see
MCP / CLI Path A.
[mcp] adds the agent-facing MCP server and needs Python ≥ 3.10; the library
itself supports 3.9, where you drop [mcp] and drive it with the CLI. Research
examples are outside the wheel: to run python -m examples.run_demo or any
algorithm port, clone the repo and follow
Install and first run:
git clone https://github.com/ThinkFlowLab/agentdescent && cd agentdescent
pip install -e ".[dev,mcp]"
agentdescent demo builds a skill whose rules name the wrong CSV column, twelve
cases with known totals and a local program as the agent, then runs the real
loop — only the model is replaced — and ends with:
held-out reward: 0.000 -> 1.000 outcomes: {'committed': 1}
what it learned: rules.md -> 'COLUMN: amount'
Skill evolution here means a multi-file skill library, not a single prompt:
agentdescent demo --kind skill_library.
60-second quickstart
Runnable as-is — no API key, no dependencies. Three functions are the whole contract: how to run a task, how to score it, and what to propose on a failure.
from agentdescent import Task, evolve
tasks = [Task(id=f"t{i}", prompt=f"item {i}") for i in range(12)]
def reward(task, output): # must return [0, 1]
return 1.0 if "2026" in output else 0.0
def run(rendered, task): # your solver
return "answer" + (" 2026" if "year" in rendered else "")
def propose(rendered, task, output, reward): # what to add on a failure
return "always state the year"
result = evolve(tasks, reward, run=run, propose=propose,
rounds=6, n_workers=3, max_concurrency=3)
print(result.rendered, result.final_reward, result.error)
To point the same loop at a file or directory:
agentdescent init ./my-skill --data cases.jsonl --out spec.json
agentdescent plan spec.json # validates and prices it; runs nothing
agentdescent evolve spec.json --detach
agentdescent status # then: show, apply --dry-run, apply
Credentials are read from the environment at call time — never from code.
Nothing is written back until apply, which backs up first.
Install and first run has
the real-model path, host setup, and the cost and permission notes. A
dataset-to-skill walkthrough is in
Quickstart — dataset to skill.
Where to go next
| If you want to… | Start here |
|---|---|
| Install and run it once | Install and first run |
| Use it from an agent | The plugin, step by step · Every host · Set it up and test it |
| Evolve a skill, a directory, or agent code | Dataset to skill · Directory · Agent code |
| Call or add an algorithm | Named algorithms · Twenty-three ports · Register a card |
| Understand the engine | Architecture · evolve() · API |
| Read the measurements | Results · Efficiency |
On 40 HotpotQA items (12 held out) a one-call evolve() run took held-out exact
match from 0.167 to 0.583. The results page
records the setting, the caveats, and the runs where there was nothing left to
learn.
How it works
N workers roll out in parallel; one aggregator merges diffs; a held-out gate decides what is kept. The long form — strategies, policy slots, and why governance is not a seam — is in Architecture and Concepts.
Citing, scope and contributing
Use GitHub's Cite this repository button (CITATION.cff);
per-result raw data is in bench/results/.
A research reference implementation, not a production system. The novelty is
a narrow engineering synthesis — concurrent, staleness-bounded,
conflict-resolved diff-level merge over a git-backed versioned ledger — and its
throughput premise is a testable hypothesis rather than community consensus.
Contributions welcome: CONTRIBUTING.md. The suite is offline
and deterministic, so pytest -q needs no API key.
Star History
Metadata
Release files for agentdescent 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentdescent-0.11.0.tar.gz | 2.5 MB | With provenance | Details for agentdescent-0.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentdescent-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for agentdescent-0.11.0-py3-none-any.whl |
Total release size: 4.0 MB
Release files / agentdescent-0.11.0.tar.gz
| Download URL | agentdescent-0.11.0.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04ff7487d868a6113e615e91c5496ec5f0f3b0bfbdf173a20d4082ebc49e2f5d
|
|
BLAKE2b-256 checksum How to use checksums |
6321b3654037ccf7397e07263280119264f4834b8a8a74d11e968e54ba1eb408
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / agentdescent-0.11.0-py3-none-any.whl
| Download URL | agentdescent-0.11.0-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
feadeb29510571e3ab1dff6b6f4ca6a57e00923119b85988a844ee4f0e2e8e5f
|
|
BLAKE2b-256 checksum How to use checksums |
872d05829f34ca8d6c692f9b82f8501449dd174ff335eb2bb8de676e7ceb0b5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for agentdescent 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agentdescent-0.11.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.