🧠 Remenis: AI Memory Security Framework
Clean Context. Zero Bloat. Absolute Agent Containment.
Remenis is an open-source AI memory isolation framework designed to solve the AI agent memory poisoning problem. As autonomous agents execute multi-turn tasks independently, unvetted long-term memory accumulation and context injection can cause agents to go rogue, drift, or execute unauthorized tool calls without human oversight.
Remenis enforces strict runtime boundaries and memory hygiene to ensure agent state remains secure, fast, and untainted.
🚀 Key Architectural Updates
Remenis solves context drift and rogue agent behavior through 5 core pillars:
- 🛡️ OS Privilege Rings (
RingContextGuard)- Multi-tiered hierarchical memory isolation (Ring-0 to Ring-2). Guarantees untrusted prompts and user context cannot corrupt, overwrite, or leak core system memory.
- 🔒 Security Guardrails
- Real-time validation logic that intercepts and blocks prompt injection, context poisoning, and unauthorized memory modification before state updates persist.
- ⏳ Time-Decay Scoring
- Algorithmic decay function that automatically deprioritizes stale or obsolete memory entries so the agent retrieves only high-fidelity, relevant context.
- ⚡ Fast Multi-Thread Writes
- High-throughput concurrent execution pipeline optimized for parallel memory reads and writes in real-time agent workflows.
- 🧹 Auto-Deduping
- Vector and semantic deduplication engine that removes redundant memory entries, delivering clean context with zero bloat.
🏗️ Architecture Overview
[ Incoming Prompt / Agent Context ]
│
▼
┌──────────────────────────────┐
│ Security Guardrails │ (Real-Time Prompt Injection Defense)
└───────────────┬──────────────┘
│
▼
┌──────────────────────────────┐
│ OS Privilege Rings │ (RingContextGuard Isolation: Ring-2 -> Ring-0)
└───────────────┬──────────────┘
│
▼
┌──────────────────────────────┐
│ Multi-Thread Memory Engine │ (Auto-Deduping & Time-Decay Scoring)
└───────────────┬──────────────┘
│
▼
[ Pure, Uncorrupted Context Output ]
🛠️ Quickstart & Integration
Install Remenis via PyPI or clone locally:
Installation
Bash
pip install remenis
Local Development Setup
Bash
# Clone repository
git clone [https://github.com/your-username/remenis.git](https://github.com/your-username/remenis.git)
cd remenis
# Set up virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install editable package
pip install -e .
Usage Example
Python
from remenis import MemoryEngine, RingContextGuard
# Initialize guard at isolation level 1
guard = RingContextGuard(ring_level=1)
memory = MemoryEngine(guard=guard)
# Process and store secure agent memory
clean_context = memory.process_input("User input payload")
🤝 Community & Benchmarks
We actively red-team Remenis against agentic vulnerabilities, memory poisoning, and context leakage patterns.
Automated Red-Teaming Suites: Run pytest tests/benchmarks/ to test RingContextGuard against known prompt injection vectors.
Contributing: Open an issue or pull request to submit new benchmark payloads or security guardrails.
📄 License
Distributed under the Apache 2.0 License. See LICENSE for details.
Metadata
Release files for remenis 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| remenis-0.1.2.tar.gz | 4.5 kB | Without provenance | Details for remenis-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| remenis-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for remenis-0.1.2-py3-none-any.whl |
Total release size: 8.0 kB
Release files / remenis-0.1.2.tar.gz
| Download URL | remenis-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8c4a929ec90fab070b2c3c26ba9e2847ae4adb0965f8afe37d9df22d4535c71
|
|
BLAKE2b-256 checksum How to use checksums |
fd760ac4ea57c5318021c81eb00340ddd0705bc5835b96b8307214521c7fed09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / remenis-0.1.2-py3-none-any.whl
| Download URL | remenis-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a26089d9378d93d231671335a122aa8f626a1ffa647a126d2045cfa6ee9dadc6
|
|
BLAKE2b-256 checksum How to use checksums |
0668e5d7d1628f7be0068be4e36c783eb84375e1c8a59e5f58102162e78d2426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for remenis 0.1.2
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.