mhn-ai-agent-memory — Cursor Agents | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorAgentsmhn-ai-agent-memory
    Back to Agents
    mhn-ai-agent-memory

    mhn-ai-agent-memory

    shahzebqazi March 21, 2026
    2 copies 0 downloads

    AI agent memory using Modern Hopfield Networks — no LLM calls, no database, one matrix multiply. MCP server for Cursor, Claude Code, and other AI coding agents.

    Agent Definition
    <div align="center">
    
    # MHN AI Agent Memory
    
    ### Associative Memory for AI Agents Using Modern Hopfield Networks
    
    [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
    [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
    [![Tests](https://img.shields.io/badge/tests-43%20passing-brightgreen.svg)](#development)
    [![arXiv](https://img.shields.io/badge/arXiv-2008.02217-b31b1b.svg)](https://arxiv.org/abs/2008.02217)
    
    **A Python library for deterministic associative memory in AI agents.**
    
    [Install](#install) &#8226; [Quick Start](#30-second-example) &#8226; [Features](#features-at-a-glance) &#8226; [How It Works](#how-it-works-plain-english) &#8226; [API Reference](#project-structure)
    
    </div>
    
    ---
    
    <div align="center">
    
    ```
              ┌─────────────────────────────────────────────┐
              │                                             │
              │   xi_new = X @ softmax( beta * X^T @ xi )  │
              │                                             │
              │   One equation. One matrix multiply.        │
              │   Deterministic. Microseconds. Free.        │
              │                                             │
              └─────────────────────────────────────────────┘
    ```
    
    </div>
    
    ---
    
    ## What is this?
    
    Many agent memory systems store text in a database, then ask an LLM to interpret it at query time. This library does something else: it applies the [Modern Hopfield Network](https://arxiv.org/abs/2008.02217) update rule directly, exposing transformer-style attention as an explicit, controllable memory.
    
    1. Store text in a database
    2. Call an LLM to reason about it (costs money, takes seconds, non-deterministic)
    3. Hope the LLM doesn't hallucinate about what it stored
    
    | | Traditional (LLM + DB) | This Library |
    |---|---|---|
    | **Retrieval** | LLM API call | One matrix multiply |
    | **Latency** | Seconds | Microseconds |
    | **Cost** | Per-token | Zero after storage |
    | **Determinism** | Non-d

    Tags

    agent-frameworkagent-memoryaiai-agentsassociative-memoryattention-mechanismclaude-codecontext-engineeringcontrastive-learningcursor

    Comments

    More Agents

    View all
    documentation

    Documentation & Onboarding Agent

    Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.

    C
    Community
    debugging

    Cursor Bug Triage Agent

    Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.

    C
    Community
    api

    API Integration Agent

    Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.

    C
    Community
    coding

    Cursor Agent Mode

    Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.

    C
    Cursor Team
    cloud

    Cursor Background Agent

    Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.

    C
    Cursor Team
    composer

    Cursor Composer Agent

    Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.

    C
    Cursor Team

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.