Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

I Built Persistent Memory for AI Coding Assistants — Here's How It Works

Every time you open a new AI chat, your assistant forgets everything. I fixed that. The Problem If you use Cursor, Claude Code, or Amazon Q regularly, you've probably hit this wall: You explain your project architecture in…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




Every time you open a new AI chat, your assistant forgets everything. I fixed that.






The Problem



If you use Cursor, Claude Code, or Amazon Q regularly, you've probably hit this wall:



You explain your project architecture in Monday's chat. On Tuesday, you open a new session and start from scratch. You paste the same context, re-explain the same patterns, and re-describe the same service boundaries — every single time.



This isn't a minor inconvenience.



For large codebases, every AI interaction starts with 10 minutes of context-loading before you can ask anything useful. For teams, every developer builds their own mental model of the codebase in isolation, while the AI assistant knows none of it.



I've been building production systems on Azure for several years — .NET microservices, KEDA autoscaling, Azure Service Bus pipelines. Our codebase has 40+ services, clean architecture patterns, vendor integration handlers, and years of architectural decisions that live entirely in people's heads.



Every time I opened a new AI chat, I was manually transferring that knowledge into a chat window.



So I built Mnemo.









What Mnemo Does



Mnemo is a local MCP (Model Context Protocol) server that gives AI coding assistants persistent, structured knowledge about your codebase.



One command initializes it.



After that, every AI chat automatically knows:




  • Your project's architecture and patterns

  • Your API endpoints

  • Your engineering decisions

  • Who owns which part of the codebase

  • Errors you've already debugged and how you fixed them

  • Incidents, code reviews, and team knowledge



It works with Cursor, Claude Code, Amazon Q, and any MCP-compatible AI client.



The moment a new AI chat session starts, Mnemo automatically loads your project context.



You never paste architecture descriptions again.









How It Works Technically



When you run:




mnemo init






inside your project, several things happen.






1. AST-Based Codebase Parsing



Mnemo parses your codebase using real language parsers — not regex or grep.





  • C# → Roslyn


  • Python → ast


  • TypeScript → TypeScript Compiler API



This allows Mnemo to understand:




  • Method signatures

  • Class hierarchies

  • Interface implementations

  • Dependency relationships



From this, it builds a compact repo map — a structured representation of your codebase shape.



Not the full source code.



Just the architecture-level understanding required for AI context.









2. Architecture Detection



Mnemo scans the codebase for structural signals:




  • Common handler inheritance


  • IRepository<T> patterns

  • Command/query separation

  • Event-driven conventions

  • DI registration styles



Using these signals, it classifies your architecture automatically:




  • Clean Architecture

  • CQRS

  • Event-Driven

  • Hexagonal

  • Repository Pattern

  • Handler Pattern



This becomes part of the persistent project memory.









3. MCP Server Initialization



Mnemo launches a local MCP server process that exposes tools AI assistants can call.



At the start of each AI chat session, the assistant calls:




mnemo_recall






Mnemo then returns a structured context payload containing:




  • Repo map

  • Architecture profile

  • Recent engineering decisions

  • Error/debug history

  • Current task context



Everything is stored locally inside:




.mnemo/






Currently:




  • JSON files store structured memory

  • A vector store powers semantic search



No source code leaves your machine.









Why MCP Matters



MCP (Model Context Protocol) is an open protocol from Anthropic that standardizes how AI assistants connect to tools and external context.



Think of it like USB for AI tooling.



Instead of every AI platform building proprietary integrations:




  • Any MCP server can provide tools

  • Any MCP-compatible AI client can consume them



Mnemo implements MCP, meaning it works across:




  • Cursor

  • Claude Code

  • Amazon Q

  • Kiro

  • Other MCP-compatible tools



Mnemo isn't tied to a single AI assistant.



It's an intelligence layer that upgrades all of them.









What the AI Actually Sees



When the assistant calls mnemo_recall, it receives structured project context like this:




## Project Context
Architecture: Clean Architecture + CQRS
Patterns: Repository (9 interfaces), Handler pattern (12 handlers), DI container

## Decisions
- Use handler pattern for vendor-specific logic
- Auth service uses cache-aside with 5min TTL

## Repo Map
PaymentService/Handlers/
- StripeHandler
- PayPalHandler
- SquareHandler

AuthService/Services/
- TokenService : ITokenService






With this context loaded, the AI understands:




  • How the codebase is structured

  • Which patterns are expected

  • Existing architectural conventions

  • Historical engineering decisions



So when you ask:




"Add a new payment handler"




The generated implementation:




  • Inherits from BasePaymentHandler

  • Follows existing conventions

  • Registers correctly in DI

  • Matches existing architecture



Without Mnemo, most assistants generate generic code that doesn't fit the system design at all.









Installation






Option A: VS Code Extension (Easiest)




  1. Install the Mnemo extension from the VS Code Marketplace

  2. Open a project

  3. Click "Initialize Mnemo?"



Done.



The extension automatically:




  • Downloads the Mnemo binary

  • Initializes the repository

  • Configures MCP



No Python required.









Option B: Homebrew (macOS/Linux)






brew tap Mnemo-mcp/tap
brew install mnemo






Then:




cd your-project
mnemo init












Option C: pip (All Platforms)






pip install mnemo






Or from source:




git clone https://github.com/Mnemo-mcp/Mnemo.git
cd Mnemo
pip install -e .






Then:




cd your-project
mnemo init












Final Thoughts



Mnemo started as a solution to a frustrating problem:



AI assistants forget everything between sessions.



For small projects, that's annoying.



For large production systems, it's a major productivity bottleneck.



Mnemo gives AI coding assistants persistent architectural memory, allowing them to operate with real understanding of your codebase instead of stateless guesses.



I'd love feedback — especially from teams managing large, distributed systems.



What project context do you find yourself re-explaining most often?

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Remote Code Execution (RCE) Defense
1 Warnungen
title: Detect Exploitation - I Built Persistent Memory for AI Coding Assistants — Here's How It Works
id: 504b11b2-832f-4c95-b2ee-f47db4c85eaa
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "I Built Persistent Memory for " ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("I Built Persistent Memory for AI Coding ")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*I Built Persistent Memory for AI Coding *"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "I Built Persistent Memory for AI Coding "
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich I Built Persistent Memory for AI Coding .... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I Built Persistent Memory for AI Coding Assistants — Here's How It Works

Thematisch verwandte Begriffe: Built, Persistent, Memory, Coding · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97648 | A vulnerability was detected in ningzichun student-management-system up …
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag