Skip to main content

🧬 PersonalEvoTaste

Teach your AI coding agent your taste — and watch it evolve.

CI PyPI version Python License: MIT Ruff PRs Welcome


✨ What is it?

LLM agents are great at writing generic code — but they have zero memory of your personal preferences: indentation tastes, library choices, naming conventions, the brutalist UI you love, the verbose docstrings you hate. Every new chat resets to zero.

PersonalEvoTaste is a small, dependency-light library that gives an AI agent a persistent, self-evolving memory of your taste. Feed it the agent's output + your feedback, and it distils, deduplicates, reinforces and decays rules over time — then re-injects the top ones into the next prompt.

        ┌──────────────┐  feedback   ┌──────────────────┐  rules   ┌────────────┐
agent → │ your review  │ ──────────► │ PersonalEvoTaste │ ───────► │ next prompt│
        └──────────────┘             └──────────────────┘          └────────────┘
                                              ▲  decay/reinforce        │
                                              └─────────────────────────┘

🚀 Features

  • 🧠 Typed memory — Pydantic v2 models, JSON-schema-friendly, versioned on disk.
  • 🔌 Pluggable storage — YAML / JSON / SQLite out of the box; bring-your-own backend.
  • 🔬 Pluggable extractors — deterministic heuristic by default; plug an LLM with CallableExtractor.
  • ♻️ Self-evolution — automatic deduplication, reinforcement on repetition, time decay, undo and dry-run previews.
  • ⚖️ Ranked injection — top-N rules by weight, optionally filtered per project.
  • 🧩 Editor integrations — export rules to .cursorrules, .windsurfrules, CLAUDE.md and Copilot instructions.
  • 🖥️ Zero-dep CLI — personal-evotaste evolve / inject / list / remove / reset / export.
  • 🧪 Tested & typed — pytest suite, ruff, mypy, CI on Python 3.9 → 3.12.
  • 💾 Crash-safe writes — atomic file replacement, SQLite transactions.

📦 Installation

pip install personal-evotaste
# or from source
pip install -e ".[dev]"

⚡ Quickstart

from personal_evotaste import PersonalEvoTaste

taste = PersonalEvoTaste(memory_path="my_taste.yaml")

# 1. Inject your evolving taste into any prompt
prompt = taste.inject_taste(
    "Generate a login page",
    context="brutalist minimal project",
)
# → send `prompt` to your LLM of choice

# 2. After reviewing the agent's output, teach it
taste.evolve(
    agent_output="A flashy gradient login page with neon buttons",
    user_feedback="Too loud. I want calmer, monochrome, brutalist typography.",
    project_name="acme-landing",
)

# 3. Next time, the rule is already in the prompt — and reinforced if you repeat yourself
print(taste.inject_taste("Generate a signup page"))

🖥️ CLI

# Add a rule from feedback
personal-evotaste evolve \
  --output "A flashy gradient login page" \
  --feedback "Too loud. Prefer calm monochrome brutalist typography." \
  --project acme-landing

# Inject taste into a prompt
personal-evotaste inject "Generate a signup page" --context "acme-landing"

# Inspect the memory
personal-evotaste list
personal-evotaste export > snapshot.json

# Preview a rule without changing memory
personal-evotaste evolve --dry-run --output "..." --feedback "Prefer descriptive names"

# Undo the most recent evolution
personal-evotaste undo

# Export rules into AI editor instruction files
personal-evotaste export-rules -f cursor -o .cursorrules
personal-evotaste export-rules -f windsurf -o .windsurfrules
personal-evotaste export-rules -f claude -o CLAUDE.md
personal-evotaste export-rules -f copilot -o .github/copilot-instructions.md

Memory backend is auto-selected from the file extension: .yaml / .json / .sqlite3.

🔌 Plugging an LLM extractor

from personal_evotaste import PersonalEvoTaste, CallableExtractor

def summarise_with_llm(agent_output: str, feedback: str, project: str) -> str:
    # call OpenAI / Anthropic / a local model here and return one short rule
    ...

taste = PersonalEvoTaste(
    memory_path="my_taste.yaml",
    extractor=CallableExtractor(summarise_with_llm),
)

🧱 Architecture

personal_evotaste/
├── models.py        # Pydantic models: TasteRule, FeedbackEvent, TasteMemory
├── storage.py       # BaseStorage + YAML / JSON / SQLite backends (atomic writes)
├── extractors.py    # RuleExtractor strategies + similarity-based deduplication
├── core.py          # PersonalEvoTaste façade (evolve / inject / ranking / decay)
├── cli.py           # argparse-based CLI (zero extra deps)
├── exceptions.py    # Typed error hierarchy
└── logging_config.py

See docs/architecture.md for the design rationale. See docs/integrations.md for Cursor, Windsurf, Claude and Copilot setup.

🤝 Contributing

PRs, issues and ideas are very welcome — see CONTRIBUTING.md and our Code of Conduct. If PersonalEvoTaste helps you, a ⭐ on GitHub goes a long way.

📜 License

MIT © PersonalEvoTaste Contributors. See LICENSE.

Metadata

Release files for personal-evotaste 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for personal-evotaste 0.2.0
File Size Uploaded Provenance Actions
personal_evotaste-0.2.0.tar.gz 23.2 kB Without provenance Details for personal_evotaste-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for personal-evotaste 0.2.0
File Interpreter ABI Platform Actions
personal_evotaste-0.2.0-py3-none-any.whl Python 3 none any Details for personal_evotaste-0.2.0-py3-none-any.whl

Total release size: 44.4 kB

Release files / personal_evotaste-0.2.0.tar.gz

Download URL personal_evotaste-0.2.0.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e18fa6e19fc946f51f9f4edc75e8b7995d9e4b3ebf4e90856bc68fd196ba97e
BLAKE2b-256 checksum
How to use checksums
fbbf6a1a0261372dbbe810d393bfacc868095b5bc31bff029a21a7496f6f10da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / personal_evotaste-0.2.0-py3-none-any.whl

Download URL personal_evotaste-0.2.0-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44715ba36fa480f71af0aeaf9ddbb69e4f64ff4653e02757539766b16d2d228b
BLAKE2b-256 checksum
How to use checksums
d6269031bf3d08fc41fb5de03eeefc2c3a9db578b1bbcca44ff36dc0d0fb330f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for personal-evotaste 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page