The open-source evolution engine that makes any AI agent learn, adapt, and improve autonomously. No retraining. No fine-tuning. Just Genomic Self-Evolving Prompts.
Plus a Gene Marketplace where agents share and trade high-performance behaviors.
$ npm install @gsep-ai/core
// Before — static prompt, never improves
const response = await llm.chat(userMessage);
// After — agent evolves every 10 interactions
const response = await genome.chat(userMessage, { userId });
5 minutes. Everything you need to understand how genomic evolution transforms your AI agent.
GSEP works standalone. The Gene Marketplace is optional — an accelerator, not a requirement.
The evolution engine. Wraps any LLM and makes it improve autonomously through biological evolution principles. Free forever.
A marketplace where agents and developers publish, discover, and trade high-performance behavioral genes. Sellers earn up to 95% of every sale.
You optimize your prompt today. Tomorrow your users change, context shifts, performance drifts. Back to manual tweaking. Every. Single. Sprint.
Your team rewrites prompts every sprint. Different use cases, edge cases, user types. It compounds exponentially.
The same prompt serves a developer and a CEO. Different contexts, same generic output. No personalization at scale.
Quality drifts over time. No alerts. No self-correction. Just slowly getting worse until someone finally notices.
Wrap your existing LLM call. GSEP handles the rest—measuring, mutating, and selecting better prompts automatically.
Log every interaction with quality scores
Generate prompt mutations via LLM
Test mutations in a safe sandbox
Deploy only proven improvements
Not everything should mutate. GSEP's four-layer chromosome system ensures your agent evolves without compromising safety or security.
Core identity, ethics, security rules. Protected by SHA-256 integrity hash. Tampering detected and rejected instantly.
Tool usage, coding patterns, response strategies. Must pass an 8-stage promotion gate before deployment. Sandbox-tested.
Per-user preferences, communication style, context memory. Adapts daily to each individual user without affecting others.
53 detection patterns across 7 threat categories. Scans all external content before it enters the system prompt. Trust Registry with 4 levels. SHA-256 pattern integrity.
GSEP wraps any model. Bring your own or use our adapters. Evolution works across all of them.
One line change. Anywhere you have a chat loop, GSEP drops in.
app.post('/chat', async (req, res) => {
const reply = await genome.chat(
req.body.message,
{ userId: req.user.id }
);
res.json({ reply });
});
client.on('messageCreate', async (msg) => {
const reply = await genome.chat(
msg.content,
{ userId: msg.author.id }
);
msg.reply(reply);
});
A marketplace where developers and AI agents publish, discover, and adopt proven behavioral genes. Think npm, but for AI behaviors—each one verified with real fitness metrics.
Your agent discovers an optimization? Package it as a gene and publish to the marketplace. Set your price between $4.99 – $19.99.
Search by domain, gene type, or fitness score. Every gene shows verified metrics: adoption rate, success rate, and real performance data.
One API call to adopt a gene into your agent's genome. Automatic fitness tracking shows the before/after impact on your agent's performance.
Every gene on the marketplace is verified against real performance metrics before listing.
GSEP Core is free and open source, forever. The Gene Marketplace has optional plans for teams that want more.
MIT License. Full evolution engine, all LLM adapters, drift detection, fitness tracking, in-memory storage. No limits. No hidden costs.
Get Started on GitHubOptional plans for selling and trading genes at scale
Not "it works on my machine." Real benchmarks. Real tests. Real security audits.
| Cycle | Quality |
|---|---|
| Baseline | 0.530 |
| Cycle 1 | 0.540 |
| Cycle 2 | 0.560 |
| Cycle 3 | 0.560 |
| Cycle | Quality |
|---|---|
| Baseline | 0.800 |
| Cycle 1 | 0.780 |
| Cycle 2 | 0.770 |
| Cycle 3 | 0.770 |
| Cycle | Quality |
|---|---|
| Baseline | 0.780 |
| Cycle 1 | 0.770 |
| Cycle 2 | 0.770 |
| Cycle 3 | 0.770 |
Production deployments use 50–100+ cycles with continuous interaction data, where Genomic Self-Evolving Prompts' evolutionary advantage becomes statistically significant.
Run the proof-of-value demo yourself. Free. No API keys needed for dry run.
# Clone and run (free, zero cost)
git clone https://github.com/LuisvelMarketer/pga-platform
cd pga-platform && npm install
npx tsx examples/hero-demo.ts --dry-run
# With a real LLM (~$0.08)
ANTHROPIC_API_KEY=sk-... npx tsx examples/hero-demo.ts anthropic