We are bleeding our project context to cloud providers every time we open a new chat window. Discover how the Foundry ecosystem and the Model Context Protocol enable portable, sovereign AI memory that finally puts you back in control.
We are constantly bleeding our context to cloud providers. Every time you spin up a new chat window, start a new project in an AI IDE, or upload a document to a reading assistant, you are paying a massive context tax. You spend the first twenty minutes of any workflow just teaching the model who you are, what the codebase looks like, and what the constraints are. And the moment you close that tab? That context is trapped.
The industry has built incredible models, but they have completely failed at context portability. Here is why our current AI ecosystems are broken, why it is a massive data privacy risk, and how a denaturalised context layer changes the entire game.
The Walled Gardens of AI Surfaces
The biggest lie in the current AI landscape is that you are building an understanding with an assistant. You are not. You are building a siloed, temporary database for a specific vendor.
Ecosystem Fragmentation: Even within a single product suite, context does not travel. You can spend an hour mapping out a complex architectural plan in a web chat, but you cannot seamlessly pull that exact context state into an IDE like Antigravity. Despite being the same ecosystem, the surfaces are walled off from each other.
The NotebookLM Problem: Tools like NotebookLM are fantastic for isolated document synthesis, but they represent the absolute worst case scenario for portability. If you spend weeks building up a dense, cross-referenced notebook and suddenly want to test that knowledge against a new, smarter model from a different provider, you cannot. You are entirely locked into their model and their UI.
Zero Data Ownership: When you rely on these disconnected cloud services, you surrender your privacy. You are constantly pushing your proprietary architecture, personal preferences, and business logic into external servers just to get a basic completion.
When you want to switch providers, you do not just lose your chat history, you lose the entire structural understanding the AI had of your work.
Building the Sovereign Context Layer: The Foundry Suite
If you want to actually govern your AI workflows, manage your compute economics, and protect your data, you cannot rely on the big platforms to manage your memory. You need an infrastructure where the context belongs to the user, not the provider. This is exactly why I built the Foundry ecosystem.
It is important to understand that Foundry is not just a specific coding library or a neat framework, it is a complete governance methodology and architectural substrate. It dictates how agents behave, how they escalate, and most importantly, how they remember.
To make this context completely portable, I split the ecosystem into three distinct tools:
The Foundry Substrate: The core orchestration environment, optimized strictly for coding, automated software engineering, and multi-agent execution.
Foundry-PromptManager: The visual control plane. It provides a clean, centralized UI that allows you to easily manipulate, update, and manage the underlying Foundry knowledge graph without having to write raw graph queries by hand.
Foundry-Notebook: A unified ingestion and workspace layer designed to completely replace isolated, locked-in knowledge tools.
The Power of a Bi-Directional Context Bridge
By connecting these tools through the Model Context Protocol (MCP), you build a completely liquid pipeline where context can float across entirely separate applications, CLIs, and editors. Most importantly, this centralized graph does not just store flat information, it actively enforces strict Skill-Based Spec-Driven Development (SDD) and Test-Driven Development (TDD) guardrails before an external IDE or local model ever sees a line of code.
Instead of being trapped in a single web interface, a modern engineering workflow could look completely different. Below is a conceptual implementation of how an MCP-enabled fetcher might pull project state:
// Example of an MCP client connector for the Foundry Substrate
import { Client } from "@modelcontextprotocol/sdk";
async function fetchProjectState(projectId: string) {
const client = new Client({ name: "foundry-cli" });
await client.connect("foundry-notebook-server");
const state = await client.request({
method: "fetch_context",
params: { id: projectId, scope: "architecture-rules" }
});
return state;
}With this, you can perform ingestion and governed planning in the Notebook, then switch to a local CLI to execute the work, as the CLI reaches across the system to ingest the state you have already prepared.
Own Your Compute, Own Your Context
This architecture changes the fundamental relationship between an engineer and their models. You stop treating AI chat windows as ephemeral scratchpads and start treating your context as a highly valuable, portable asset.
By separating the context from the inference engine, you get absolute freedom. You can use local hardware or ultra-fast inference APIs like Groq or Fireworks, swap models mid-task depending on size, change IDEs, and move between documentation spaces and the command line without ever resetting your AI's memory. The core infrastructure is stable and handling my workflows exactly how I designed it to. The next phase is spending some time tidying up the remaining rough edges across the UI and the integration layers. Once the tooling is thoroughly polished, I will be looking for a small group of testers to put the full bi-directional MCP pipeline through its paces before any kind of wider release.
If we want actual data ownership and privacy in the agentic future, we have to build the infrastructure to own our own context.
