I got tired of Cursor hallucinating code that breaks my project's rules, so I built a persistent memory layer

Cursor is amazing, but it suffers from “context amnesia.” It keeps suggesting code that ignores architectural decisions I made weeks ago.

So I built Hopsule. It’s an open-source(ish) governance layer that acts like a linter, but for your project’s architectural context.

It forces the AI to check your “Accepted Decisions” before suggesting code.

I built a full ecosystem around this:

  • The Brain (MCP Server): Connects directly to Cursor to inject decision history.

  • The Enforcer (Cursor Addon): Highlights code that conflicts with established rules right in the editor.

  • The Manager (Web App): A Next.js dashboard to draft, review, and accept architectural decisions.

  • The Terminal (CLI Tool): A Go-based CLI to access your project’s memory without leaving the terminal.