Track agent lineage, versioning, and generational evolution. Agents breed, mutate, and evolve.
- Generation tracking — version agents with parent-child relationships and generation numbers
- Lineage trees — build and query full ancestry trees for any agent
- Mutation engine — apply controlled mutations (config changes, capability adjustments) between generations
- Evolution management — orchestrate generation transitions with validation and rollback
- Breeding — combine traits from two parent agents into offspring configurations
pip install agent-generationsfrom agent_generations import Generation, LineageTree, EvolutionManager, Breeding
# Create generations
gen1 = Generation(version=1, agent_id="agent-base", traits={"speed": 0.7, "accuracy": 0.9})
gen2 = Generation(version=2, agent_id="agent-base", traits={"speed": 0.8, "accuracy": 0.9}, parent=gen1)
# Build lineage
tree = LineageTree()
tree.add(gen1)
tree.add(gen2)
ancestry = tree.trace("agent-base") # [gen2, gen1]
# Breed two agents
offspring = Breeding().breed(
parent_a={"speed": 0.9, "accuracy": 0.7},
parent_b={"speed": 0.5, "accuracy": 0.95},
strategy="average",
)
# {"speed": 0.7, "accuracy": 0.825}
# Manage evolution
manager = EvolutionManager()
manager.register("agent-base", gen1)
evolved = manager.evolve("agent-base", mutations={"speed": +0.1})EvolutionManager — register(agent_id, generation), evolve(agent_id, mutations), rollback(agent_id, version)
The evolution layer for the SuperInstance fleet. Agents improve across generations, with full lineage tracking.
- agent-tattoo — Tattoos carry forward across generations
- agent-resume — Resumes reflect generational capabilities
- become-ai — Self-evolving agent platform
pytest tests/pip install agent-generationsPython 3.10+. MIT license.