<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hubert Larose Surprenant</title>
    <description>The latest articles on DEV Community by Hubert Larose Surprenant (@hubert_larosesurprenant_).</description>
    <link>https://dev.to/hubert_larosesurprenant_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2273558%2F4a7c85cd-647d-4c98-86cb-6e83ac32254a.jpg</url>
      <title>DEV Community: Hubert Larose Surprenant</title>
      <link>https://dev.to/hubert_larosesurprenant_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hubert_larosesurprenant_"/>
    <language>en</language>
    <item>
      <title>I built a unified context gateway for AI agents that syncs in ~12ms. Here is how it works.</title>
      <dc:creator>Hubert Larose Surprenant</dc:creator>
      <pubDate>Wed, 19 Aug 2026 17:30:18 +0000</pubDate>
      <link>https://dev.to/hubert_larosesurprenant_/i-built-a-unified-context-gateway-for-ai-agents-that-syncs-in-12ms-here-is-how-it-works-48ib</link>
      <guid>https://dev.to/hubert_larosesurprenant_/i-built-a-unified-context-gateway-for-ai-agents-that-syncs-in-12ms-here-is-how-it-works-48ib</guid>
      <description>&lt;p&gt;If you were building autonomous workflows, you were probably suffering from "framework fatigue."&lt;/p&gt;

&lt;p&gt;Every time you switched between IDEs like Cursor, terminal agents like Claude Code, or browser-based assistants, you had to reconfigure your tools, re-authenticate your keys, and re-index your files. You were manually duct-taping agents to a dozen different local MCP (Model Context Protocol) servers, vector databases, and static configuration files.&lt;/p&gt;

&lt;p&gt;It was tedious, it was fragile, and it did not scale.&lt;/p&gt;

&lt;p&gt;I got tired of managing a fragmented stack of isolated AI assistants. I wanted a "motherboard" for AI agents—a unified gateway that abstracted vector storage, memory, and OAuth connectors behind a single endpoint.&lt;/p&gt;

&lt;p&gt;So, I built Memorify.&lt;/p&gt;

&lt;p&gt;The vision was simple:&lt;/p&gt;

&lt;p&gt;One gateway.&lt;br&gt;
One connection.&lt;br&gt;
Every agent. Every tool.&lt;br&gt;
Once and for all.&lt;br&gt;
Here is a transparent, under-the-hood breakdown of how Memorify delivered a ~12ms real-time context bus using Deno, Neon Postgres, and ElectricSQL, and how it was used to give agents persistent memory.&lt;/p&gt;

&lt;p&gt;🚀 The Quick Handshake&lt;br&gt;
I wanted the developer onboarding experience to be absolutely frictionless. Instead of setting up custom SDKs, developers could connect Memorify as an MCP server to any tool in seconds.&lt;/p&gt;

&lt;p&gt;Here was the exact client handshake. When an agent was registered, Memorify issued a secure, server-side scoped Bearer token. To verify the connection, a standard JSON-RPC POST request was sent to the gateway endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sS&lt;/span&gt; &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://memorify.dev/mcp &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Accept: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="se"&gt;\$&lt;/span&gt;&lt;span class="s2"&gt;MEMORIFY_AGENT_TOKEN"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'&lt;/span&gt;
Instantly, the gateway returned the available tools registered under the agent profile, such as the identity verification tool:

&lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"jsonrpc"&lt;/span&gt;: &lt;span class="s2"&gt;"2.0"&lt;/span&gt;,
  &lt;span class="s2"&gt;"id"&lt;/span&gt;: 1,
  &lt;span class="s2"&gt;"result"&lt;/span&gt;: &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"tools"&lt;/span&gt;: &lt;span class="o"&gt;[&lt;/span&gt;
      &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"name"&lt;/span&gt;: &lt;span class="s2"&gt;"whoami"&lt;/span&gt;,
        &lt;span class="s2"&gt;"description"&lt;/span&gt;: &lt;span class="s2"&gt;"Return info about the connected agent + workspace."&lt;/span&gt;,
        &lt;span class="s2"&gt;"inputSchema"&lt;/span&gt;: &lt;span class="o"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"type"&lt;/span&gt;: &lt;span class="s2"&gt;"object"&lt;/span&gt; &lt;span class="o"&gt;}&lt;/span&gt;
      &lt;span class="o"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;]&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;By calling whoami, the agent immediately confirmed its identity, workspace, and authorization scopes, establishing a secure connection once and for all.&lt;/p&gt;

&lt;p&gt;🔌 Persistent MCP Hot-Plugging: No More Agent Reboots&lt;br&gt;
In traditional setups, adding a new MCP server or modifying your configurations was a massive disruption. Developers had to edit local configuration files, manually register endpoints, and completely reboot their CLI agents or IDE extensions to discover the updated schemas. It shattered developer flow.&lt;/p&gt;

&lt;p&gt;Memorify shifted this entirely to the gateway layer with Persistent MCP Hot-Plugging:&lt;/p&gt;

&lt;p&gt;Connect Once, Accessible Everywhere: You registered your local or hosted MCP servers through the central Memorify gateway exactly once. Every connected agent instantly inherited them without needing individual local setup.&lt;br&gt;
Zero-Reboot Dynamic Updates: When you added, updated, or removed an MCP server in your dashboard, the changes streamed live. Connected agents immediately reflected the new toolsets over the active handshake—meaning zero agent reboots, reloads, or session restarts when scaling your toolchain.&lt;/p&gt;

&lt;p&gt;🧠 The Architecture: Verbs Over Schemas&lt;br&gt;
Most heavy orchestration frameworks forced developers and agents into rigid, schema-heavy database interactions. Memorify rejected SQL and complex schemas for agent interactions, opting instead for a Verb-Based Semantic Protocol.&lt;/p&gt;

&lt;p&gt;Agents interacted using straightforward natural language intents. Instead of writing raw database inserts, the API was cleanly segmented into simple semantic capability domains:&lt;/p&gt;

&lt;p&gt;/memory (remember, recall, update) — Wrote and retrieved episodic atomic facts.&lt;br&gt;
/documents (add_from_url, search, view) — Ingested and chunk-indexed long-form markdown and web content.&lt;br&gt;
/skills (list, run) — Declares and executes modular tools.&lt;br&gt;
/mcp (servers, tools, call) — Exposed unified Model Context Protocol routing.&lt;/p&gt;

&lt;p&gt;By giving agents a predictable REST/JSON structure mapped to simple concepts like "remember this," I drastically reduced the prompt engineering and token overhead required. The agent did not need to know the underlying database schemas; it simply outputted its semantic intent.&lt;/p&gt;

&lt;p&gt;⚡ The Execution Stack: Achieving ~12ms Sync Latency&lt;br&gt;
For a multi-agent workflow to actually feel cohesive, an action taken in a terminal (like a local CLI command run via Claude Code) had to be instantly visible to an assistant running in a browser. Achieving this cross-agent synchronization required building an edge-routing infrastructure with zero cold-start penalties.&lt;/p&gt;

&lt;p&gt;The stack was designed from the ground up for low latency and high availability:&lt;/p&gt;

&lt;p&gt;Component   Role in the Gateway Performance Result&lt;br&gt;
Deno Deploy Ran V8 isolates at the edge to intercept, authenticate, and route requests instantly.   Eliminated cold-start penalties, keeping edge routing overhead to a minimum.&lt;br&gt;
Neon Postgres   Handled serverless relational data (user rules, episodic logs) alongside native pgvector storage.   Delivered instant database scaling and high-performance vector searches without the complexity of a separate database.&lt;br&gt;
ElectricSQL Streamed partial database replicas ("shapes") over HTTP directly from Neon's logical replication stream.    Achieved active-active sync, letting us stream updates to any edge instance in near real-time.&lt;br&gt;
Instead of building a clunky database polling mechanism or maintaining stateful, resource-heavy WebSockets manually, ElectricSQL handled active-active replication. When a new memory dropped into Neon Postgres, ElectricSQL fanned it out instantly, completely decoupling real-time synchronization from our core application logic.&lt;/p&gt;

&lt;p&gt;🔒 Zero-Leak Security: Why Trusting Your Gateway Mattered&lt;br&gt;
When building a gateway that autonomously read files, stored passwords, or invoked APIs, security was the ultimate hurdle. Memorify enforced strict, multi-tenant isolation at every layer of the platform:&lt;/p&gt;

&lt;p&gt;Zero-Leak Vault: All third-party API keys, OAuth credentials, and sensitive tokens were encrypted at rest using AES-256-GCM.&lt;br&gt;
Granular Cryptographic Tokens: Access utilized strict, server-side tokens carrying narrow scopes (such as memory:read, skills:read, or documents:write). These were checked on every request and could be revoked instantly from the dashboard.&lt;br&gt;
Hardware-Secured Isolation: Each workspace operated in a completely isolated tenant schema within Neon Postgres, backed by strict Row-Level Security (RLS) policies. One workspace's agents could never query, leak, or view data from another's, guaranteeing enterprise-grade privacy.&lt;br&gt;
🛠️ The Meta Layer: High-Velocity AI Engineering&lt;br&gt;
Building an edge-routed, multi-agent platform as a solo developer was a massive undertaking. To go from an abstract concept to a live, production-grade service in record time, I utilized an aggressive AI-assisted co-piloting workflow:&lt;/p&gt;

&lt;p&gt;Boilerplate Delegation: I used code-generation tools to spin up the entire React/Vite front-end interface, freeing myself up to focus on the core state-synchronization logic and gateway API design.&lt;br&gt;
Architectural Guardrails: I used AI pairing to stress-test the Neon Postgres relational schemas, verify Row-Level Security (RLS) boundaries, and map out the real-time ElectricSQL replication filters.&lt;br&gt;
This was the power of developer leverage. By treating AI models as specialized junior engineers for boilerplates and schema verification, a single developer could confidently design and deploy secure, global, multi-tenant infrastructure operating at sub-15ms latency scales.&lt;/p&gt;

&lt;p&gt;💬 Let's Connect!&lt;br&gt;
My ultimate goal was to make AI agents truly collaborative, persistent, and portable. I wanted developers to be able to create notebooks, write code, and have those sessions instantly sync directly into Memorify as portable, cross-agent memory.&lt;/p&gt;

&lt;p&gt;Because this was designed as a developer-centric product, I would love to hear your thoughts:&lt;/p&gt;

&lt;p&gt;How were you managing context or memory across different AI assistants before?&lt;br&gt;
What tools or integrations would you want to see bridged next?&lt;br&gt;
Do you have any suggestions or feedback on the verb-based semantic protocol design?&lt;br&gt;
Drop a comment below and let me know your thoughts! 🚀&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/hlsitechio" rel="noopener noreferrer"&gt;
        hlsitechio
      &lt;/a&gt; / &lt;a href="https://github.com/hlsitechio/memorify" rel="noopener noreferrer"&gt;
        memorify
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Memorify — proprietary. Source is private.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Memorify&lt;/h1&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Shared memory and tools for MCP-capable agents.&lt;/h3&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a href="https://memorify.dev" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/9f85912fa833fe9b5f11bfed97eb224694f2a2a33235f47a73ce769c9c900b63/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f476174657761792d4f6e6c696e652d3030453539393f7374796c653d666c61742d737175617265266c6f676f3d73746174757370616765266c6f676f436f6c6f723d7768697465" alt="Status"&gt;&lt;/a&gt;
&lt;a href="https://modelcontextprotocol.io" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/2655594b34a4770f887e1e1a774574ab10cbe49e0ffbc24eb67e9c3bb190037d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d43502d323032342d2d31312d2d30352d3739453343313f7374796c653d666c61742d737175617265" alt="Protocol"&gt;&lt;/a&gt;
&lt;a href="https://memorify.dev/mcp" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/1a2dfa5b673bc62cc4df0ecc6239467394391782fc4ef5c984c6bc20bc388731/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a534f4e2d2d5250432d322e302d626c75653f7374796c653d666c61742d737175617265" alt="JSON-RPC"&gt;&lt;/a&gt;
&lt;a href="https://memorify.dev" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/92082f18a114738d57eba40f401b40122523372acf7428e4c81ce83341cf3aef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5661756c742d4145532d2d3235362d2d47434d2d626c756576696f6c65743f7374796c653d666c61742d737175617265" alt="Security"&gt;&lt;/a&gt;
&lt;a href="https://github.com/hlsitechio/memorify/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/c2688087d85f24e9728a0bc8dc3ea18e7824adcc2ac57dcdefbfc6f4316febff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d50726f70726965746172792d7265643f7374796c653d666c61742d737175617265" alt="License"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://memorify.dev" rel="nofollow noopener noreferrer"&gt;Website&lt;/a&gt; • &lt;a href="https://memorify.dev/auth" rel="nofollow noopener noreferrer"&gt;Auth Portal&lt;/a&gt; • &lt;a href="https://memorify.dev/dashboard" rel="nofollow noopener noreferrer"&gt;Control Plane&lt;/a&gt; • &lt;a href="https://memorify.dev/mcp" rel="nofollow noopener noreferrer"&gt;MCP Endpoint&lt;/a&gt; • &lt;a href="https://memorify.dev/#pricing" rel="nofollow noopener noreferrer"&gt;Pricing&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;⚡ Overview&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Memorify&lt;/strong&gt; — Shared memory and tools for MCP-capable agents.&lt;/p&gt;
&lt;div&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/hlsitechio/memorify/./public/memorify-architecture-diagram.jpg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fhlsitechio%2Fmemorify%2FHEAD%2F.%2Fpublic%2Fmemorify-architecture-diagram.jpg" alt="Memorify Architecture Diagram — Unified Control Plane &amp;amp; Persistent Memory Gateway for Autonomous AI Agents" width="100%"&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🛡️ Zero-Leak Security Architecture&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;Memorify is engineered from the ground up for strict confidentiality and multi-tenant isolation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Leak Secret Vault&lt;/strong&gt;: Third-party API keys (GitHub, Netlify, Stripe, Resend, Cloudflare) are encrypted at rest using AES-256-GCM. AI agents invoke actions through the gateway without ever receiving or inspecting raw secrets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Granular Scoped Tokens&lt;/strong&gt;: Access tokens (&lt;code&gt;mem_live_...&lt;/code&gt;) utilize strict cryptographic scoping (&lt;code&gt;memory:read&lt;/code&gt;, &lt;code&gt;memory:write&lt;/code&gt;, &lt;code&gt;skills:read&lt;/code&gt;, &lt;code&gt;documents:read&lt;/code&gt;, &lt;code&gt;tokens:admin&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware-Secured Isolation&lt;/strong&gt;: Each workspace operates in an isolated tenant schema within Neon Postgres with strict Row-Level Security (RLS).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Browser State Dependency&lt;/strong&gt;: Authentication state is derived purely server-side from cryptographically signed session claims.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🛠️ Supported Agent Integrations&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;Connect any Model Context Protocol compliant client…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/hlsitechio/memorify" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://memorify.dev/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmemorify.dev%2Fbrand%2Fhero-banner-memorify-front-gate.png" height="auto" class="m-0"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://memorify.dev/" rel="noopener noreferrer" class="c-link"&gt;
            Memorify.dev
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            A live MCP gateway and control plane for AI agents with durable memory, searchable documents, skills, external tools, and agent access levels.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmemorify.dev%2Ffavicon.ico"&gt;
          memorify.dev
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>agents</category>
      <category>ai</category>
      <category>mcp</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
