Workstyle Memory Bridge: Making AI Remember How You Work

A structured memory system that makes AI coding assistants permanently remember your work preferences.
Workstyle Memory Bridge solves the frustrating problem of AI assistants forgetting your collaboration preferences between sessions. It uses three core mechanisms: Slot+Scope unique keys with Supersede replacement to prevent memory conflicts, full provenance tracking so every memory traces back to your original statement, and verifiable deletion with cross-projection checks. By delegating semantic judgment to the model while engineering handles structure and lifecycle, it delivers persistent, auditable workstyle memory via MCP protocol integration.
An Overlooked Pain Point: AI's "Amnesia"
If you write code daily with Claude Code or Cursor, you've almost certainly encountered this scenario: you repeatedly tell the AI to "lead with the North Star goal when presenting technical proposals," "prioritize security issues during code reviews," or "include context in commit messages" — yet every time, it acts like it's meeting you for the first time, and you have to repeat yourself all over again.
The root cause isn't that the model isn't smart enough — it's that there's no proper mechanism for it to remember how you work. Existing memory solutions are either generic memory stores or chat archives, none of which precisely address the need for "collaboration preferences."
To understand why this pain point is so hard to solve, you need to understand the current state of AI memory technology. Today's mainstream large language models (such as GPT-4, Claude, etc.) are fundamentally stateless — every conversation starts from scratch, and the model doesn't modify its own weights during inference. So-called "memory" typically relies on three engineering approaches: first, concatenating conversation history into the Context Window, which is limited in length and costs scale linearly with token count; second, using RAG (Retrieval-Augmented Generation) to recall relevant snippets from an external vector database, where recall precision heavily depends on the embedding model and retrieval strategy; third, injecting user profiles or preference instructions into the System Prompt. None of these three approaches are specifically optimized for the niche scenario of "collaboration preferences," causing users' work habits to either get buried in massive conversation histories or require manually maintaining lengthy prompt templates.
The project we're introducing today — Workstyle Memory Bridge — was built specifically to solve this problem. It does one thing: transforms your collaboration feedback into structured workstyle memories so the AI automatically follows them in subsequent tasks. The scope is narrow, but the pain point it addresses is very real.

Core Mechanism #1: Slot + Scope Unique Key Design
Many memory systems share a common flaw — they accumulate endlessly until they're full of conflicts and noise. Three months ago you said "risk assessment comes after MVP," but last week you changed it to "risk assessment should come first." Both memories coexist — which one should the AI follow?
Workstyle Memory Bridge handles this elegantly with two key fields:
- Slot: The topic of the memory (e.g., "risk assessment timing")
- Scope: The context in which the memory applies (e.g., "technical proposal review")
Together, they form a unique key. Most critically, a new memory with the same key directly replaces the old one — an operation called Supersede. The old rule never enters the context again, keeping memory clean and contradiction-free.
This design looks simple but is actually quite elegant. It eliminates memory bloat and conflicts at the data structure level, rather than relying on after-the-fact cleanup strategies. From a technical perspective, the Slot + Scope unique key design borrows from the concept of Composite Primary Keys in databases. In relational databases, composite primary keys use a combination of multiple fields to uniquely identify a record, ensuring no duplicates. The Supersede operation is essentially Upsert semantics — update if the key exists, insert if it doesn't. This design is widely adopted in distributed systems; for example, Apache Kafka's Log Compaction mechanism retains only the latest value for each key. In contrast, many memory systems use an Append-Only mode where all historical versions are preserved, with timestamps or weights determining priority — inevitably introducing the complexity of conflict resolution.
Core Mechanism #2: Fully Traceable Memory Provenance
The second mechanism is the project's most thoughtful design — every memory can be traced back to its source.

Specifically, each memory is tagged with a source event ID that can be drilled down to the exact statement you originally made. Using a command called Inspect, you can view the complete memory card, including:
- Type: What category of preference this is
- Scope: Which scenarios it applies to
- Content: What the specific rule is
- Source Evidence: Which of your statements it originated from
- Creation Time: When it was recorded
- Replacement Record: Whether it's been updated and when it was superseded
This is crucial for developers. For every recommendation the AI gives you, you can trace exactly which memory it was derived from. Unlike many black-box systems where you have no idea why a particular suggestion suddenly appeared.
This memory provenance mechanism is essentially a practical engineering implementation of AI Explainability. In recent years, with regulations like the EU AI Act advancing, AI system explainability has evolved from an academic topic to a compliance requirement. In enterprise scenarios, if an AI's code review suggestion leads to a production incident, the team needs to trace back the decision basis for that recommendation. Traditional model-level explanation methods like Attention Visualization or SHAP values aren't user-friendly for end users. The Evidence Chain approach adopted by Workstyle Memory Bridge — from output recommendation to memory entry to user's original statement — provides a business-level, human-readable audit trail.
Core Mechanism #3: Verifiable True Deletion
The third mechanism is the most hardcore: deletion isn't just saying it's deleted — it's providing proof that it's been completely removed.
Most memory systems delete a memory and call it done, but how can you be sure it isn't secretly retained in some cache, continuing to influence outputs?
Workstyle Memory Bridge provides a command called Verify Deletion. After deletion, it performs checks across multiple projections:
- Not in the active memory list
- Won't enter the context construction pipeline
- Not in exported instruction files
Only when all projections pass is the deletion considered truly complete. This means a memory you've deleted genuinely won't affect subsequent outputs.
The design philosophy of Verifiable Deletion aligns closely with GDPR's "Right to Erasure." In real systems, data deletion is far more complex than it seems: cache layers (like Redis), search indices (like Elasticsearch), vector databases, logging systems, and CDN edge nodes can all retain data copies. The "cross-projection check" is essentially a consistency verification across all Materialized Views of the data in the system. This approach has precedents in heavily regulated industries like finance and healthcare — for example, HIPAA compliance requires a Certificate of Destruction for data disposal. Bringing this concept into AI memory management demonstrates respect for user data sovereignty.
Design Philosophy: Semantic Judgment for the Model, Engineering for Infrastructure Only

Another design detail worth exploring: this project explicitly prohibits using keyword matching, regular expressions, or hardcoded rules to evaluate memory content.
Why? Because hardcoded rules become untouchable "legacy code" within three months. So it delegates all semantic judgment entirely to the model, while the engineering code handles only three things:
- Format Validation: Ensuring memory structures are compliant
- Lifecycle Management: Handling creation, replacement, and deletion
- Evidence Linking: Maintaining provenance relationships
In practice, you just speak naturally in conversation, and the AI decides whether something should be recorded as a preference — no configuration files needed.
Delegating semantic judgment entirely to the model rather than hardcoded rules reflects the architectural mindset shift of AI-Native Applications. In traditional software engineering, business logic is implemented through if-else statements, regular expressions, or rule engines — deterministic and testable, but with maintenance costs that grow exponentially with the number of rules and difficulty handling natural language ambiguity. In the LLM era, the model itself is the best semantic understanding engine. This "model as business logic" pattern is being adopted by an increasing number of projects — for example, Anthropic's Tool Use protocol lets the model decide when to call which tool. Of course, this introduces new challenges: model judgment isn't 100% deterministic, which is why engineering-level format validation and lifecycle management become indispensable safety nets — deterministic tasks go to engineering, non-deterministic tasks go to the model, each playing its role.
Out-of-the-Box Handshake Mechanism

This project bakes global memory and scope vocabulary directly into the tool protocol's handshake phase. What does this mean?
When you install a new client and connect, the AI immediately knows your preferences and which task-type memories are available. No manual instruction file exports, no refreshing temporary context each time — truly out-of-the-box.
The "tool protocol" mentioned here refers to MCP (Model Context Protocol), an open protocol launched by Anthropic in late 2024 to standardize interactions between AI models and external tools and data sources. MCP uses a client-server architecture: the AI application acts as a client making requests, while the MCP server exposes Tools, Resources, and Prompts. During the handshake phase, the client receives the server's Capability Listing — this is precisely when Workstyle Memory Bridge injects global memory. This design means memory isn't passively waiting to be queried but is proactively pushed into the AI's working context when the connection is established, dramatically reducing integration friction. For developers using multiple MCP clients simultaneously (such as Claude Desktop, VS Code extensions, etc.), this ensures cross-client preference consistency.
Summary and Reflections
The value of Workstyle Memory Bridge lies in its precise definition of the problem boundary: it doesn't attempt general-purpose memory — only workstyle memory. Within this narrow scope, it solidly addresses three key problems:
- No memory conflicts: Slot + Scope unique key + Supersede replacement mechanism
- Full memory traceability: Every memory has a complete source evidence chain
- Verifiable deletion: Cross-projection checks ensure truly complete removal
The entire process is auditable, editable, reversible, and traceable. If you've ever been frustrated by "AI acting like it's meeting you for the first time every time," this project is worth your attention.
From a broader perspective, this project represents an important direction in AI tool development: shifting from "capability enhancement" to "collaboration adaptation." Models are already powerful enough — the core challenge for the next phase is making them truly adapt to each individual's way of working. Workstyle Memory Bridge takes a step in this direction. While the scope is modest, the approach is well worth learning from.
Related articles

Token Doomsday: The Industry Truth Behind AI Coding's Spiraling Costs
GitHub Copilot shifts from flat-rate to per-token billing, sending dev costs from $29/mo to $1,000+. Uber burns its annual AI budget in months. A deep dive into Token Doomsday.

Nobel Laureate John Jumper Leaves DeepMind to Join Anthropic
Nobel Chemistry laureate and AlphaFold lead John Jumper leaves Google DeepMind for Anthropic, signaling an intensifying AI talent war and reshaping the AI for Science landscape.

6 Must-Have MCPs for Claude Code: Upgrade It to a Full AI Development Workstation
6 essential MCPs for Claude Code: Playwright, File System, Sequential Thinking, Context7, GitHub, and Memos — upgrade your AI coding assistant into a complete development workstation.