Skip to main content

Phylogenic AI Agents - Beyond Prompt Engineering. Evolve Genetically Optimized Personalities with Liquid Memory.

Project description

ALLELE

Phylogenic AI Agents

Python Version License PyPI

Beyond Prompt Engineering. Evolve Genetically Optimized Personalities with Liquid Memory.


Don't Write Prompts. Breed Agents.

Traditional Agents are brittle. They hallucinate, drift, and forget.

Allele changes the substrate.

We replaced static prompts with 8-Trait Genetic Code and Liquid Neural Networks (LNNs).


The Problem

Prompting is guessing. You change one word, the whole personality breaks.

  • ❌ Brittle system prompts
  • ❌ No memory coherence
  • ❌ Manual trial-and-error optimization
  • ❌ Agents that drift over time

The Solution

Allele treats Agent personalities like DNA, not text.

Instead of writing prompts, you define a Genome with 8 evolved traits:

from allele import ConversationalGenome, create_agent, AgentConfig

# Define personality as genetic code
genome = ConversationalGenome(
    genome_id="support_agent_v1",
    traits={
        'empathy': 0.95,              # High emotional intelligence
        'technical_knowledge': 0.70,  # Moderate technical depth
        'creativity': 0.30,           # Focused responses
        'conciseness': 0.85,          # Brief and clear
        'context_awareness': 0.90,    # Strong memory
        'engagement': 0.85,           # Warm personality
        'adaptability': 0.75,         # Flexible style
        'personability': 0.90         # Friendly demeanor
    }
)

# Create agent from genome
config = AgentConfig(model_name="gpt-4", kraken_enabled=True)
agent = await create_agent(genome, config)

# Chat with genetically-defined personality
async for response in agent.chat("I need help"):
    print(response)

Core Innovation

🧬 Genetic Personality Encoding

8 quantified personality traits (0.0 to 1.0) define each agent:

  • Empathy - Emotional understanding
  • Technical Knowledge - Technical depth
  • Creativity - Problem-solving novelty
  • Conciseness - Brevity vs detail
  • Context Awareness - Memory retention
  • Engagement - Conversational energy
  • Adaptability - Style flexibility
  • Personability - Friendliness

🧪 Evolutionary Optimization

# Don't manually tune. Evolve.
engine = EvolutionEngine(config)
population = engine.initialize_population(size=50)

best = await engine.evolve(population, fitness_fn)
# 20 generations → optimized personality

🧠 Kraken Liquid Neural Networks

Temporal memory via Liquid Neural Networks (not static vectors):

kraken = KrakenLNN(reservoir_size=100)
context = await kraken.process_sequence(conversation)
# <10ms latency, adaptive dynamics

Installation

pip install allele

# With LLM providers
pip install allele[openai]    # OpenAI
pip install allele[anthropic] # Anthropic Claude
pip install allele[ollama]    # Ollama (local)
pip install allele[all]       # All providers

Why Allele?

Feature Traditional Allele
Personality Prompt strings Genetic code
Optimization Manual tweaking Auto-evolution
Memory Vector stores Liquid neural nets
Reproducibility Copy-paste prompts Version genomes
Explainability Black box Trait values

Benchmarks

  • Crossover: <5ms (breeding is cheap)
  • LNN Processing: <10ms (temporal coherence)
  • Memory: ~2KB per genome
  • Code Quality: 8.83/10, 100% tests passing

Use Cases

  • 🏥 Healthcare: High empathy + medical knowledge
  • 💼 Sales: High engagement + persuasion
  • 👨‍💻 Dev Tools: High technical + conciseness
  • 🎓 Education: High adaptability + patience
  • 🔒 Security: High precision + context awareness

Documentation


Testing

pytest                                    # Run all tests
pytest --cov=allele --cov-report=html    # With coverage

Contributing

We welcome contributions! See CONTRIBUTING.md.


License

MIT License - see LICENSE


Links


Made with genetic algorithms and liquid neural networks

Don't write prompts. Breed agents. 🧬

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

allele-1.0.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

allele-1.0.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file allele-1.0.0.tar.gz.

File metadata

  • Download URL: allele-1.0.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for allele-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d67a170b04bd5df089ef40d4985d93477c7e4e83939b06fffcb1cd6c62f113e9
MD5 960d7dc5edbd53cb66cd6e3f10f9f2d2
BLAKE2b-256 bc34873b48d2e156801bc6e67d951eb8988e8c38b521537095969e4692e22723

See more details on using hashes here.

File details

Details for the file allele-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: allele-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for allele-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a0eae16c8c0adf52322f2389fdc7081cb4babb6cfb0ccdda793bc877d1777c6
MD5 42633aa8bb32ba1bff8c9b379d8bc4ac
BLAKE2b-256 c388e4e907f44cbed21e91d68ce919ebc2bb50bccaa5990f9e4ebd3d771790de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page