<?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: Ousmane Sene</title>
    <description>The latest articles on DEV Community by Ousmane Sene (@ousmane_sene_66b1a3f4a3a5).</description>
    <link>https://dev.to/ousmane_sene_66b1a3f4a3a5</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%2F1640793%2F85892f26-2136-49bf-ae19-77c5518a6645.jpg</url>
      <title>DEV Community: Ousmane Sene</title>
      <link>https://dev.to/ousmane_sene_66b1a3f4a3a5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ousmane_sene_66b1a3f4a3a5"/>
    <language>en</language>
    <item>
      <title>AI Agents should be able to share context, not just messages</title>
      <dc:creator>Ousmane Sene</dc:creator>
      <pubDate>Tue, 08 Sep 2026 08:55:23 +0000</pubDate>
      <link>https://dev.to/ousmane_sene_66b1a3f4a3a5/ai-agents-should-be-able-to-share-context-not-just-messages-3k1l</link>
      <guid>https://dev.to/ousmane_sene_66b1a3f4a3a5/ai-agents-should-be-able-to-share-context-not-just-messages-3k1l</guid>
      <description>&lt;p&gt;Most multi-agent systems today are good at exchanging messages.&lt;/p&gt;

&lt;p&gt;But sharing context is still surprisingly awkward.&lt;/p&gt;

&lt;p&gt;Agent A learns something useful.&lt;/p&gt;

&lt;p&gt;Agent B needs that information later.&lt;/p&gt;

&lt;p&gt;Agent C may need to contribute to it.&lt;/p&gt;

&lt;p&gt;Very quickly, we end up building custom infrastructure around:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;shared databases&lt;/li&gt;
&lt;li&gt;vector stores&lt;/li&gt;
&lt;li&gt;prompt injection&lt;/li&gt;
&lt;li&gt;synchronization logic&lt;/li&gt;
&lt;li&gt;message buses&lt;/li&gt;
&lt;li&gt;application-specific memory layers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’ve been working on a different model in Priostack.&lt;/p&gt;

&lt;p&gt;It is called the Agent Context Network.&lt;/p&gt;

&lt;p&gt;The core idea is simple:&lt;/p&gt;

&lt;p&gt;«Context should be a resource that agents can own, discover, share, and contribute to.»&lt;/p&gt;

&lt;p&gt;From message passing to shared context&lt;/p&gt;

&lt;p&gt;Imagine three independent agents.&lt;/p&gt;

&lt;p&gt;Agent A&lt;br&gt;
  |&lt;br&gt;
  | creates&lt;br&gt;
  v&lt;br&gt;
Project Context Space&lt;br&gt;
  ^&lt;br&gt;
  | read&lt;br&gt;
Agent B&lt;/p&gt;

&lt;p&gt;Agent C&lt;br&gt;
  |&lt;br&gt;
  | write&lt;br&gt;
  v&lt;br&gt;
Project Context Space&lt;/p&gt;

&lt;p&gt;Agent A creates a persistent context space.&lt;/p&gt;

&lt;p&gt;Agent B asks for read access.&lt;/p&gt;

&lt;p&gt;Agent C receives write access.&lt;/p&gt;

&lt;p&gt;Now the agents do not need to repeatedly send the entire project state to each other.&lt;/p&gt;

&lt;p&gt;They can interact with the same shared context.&lt;/p&gt;

&lt;p&gt;Why permissions matter&lt;/p&gt;

&lt;p&gt;This is the part I find particularly important.&lt;/p&gt;

&lt;p&gt;In many multi-agent designs, shared memory effectively means:&lt;/p&gt;

&lt;p&gt;everyone can see everything&lt;/p&gt;

&lt;p&gt;That becomes problematic once agents start representing different:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;users&lt;/li&gt;
&lt;li&gt;organizations&lt;/li&gt;
&lt;li&gt;teams&lt;/li&gt;
&lt;li&gt;services&lt;/li&gt;
&lt;li&gt;responsibilities&lt;/li&gt;
&lt;li&gt;levels of trust&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An agent should not automatically inherit everything another agent knows.&lt;/p&gt;

&lt;p&gt;So context spaces in the Agent Context Network have explicit access control.&lt;/p&gt;

&lt;p&gt;Conceptually:&lt;/p&gt;

&lt;p&gt;Agent A owns Space X&lt;/p&gt;

&lt;p&gt;Agent B -&amp;gt; request READ&lt;br&gt;
Agent A -&amp;gt; grant READ&lt;/p&gt;

&lt;p&gt;Agent C -&amp;gt; request WRITE&lt;br&gt;
Agent A -&amp;gt; grant WRITE&lt;/p&gt;

&lt;p&gt;Read and write access are separate capabilities.&lt;/p&gt;

&lt;p&gt;This turns agent memory into something closer to a network resource rather than an internal implementation detail.&lt;/p&gt;

&lt;p&gt;Persistent context outside the agent&lt;/p&gt;

&lt;p&gt;Another important property is that the context does not have to live inside the agent itself.&lt;/p&gt;

&lt;p&gt;An agent can disappear.&lt;/p&gt;

&lt;p&gt;A different agent can connect later.&lt;/p&gt;

&lt;p&gt;The shared context remains available according to its permissions.&lt;/p&gt;

&lt;p&gt;That makes it possible to build longer-lived systems where knowledge outlives individual agent executions.&lt;/p&gt;

&lt;p&gt;For example, a space could represent:&lt;/p&gt;

&lt;p&gt;/customer/acme&lt;/p&gt;

&lt;p&gt;/project/payment-migration&lt;/p&gt;

&lt;p&gt;/research/quantum-computing&lt;/p&gt;

&lt;p&gt;/company/compliance&lt;/p&gt;

&lt;p&gt;/team/backend&lt;/p&gt;

&lt;p&gt;Multiple agents could progressively enrich those spaces.&lt;/p&gt;

&lt;p&gt;Agents can negotiate access themselves&lt;/p&gt;

&lt;p&gt;I also wanted the interaction to be agent-driven.&lt;/p&gt;

&lt;p&gt;An agent can encounter a context space it needs and request access.&lt;/p&gt;

&lt;p&gt;The owning agent can decide whether to grant it.&lt;/p&gt;

&lt;p&gt;That opens interesting possibilities.&lt;/p&gt;

&lt;p&gt;Instead of developers manually wiring every relationship:&lt;/p&gt;

&lt;p&gt;Agent A knows Agent B&lt;br&gt;
Agent B knows Agent C&lt;br&gt;
Agent C uses database D&lt;/p&gt;

&lt;p&gt;you can start thinking about agents participating in a context network.&lt;/p&gt;

&lt;p&gt;discover&lt;br&gt;
   ↓&lt;br&gt;
request access&lt;br&gt;
   ↓&lt;br&gt;
grant permission&lt;br&gt;
   ↓&lt;br&gt;
read / contribute&lt;/p&gt;

&lt;p&gt;Why I think this matters&lt;/p&gt;

&lt;p&gt;I increasingly think multi-agent architecture has two distinct layers.&lt;/p&gt;

&lt;p&gt;The first is communication:&lt;/p&gt;

&lt;p&gt;Agent A -&amp;gt; message -&amp;gt; Agent B&lt;/p&gt;

&lt;p&gt;The second is shared state:&lt;/p&gt;

&lt;p&gt;Agent A&lt;br&gt;
Agent B  -&amp;gt; Context&lt;br&gt;
Agent C&lt;/p&gt;

&lt;p&gt;We have spent a lot of time building the first layer.&lt;/p&gt;

&lt;p&gt;The second one is still often implemented independently inside every application.&lt;/p&gt;

&lt;p&gt;My hypothesis is that shared context will eventually become infrastructure of its own.&lt;/p&gt;

&lt;p&gt;Just like agents can call APIs, tools, or MCP servers, they should be able to access persistent context with explicit ownership and permissions.&lt;/p&gt;

&lt;p&gt;I built this in Priostack&lt;/p&gt;

&lt;p&gt;I’ve implemented an initial version of this model as the Priostack Agent Context Network.&lt;/p&gt;

&lt;p&gt;Agents can register, create context spaces, request access to spaces owned by other agents, grant permissions, and collaboratively work with persistent context.&lt;/p&gt;

&lt;p&gt;You can find it here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://priostack.com/agent-context-network" rel="noopener noreferrer"&gt;https://priostack.com/agent-context-network&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’m still exploring the model, so I’m particularly interested in architectural feedback.&lt;/p&gt;

&lt;p&gt;How are you handling this today?&lt;/p&gt;

&lt;p&gt;Do your agents share a database?&lt;/p&gt;

&lt;p&gt;A vector store?&lt;/p&gt;

&lt;p&gt;Do they exchange summaries?&lt;/p&gt;

&lt;p&gt;Or do you think context itself should become a first-class network resource?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
