Skip to main content

Evolutionary Memory System for capturing AI-human interactions and advancing Green AI.

Project description

AMK (Agent Memory Kit)

Powered by the EVOMEM Engine

License Python Green AI

A Tribute: AMK stands for Amy, Mariposa, and Kori. This project was created by Andrés Salazar Quintero in eternal memory of Eliana Arenas Cano ("La Mariposa"), who passed away on March 31, 2025, and as a legacy for his children, Amy and Kori. It is a guardian of memory, built from love and engineered for the highest professional innovation.

The IDE Context Regression Problem

In software engineering, a common problem when using AI coding assistants is IDE Context Regression: when you fix Module A, the AI loses the context of Module B and breaks it. LLMs lack persistent memory between sessions—they start from scratch based only on what they see in the current window.

AMK solves this through its internal engine, EVOMEM (Evolutionary Memory System). It acts as the institutional memory of your project, representing RLHF (Reinforcement Learning from Human Feedback) democratized for small teams with conventional IDEs.

If you fixed an OCR module three weeks ago that changed how dates are formatted, and today you ask the AI to fix the forecast module, AMK ensures the AI "remembers" that OCR constraint and doesn't break it.

The 3-Layer Architecture

The system is built on three interconnected layers:

  1. Layer 1 — Interaction Memory: Captures every prompt and response from the agent with its outcome (correct, corrected, rejected). This forms the foundation of the Golden Dataset.
  2. Layer 2 — Code Evolution Memory: Captures every code change and its context: what module changed, why, what was wrong, how it was fixed, and which other modules might be affected.
  3. Layer 3 — Regression Intelligence: A deterministic dependency analysis. Every time code changes, it cross-references Layer 2 to see if previous corrections are impacted, generating a preemptive alert before the IDE breaks them.

Why Green AI?

Training massive LLMs consumes staggering amounts of energy. AMK champions the Green AI vision by creating high-quality, domain-specific "Golden Datasets" used to train SLMs (Small Language Models). These SLMs are highly specialized, run efficiently on edge devices, and drastically reduce the environmental cost of AI.

Installation

pip install evomem

Quickstart

from evomem import InteractionMemory, CodeEvolutionMemory, RegressionIntelligence

# 1. Initialize memory tracker (Layer 1)
memory = InteractionMemory(session_id="dev-session-001")

# 2. Track a code evolution event (Layer 2)
code_evo = CodeEvolutionMemory()
code_evo.track_evolution(
    original_code="def read_date(text): return text",
    improved_code="def read_date(text): return text.replace('-', '/')",
    reason="Fixed OCR date format issue. Forecast module relies on this format.",
    file_path="ocr_module.py",
    affected_modules=["forecast_module.py"]
)

# 3. Check for regressions before making new changes (Layer 3)
reg_intel = RegressionIntelligence()
alerts = reg_intel.check_regression_risk("forecast_module.py")
print("Alerts before changing forecast:", alerts)

Dataset Roadmap

  1. Piloto: Raw, uncurated data capture from IDE sessions.
  2. Producción: Cleaned interaction logs with valid metadata.
  3. Golden Dataset: Rigorously verified pairs featuring the highest quality code evolutions.
  4. SLM (Small Language Model): Specialized, fine-tuned lightweight models trained on the Golden Dataset.

Contributing

We welcome contributions! Please see CONTRIBUTING.md.

Credits

  • Creator & Architect: Andrés Salazar Quintero
  • In Memory Of: Eliana Arenas Cano ("La Mariposa")

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

evomem-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

evomem-0.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file evomem-0.1.0.tar.gz.

File metadata

  • Download URL: evomem-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for evomem-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b6d8a4bcb0cf5afd2e01c92ffca39a8d11f1b19c2e3c741c138ed311be1fdd4b
MD5 3f7b64f3b7cdc89bfbfc3772dfb2049e
BLAKE2b-256 fb934a9fe0c187defc9c322c88384bd5c70253b59dea27c654cbb15001faf1f9

See more details on using hashes here.

File details

Details for the file evomem-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: evomem-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for evomem-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b805f09d4476c695ea9f1b9f41acf7187779280d9cdf3dee6b2ebb8c09127f9
MD5 777f50b5ec1f1d5b2936c859878cfb70
BLAKE2b-256 de8595cc113129b6d309e34c8ab01be3dfaf529897588fb3ccd19f52db570e63

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