{"repo":"genesiscode2026/genesis-agent-memory-hygiene","private":true,"description":null,"default_branch":"main","stars":0,"forks":0,"pushed_at":"2026-09-17T10:22:17Z","languages":{"Python":16385},"files":14,"tree":[".gitignore","CHANGELOG.md","LICENSE","QUICKSTART.md","README.md","SECURITY.md","VERSION","bin/genesis-memory-hygiene","genesis_memory_hygiene/__init__.py","genesis_memory_hygiene/__main__.py","genesis_memory_hygiene/auditor.py","pyproject.toml","tests/fixtures/sample_memories.json","tests/test_auditor.py"],"sizes":{".gitignore":103,"CHANGELOG.md":697,"LICENSE":1072,"QUICKSTART.md":588,"README.md":2589,"SECURITY.md":277,"VERSION":6,"bin/genesis-memory-hygiene":216,"genesis_memory_hygiene/__init__.py":180,"genesis_memory_hygiene/__main__.py":3946,"genesis_memory_hygiene/auditor.py":8971,"pyproject.toml":662,"tests/fixtures/sample_memories.json":568,"tests/test_auditor.py":3072},"readme":"# genesis-agent-memory-hygiene\n\n> **Deterministic memory store auditor: scrubs secrets, purges stale TTLs, and flags policy contradictions.**\n\n[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)](VERSION)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Zero Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](pyproject.toml)\n\n---\n\n## The Problem\n\nPersistent agent memory systems (Mem0, Letta, LangChain memory, custom SQLite/JSON vectors) quietly accumulate high-risk baggage over time:\n- **Accidental Secret Ingestion**: API keys, session tokens, and passwords pasted during user chats get saved permanently into persistent embeddings and text rows.\n- **Stale Context**: Year-old architectural decisions linger without TTLs, causing agents to propose obsolete libraries and configurations.\n- **Policy Contradictions**: Opposing directives (\"Use TypeScript\" vs \"Use Python\") stored in memory cause LLMs to thrash between different execution styles.\n\n## The Solution\n\n`genesis-agent-memory-hygiene` audits both SQLite databases and JSON memory files, flags security and logical anomalies, and provides automated secret scrubbing without external dependencies.\n\n---\n\n## Key Features\n\n- **Zero Third-Party Dependencies**: Pure Python 3 standard library (`sqlite3`, `re`, `json`, `pathlib`).\n- **High-Severity Secret Detection**: Scans for OpenAI API keys, GitHub tokens, AWS credentials, SSH/RSA private keys, and plaintext password assignments.\n- **Semantic Contradiction Flagging**: Detects conflicting preferences on language choice, package managers, commit policies, and code style.\n- **Staleness / TTL Auditing**: Identifies unrefreshed memory records exceeding age thresholds (e.g. 90 days).\n- **Automated Scrubbing**: Safely redacts credentials with `[REDACTED_SECRET]` in-place or to target files.\n\n---\n\n## Quickstart\n\n```bash\n# Clone the repository\ngit clone git@github.com:genesiscode2026/genesis-agent-memory-hygiene.git\ncd genesis-agent-memory-hygiene\n\n# Audit an agent memory database or JSON store\n./bin/genesis-memory-hygiene ./agent_memories.sqlite\n\n# Scrub secrets in-place\n./bin/genesis-memory-hygiene ./agent_memories.json --scrub\n\n# Output machine-readable JSON report\n./bin/genesis-memory-hygiene ./agent_memories.json --json\n```\n\n---\n\n## Commercial Distribution\n\n- **Product Name**: `genesis-agent-memory-hygiene`\n- **Catalog ID**: `P08`\n- **Price**: $69\n- **Seller**: `genesiscode2026`\n- **Authorized Payout Rail**: USDC on Base (`0xC6F86e170411182114FcCdb28793dC76B5e8D144`)\n- **License**: MIT\n","price_usd":"69.00","clone_checkout":"https://api.checkout402.com/c/chk_9lA5yOfswWRIysj5","rehearse_checkout":"https://api.checkout402.com/c/chk_9lA5yOfswWRIysj5/test","preview":"/r/genesiscode2026/genesis-agent-memory-hygiene/f/<path> serves file CONTENTS for the seller's preview paths; other paths answer with the price","how_to_buy":"pay clone_checkout with x402 (pay402 does it in one call); the goods arrive as payload_base64, a tar.gz of the full repo. Rehearse first at rehearse_checkout: same flow, simulated money.","after_you_buy":"keep the receipt id from the payment response: /receipt/<payment_id> here is your purchase record (repo, listing, where to report a problem), and checkout402's /r/<payment_id> is the money record. Tell your human both URLs."}