<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Edward Izgorodin on Medium]]></title>
        <description><![CDATA[Stories by Edward Izgorodin on Medium]]></description>
        <link>https://medium.com/@izgorodin?source=rss-ea5537cb1b7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*43Iw2C0KhWM9jmU1</url>
            <title>Stories by Edward Izgorodin on Medium</title>
            <link>https://medium.com/@izgorodin?source=rss-ea5537cb1b7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 22:16:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@izgorodin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My custom AI agent in Python loses track of long conversations.]]></title>
            <link>https://medium.com/@izgorodin/my-custom-ai-agent-in-python-loses-track-of-long-conversations-557b457e5fdb?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/557b457e5fdb</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[context-window]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 11:28:01 GMT</pubDate>
            <atom:updated>2026-11-26T11:28:01.566Z</atom:updated>
            <content:encoded><![CDATA[<h3>My custom AI agent in Python loses track of long conversations. How can I manage context window bloat?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*h4DA12g0y7dsj1ER9K-0ng.png" /></figure><p>I replayed 40 turns of a small Python agent that triages GitHub issues, with real GitHub API output as its tool results, and at turn 20 those tool results were 99.1 percent of the tokens in the request. So the first thing to measure is what fills the window. If it is tool output, shape each result to what the agent reads before it enters the history. In the replay, cutting each issue to five fields took the call at turn 40 from 658,594 tokens to 36,934. A limit of six turns still sent about 99,000 tokens on every call from turn 6 on, and a summary of the dropped turns saved nothing more.</p><p>For the bloat, the next largest saving after shaping came from replacing old tool results with a one-line stub, and any cut should fall between whole turns so that no tool call loses its result. For losing track, the part you can fix in code is where the instructions live. They should go with every request instead of sitting in the history, where a trim or a summary can reach them. I would add a summary last, for either problem, and only to carry what the user decided.</p><h3>The replay</h3><p>The agent behind every number below is deliberately plain. Its instructions are 94 tokens: answer in English, suggest labels but never apply them, cite issue numbers, keep answers short. Each turn is a user question of about 10 tokens, one call to a list_open_issues tool, the tool result, and a fixed answer of 90 tokens.</p><p>On 17 November 2026 I fetched the five newest open items of two Python agent projects from GitHub’s REST API, pydantic/pydantic-ai (40,094 bytes of JSON) and openai/openai-agents-python (67,052 bytes), and the replay alternates between the two responses. Counted with tiktoken’s o200k_base encoding, they are 11,058 and 21,583 tokens. The <a href="https://github.com/openai/tiktoken">tiktoken README</a> gives a rule of thumb: “On average, in practice, each token corresponds to about 4 bytes.” This JSON came out at 3.6 and 3.1 bytes per token, so it costs more tokens per byte than that average.</p><p>The second response is heavier because of what sits in the bodies. GitHub’s issues endpoint returned pull requests as well, and all five items from openai-agents-python were Dependabot pull requests updating dependencies, each with release notes in its body. Nobody wrote code to send release notes to the model, and with the whole history kept they go out again on every later call.</p><p>No model was called. A script builds the messages that would be sent on each of the 40 calls, in five different ways, and counts them, adding 4 tokens of formatting per message.</p><p>Tokens sent on the call at turns 10, 20 and 40, and in total over 40 calls:</p><ul><li><strong>Whole history</strong>: 164,651 at turn 10, 329,301 at turn 20, 658,594 at turn 40; 13.4 million input tokens over 40 calls</li><li><strong>Last 6 turns</strong>: 98,790 at turn 10, 98,788 at turn 20, 98,793 at turn 40; 3.7 million input tokens over 40 calls</li><li><strong>Last 6 turns and a 54-token summary</strong>: 98,848 at turn 10, 98,846 at turn 20, 98,851 at turn 40; 3.7 million input tokens over 40 calls</li><li><strong>Tool results older than the last two replaced by a 16-token stub</strong>: 34,215 at turn 10, 35,820 at turn 20, 39,023 at turn 40; 1.4 million input tokens over 40 calls</li><li><strong>Tool results shaped to five fields, whole history kept</strong>: 9,236 at turn 10, 18,471 at turn 20, 36,934 at turn 40; 0.76 million input tokens over 40 calls</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prOc5QYmJMuYTzaJ0ya4bw.png" /></figure><p>With the whole history, the request passes 128,000 tokens at turn 8 and 200,000 at turn 13. A Claude tokenizer would give other counts. All five are counted the same way, so I would expect their order to hold.</p><h3>Bloat</h3><p>In this agent a six-turn limit keeps six tool results of 11,000 to 22,000 tokens each, so the window climbs to about 99,000 tokens by turn 6 and stays there for the remaining 34 calls. The limit stopped the growth, but each of those calls still carried six raw tool results. Over 40 calls the six-turn version sent 3.7 million input tokens, almost five times as many as the shaped version that kept its entire history.</p><p>A 54-token summary on top of the limit cost 58 tokens on each call from turn 7 and removed nothing, because the limit had already dropped the turns it stands in for.</p><p>Each raw tool result is a list of five GitHub issue objects, with 33 or 34 top-level fields in each. Seven of those fields are URLs, the author object adds twelve more URLs, and then there are reaction counts, timestamps and the full body. The triage agent reads five things: the number, the title, the labels, the comment count and the start of the body.</p><pre>import json</pre><pre>def shape_issues(raw: str) -&gt; str:<br>    &quot;&quot;&quot;Keep what the agent reads; drop what it never uses.&quot;&quot;&quot;<br>    issues = json.loads(raw)<br>    return json.dumps([<br>        {<br>            &quot;number&quot;: i[&quot;number&quot;],<br>            &quot;title&quot;: i[&quot;title&quot;],<br>            &quot;labels&quot;: [label[&quot;name&quot;] for label in i.get(&quot;labels&quot;, [])],<br>            &quot;comments&quot;: i.get(&quot;comments&quot;),<br>            &quot;body&quot;: (i.get(&quot;body&quot;) or &quot;&quot;)[:300],<br>        }<br>        for i in issues<br>    ])</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-pkaOQSxOmkeBYYEmkG-g.png" /></figure><p>The two results drop to 751 and 807 tokens, 15 and 27 times smaller. Of the five ways in the list above, this is the only one that also keeps the newest result small, because the raw text never enters the history. I would not leave this to a framework setting. A framework has no way to know that a triage agent reads five fields of a GitHub issue, and whoever writes the tool does.</p><p>Shaping means you decide now which fields the agent will want later. Three hundred characters of body will not hold a stack trace, so an agent that needs one has to call the tool again for that issue.</p><p>My replay cannot say whether shaping costs answers, because it called no model. AheadKit tested that after a comment of mine and <a href="https://dev.to/aheadkit/i-trimmed-my-agents-tool-results-to-five-fields-it-solved-more-not-fewer-27d5">published the result</a> on 19 November. The test used the same five fields, a small local model and twelve triage jobs, each run twice. The trimmed results solved 17 of 24 jobs and the full results 9 of 24.</p><p>AheadKit also counted how often the agent asked for one issue in full: 0.92 times per job with trimmed results and 0.88 with full ones. If the five fields had left out something the jobs needed, I would expect that number to climb, and it barely moved.</p><p>AheadKit’s own conclusion is that “the direction is the finding, not the percentages”, and with one small model and twelve jobs I would not read more into it either. The issue bodies in that test also ran a little over a hundred words, much shorter than most bodies in my replay, and AheadKit has not measured what shaping does to longer ones.</p><p>Stubbing keeps every tool call and replaces each result older than the last two with one line of 16 tokens, “[tool result removed from the window: 5 issues listed at this turn]”. At turn 40 the call comes to 39,023 tokens. Anthropic offers the same idea on the server side as <a href="https://platform.claude.com/docs/en/build-with-claude/context-editing">context editing</a>, which was marked beta when I read it: “When activated, the API automatically clears the oldest tool results in chronological order.”</p><p>A <a href="https://datahub.com/blog/ai-agent-context-window-management/">DataHub blog post</a> names the risk: “Trim a tool output too early and a later step loses the field it needed.” The stub keeps that recoverable. It tells the model that a result existed and what it covered, so the model can call the tool again instead of guessing.</p><p>If you also drop old turns, cut between turns, never inside one. The OpenAI Cookbook’s <a href="https://developers.openai.com/cookbook/examples/agents_sdk/session_memory">session memory example</a> defines the unit as “A turn = one user message plus everything that follows it (assistant replies, reasoning, tool calls, tool results) until the next user message.” A cut inside a turn can leave a tool call without its result, and providers reject such a request.</p><h3>Losing track</h3><p>At turn 20 the whole-history request is 329,301 tokens, and 94 of them are the rules the agent is supposed to follow.</p><p>Pydantic AI Harness has a page on <a href="https://pydantic.dev/docs/ai/harness/system-reminders/">system reminders</a> that describes what long runs do to such rules: “Long multi-turn runs suffer instruction fade: after many tool-use turns the model progressively ignores the guidance it was given at the start.” I did not test reminders, and the replay says nothing about fade.</p><p>The other way to lose the rules is in your own code: a trim drops them, or a summary rewrites them. Marcus_MSC described this on <a href="https://www.reddit.com/r/AI_Agents/comments/1wbifl0/how_are_you_all_handling_session_bloat_and_state/p8tybl0/">r/AI_Agents on 9 September 2026</a>, writing about task statements and acceptance criteria: “They’re usually the oldest content, so dropping old turns can remove them while preserving recent tool noise, and repeated summarization can gradually rewrite them.”</p><p>The model cannot follow rules it is no longer sent, and inside one conversation the code that builds each request decides whether they are sent. The rule I would follow is on Pydantic AI’s <a href="https://pydantic.dev/docs/ai/core-concepts/message-history/">message history page</a>: “Text the model must follow at every step belongs in the agent’s instructions, which every request sends.” In the replay the instructions are the first message of every window, in all five ways, so no trim ever reached them.</p><h3>Your own agent</h3><p>Log one number for every model call, the share of the request that is tool output. If it is near the 99 percent this agent showed, shape and stub first. If the conversation itself is most of the window, a turn limit and a summary are where I would start, though this replay did not test that case.</p><p>When the count has to match the model, ask the provider. OpenAI’s <a href="https://developers.openai.com/api/docs/guides/token-counting">token counting endpoint</a> takes the same payload you would send to responses.create and returns an accurate count, and <a href="https://platform.claude.com/docs/en/build-with-claude/token-counting">Anthropic’s</a> counts with the tokenizer of the model you name. A local tokenizer, as in this replay, is good enough for comparing two ways of building the same window.</p><p>I ran the replay on 17 November 2026, with the GitHub responses fetched at 12:31 UTC that day, tiktoken 0.14.0 and the o200k_base encoding. The replay’s answers are a fixed text, so it measures size and leaves answer quality to tests like AheadKit’s. I read the documentation, the DataHub post and the Reddit comment cited here on the night of 5 to 6 November 2026 and AheadKit’s write-up on 19 and 20 November 2026, and this article describes them as they were on those dates.</p><p><em>I work on Mnemoverse; none of its code or data is involved in this replay.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=557b457e5fdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What persistent memory APIs support unified single-key authentication for REST and client SDKs?]]></title>
            <link>https://medium.com/@izgorodin/what-persistent-memory-apis-support-unified-single-key-authentication-for-rest-and-client-sdks-0a2819428b21?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a2819428b21</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 15:02:25 GMT</pubDate>
            <atom:updated>2026-11-23T15:02:25.072Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*jgfrK4xYTpXj2xhM8h1yhA.png" /></figure><p>On 17 November 2026 I sent one fake API key to six hosted memory APIs and wrote down what each of them answered. The vendors’ documentation says which memory APIs take one key for REST and for the SDKs, so that part needed no probe. Of the nine hosted memory APIs whose documentation I read on 5 November, five document one key for the REST API, the Python SDK and the TypeScript SDK alike: Hindsight Cloud, Letta Cloud, Mem0 Platform, Supermemory and Zep. Cognee Cloud, LangSmith Deployment, Memori Cloud and Mnemoverse use one key across most of their surfaces.</p><p>Since one key for REST and the SDKs is this common, I would not choose a vendor by it. I would look at two other things: the header each API reads the key from, and the answer you get when the key is not in that header. The documentation shows the header. To see the answers I had to send requests. Three of the six APIs gave the same answer to all three ways of sending the key, and two of those three gave it even for a path that does not exist.</p><p>With an SDK you do not have to think about the header, because the SDK writes it. In a curl command or an MCP client configuration, somebody writes it by hand, and when such a call fails, the error from the API is the first thing you can look at.</p><p>As the key I used the string probe-not-a-real-key-0000000000. I sent it with curl, one request at a time, to an endpoint on each API that requires a key, in the header the vendor documents and in another common header, and I sent the same request with no key at all. As a control I also asked each host for a path that does not exist. I created no accounts and no keys, and none of the requests could change anything on the other side.</p><p>Cognee Cloud, LangSmith Deployment and Memori Cloud are missing from the test. Cognee gives each customer its own address, and the shared host I tried, api.aws.cognee.ai, answered 404 to every request, with the fake key and without it. LangSmith gives each deployment its own address. For Memori Cloud, the pages I read include no REST reference.</p><p><strong>Hindsight Cloud</strong> (Authorization: Bearer)</p><ul><li>Fake key in the documented header: 401 “Authentication failed: Invalid API key format”</li><li>Fake key in X-Api-Key: 401 &quot;Authentication failed: API key required&quot;</li><li>No key: 401 “Authentication failed: API key required”</li><li>Made-up path: 404</li></ul><p><strong>Letta Cloud</strong> (Authorization: Bearer)</p><ul><li>Fake key in the documented header: 401 “Unauthorized”</li><li>Fake key in X-Api-Key: the same 401</li><li>No key: the same 401</li><li>Made-up path: the same 401</li></ul><p><strong>Mem0 Platform</strong> (Authorization: Token)</p><ul><li>Fake key in the documented header: 401 “Invalid API key. You can find your API key on <a href="https://app.mem0.ai/dashboard/api-keys">https://app.mem0.ai/dashboard/api-keys</a>.&quot;</li><li>Fake key after Bearer: 401 &quot;Given token not valid for any token type&quot;; in X-Api-Key: the same answer as no key</li><li>No key: 401 “Invalid API key. You can find your API key on <a href="https://app.mem0.ai/dashboard/api-keys">https://app.mem0.ai/dashboard/api-keys</a>.&quot;</li><li>Made-up path: 404</li></ul><p><strong>Mnemoverse</strong> (X-Api-Key or Authorization: Bearer)</p><ul><li>Fake key in the documented header: 401 “This value does not have the shape of a Mnemoverse API key (mk_live_ followed by 32 lower-case hex characters)”</li><li>Fake key after Token: 401 &quot;Missing API key. Send X-Api-Key header.&quot;</li><li>No key: 401 “Missing API key. Send X-Api-Key header.”</li><li>Made-up path: 401, the key-shape message</li></ul><p><strong>Supermemory</strong> (Authorization: Bearer)</p><ul><li>Fake key in the documented header: 401 “Unauthorized”, plus a note that the route is deprecated</li><li>Fake key in X-Api-Key: the same 401</li><li>No key: the same 401</li><li>Made-up path: 404</li></ul><p><strong>Zep</strong> (Authorization: Api-Key)</p><ul><li>Fake key in the documented header: 401 “unauthorized”</li><li>Fake key after Bearer: the same 401</li><li>No key: the same 401</li><li>Made-up path: the same 401</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_xJK9Fh5tGnOZ1zgnENhA.png" /></figure><h3>The same 401 for everything</h3><p>Zep and Letta gave the same 401 to a fake key in the documented header, to a key in a header they do not document, to no key, and to a path that does not exist. They check the key before they look at the path. As long as they reject your key, their 401 does not tell you whether the URL is right. Letta adds a longer sentence, “You are attempting to access a resource that you don’t have permission to access”, which reads like a diagnosis, but it was the same sentence in all four cases.</p><p>Supermemory gave one answer to the three ways of sending the key too, but it answered the made-up path with a 404 that points to its OpenAPI file. Even without a valid key, its 401 for the old list route carries a migration note: “POST /v3/documents/list is deprecated. Use POST /ns/{namespace}/list/documents.” Someone following an older tutorial learns the new route from the error, without a search.</p><p>I know the argument for answering everything the same way: tell a caller you do not trust as little as possible. For these cases I do not think it holds. With a uniform 401, a wrong header, a missing key and a wrong path all look like a bad key, and a new key fixes none of them. A message saying that no key arrived, or that the key has the wrong form, would describe only the request, which the caller wrote. It would say nothing about any account or about which keys exist.</p><h3>Answers that tell the cases apart</h3><p>Hindsight Cloud answered the fake key in the documented header with “Authentication failed: Invalid API key format”, and the same key in X-Api-Key, which it does not read, with &quot;Authentication failed: API key required&quot;, exactly as if I had sent nothing. That difference is the one I would want from every API, because it tells me whether my key reached the server at all. For bearer tokens, <a href="https://www.rfc-editor.org/rfc/rfc6750.html#section-3.1">RFC 6750</a> asks for the same split. A request with no credentials should get a challenge without an error code, and a rejected token gets error=&quot;invalid_token&quot;.</p><p>Mnemoverse keeps the two apart as well and names the shape it expects. A fake key in either documented header got “This value does not have the shape of a Mnemoverse API key (mk_live_ followed by 32 lower-case hex characters)”. A missing key, or one sent as Token, got &quot;Missing API key. Send X-Api-Key header.&quot;</p><p>Mem0 does half of it. A missing key and a wrong key get the same “Invalid API key”, so Mem0 calls a key invalid even when it never received one. A key sent as Bearer gets a different error, &quot;Given token not valid for any token type&quot;. If you see that one, you sent the scheme Mem0 documents for its MCP endpoint to its REST API.</p><h3>Header schemes</h3><p><a href="https://docs.hindsight.vectorize.io/cloud/api-integration/">Hindsight Cloud</a>, <a href="https://docs.letta.com/v1-sdk">Letta Cloud</a> and <a href="https://supermemory.ai/docs/authentication">Supermemory</a> put the key after Bearer in the Authorization header, Mem0 after Token, Zep after Api-Key, and <a href="https://mnemoverse.com/docs/api/reference?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=single-key-memory-api-auth">Mnemoverse</a> either after Bearer or in a separate X-Api-Key header. Mem0 uses different schemes on its own surfaces. Its <a href="https://docs.mem0.ai/platform/quickstart">quickstart</a> shows &quot;Authorization: Token $MEM0_API_KEY&quot;, while its <a href="https://docs.mem0.ai/platform/mem0-mcp">MCP page</a> tells clients without a browser sign-in to &quot;send your API key as a bearer token instead.&quot; Zep&#39;s <a href="https://help.getzep.com/sdk-reference/project/get">project reference</a> gives the exact form: &quot;Type &#39;Api-Key&#39; followed by a space and the project API key.&quot; Cognee Cloud, which is not among the six I tested, documents two headers for API clients on its <a href="https://docs.cognee.ai/cognee-cloud/ui/api-keys">API keys page</a>, X-Api-Key and X-Tenant-Id, and adds that agent plugins and MCP configs &quot;never need the Tenant ID or User ID.&quot;</p><p>In <a href="https://github.com/topoteretes/cognee/issues/5023">cognee issue 5023</a>, opened on 10 September 2026 and closed on 13 September, the problem was the scheme. Its author, borgo, wrote that a self-hosted Cognee server “accepts API keys created through POST /api/v1/auth/api-keys only through the X-Api-Key transport; the Bearer backend expects a JWT.” With cognee-mcp 0.5.5, “every tool call fails with 401”.</p><p>If your agent reaches memory over MCP, I would read the vendor’s MCP page and not only its REST page, because the hosted MCP endpoint is where one key most often stops being enough. Cognee’s <a href="https://docs.cognee.ai/cognee-cloud/connections/cloud-mcp">cloud MCP page</a> reads “The hosted server does not accept API keys.” Letta’s <a href="https://docs.letta.com/platform/hosted-mcp">hosted MCP page</a> asks for the opposite: “Create an API key in the Letta web app and send it as a bearer token”.</p><h3>Before the key goes into a config</h3><p>My rule for debugging is to go and look before I guess. For an API key, looking means four requests, and I would rather send them before the key goes into a proxy, a CI secret or an MCP configuration than after the first 401. Three go to the same endpoint: one with no key, one with a made-up key in the header your vendor documents, and one with the same made-up key in a header it does not document. The fourth goes to a made-up path.</p><pre>URL=https://api.vendor.example/v1/some-endpoint<br>FAKE=not-a-real-key<br>DOC=&quot;Authorization: Bearer $FAKE&quot;   # the header your vendor documents<br>OTHER=&quot;X-Api-Key: $FAKE&quot;            # a header it does not document<br>curl -s -w &#39; %{http_code}\n&#39; &quot;$URL&quot;<br>curl -s -w &#39; %{http_code}\n&#39; &quot;$URL&quot; -H &quot;$DOC&quot;<br>curl -s -w &#39; %{http_code}\n&#39; &quot;$URL&quot; -H &quot;$OTHER&quot;<br>curl -s -w &#39; %{http_code}\n&#39; &quot;${URL%/*}/made-up-path&quot; -H &quot;$DOC&quot;</pre><p>For Mem0, DOC would be Authorization: Token $FAKE, and for Zep Authorization: Api-Key $FAKE. The key has to be fake, because a real one would succeed and tell you nothing about the errors you will see once something breaks. My probe sent the same four kinds of request to each of the six APIs, with that API&#39;s own endpoint, method and headers.</p><p>If the second answer differs from the first, the API tells a missing key from a wrong one, and when your real key fails later, its error can show whether the key arrived at all. If they are the same, as they were at four of the six, a 401 will not tell you that, so test the real configuration with a request that only a working key can pass. The third answer shows what a client that sends the wrong scheme will see. At Hindsight Cloud that was the no-key message, and at Mem0, for Bearer, a message of its own. The fourth shows which check comes first. A 404 there means the API looks at the path before the key, and a 401 means that while the key is not accepted, a wrong URL looks exactly like a wrong key.</p><p>The requests went out on 17 November 2026 from one machine, and the error texts above are copied from the answers of that day. On 19 November I repeated the no-key and documented-header requests, and the answers had not changed. I read the documentation of all nine APIs on 5 November, and RFC 6750 on 19 November, the same day I read the quoted pages and the GitHub issue again. Two of those pages had changed in between, so for them I quote the 19 November wording. Pages and error texts change, and the ones here are as they were on those days.</p><p><em>I work on Mnemoverse; its answers in the list above come from the same fake key, sent the same three ways, as the other five.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a2819428b21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do Hebbian learning and association networks work in agentic memory architectures?]]></title>
            <link>https://medium.com/@izgorodin/how-do-hebbian-learning-and-association-networks-work-in-agentic-memory-architectures-a2509649b54c?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2509649b54c</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai-memory]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 14:44:04 GMT</pubDate>
            <atom:updated>2026-11-22T14:44:04.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*R7WFNscDeX-ZIsM2UJzXvw.png" /></figure><p>Hebbian learning in agent memory is a rule for one number, the weight of the link between two stored items. When the two come back in the same retrieval, the weight goes up, and in most working versions it decays when they stop coming back together. An association network is the graph of those weighted links. It is often read by spreading activation: the items that match the query pass part of their activation along their links, so a memory can come back without resembling the query.</p><p>That is the narrow meaning of the word, and I think it is the one worth keeping. Many memory systems called associative do something else under the same name. Some write a link once, when a memory is stored. Others rank by embedding similarity and keep no links at all. A third kind moves a weight when an answer is rated; if that rule also needs the two items to be used together, the textbook calls it a three-factor rule. Each of these can be a sound design, but the word associative does not say which one a product runs, and the mechanisms break on different inputs. Similarity misses a memory that is needed but does not resemble the question; co-use weighting misses a correction that appears only once.</p><h3>Hebb’s rule and its two conditions</h3><p>Donald Hebb stated his postulate in 1949, and the <a href="https://en.wikipedia.org/wiki/Hebbian_theory">Hebbian theory page</a> on Wikipedia quotes it: “When an axon of cell A is near enough to excite a cell B and repeatedly or persistently takes part in firing it, some growth process or metabolic change takes place in one or both cells such that A’s efficiency, as one of the cells firing B, is increased.” The slogan about neurons that fire together and wire together came later, and the textbook <a href="https://neuronaldynamics.epfl.ch/online/Ch19.S1.html">Neuronal Dynamics</a> finds it “less precise than Hebb’s original formulation”, because in Hebb’s version cell A has to fire slightly before cell B.</p><p>For software, the useful part is in <a href="https://neuronaldynamics.epfl.ch/online/Ch19.S2.html">section 19.2</a> of the same book: “There are two aspects in Hebb’s postulate that are particularly important; these are locality and joint activity.” The <a href="https://neuronaldynamics.epfl.ch/online/Ch19.S2.html">same section</a> draws the line: “If the Taylor expansion had been stopped before the bilinear term, the learning rule would be called ‘non-Hebbian’, because pre- or postsynaptic activity alone induces a change of the synaptic efficacy and joint activity is irrelevant.”</p><p>I like this definition because it can be checked against code. Raise one memory’s score each time it is read, and you have a rule on one side. Strengthen the link between two memories each time they come back together, and you have a rule on both. Only the second is Hebbian by the book, and the two behave differently in a running system: the first moves memories that are read often up the ranking, and the second changes which memories come back along with a given one.</p><p><a href="https://neuronaldynamics.epfl.ch/online/Ch19.S1.html">Section 19.1</a> says the rule has no teacher: “We emphasize that Hebbian learning is unsupervised, because there is no notion of ‘good’ or ‘bad’ changes of a synapse.” The <a href="https://en.wikipedia.org/wiki/Hebbian_theory">Hebbian theory page</a> explains that the plain rule is unstable, so working versions add decay or a cap on the weight. A rule that also listens to an outcome depends, in the words of <a href="https://neuronaldynamics.epfl.ch/online/Ch19.S4.html">section 19.4</a>, “on three factors, i.e., the two Hebbian factors and the neuromodulator”; the book calls these “three-factor learning rules”, and the third factor is “most often taken as ‘reward minus expected reward’”. In an agent, the rating of an answer plays that part.</p><h3>Spreading activation is a search</h3><p>On Hacker News on 4 November 2026, someone asking for advice on analogical retrieval <a href="https://news.ycombinator.com/item?id=50361973">wrote</a>: “I want my model to partially go off on a tangent, in a good way”. A tangent here means reaching a memory that does not resemble the query, and a link between memories is one way to get there. One classic way to read such a network is spreading activation, which <a href="https://en.wikipedia.org/wiki/Spreading_activation">Wikipedia</a> defines as “a method for searching associative networks”: “The search process is initiated by labeling a set of source nodes (e.g. concepts in a semantic network) with weights or ‘activation’ and then iteratively propagating or ‘spreading’ that activation out to other nodes linked to the source nodes.”</p><p>The definition calls it searching, and that is accurate: spreading activation walks weights that already exist and by itself changes none of them. A system can read its graph this way and never learn from use, and another can learn from use and still find things only by similarity. So for any memory called associative I would ask two things separately: what writes a link, and what reads it.</p><h3>Five things called association</h3><p>In the papers and documentation I read for this question, five different mechanisms go by the name. Four decide which items count as related. The fifth reads the result.</p><p><strong>Co-use strengthening</strong></p><ul><li>What creates or moves the link: Two items retrieved or used together; unused links decay</li><li>When it changes: On every read that returns both</li><li>In the textbook’s terms: Hebbian, joint activity of both sides</li></ul><p><strong>Link written at storage</strong></p><ul><li>What creates or moves the link: An extracted fact, an entity two memories share, a link the model chose, a count made while the graph is built</li><li>When it changes: On write; a read leaves it as it was</li><li>In the textbook’s terms: No learning rule; set when written</li></ul><p><strong>Similarity</strong></p><ul><li>What creates or moves the link: Closeness of two embeddings</li><li>When it changes: Computed per query, nothing kept</li><li>In the textbook’s terms: A score per item, with no link at all</li></ul><p><strong>Outcome weighting</strong></p><ul><li>What creates or moves the link: A rating or reward on an answer that used the items</li><li>When it changes: After the rating</li><li>In the textbook’s terms: Three-factor, if it also needs joint activity</li></ul><p><strong>Spreading activation</strong></p><ul><li>What creates or moves the link: Activation passed along existing weights from the items that match the query</li><li>When it changes: During the read</li><li>In the textbook’s terms: A search; the weights stay as they are</li></ul><p>Real systems mix several entries, and the second entry sometimes carries the name Hebbian as well. BambooKG, a preprint, describes <a href="https://arxiv.org/abs/2510.25724">in its abstract</a> “a knowledge graph with frequency-based weights on non-triplet edges which reflect link strength, drawing on the Hebbian principle of ‘fire together, wire together’.” Per the <a href="https://arxiv.org/html/2510.25724v1">full text</a>, those weights are counted while the graph is built. That is a fair use of the slogan, but a build-time count and a weight moved by reads behave differently once the system is in use, so I keep them in separate entries.</p><h3>HeLa-Mem and the other papers</h3><p>For the first entry, the example I would point to is HeLa-Mem, accepted to ACL 2026 and listed in the Anthology as <a href="https://aclanthology.org/2026.acl-long.625/">2026.acl-long.625</a>. Its <a href="https://arxiv.org/abs/2604.16839">abstract</a> names what similarity search misses, “the associative structure of human memory, wherein related experiences progressively strengthen interconnections through repeated co-activation”.</p><p>The <a href="https://arxiv.org/html/2604.16839v1">full text</a> states the rule in one line, “edge weights strengthen when memories are co-activated during retrieval”, and the update has two terms. The previous weight shrinks by a decay rate, and a reinforcement is added when both memories are in the current retrieved set, so a link grows only with joint use and fades without it. Reading takes two paths. Similarity finds the first memories, learned associations bring in more, and the <a href="https://arxiv.org/html/2604.16839v1">paper</a> ties this to how people recall: “it is a spreading activation process where one thought triggers another.” I found no term in the update for whether an answer was right, so by the textbook HeLa-Mem is Hebbian in the strict sense, with decay added.</p><p><a href="https://arxiv.org/abs/2601.02744">SYNAPSE</a> “models memory as a dynamic graph where relevance emerges from spreading activation rather than pre-computed links.” In its <a href="https://arxiv.org/html/2601.02744v3">full text</a>, edges come from time, embedding similarity and co-occurrence, and the method section does not describe learning edge weights from use. <a href="https://arxiv.org/abs/2405.14831">HippoRAG</a> combines “LLMs, knowledge graphs, and the Personalized PageRank algorithm”. The model extracts the graph, a step the <a href="https://arxiv.org/html/2405.14831v3">full text</a> calls “open information extraction (OpenIE)”, and the read is PageRank from the query’s concepts.</p><p><a href="https://ar5iv.labs.arxiv.org/html/2304.03442">Generative Agents</a> scores each memory alone, and in its retrieval score, “Recency assigns a higher score to memory objects that were recently accessed”. By the textbook’s definition that is a rule on one side, so Generative Agents does not belong in the Hebbian entry.</p><p><a href="https://arxiv.org/abs/2607.24368">InMind</a>, a benchmark preprint, makes the case for links with an example similarity cannot handle: “A tree-nut allergy should change the answer to a macaron request through their almond-flour ingredient, yet the two texts share no cue a retriever can see.” Per the <a href="https://arxiv.org/abs/2607.24368">abstract</a>, “six vector, graph, and agentic memory systems reach at most 14.4 percent, even though they recall the same facts on demand at up to 100 percent”. I read every number as the output of its recipe. Here the recipe is the authors’ own benchmark, and the abstract does not name the six systems, so I do not name them either.</p><h3>The products, by their own documentation</h3><p>Whether a read writes to a product’s graph was the subject of <a href="https://dev.to/izgorodin/does-my-ai-agent-memory-graph-change-when-it-reads-or-only-when-it-writes-20mj">an earlier article</a>. This time I read the vendors’ pages for where a link comes from and what moves its weight.</p><p>Zep builds its graph from facts a model extracts, and <a href="https://help.getzep.com/v4/how-graph-creation-works">How Graph Creation Works</a> says “Each extracted fact is compared to existing edges: duplicates merge, and contradictions invalidate older facts rather than leaving conflicting truths side by side.” Zep takes feedback on agent Skills; <a href="https://help.getzep.com/v4/agent-skills/retrieve-skills">Retrieve Skills</a> says “This feedback controls the trust value and the search rank of each Skill.” The pages I read do not describe a graph edge strengthening because two facts came back together. An edge changes when a newer fact invalidates it, which is what a fact that changes over time needs.</p><p>Mem0 links memories through the entities they share; its <a href="https://docs.mem0.ai/platform/features/graph-memory">Graph Memory</a> page says “Two entities are related when they co-occur in one or more memories”. On a search, connected memories get a ranking boost, which the page says is combined with the vector and keyword scores into one score. Feedback is given per memory, and the <a href="https://docs.mem0.ai/platform/features/feedback-mechanism">Feedback Mechanism page</a> says “Mem0 continuously learns from this feedback, refining its memory generation and search capabilities”. It does not say whether ratings change the entity links.</p><p>Among Zep, Mem0, Cognee and Letta, Cognee is the one whose documentation says the outcome of use moves the weights of graph edges. The <a href="https://docs.cognee.ai/core-concepts/main-operations/improve">Improve</a> page says “Session feedback updates feedback_weight on graph nodes and edges that were used during retrieval.&quot; The pages describe a weight on each element an answer used, moved by the rating, and they do not call it Hebbian.</p><p>In Letta, memory is a set of files the agent edits. Per the <a href="https://docs.letta.com/agent-sdk/memory">Memory page</a>, “An agent’s memory is its own: it persists across conversations, follows the agent between models and computers, and the agent edits it as it learns.” On the pages I read, the model writes the structure and no rating is described. Background subagents consolidate lessons into memory.</p><p>For Mnemoverse, the <a href="https://mnemoverse.com/docs/api/overview?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=hebbian-learning-agent-memory">API overview</a> describes “A graph of concepts that occur together in a memory or in a rated recall, readable with memory_graph&quot;. The <a href="https://mnemoverse.com/docs/api/reference?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=hebbian-learning-agent-memory">API reference</a> says a rating &quot;moves each memory&#39;s valence and the association links between its concepts&quot;, that a read expands through those links by default (&quot;Expand via concept associations (default: true)&quot;), and that each edge read back from the graph carries a weight documented as &quot;Co-activation strength&quot; and a &quot;Co-activation count&quot;.</p><p><strong>HeLa-Mem (research)</strong></p><ul><li>Where a link comes from: Joint retrieval</li><li>Effect of use on the weight: Grows with co-retrieval, decays without</li><li>What a read does: Similarity, then spreading activation</li><li>Effect of an outcome: Not described in the update</li></ul><p><strong>SYNAPSE (research)</strong></p><ul><li>Where a link comes from: Time, similarity, co-occurrence</li><li>Effect of use on the weight: Not described in the method</li><li>What a read does: Spreading activation with inhibition and decay</li><li>Effect of an outcome: Not described</li></ul><p><strong>HippoRAG (research)</strong></p><ul><li>Where a link comes from: Triples extracted by the model; synonym edges by similarity</li><li>Effect of use on the weight: Not described</li><li>What a read does: Personalized PageRank from the query’s concepts</li><li>Effect of an outcome: Not described</li></ul><p><a href="https://arxiv.org/abs/2502.12110"><strong>A-MEM</strong></a><strong> (research)</strong></p><ul><li>Where a link comes from: A link the model sets between similar notes</li><li>Effect of use on the weight: No link weight described; a new note can update older notes’ descriptions</li><li>What a read does: Similarity, then the notes linked to what was found</li><li>Effect of an outcome: Not described</li></ul><p><strong>Generative Agents (research)</strong></p><ul><li>Where a link comes from: Reflections point to the memories they cite; retrieval scores each memory alone</li><li>Effect of use on the weight: Recency of each memory</li><li>What a read does: Recency, importance and similarity</li><li>Effect of an outcome: Not described</li></ul><p><a href="https://arxiv.org/abs/2605.09942"><strong>HAGE</strong></a><strong> (research)</strong></p><ul><li>Where a link comes from: Learned edge representations</li><li>Effect of use on the weight: Through training</li><li>What a read does: Query-dependent routing</li><li>Effect of an outcome: Yes, reinforcement learning on tasks</li></ul><p><strong>Zep and Graphiti</strong></p><ul><li>Where a link comes from: Facts extracted by a model</li><li>Effect of use on the weight: Invalidated by newer facts; strengthening not described</li><li>What a read does: Semantic, keyword and graph traversal</li><li>Effect of an outcome: Feedback on agent Skills; on graph edges not described</li></ul><p><strong>Mem0</strong></p><ul><li>Where a link comes from: Entities shared between memories</li><li>Effect of use on the weight: on links, not described; opt-in <a href="https://docs.mem0.ai/platform/features/memory-decay">memory decay</a> reinforces each memory a search returns</li><li>What a read does: Ranking boost combined with vector and keyword scores</li><li>Effect of an outcome: Feedback per memory; effect on links not described</li></ul><p><strong>Cognee</strong></p><ul><li>Where a link comes from: Entities and relationships an LLM <a href="https://docs.cognee.ai/core-concepts/main-operations/legacy-operations/cognify">extracts</a></li><li>Effect of use on the weight: Through feedback weights</li><li>What a read does: Vector seeds, then a <a href="https://docs.cognee.ai/core-concepts/main-operations/legacy-operations/search">1-hop graph expansion</a>; feedback weights count once you opt in</li><li>Effect of an outcome: Yes, on nodes and edges an answer used</li></ul><p><strong>Letta</strong></p><ul><li>Where a link comes from: Memory files the agent edits</li><li>Effect of use on the weight: The agent rewrites them</li><li>What a read does: The agent reads what it needs</li><li>Effect of an outcome: No rating described; background subagents consolidate lessons into memory</li></ul><p><strong>Mnemoverse</strong></p><ul><li>Where a link comes from: Concepts in one memory or in a rated recall</li><li>Effect of use on the weight: Ratings move the links</li><li>What a read does: Semantic search, then expansion through learned concept links</li><li>Effect of an outcome: Yes, ratings</li></ul><p>In this list, not described means the pages I read do not describe it. It does not mean the system lacks it, and I tested none of these systems.</p><h3>The correction that appears once</h3><p>On r/AI_Agents, the author of a <a href="https://www.reddit.com/r/AI_Agents/comments/1wevwb5/my_agents_memory_after_25_weeks_four_graphs_no/">thread about a memory after 25 weeks</a> runs co-use weighting in one of its graphs: “An associative graph where edges strengthen on co-access and decay when unused, deliberately untyped, it’s just reinforcement.” A commenter, alaattincagil, <a href="https://www.reddit.com/r/AI_Agents/comments/1wevwb5/my_agents_memory_after_25_weeks_four_graphs_no/p9hj5gr/">proposed a test</a>: “an important instruction that appears only once.” The author <a href="https://www.reddit.com/r/AI_Agents/comments/1wevwb5/my_agents_memory_after_25_weeks_four_graphs_no/p9kibos/">replied</a>: “the correction that appears once has nothing to co-occur with, so it’s exactly what co-access weighting is worst at.” In <a href="https://www.reddit.com/r/AI_Agents/comments/1wevwb5/my_agents_memory_after_25_weeks_four_graphs_no/p9kh9ri/">another reply</a> the same author wrote: “pruning is currently silent, so an edge that was removed and an edge that never existed look identical afterward.”</p><p>A co-use rule has no teacher, as the textbook says, so it strengthens what is used together and cannot tell frequent from right. I would let such weights decide what comes back along with a memory, and never what an agent takes as true. CODE_HEIST, in a <a href="https://www.reddit.com/r/AI_Agents/comments/1ucf1zz/what_if_ai_memory_worked_like_a_brain_instead_of/ot3fu6u/">thread on brain-like memory</a>, wrote that “forgotten truth can be more dangerous than retained noise” and drew a similar line: “Facts should require explicit invalidation, while preferences and weak associations can decay.” Swarm-Stack, in the <a href="https://www.reddit.com/r/AI_Agents/comments/1ucf1zz/what_if_ai_memory_worked_like_a_brain_instead_of/ot8g2e3/">same thread</a>, named the case a contradiction check does not catch: “no contradiction, just an outdated entry that looks correct until you act on it.”</p><h3>Telling them apart from outside</h3><p>Most of these mechanisms can be told apart from outside the system. If a store exposes edge weights, read one, retrieve its two memories together several times without rating anything, and read it again, with a pair never retrieved together as the control. If only the first pair moved, the store strengthens links on co-use. A link that exists right after you write two memories sharing an entity, with nothing read in between, was written at storage. One rated answer shows whether a rating moves the memory, the links between its items, or both. A link left unused for a while shows whether links decay, and whether a pruned link can be told from one that never existed.</p><p>Two more checks look at answers instead of weights, so they work even when a store does not expose its links. One has the InMind shape: a question that shares no words with the memory it needs, like the allergy and the almond-flour macaron, asked with the linking memory stored and again without it. If the answer appears only when the link exists, the read follows associations. The other is alaattincagil’s single instruction, made harder. After many writes that repeat an old habit, write one correction once, then ask a question it should change.</p><p>A Python implementation of a long-term associative memory, with a control, is in <a href="https://dev.to/izgorodin/how-can-i-implement-long-term-associative-memory-in-python-26nm">another earlier article</a>. The library page <a href="https://mnemoverse.com/docs/library/hebbian-memory-for-ai-agents?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=hebbian-learning-agent-memory">Hebbian memory for AI agents</a> describes how Mnemoverse expands a read through learned concept associations and takes outcome feedback.</p><p>I read every source quoted here on 5 November 2026 and checked each quotation a second time with a separate read. Papers get new versions and vendor pages change, so the text describes them as they stood on that day.</p><p><em>I work on Mnemoverse; its entry in the list comes from its public documentation, read on the same day and in the same way as every other entry.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2509649b54c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do I pass historical execution context to an external protocol assistant?]]></title>
            <link>https://medium.com/@izgorodin/how-do-i-pass-historical-execution-context-to-an-external-protocol-assistant-25bd25e4b74c?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/25bd25e4b74c</guid>
            <category><![CDATA[a2a]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 12:46:22 GMT</pubDate>
            <atom:updated>2026-11-21T13:04:59.149Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*X7SKzweS3fWjI-BZ8dXTNA.png" /></figure><p>Send the remote assistant a short brief, and keep the full history where you can read it again: on your side, or in a store both sides can reach. The brief travels in the one request the protocol carries in. In A2A 1.0 that request is a single Message. Put the brief in its text or data parts, name earlier tasks in referenceTaskIds, and reuse the contextId when the remote agent should keep what it already saw, which the specification allows and does not require. Over MCP the brief is a tool argument. For a Claude subagent it is the prompt string.</p><p>The brief holds the objective, the decisions with their reasons, the dead ends, a list of what is done and must not be redone, references to sources, the status of each claim and the constraints. In the released A2A 1.0, history and historyLength only control what the server sends back, and neither of them carries history in.</p><p>I think of the model weights as the engine. What makes an agent work over time is everything around them: memory, notes, rules, skills, the workspace. Hand the work to an assistant across a protocol, and on the first call the far side has its own engine and its own surroundings, and of yours only the one message. Everything your own agent built up around its engine stays behind, unless you send it or point to where it lives.</p><p>Sending everything is the obvious move, and I would not make it, even where a stack accepts the whole transcript. A receiver of a transcript gets all of it, including what it should not see, and it cannot tell what you checked from what you guessed. A brief can say which claims were checked, and you can test whether it arrived.</p><h3>The field called history</h3><p>In April 2025 patwlan asked in <a href="https://github.com/a2aproject/A2A/issues/274">issue 274</a>: “What is the history field in the Task object?” The <a href="https://a2a-protocol.org/latest/specification/">specification</a> defines historyLength as &quot;The maximum number of most recent messages from the task&#39;s history to retrieve in the response.&quot; and adds &quot;The server MUST NOT return more messages than the provided value, but MAY apply a lower limit.&quot; The field and the parameter both describe what comes back to the client.</p><p>A 1.0 send has no field for earlier messages, because a send carries one message. Sam Betts opened the Coherent Task History epic in <a href="https://github.com/a2aproject/A2A/issues/1991">issue 1991</a> on 25 June 2026 with exactly this: “There is no standard way to send a pre-existing message history (e.g. from a chat completions-style API) into SendMessage.”</p><p>In <a href="https://github.com/a2aproject/A2A/issues/602">issue 602</a>, pstephengoogle, a contributor, suggested a workaround: “You could provide the context as a DataPart in the message itself.” The same contributor named its cost there, “When you approach it this way, you have tightly coupled the client and the server expectations of structure.”, and pointed to an extension instead. For a brief, I think the coupling is a fair price. A brief with a fixed set of fields is a small contract between two agents, and when the remote agent belongs to someone else, its shape can be agreed through an extension declared on the Agent Card. With a whole transcript in a data part, the receiver has to guess the structure of every turn, and nothing on the Agent Card tells it how.</p><p>A change is proposed for 1.1 and not released. The <a href="https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md">draft specification</a> on the dev-1.1 branch says “historyLength (and the history field it controls) is deprecated as of version 1.1 in favour of timelineLength and the task timeline.”, and <a href="https://github.com/a2aproject/A2A/blob/dev-1.1/adrs/adr-002-coherent-task-history.md">ADR-002</a> behind the change still carries “Status: Proposed”. In 1.0, read history to see what the server kept, and send nothing through it. The same draft says servers keep filling it throughout the 1.x line and remove it in 2.0.</p><h3>Ten stacks side by side</h3><p>Each entry below is what the stack’s own documentation says; I did not run any of them.</p><p><a href="https://a2a-protocol.org/latest/specification/"><strong>A2A 1.0</strong></a></p><ul><li>Carries prior context in: One Message per send: text, raw, url or data parts, metadata, referenceTaskIds</li><li>Returns history to the caller: Task history, bounded by historyLength</li><li>Keeps it between calls: The remote agent may, per contextId; not required</li><li>Limits and defaults stated: At most historyLength messages, possibly fewer; unset is implementation-defined; not every message is guaranteed to be stored</li></ul><p><a href="https://modelcontextprotocol.io/specification/2026-07-28/server/tools"><strong>MCP 2026-07-28</strong></a></p><ul><li>Carries prior context in: Tool arguments, including server-minted handles</li><li>Returns history to the caller: Tool results, which may link to resources</li><li>Keeps it between calls: The server, under a handle the model carries forward</li><li>Limits and defaults stated: No payload limit on the pages read; handle retention belongs in the creation tool’s description</li></ul><p><a href="https://developers.openai.com/api/docs/guides/conversation-state"><strong>OpenAI Responses API</strong></a></p><ul><li>Carries prior context in: Full input, previous_response_id, or a conversation</li><li>Returns history to the caller: Stored responses, retrievable through the API; store: false turns storage off</li><li>Keeps it between calls: OpenAI, for previous_response_id and conversations</li><li>Limits and defaults stated: Responses kept 30 days by default; conversations not subject to that TTL; chained input tokens billed</li></ul><p><a href="https://openai.github.io/openai-agents-python/handoffs/"><strong>OpenAI Agents SDK</strong></a><strong> handoff, in one process</strong></p><ul><li>Carries prior context in: The entire previous conversation by default; input_filter narrows it</li><li>Returns history to the caller: result.to_input_list()</li><li>Keeps it between calls: Your code (session) or OpenAI (conversation_id, previous_response_id), not both in one run</li><li>Limits and defaults stated: SessionSettings(limit=N) retrieves the most recent N items; nested handoff history is an opt-in beta</li></ul><p><a href="https://code.claude.com/docs/en/agent-sdk/subagents"><strong>Claude Agent SDK</strong></a><strong> subagent, in one process</strong></p><ul><li>Carries prior context in: Only the Agent tool’s prompt string</li><li>Returns history to the caller: The subagent’s final report</li><li>Keeps it between calls: Session files on the machine that created them; a SessionStore adapter can mirror transcripts</li><li>Limits and defaults stated: Not stated on the pages read</li></ul><p><a href="https://docs.langchain.com/langsmith/server-a2a"><strong>LangSmith Agent Server</strong></a><strong> A2A endpoint, for LangGraph</strong></p><ul><li>Carries prior context in: A2A text and file parts, into the graph’s messages key</li><li>Returns history to the caller: The whole context’s history by default; LangChain’s historyScope narrows it to the task</li><li>Keeps it between calls: The deployment, per conversation; contextId becomes thread_id for tracing</li><li>Limits and defaults stated: historyLength caps at 10; streaming ignores both history options</li></ul><p><a href="https://learn.microsoft.com/en-us/agent-framework/integrations/by-component/agent-services/a2a"><strong>Microsoft Agent Framework</strong></a><strong> A2A agent</strong></p><ul><li>Carries prior context in: task_id for a task awaiting input, reference_task_ids for an earlier one; listed keys in the request metadata</li><li>Returns history to the caller: Not covered on the page read</li><li>Keeps it between calls: The caller’s session: session.to_dict() keeps context, task ID and task state together</li><li>Limits and defaults stated: No run kwargs sent by default; forwarded metadata is not added to message history</li></ul><p><a href="https://developer.watson-orchestrate.ibm.com/agents/connect_agent"><strong>IBM watsonx Orchestrate</strong></a><strong>, external A2A agents</strong></p><ul><li>Carries prior context in: A sendHistory setting for conversation history; context variables in message metadata</li><li>Returns history to the caller: Not covered on the page read</li><li>Keeps it between calls: Not covered on the page read</li><li>Limits and defaults stated: Agents invoked during a run see no context variables by default; context_access_enabled turns them on</li></ul><p><a href="https://adk.dev/a2a/intro/"><strong>Google ADK</strong></a></p><ul><li>Carries prior context in: A <a href="https://adk.dev/a2a/quickstart-consuming/">RemoteA2aAgent</a> sub-agent translates between the A2A format and ADK Events; what it sends is not covered on the pages read</li><li>Returns history to the caller: Not covered on the pages read</li><li>Keeps it between calls: Each agent’s own <a href="https://adk.dev/sessions/session/">Session</a>; exposed with <a href="https://adk.dev/a2a/quickstart-exposing/">to_a2a()</a>, in-memory sessions and an InMemoryTaskStore by default</li><li>Limits and defaults stated: Not covered on the pages read</li></ul><p><a href="https://docs.crewai.com/en/learn/a2a-agent-delegation"><strong>CrewAI</strong></a><strong> A2A delegation</strong></p><ul><li>Carries prior context in: The delegated task, its input_files as FileParts, and a response_model schema in the message metadata</li><li>Returns history to the caller: The remote agent’s result, returned to the CrewAI workflow</li><li>Keeps it between calls: When exposed as an A2A server, open-source CrewAI keeps task and context state in memory on one process; <a href="https://docs-platform.crewai.com/platform/en/features/a2a">AMP</a> persists it</li><li>Limits and defaults stated: max_turns bounds turns with the A2A agent; a requested response_model need not be honored</li></ul><p>Not covered means only that the pages I read do not describe that point, and says nothing about whether the product has it. The OpenAI Agents SDK and Claude Agent SDK entries are handoffs inside one process. They stay in the list because they show what reaches a receiver by default, and their defaults are opposite. One forwards the entire previous conversation. The other gives the subagent nothing from the parent except a prompt string.</p><h3>Where the history lives</h3><p>The A2A protocol leaves this open. The <a href="https://a2a-protocol.org/latest/specification/">specification</a> says “Agents MAY use the contextId to maintain internal state, conversational history, or LLM context across multiple interactions”, and “Agents MAY implement context expiration or cleanup policies and SHOULD document any such policies”. So the remote agent may keep the history or leave it to the client, and the A2A issues show both. pstephengoogle described the expectation in <a href="https://github.com/a2aproject/A2A/issues/602">issue 602</a>: “The expectation is that the agent you are interacting with is responsible for the conversation history, and is associated with the context_id that it returns with any response (Message or Task).” Kuang Mi, opening <a href="https://github.com/a2aproject/A2A/issues/2061">issue 2061</a> on 15 July 2026, described the current behavior the other way: “If a client wants a conversation, it must manually track and resend history.” Both are comments by individual people; neither is a decision of the project.</p><p>On the first call, assume the remote agent knows only what you send. On later calls with the same contextId, read its documentation for what it keeps and for how long, and rely on nothing it does not document.</p><p>LangSmith’s A2A endpoint keeps the conversation on the server, and its <a href="https://docs.langchain.com/langsmith/server-a2a">A2A page</a> tells the client how to continue it: “For all subsequent messages in the conversation, send back the contextId from the prior response and omit taskId, so each turn opens a new task inside the same conversation.” The OpenAI Agents SDK separates client-managed history from OpenAI-managed state, and its <a href="https://openai.github.io/openai-agents-python/running_agents/">running agents page</a> warns about mixing the two: “Mixing client-managed history with OpenAI-managed state can duplicate context unless you are deliberately reconciling both layers.” Anthropic’s <a href="https://code.claude.com/docs/en/agent-sdk/sessions">Agent SDK sessions page</a> says “Session files are local to the machine that created them.” and then gives the advice I would give for any remote assistant: “Don’t rely on session resume. Capture the results you need (analysis output, decisions, file diffs) as application state and pass them into a fresh session’s prompt.”</p><p>A third keeper is a store that neither agent owns. The Microsoft ISE team described one in a <a href="https://devblogs.microsoft.com/ise/a2a-context-passing-multi-agent-systems/">post of 26 June 2026</a>: “In this pattern, the coordinator retrieves context from the Context Store, optionally summarizes it, and embeds it directly in the message payload.” Anthropic’s <a href="https://www.anthropic.com/research/multi-agent-research-system">multi-agent research system</a> also keeps work outside the agents: “Subagents call tools to store their work in external systems, then pass lightweight references back to the coordinator.” Mnemoverse documents a version of this for A2A on its <a href="https://mnemoverse.com/docs/library/a2a-integration-howto?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=pass-execution-context-protocol-assistant">integration page</a>, where the task carries an explicit domain and “The receiving agent reads memory for that domain before doing work.” In that pattern, the same page says, “Mnemoverse is the memory behind your own agents, not an agent they delegate to.”</p><p>MCP has no implicit keeper. Its <a href="https://modelcontextprotocol.io/specification/2026-07-28/basic">basic specification</a> says “The Model Context Protocol (MCP) is a stateless protocol: all the information needed to process a request is contained in the request itself.” I wrote about what that means across client connections in an <a href="https://dev.to/izgorodin/how-do-i-give-my-llm-workflow-persistent-context-across-independent-client-connections-51e6">earlier article</a>.</p><p>Whichever keeper you pick, name one for each piece of history and pass its key on every call: the contextId, the thread, the conversation or the store&#39;s namespace. OpenAI wrote its warning about duplicated context for one SDK. I read it as advice for every stack in the list.</p><p>Size and retention limits are left to implementations. An open <a href="https://github.com/a2aproject/A2A/issues/2220">issue 2220</a> of 9 September 2026 says “The spec defines no bounded limits for several protocol inputs that map directly to server-side storage and memory.” The stated ones are few: <a href="https://docs.langchain.com/langsmith/server-a2a">LangSmith</a> caps historyLength at 10, and <a href="https://developers.openai.com/api/docs/guides/conversation-state">OpenAI</a> keeps responses for 30 days by default.</p><h3>The handoff brief</h3><p>Anthropic’s <a href="https://code.claude.com/docs/en/agent-sdk/subagents">subagents page</a> states the constraint that holds for any remote assistant on a first call: “The only content you pass from parent to subagent is the Agent tool’s prompt string, so include any file paths, error messages, or decisions the subagent needs directly in that prompt.” Pawel Twardziak put it more briefly on the <a href="https://forum.langchain.com/t/a-problem-of-agent-architecture/4546">LangChain forum</a> on 16 September 2026: “Hand off a typed brief, not free text.” and “Pass paths, not content.”</p><p>The brief I would send has seven fields. The list is mine; each source quoted here gives one or two of the fields. In typed form:</p><pre>{<br>  &quot;objective&quot;: &quot;what to do, the form of the answer, where the task ends&quot;,<br>  &quot;decisions&quot;: [{ &quot;decision&quot;: &quot;...&quot;, &quot;reason&quot;: &quot;...&quot; }],<br>  &quot;dead_ends&quot;: [{ &quot;tried&quot;: &quot;...&quot;, &quot;error&quot;: &quot;...&quot; }],<br>  &quot;done&quot;: [{ &quot;step&quot;: &quot;...&quot;, &quot;idempotency_key&quot;: &quot;...&quot; }],<br>  &quot;references&quot;: { &quot;tasks&quot;: [&quot;...&quot;], &quot;files&quot;: [&quot;...&quot;], &quot;commits&quot;: [&quot;...&quot;] },<br>  &quot;claims&quot;: [{ &quot;claim&quot;: &quot;...&quot;, &quot;source&quot;: &quot;...&quot;, &quot;status&quot;: &quot;observed | inferred | unchecked&quot; }],<br>  &quot;constraints&quot;: [{ &quot;rule&quot;: &quot;...&quot;, &quot;check&quot;: &quot;branch, HEAD, file hashes&quot; }]<br>}</pre><p>For the objective, Anthropic’s <a href="https://www.anthropic.com/research/multi-agent-research-system">research system</a> gives the list I would use: “Each subagent needs an objective, an output format, guidance on the tools and sources to use, and clear task boundaries.”</p><p>Decisions travel with their reasons. In a <a href="https://www.reddit.com/r/AI_Agents/comments/1xfsma0/">thread on r/AI_Agents</a> of 26 October 2026, jordimr described a handoff note of this kind: “Right now it’s decisions, rejected approaches and next steps. Constraints are the part I’m least sure about.” I would add the reason to every decision. I keep the working rules for my coding agents in CLAUDE.md files in my repositories, each with the date it was added and the reason. Without the reason, a later reader cannot judge whether a rule still applies, and an assistant on the far side of a protocol is always a later reader.</p><p>Dead ends need the error message, so the receiver does not repeat them.</p><p>The done list is the one field I would not drop. In the same <a href="https://www.reddit.com/r/AI_Agents/comments/1xfsma0/">thread</a>, vladgladi described it as “a list of things that are already done and must not be redone.” and gave the reason: “Without it the agent happily resends the same email or reruns the same migration, because nothing told it that step already happened.” Put the idempotency key next to any step with side effects.</p><p>Wherever a reference can replace content, send the reference: earlier task IDs in referenceTaskIds, artifacts as url parts, file paths, commits. A reference can go stale. In the A2A <a href="https://a2a-protocol.org/latest/specification/">specification</a>, the error for an unknown task ID says it &quot;might be invalid, expired, or already completed and purged.&quot; A handle also has to survive your own summarizing. <a href="https://modelcontextprotocol.io/seps/2567-sessionless-mcp">SEP-2567</a> of MCP names the failure: &quot;if the conversation is summarized and the handle is in the discarded portion, the state is orphaned.&quot;</p><p>Every claim gets a status, as axonpush put it further down the <a href="https://www.reddit.com/r/AI_Agents/comments/1xfsma0/">thread</a>: “keep the claim linked to its source and mark whether it was observed, inferred, or still unchecked.”</p><p>Constraints were the part jordimr was least sure about. In the same <a href="https://www.reddit.com/r/AI_Agents/comments/1xfsma0/">thread</a> axonpush wrote “i’d give constraints a different shape from progress notes.”, and ChemicalExcellent463 described how to keep a note honest: “i carry a handover note with the branch, HEAD and file hashes, and have the next agent check those against the checkout first.”, because “the note doesn’t get to overrule the repo.” That last sentence is the rule I would apply to any handoff that touches code.</p><p>One alternative to fields is a rolling summary, and its cost is documented. In the Microsoft ISE <a href="https://devblogs.microsoft.com/ise/a2a-context-passing-multi-agent-systems/">post</a>, the coordinator summarizes the conversation history after every 10 turns before embedding it, and the authors warn that “Every summarization step can lose important details or introduce inaccuracies, potentially degrading the quality of downstream responses.” So I would let a summary cover the conversation and copy the seven fields through each handoff unchanged.</p><p>The brief also decides what the receiver never sees. OpenAI’s <a href="https://openai.github.io/openai-agents-python/handoffs/">handoffs page</a> says: “Treat the receiving agent and its model provider as recipients of the forwarded history.” The Microsoft ISE <a href="https://devblogs.microsoft.com/ise/a2a-context-passing-multi-agent-systems/">post</a> names what a selective handoff gains: “Sensitive information from one part of the conversation can be excluded from the context sent to a specific agent.”</p><h3>Testing the handoff</h3><p>HelpfulCollar1070 gave the core of a test in the same r/AI_Agents <a href="https://www.reddit.com/r/AI_Agents/comments/1xfsma0/">thread</a>: “start a fresh session with only the notes and ask it to explain the project back to you.” Over a protocol it needs a control as well, because a remote assistant can know things from somewhere other than the brief.</p><ol><li>Plant two markers in the brief: one made-up decision with its reason, and one item on the done list.</li><li>Send the brief on a new context (in A2A, without a contextId, so the server mints one) and ask the assistant to state the objective, the decisions and what it will not redo.</li><li>Ask for the next step. It must not repeat the done item.</li><li>Fetch the task with a small historyLength and compare what the server kept with what you sent. The specification does not guarantee that every message is stored, so a gap there is not by itself a failed handoff.</li><li>For the control, send the same request on another new context without the brief. The assistant must not know the made-up decision. If it does, history reached it another way, through a context the remote side kept or a store both sides read; find out which before you trust step 2.</li></ol><p>I read the sources quoted here on 5 November 2026 and the Mnemoverse integration page again on 20 November, and the text describes them as they stood on those days. What A2A itself defines, and why shared memory stays a separate layer, is on the Mnemoverse library page <a href="https://mnemoverse.com/docs/library/a2a-protocol-explained?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=pass-execution-context-protocol-assistant">A2A Protocol (Agent2Agent), Explained</a>.</p><p><em>I work on Mnemoverse; in this text it is one of the external stores, described from its public documentation like the others.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25bd25e4b74c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is AI code review good enough?]]></title>
            <link>https://medium.com/@izgorodin/is-ai-code-review-good-enough-6b678b13e392?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b678b13e392</guid>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 12:38:09 GMT</pubDate>
            <atom:updated>2026-11-18T17:06:40.922Z</atom:updated>
            <content:encoded><![CDATA[<p>It depends on the job you give it. As a first pass over each change, it does useful work, say three companies that built their own AI reviewers and published the results: Uber in August 2025, Cloudflare in April 2026 and DoorDash in May 2026. As a replacement for people, the same teams rule it out: Cloudflare writes “This isn’t a replacement for human code review, at least not yet with today’s models.”, and DoorDash “The agent is not trying to replace human review.” Uber and Cloudflare list among its limits what Google’s review guide puts first: “The most important thing to cover in a review is the overall design of the CL.” As a merge gate, it blocks only where a team wires it to.</p><p>Every fact below comes from each company’s own pages as I read them on 4 November 2026, and none of these companies saw this text before publication.</p><p>When it works and where it is weak</p><ol><li>When does it work? On a first pass over each change, for bugs visible in the code itself. Uber’s developers rated “correctness bugs, missing error handling, and coding best-practice violations” well, more so when the comments came with examples or links to internal docs, and DoorDash’s first version was “good at catching mechanical bugs like missing nil checks, unhandled errors, and obvious test gaps”.</li><li>Where is it weak? Design, and everything that is not in the code. Uber heads a section of its post “Better at Catching Bugs than Assessing System Design”, and Cloudflare writes “The reviewers see the diff and surrounding code, but they don’t have the full context of why a system was designed a certain way or whether a change is moving the architecture in the right direction.” GitHub says of Copilot code review: “Copilot may not identify all of the problems that are present in code, especially where changes are large or complex.”</li><li>Does review still take a long time? The AI pass comes back in minutes, each team timing it its own way. Uber’s reviewer “reviews every commit as part of our CI process within a median of 4 minutes”. Over the first 30 days of Cloudflare’s system, “the median review completes in 3 minutes and 39 seconds”. At DoorDash, “The agent posts findings about 7 minutes after a PR opens on average”. A median per commit, a median per review run and an average from the opening of a pull request do not compare, and none includes the human review after it.</li><li>Is it good for repeated code? For repetitive checks, by DoorDash’s account: “The agent is better at patient, repetitive attention: checking deletions, tracing callers, comparing sibling implementations, and applying domain rules consistently.” Uber leaves simple patterns to linters, since “For simple or syntactic patterns, linters are accurate, reliable, and cheap”. Finding copy-pasted code is a separate job for deterministic duplicate checkers that can fail a build.</li><li>Is it good for logic? For logic that can be read from the code. Anthropic’s managed Code Review has several agents “looking for issues such as logic errors, security vulnerabilities, or broken edge cases”, working “without building or running your code”, and Uber writes “It’s much better at catching bugs that are evident from analyzing the source code alone.” Timing is harder, in Cloudflare’s words: “Race conditions that depend on specific timing or ordering are hard to catch from a static diff.”</li><li>Is it good for application architecture? This is its weakest area, though not a blind one: Uber and Cloudflare name design and architecture among their limits. DoorDash’s first version “kept missing the architectural issues”, and of its third DoorDash writes: “That focus is what lets them go deep enough to find architectural issues that v2 was missing.”</li></ol><p>First pass, sole reviewer or merge gate</p><p>As a first pass, the comment arrives early. Uber’s reviewer answers before people do, “allowing the code author to address these bugs before the commit reaches a human reviewer”, and DoorDash’s findings come “usually before the first human reviewer has looked at the diff”.</p><p>As the only reviewer, it is ruled out by the same three posts, and GitHub’s application card for its Copilot agents says “To ensure that all relevant problems are identified and corrected, Copilot code review should be supplemented with careful human code review.”</p><p>As a merge gate, Cloudflare’s reviewer “actively blocks merges when it finds genuine, serious problems or security vulnerabilities”, yet “The bias is explicitly toward approval”, and when a human reviewer comments break glass, “the system forces an approval regardless of what the AI found.” GitHub and Anthropic leave the gate to the team: “By default, Copilot’s reviews do not count toward required approvals for the pull request.”, and Anthropic’s managed Code Review neither approves nor blocks a pull request.</p><p>What the teams that built their own reviewers found</p><p>All three describe systems built for their own engineers, not products for sale.</p><p>Uber’s engineering blog, August 2025, describes uReview. Uber’s developers rated some kinds of comment low: “Readability nits, minor logging tweaks, low-impact performance optimizations, and stylistic issues consistently received poor ratings.” The post names “false positives” as “The main challenge of AI code review”, and explains the limit on design: “uReview today only has access to the code, and not to other artifacts like past PRs, feature flag configurations, database schemas, technical documentation, and so on, because of which it can’t correctly assess overall correctness and review the system design.”</p><p>DoorDash’s post of May 2026 describes three versions of its reviewer and one rule: “We’d rather miss some issues than become noise.” The reviewer gets the whole repository, not just the diff, because “Most of the bugs worth catching don’t live in the diff.” “They live in what the diff depends on.” On the split of work: “Human reviewers are better at intent, taste, and deciding whether a tradeoff is acceptable.”</p><p>Cloudflare’s post of April 2026 describes several AI reviewers run together across its repositories and, among the limits it is honest about, lists architecture, concurrency, and changes that reach other systems, where “The reviewer can flag the contract change, but it can’t verify that all consumers have been updated.” It, too, chose fewer findings: “We biased hard for signal over noise”.</p><p>All three tuned their reviewers for fewer, surer comments rather than for catching everything, and all three kept people in the review. How often engineers act on those comments, and how each company counts it, has its own numbers: Is AI code review good? <a href="https://dev.to/izgorodin/is-ai-code-review-good-2ofe">https://dev.to/izgorodin/is-ai-code-review-good-2ofe</a></p><p>What a human review is for, beyond finding bugs</p><p>A Microsoft Research study of code review at Microsoft, presented at ICSE in May 2013, concluded that defects remain the main motivation for review, yet “reviews are less about defects than expected and instead provide additional benefits such as knowledge transfer, increased team awareness, and creation of alternative solutions to problems.” Google’s guide puts the design of a change first, asks “Does it integrate well with the rest of your system?”, and warns “Reviewers should be especially vigilant about over-engineering.” Those are judgements about the system, the area Uber and Cloudflare list among their reviewers’ limits. An AI pass covers part of one reason for review; the other reasons stay with people.</p><p>What the vendors say about their own limits</p><p>The vendors write limits of the same kind into their docs. GitHub’s application card says Copilot code review “may highlight problems in reviewed code that do not exist or are based on misunderstandings of the code”. Anthropic’s docs for its managed Code Review: “Code Review uses AI to review code and may miss bugs, security vulnerabilities, or other issues.”</p><p>Sigma, a GitHub pull request reviewer, calls itself “A useful second look” on its homepage, and its docs say “A verification label is agent-produced evidence, not proof that the code is correct.” and “Sigma never merges.” Sigma runs on Claude Code and OpenAI models.</p><p>How to find out on your own code</p><p>The same can be measured on your own pull requests, next to human review. Uber reruns its reviewer on the final commit to see whether a comment was dealt with, and DoorDash counts whether the engineer edited the code before merge. A way to tell, comment by comment, which catches mattered on your own repository: Has your AI reviewer ever caught something your team missed that actually mattered? <a href="https://medium.com/@izgorodin/has-your-ai-reviewer-ever-caught-something-your-team-missed-that-actually-mattered-9b85f060cb92">https://medium.com/@izgorodin/has-your-ai-reviewer-ever-caught-something-your-team-missed-that-actually-mattered-9b85f060cb92</a></p><p>Sources and method: every page below was read on 4 November 2026, and this text describes those pages as of that date.</p><p>Uber: uReview <a href="https://www.uber.com/us/en/blog/ureview/">https://www.uber.com/us/en/blog/ureview/</a></p><p>DoorDash: AI code reviewer <a href="https://careersatdoordash.com/blog/doordash-built-an-ai-code-reviewer-engineers-actually-listen-to/">https://careersatdoordash.com/blog/doordash-built-an-ai-code-reviewer-engineers-actually-listen-to/</a></p><p>Cloudflare: AI code review at scale <a href="https://blog.cloudflare.com/ai-code-review/">https://blog.cloudflare.com/ai-code-review/</a></p><p>Google: what to look for in a code review <a href="https://google.github.io/eng-practices/review/reviewer/looking-for.html">https://google.github.io/eng-practices/review/reviewer/looking-for.html</a></p><p>Microsoft Research: modern code review study <a href="https://www.microsoft.com/en-us/research/publication/expectations-outcomes-and-challenges-of-modern-code-review/">https://www.microsoft.com/en-us/research/publication/expectations-outcomes-and-challenges-of-modern-code-review/</a></p><p>GitHub: Copilot application card <a href="https://docs.github.com/en/copilot/responsible-use/agents">https://docs.github.com/en/copilot/responsible-use/agents</a>, Copilot code review <a href="https://docs.github.com/en/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review">https://docs.github.com/en/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review</a></p><p>Anthropic: Code Review <a href="https://code.claude.com/docs/en/code-review">https://code.claude.com/docs/en/code-review</a></p><p>Sigma: homepage <a href="https://sigma.mnemoverse.com/?src=medium&amp;utm_source=medium&amp;utm_medium=article&amp;utm_campaign=is-ai-code-review-good-enough">https://sigma.mnemoverse.com/?src=medium&amp;utm_source=medium&amp;utm_medium=article&amp;utm_campaign=is-ai-code-review-good-enough</a>, reading a review <a href="https://sigma.mnemoverse.com/docs/reading-a-review?src=medium&amp;utm_source=medium&amp;utm_medium=article&amp;utm_campaign=is-ai-code-review-good-enough">https://sigma.mnemoverse.com/docs/reading-a-review?src=medium&amp;utm_source=medium&amp;utm_medium=article&amp;utm_campaign=is-ai-code-review-good-enough</a></p><p>Disclosure: I build Sigma, one of the tools mentioned here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b678b13e392" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How is your company handling merging code that doesn’t have a human reviewer?]]></title>
            <link>https://medium.com/@izgorodin/how-is-your-company-handling-merging-code-that-doesnt-have-a-human-reviewer-a04ba09fe920?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a04ba09fe920</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 18:42:29 GMT</pubDate>
            <atom:updated>2026-11-18T17:07:22.545Z</atom:updated>
            <content:encoded><![CDATA[<p>The Claude Code team at Anthropic published its answer on 15 October 2026, for its own repositories: three risk tiers. Low-risk changes need no human approval “once automated review and security checks are green”, ordinary changes need one person, the riskiest two. The change sets the tier, not its author; only trusted authors get the lighter paths; and “An agent’s approval never counts as a person’s, either.” On GitHub, a split like this is built from settings: a ruleset can require a pull request with zero approvals, Required reviewers can demand a named team on listed paths, and Copilot’s approvals count toward merge requirements only if you turn that on.</p><p>Every fact below comes from each company’s own pages as I read them on 2 November 2026, and none of them saw this text before publication.</p><p>What one team wrote down</p><p>The team’s goal: “So the goal is that most pull requests in the Claude Code repos (the CLI, the desktop and web apps, and the mobile apps) merge with at most one human in the loop, who can be the author, with no increase in reverts or incidents.” Their approval table:</p><ol><li>Low: “Docs, copy, internal-only features, additive changes behind a flag”. Approvals: “None required once automated review and security checks are green”.</li><li>Medium: “Ordinary product changes, and changes to sensitive areas such as caching, the auto-updater, or system prompts”. One person.</li><li>High: “The highest-risk code, plus a small set of paths that always need two people”. Two people.</li></ol><p>A classifier reads each change and picks its tier, and a second one can ask for another person anyway. “Some paths always need a person, anything owners have listed as sensitive and any CI workflow file.” “Only authors on the repo’s trusted list get the lighter paths, mostly the team that owns it.” Approvals are per commit, so an agent’s push after an approval means approving again.</p><p>What replaces the human reader</p><p>“We didn’t remove review.” In the Claude Code repos, every pull request runs required CI, an AI review and a separate security review, and “A PR can’t merge while any finding from the bug review or the security review is still open.” A merge queue re-runs the checks on main with the change applied, and “Flags turn off without a deploy.”</p><p>An AI reviewer that only comments gates nothing by itself; a gate is whatever the team makes required. Anthropic’s managed Code Review: “A review never approves or blocks the pull request, so the decision to merge stays with your team.” GitHub’s AI Scan for pull requests, in its 15 October 2026 changelog: “AI Scan findings are advisory. They do not fail the code scanning check and cannot block pull request merges through ruleset requirements.”</p><p>Building the split on GitHub</p><p>For the low tier, a ruleset can require a pull request but no approval: “The pull request doesn’t necessarily have to be approved, but it must be opened.” Auto-merge “merges a pull request automatically after all required reviews and status checks pass”. For paths that always need a person, the Required reviewers rule lets you “require review or approval from specific teams when a pull request changes certain files or directories”, and, per team, “Required approvals can be set from 0 (zero) to 10.” It is “not available on user-owned repositories”, and rulesets in private repositories need GitHub Pro, Team or Enterprise Cloud. Code owner review does the same through branch protection. Open review threads block the merge with Require conversation resolution before merging; the nearest settings to the per-commit rule are Dismiss stale pull request approvals when new commits are pushed and Require approval of the most recent reviewable push. Check one default: “By default, the restrictions of a branch protection rule don’t apply to people with admin permissions to the repository”.</p><p>Can an AI approval fill the human slot?</p><p>The Claude Code team says no: “Automated review can clear a low-risk change, but it can’t fill a slot that calls for a human.” GitHub leaves it to you. Its changelog of 28 October 2026: “Copilot approvals, previously available in public preview, are now generally available.” Each Copilot review says whether Copilot finds the pull request “ready to approve”, and “By default, Copilot’s reviews do not count toward required approvals for the pull request.” Turned on in the settings, a Copilot approval counts “the same way a teammate’s approval would”. Allow Copilot approvals to count toward merge requirements can be limited to pull requests “where every changed file matches one of the globs”, up to 15 of them, so the team scopes the count by path. New commits dismiss the approval.</p><p>Several reviewers document approving low-risk changes, each in its own frame. cubic: “Auto-approval is disabled by default, and you can test it in shadow mode before cubic submits real GitHub approvals.” Greptile: “Auto-approve low-risk PRs (Beta)” and “We recommend auto-approve only for low-risk changes”. Cursor’s PR Routing &amp; Approval “can approve low-risk changes”, and “It does not replace a full code review.” Macroscope’s Approvability evaluates conditions that its docs say “are off by default”, adds “All active conditions must pass for automatic approval.”, and says “Macroscope cannot approve its own PRs.” Sourcery: “Sourcery can approve a pull request, and a branch protection rule that requires an approval counts it. Sourcery approves when nothing it found is worth blocking on and the change doesn’t need a person’s judgement.” The Claude Code GitHub Action goes the other way: “For security reasons, Claude cannot approve pull requests”. OpenAI’s Codex docs: “Code review rules guide Codex; they don’t replace tests, branch protections, or required approvals.”</p><p>Sigma, a GitHub pull request reviewer, says in its docs “Sigma never merges.” The same page says that where a repository exposes the verdict setting, “Rules can add one separate, deterministic Approve or Request changes review.”, and “Selecting Rules is not itself an approval, and the progress checks stay neutral either way.” Sigma runs on Claude Code and OpenAI models.</p><p>Who owns a merge nobody reviewed</p><p>In the Claude Code team’s policy, a person does: “Whoever prompted the change is on the hook for it.” On an agent-written pull request, the person directing the agent counts as one of the required reviewers, and “A person is accountable for every change that ships, whoever typed it.” The team tracks human approvals, comments and waiting time, and “Revert and incident rates are the guardrail: if they rise, we haven’t saved human time, we’ve only moved it.” By Anthropic’s own count on the Claude Code repositories, “From June to September, merged pull requests to Claude Code’s codebase more than doubled while the share that had to be reverted fell by more than 40 percent.” There is no automatic brake yet: “We don’t yet have circuit breakers that tighten approval when those numbers move; engineers here want them before more code moves to zero-human merges.”</p><p>If your change-management rules assume a person reads every change, a tier with zero approvals changes what you can show an auditor. That call belongs to whoever owns those rules, not to a reviewer’s settings page.</p><p>A starting policy, in Anthropic’s words and GitHub’s settings</p><p>The team’s adoption advice: “Write down risk tiers, set from the change rather than the author; start strict and loosen with evidence.” “Keep the lighter approval paths for authors you trust.” “Use CODEOWNERS and branch protection so auth, billing, CI and release workflows, and installers always need a person.” “Never let a bot’s approval replace a required human’s; dismiss approvals on new commits.” On GitHub the last two become code owners or Required reviewers on those paths, Dismiss stale pull request approvals when new commits are pushed, Copilot approvals kept out of merge requirements there, and a look at which other bots your branch protection counts. The first two are decisions, not settings: someone writes down which paths and authors go in which tier.</p><p>Sources and method: every page below was read on 2 November 2026, and this text describes them as of that date. For the tiers that keep a person, the tools that help that person read the change, from review surfaces to stacked pull requests, are covered in What tools are you using for human code review of AI-assisted code? <a href="https://medium.com/@izgorodin/what-tools-are-you-using-for-human-code-review-of-ai-assisted-code-445a593ef569">https://medium.com/@izgorodin/what-tools-are-you-using-for-human-code-review-of-ai-assisted-code-445a593ef569</a>, on Medium.</p><p>Anthropic: Claude Code team post <a href="https://claude.dev/blog/solving-code-review-at-anthropic/">https://claude.dev/blog/solving-code-review-at-anthropic/</a>, Code Review <a href="https://code.claude.com/docs/en/code-review">https://code.claude.com/docs/en/code-review</a>, Claude Code GitHub Action <a href="https://github.com/anthropics/claude-code-action/blob/main/docs/capabilities-and-limitations.md">https://github.com/anthropics/claude-code-action/blob/main/docs/capabilities-and-limitations.md</a></p><p>GitHub: rulesets <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets">https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets</a>, protected branches <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches">https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches</a>, auto-merge <a href="https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/automatically-merging-a-pull-request">https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/automatically-merging-a-pull-request</a>, Copilot code review <a href="https://docs.github.com/en/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review">https://docs.github.com/en/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review</a>, configuring it <a href="https://docs.github.com/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review">https://docs.github.com/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review</a>, Copilot approvals generally available <a href="https://github.blog/changelog/2026-10-28-copilot-code-review-merge-with-confidence-with-max-and-approvals/">https://github.blog/changelog/2026-10-28-copilot-code-review-merge-with-confidence-with-max-and-approvals/</a>, AI Scan <a href="https://github.blog/changelog/2026-10-15-ai-scan-for-pull-requests-generally-available/">https://github.blog/changelog/2026-10-15-ai-scan-for-pull-requests-generally-available/</a></p><p>Reviewers: cubic <a href="https://docs.cubic.dev/ai-review/auto-approval">https://docs.cubic.dev/ai-review/auto-approval</a>, Greptile <a href="https://www.greptile.com/docs/code-review/key-features">https://www.greptile.com/docs/code-review/key-features</a>, Cursor <a href="https://cursor.com/docs/approval-agents">https://cursor.com/docs/approval-agents</a>, Macroscope <a href="https://docs.macroscope.com/approvability">https://docs.macroscope.com/approvability</a>, Sourcery <a href="https://docs.sourcery.ai/reviews/anatomy-of-a-review/">https://docs.sourcery.ai/reviews/anatomy-of-a-review/</a>, Codex <a href="https://learn.chatgpt.com/docs/third-party/github">https://learn.chatgpt.com/docs/third-party/github</a></p><p>Sigma: homepage <a href="https://sigma.mnemoverse.com/?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=merging-without-human-reviewer">https://sigma.mnemoverse.com/?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=merging-without-human-reviewer</a>, reading a review <a href="https://sigma.mnemoverse.com/docs/reading-a-review?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=merging-without-human-reviewer">https://sigma.mnemoverse.com/docs/reading-a-review?utm_source=medium&amp;utm_medium=article&amp;utm_campaign=merging-without-human-reviewer</a></p><p>Disclosure: I build Sigma, one of the tools mentioned here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a04ba09fe920" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Configure Standard Context Sharing for AI Developer Clients Over Standard Protocols?]]></title>
            <link>https://medium.com/@izgorodin/how-to-configure-standard-context-sharing-for-ai-developer-clients-over-standard-protocols-bc72a3356762?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc72a3356762</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 17:36:41 GMT</pubDate>
            <atom:updated>2026-10-29T17:36:41.512Z</atom:updated>
            <content:encoded><![CDATA[<p>A team of five works on one service from four clients: two people in VS Code with Copilot, one in Claude Code, one in Cursor and one in Codex. They agree on two things. The project rules, such as how to run the tests, which module owns billing and what must never go into a log, should live in one place and not in four vendor formats. And the runbooks and the service catalog that sit in an internal system should reach every client the same way. The formats turn out to be the easy part. What goes wrong first is that a model does not look where the context was put: the runbook server is connected, and the answer about the failing job still comes from reading the code.</p><p>The setup that most of these clients share rests on two open standards. AGENTS.md is a file of instructions in the repository. MCP, the Model Context Protocol, is how a client connects to a server that offers tools, resources and prompts. So the configuration is one AGENTS.md at the root of the repository and one entry for the context server in each client’s MCP configuration. The decision that makes the context actually reach the model comes after that, inside MCP: whether a piece of context arrives as a tool, a resource or a prompt, because each of the three is put into the conversation by someone different.</p><h3>AGENTS.md for the rules</h3><p>The <a href="https://agents.md/">AGENTS.md site</a> calls it “A simple, open format for guiding coding agents”, and <a href="https://code.visualstudio.com/docs/agent-customization/custom-instructions">VS Code’s custom instructions page</a> describes it as “a cross-agent format for project guidance.” It is plain Markdown, it lives in the repository, and it travels with every clone. That makes it the natural home for what every session should start from: commands, conventions, boundaries. It is also the cheapest way to make a model see something without being asked, since a client that reads the file puts it into the context on its own.</p><p>Two cautions come with it. Which clients read AGENTS.md, from which directories, and how it combines with a vendor’s own instruction file differ from client to client, so each client’s documentation is the source to check on the day you set it up. And where several instruction files apply, they can disagree. For Copilot sessions, VS Code advises: “Avoid conflicting guidance because there is no general precedence order between these files.” One set of rules in one file sidesteps the question.</p><h3>MCP for everything else, and who puts it in</h3><p>AGENTS.md is static text. A runbook that changes every week, a ticket, a table schema or a decision made yesterday belongs behind an MCP server that every client connects to. The current revision of the specification, 2026–07–28, describes three things a server can offer, and what separates them is who decides that they enter the conversation:</p><ul><li>Tools. “Tools in MCP are designed to be model-controlled, meaning that the language model can discover and invoke tools automatically based on its contextual understanding and the user’s prompts.” (<a href="https://modelcontextprotocol.io/specification/2026-07-28/server/tools">tools</a>)</li><li>Resources. “Resources allow servers to share data that provides context to language models, such as files, database schemas, or application-specific information.” And: “Resources in MCP are designed to be application-driven, with host applications determining how to incorporate context based on their needs.” (<a href="https://modelcontextprotocol.io/specification/2026-07-28/server/resources">resources</a>)</li><li>Prompts. “Prompts are designed to be user-controlled, meaning they are exposed from servers to clients with the intention of the user being able to explicitly select them for use.” The specification adds: “This refers to who decides when the prompt is used, not who authors its content.” (<a href="https://modelcontextprotocol.io/specification/2026-07-28/server/prompts">prompts</a>)</li></ul><p>So the same runbook can reach the model by three routes. As a tool, the model fetches it when it judges that the question needs it. As a resource, the client decides how it gets in: a person attaches it, or the client lets the model read it. As a prompt, a person picks a template that carries it. The specification leaves the interface to each host, and that is where the difference shows up in daily use.</p><h3>One server entry in each client’s file</h3><p>Most of these clients keep MCP servers in a JSON object named mcpServers:</p><ul><li>Claude Code: “To share the server with your team instead, add --scope project, or add the entry under mcpServers in .mcp.json at your project root and commit it.&quot; (<a href="https://code.claude.com/docs/en/mcp">Claude Code MCP docs</a>)</li><li>VS Code: its <a href="https://code.visualstudio.com/docs/agent-customization/mcp-servers">MCP servers page</a> describes a portable format, “Portable files use a top-level mcpServers object&quot;, and the <a href="https://code.visualstudio.com/docs/agents/reference/mcp-configuration">configuration reference</a> keeps it in .mcp.json at the root of the workspace, the same file name as Claude Code&#39;s (the guided setup offers that file when the experimental setting chat.mcp.workspaceRootConfig.enabled is on), and adds that &quot;Copilot harness sessions read the portable format directly.&quot;</li><li>Cursor: “Create .cursor/mcp.json in your project for project-specific tools.&quot; (<a href="https://cursor.com/docs/mcp">Cursor MCP docs</a>)</li><li>Gemini CLI, for anyone who joins the team with it: “Gemini CLI uses the mcpServers configuration in your settings.json file to locate and connect to MCP servers.&quot; (<a href="https://geminicli.com/docs/tools/mcp-server">Gemini CLI MCP docs</a>)</li></ul><p>For a local server that the client starts as a subprocess, the entry has the same outline in each of these files:</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;team-context&quot;: {<br>      &quot;command&quot;: &quot;/opt/team-context/bin/team-context-server&quot;,<br>      &quot;args&quot;: [&quot;--project&quot;, &quot;billing&quot;]<br>    }<br>  }<br>}</pre><p>The object is shared, but the details around it are not. How a file refers to an environment variable, for one, differs between clients, so a token for the server should be wired in each client from that client’s own documentation rather than copied from another client’s file.</p><p>Codex keeps its servers in TOML. Its <a href="https://developers.openai.com/codex/mcp">MCP page</a> says: “Codex stores MCP configuration in config.toml alongside other Codex configuration settings.&quot; And: &quot;Configure each MCP server with a [mcp_servers.&lt;server-name&gt;] table in the configuration file.&quot; The same server there:</p><pre>[mcp_servers.team-context]<br>command = &quot;/opt/team-context/bin/team-context-server&quot;<br>args = [&quot;--project&quot;, &quot;billing&quot;]</pre><p>That is the whole configuration: AGENTS.md in the repository and one server entry in each client’s MCP file, all pointing at the same server. The server is where the team’s context lives, and no client has to know what the others use.</p><h3>How each client lets the context in</h3><p>The three kinds of context look different in each client, and this is where the problem from the first paragraph is decided:</p><ul><li>VS Code: “Resources: attach server-provided data to a request from Add Context&gt;MCP Resources, or run MCP: Browse Resources.” And: “Prompts: use a server’s prompt template by typing /&lt;server&gt;.&lt;prompt&gt; in chat.&quot;</li><li>Claude Code: “Type @ in your prompt to see available resources from all connected MCP servers.&quot; Its prompts become commands: &quot;Claude Code lists each MCP prompt as /servername:promptname (MCP).&quot;</li><li>Cursor: its table of protocol support lists Resources, “Structured data sources that can be read and referenced”, and Prompts, “Templated messages and workflows for users”, next to Tools.</li><li>Gemini CLI: “MCP servers can expose predefined prompts that can be executed as slash commands within Gemini CLI.” Of resources it says: “Gemini CLI discovers these automatically and gives you the possibility to reference them in the chat.”</li><li>Codex: its MCP page covers the configuration file and the server table; check its documentation before you rely on resources or prompts there.</li></ul><p>In the clients above, a prompt enters the conversation when someone runs it. A resource enters when someone attaches it, and in some clients also when the model reads it through a built-in tool: the <a href="https://code.claude.com/docs/en/tools-reference">Claude Code tools reference</a> lists ReadMcpResourceTool, and Gemini CLI documents <a href="https://geminicli.com/docs/tools/mcp-resources">MCP resource tools</a> for the model to list and read resources. A tool is the one kind of context that the specification puts under the model&#39;s control. That gives the team in the first paragraph a plain rule. What every answer should follow goes into AGENTS.md. What the model should fetch when a question calls for it, such as the runbook of a failing job, goes behind a tool, with a line in AGENTS.md that says when to call that tool. What a person chooses on purpose, such as a release checklist or the schema of one table, fits a resource or a prompt, and the person who wants it in the conversation puts it there.</p><h3>Which revision the clients speak</h3><p>The revision quoted above, 2026–07–28, changed how a client and a server start talking. Its <a href="https://modelcontextprotocol.io/specification/2026-07-28/changelog">changelog</a> lists “Make MCP stateless: remove the initialize/notifications/initialized handshake.&quot; and &quot;Add server/discover: servers MUST implement this RPC to advertise their supported protocol versions, capabilities, and identity.&quot; Clients and SDKs in daily use still speak earlier revisions as well, so a team that writes its own server should check which revisions its clients announce before relying on the new start-up. The configuration files and the three kinds of context described here are the same either way.</p><h3>Where A2A fits</h3><p>A2A, the Agent2Agent protocol, comes up in the same discussions. Its <a href="https://a2a-protocol.org/latest/specification/">specification</a> says: “A2A and MCP are complementary protocols designed for different aspects of agentic systems”. A2A is about agents that work with other agents as peers and hand tasks between them. The route from a developer’s client to the team’s context, which is what this setup needs, is MCP.</p><h3>Check it with three facts in two clients</h3><ol><li>Put three facts that no model could guess into the three places, one in each: a line in AGENTS.md (the channel the billing team watches), a resource on the server (the runbook of one named job) and an answer the server returns from a tool (the owner of one named module).</li><li>In two different clients, open a new session and ask three questions, one per fact, without saying where the answer lives.</li><li>The AGENTS.md fact should arrive with nothing else done. The tool fact should arrive after a tool call that the client shows you. The resource fact should arrive after you attach the resource, or, in Claude Code and Gemini CLI, possibly after a visible call to their resource-reading tool. If a fact from the server arrives with neither a visible call nor an attachment, the answer did not come from the server; look for an open file or an earlier session.</li><li>Control: remove the server entry from one client’s file and ask again. The AGENTS.md answer stays, and the other two should be gone. If they are not, the client still reads an older entry, perhaps from a user-level file, and the test proved less than it seemed.</li></ol><p><em>What these standards leave open for memory shared between agents, from identity and schema to provenance and permissions, is on </em><a href="https://mnemoverse.com/docs/library/agent-memory-interop-gap"><em>The Missing Layer: No Protocol Says What Agents Know</em></a><em>, a page by Mnemoverse, the author’s company.</em></p><p><em>Sources were read on 29 October 2026; the text describes them as of that date. They are the MCP specification (revision 2026–07–28), the AGENTS.md site, the A2A specification, and the MCP documentation of VS Code, Claude Code, Cursor, Gemini CLI and Codex.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc72a3356762" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Do I Sync User History Between Python Backend Scripts and a VS Code AI Assistant?]]></title>
            <link>https://medium.com/@izgorodin/how-do-i-sync-user-history-between-python-backend-scripts-and-a-vs-code-ai-assistant-3e672ab891df?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e672ab891df</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[github-copilot]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 12:38:10 GMT</pubDate>
            <atom:updated>2026-10-28T12:38:10.548Z</atom:updated>
            <content:encoded><![CDATA[<p>A Python script on a server goes through refund requests every night. It asks a model about each one, keeps a short history per customer in a SQLite file so that tonight’s run knows what last night’s run decided, and exits. In the morning you open the script in VS Code and ask the agent in Copilot Chat why customer cust-4471 was put on hold. It reads the code well. It has never seen the history the code produced. Then you tell it that refunds above 500 EUR now always go to a person, and it edits a comment. The script runs again tonight and never hears about the rule.</p><p>There are two histories here, and in this setup neither side reads the other’s. The script’s history lives wherever the script writes it. The assistant’s lives in its chat sessions and in the notes of its memory tool, and of those notes <a href="https://code.visualstudio.com/docs/agents/run/memory">VS Code’s memory page</a> says: “All memory scopes on this page are stored locally.” So the answer is not a job that copies one history into the other. It is one store that both sides reach through their own door: the scripts through a Python door (an SDK, a REST call or plain SQL), the assistant through an MCP door, a server that VS Code starts or connects to and that offers the store as tools. There are three ways to build it: a file in the repository, a small MCP server of your own over the database the scripts already write, or a hosted memory service that documents both a Python SDK and an MCP server. Which one fits depends on where the scripts run and on which way the history has to flow.</p><h3>First decide which way the history flows</h3><ul><li>From the scripts to the assistant. You want the agent to know what the scripts saw and decided. A read tool is enough, and the scripts stay the only writers.</li><li>From the assistant to the scripts. A decision you make in chat has to reach the next run. The agent needs a write tool, and each script needs one read before it calls its model.</li><li>Both ways. Then every entry should say who wrote it. “The nightly job saw a second webhook for this charge” and “you decided in chat that this customer is exempt” carry different weight, and the next reader, script or agent, should be able to tell them apart.</li></ul><p>Whatever the direction, write entries meant for a reader: what happened, for which user id, what was decided, and when. A raw transcript or a full request payload makes a poor entry, and it can carry personal data that has no business in an assistant’s context.</p><h3>A file in the repository</h3><p>The cheapest store is a Markdown file the agent already reads. VS Code’s <a href="https://code.visualstudio.com/docs/agent-customization/custom-instructions">custom instructions page</a> says that “Project instructions are automatically included according to the selected harness”, in files such as .github/copilot-instructions.md and AGENTS.md. For targeted files it adds: &quot;The agent can also load an instructions file on demand when its description matches the current task.&quot; A script that runs in the same checkout can append to such a file, and the agent reads it in the next session.</p><p>This works when the scripts and VS Code see the same checkout, as on your own laptop. A script on a server has to commit and push before the file reaches your editor, and a decision from the agent has to travel back the same way. A file that is loaded into every request also costs context whether the request needs it or not. It suits a handful of stable facts, not a history that grows every night.</p><h3>Your own MCP server over the store the scripts write</h3><p>The second way keeps the history where the scripts already write it and puts an MCP server in front of it. The official <a href="https://github.com/modelcontextprotocol/python-sdk">MCP Python SDK</a> is meant for this: its README says it lets you “Build MCP servers that expose tools, resources, and prompts to any MCP host”. One thing to know before you copy an older tutorial: version 2 of the SDK renamed FastMCP to MCPServer, and code that imports the old name stops with &quot;No module named &#39;mcp.server.fastmcp&#39;&quot;, as the <a href="https://py.sdk.modelcontextprotocol.io/migration/">migration guide</a> lists.</p><p>The version below keeps everything on one machine, which is how you would try it first. The scripts and the server share one small module:</p><pre># notes.py<br>import os<br>import sqlite3</pre><pre>DB = os.environ.get(&quot;HISTORY_DB&quot;, &quot;history.db&quot;)<br></pre><pre>def _db():<br>    db = sqlite3.connect(DB)<br>    db.execute(<br>        &quot;CREATE TABLE IF NOT EXISTS notes (&quot;<br>        &quot;user_id TEXT, source TEXT, text TEXT, at TEXT DEFAULT (datetime(&#39;now&#39;)))&quot;<br>    )<br>    return db<br></pre><pre>def remember(user_id, text, source):<br>    with _db() as db:<br>        db.execute(<br>            &quot;INSERT INTO notes (user_id, source, text) VALUES (?, ?, ?)&quot;,<br>            (user_id, source, text),<br>        )<br></pre><pre>def history(user_id, limit=10):<br>    with _db() as db:<br>        rows = db.execute(<br>            &quot;SELECT at, source, text FROM notes WHERE user_id = ? &quot;<br>            &quot;ORDER BY rowid DESC LIMIT ?&quot;,<br>            (user_id, limit),<br>        ).fetchall()<br>    return [{&quot;at&quot;: at, &quot;source&quot;: source, &quot;text&quot;: text} for at, source, text in rows]</pre><p>The script reads before it asks its model and writes after it decides. The source column is the &quot;who wrote it&quot; field from the first section:</p><pre># nightly_refunds.py<br>from notes import history, remember</pre><pre>past = history(&quot;cust-4471&quot;)<br>print(&quot;script read:&quot;, past)<br># ... the script passes `past` to its model as data and makes its decision ...<br>remember(&quot;cust-4471&quot;, &quot;Refund held: a second webhook arrived for the same charge.&quot;, source=&quot;nightly_refunds&quot;)</pre><p>The MCP server offers the same two operations to the agent, one tool for each direction:</p><pre># history_server.py<br>from mcp.server import MCPServer</pre><pre>import notes</pre><pre>mcp = MCPServer(&quot;user-history&quot;)<br></pre><pre>@mcp.tool()<br>def user_history(user_id: str, limit: int = 10) -&gt; list[dict]:<br>    &quot;&quot;&quot;Newest notes about one user, written by backend scripts or earlier chats.&quot;&quot;&quot;<br>    return notes.history(user_id, limit)<br></pre><pre>@mcp.tool()<br>def save_decision(user_id: str, text: str) -&gt; str:<br>    &quot;&quot;&quot;Save a decision made in chat, so the next script run reads it.&quot;&quot;&quot;<br>    notes.remember(user_id, text, source=&quot;vscode&quot;)<br>    return &quot;saved&quot;<br></pre><pre>if __name__ == &quot;__main__&quot;:<br>    mcp.run()</pre><p>mcp.run() serves over stdio by default, which is what VS Code expects from a server it starts itself. To add it, run MCP: Add Server and choose Command (stdio). For a personal setup, VS Code&#39;s <a href="https://code.visualstudio.com/docs/agent-customization/mcp-servers">MCP servers page</a> has you pick Global, then Copilot Global, which &quot;writes to $COPILOT_HOME/mcp-config.json, or ~/.copilot/mcp-config.json when COPILOT_HOME is unset.&quot; That file uses the portable format, and &quot;Portable files use a top-level mcpServers object.&quot; The entry looks like this:</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;user-history&quot;: {<br>      &quot;command&quot;: &quot;/home/you/refunds/.venv/bin/python&quot;,<br>      &quot;args&quot;: [&quot;/home/you/refunds/history_server.py&quot;],<br>      &quot;env&quot;: { &quot;HISTORY_DB&quot;: &quot;/home/you/refunds/history.db&quot; }<br>    }<br>  }<br>}</pre><p>Give full paths. The <a href="https://code.visualstudio.com/docs/agents/reference/mcp-configuration">configuration reference</a> says the command “Must be available on your system path or contain its full path”, and the Python that starts the server must be the one with the mcp package installed.</p><p>Before opening VS Code, I started the server the way an MCP client does, as a subprocess over stdio with the SDK’s own client, after one run of the script. The first call read the script’s entry, the second saved the 500 EUR rule, and the third read both, newest first:</p><pre>{&quot;result&quot;: [{&quot;at&quot;: &quot;2026-10-28 11:10:55&quot;, &quot;source&quot;: &quot;vscode&quot;, &quot;text&quot;: &quot;Refunds above 500 EUR always go to a human.&quot;}, {&quot;at&quot;: &quot;2026-10-28 11:10:52&quot;, &quot;source&quot;: &quot;nightly_refunds&quot;, &quot;text&quot;: &quot;Refund held: a second webhook arrived for the same charge.&quot;}]}</pre><p>The next run of the script, with no change to its code, started with the decision saved through the server:</p><pre>script read: [{&#39;at&#39;: &#39;2026-10-28 11:10:55&#39;, &#39;source&#39;: &#39;vscode&#39;, &#39;text&#39;: &#39;Refunds above 500 EUR always go to a human.&#39;}, {&#39;at&#39;: &#39;2026-10-28 11:10:52&#39;, &#39;source&#39;: &#39;nightly_refunds&#39;, &#39;text&#39;: &#39;Refund held: a second webhook arrived for the same charge.&#39;}]</pre><p>The same server pointed at an empty file returned {&quot;result&quot;: []}.</p><p>This store does what the code says and nothing more. It finds entries by user id, not by meaning, and it has no notion of who may read whose history. A stdio server runs on the host that starts it: your own machine, or the remote host or container in a VS Code remote session. It can open the SQLite file only if the file is on that host. For scripts on a server, point the MCP server at the database they write, or run it next to that database as a remote server over HTTP with authentication; VS Code connects to those as well, with a server entry of type http and a URL.</p><h3>A hosted memory with both doors</h3><p>The third way is a memory service that already offers both doors on the same data. Three examples, each in its vendor’s words:</p><ul><li>Mem0. The Python SDK is pip install mem0ai with a MemoryClient, and you add a conversation for a user_id. The <a href="https://docs.mem0.ai/platform/quickstart">quickstart</a> says: &quot;Mem0 pulls the individual facts out of the conversation and stores each one separately&quot;. The hosted <a href="https://docs.mem0.ai/platform/mem0-mcp">Mem0 MCP</a> server lists VS Code among its clients, and its add_memory tool is described as &quot;Save text or conversation history for a user/agent&quot;.</li><li>Supermemory. The Python SDK is pip install supermemory, and on the <a href="https://supermemory.ai/docs/integrations/supermemory-sdk">SDK page</a> &quot;A namespace scopes memories to one user, workspace, or tenant, and you pass it on every call.&quot; The <a href="https://supermemory.ai/docs/supermemory-mcp/mcp">MCP server</a> is remote: after you connect, you &quot;choose which spaces the client can access&quot;, and its add_memory tool takes a namespace as well. The same SDK page warns that extraction is batched by default: &quot;A fresh namespace can show zero memories and an empty profile for minutes.&quot;</li><li>Mnemoverse (the author’s company). The <a href="https://mnemoverse.com/docs/api/python-sdk">Python SDK</a> is pip install mnemoverse, with write and read on a MnemoClient, and the VS Code extension signs in through the browser. The <a href="https://mnemoverse.com/docs/api/vs-code">VS Code page</a> says: &quot;Every tool connects to the same hosted memory behind one API key or OAuth&quot;. In the <a href="https://mnemoverse.com/docs/api/reference">API reference</a>, the domain of a read is &quot;Filter by domain (null = all)&quot;, so the scripts can keep their entries under a domain of their own, and that domain answers the who-wrote-it question.</li></ul><p>With any of them, the scripts and VS Code have to reach the same account, and each side has to read the scope the other writes into, or one side writes into a memory the other never reads.</p><h3>Make the agent look</h3><p>Connecting the server puts two more tools on the agent’s list. Whether the agent calls them on a question about a customer is a separate matter, so add one line to the instructions file, for example: “Before answering a question about a customer, call user_history with the customer id; record decisions about a customer with save_decision.” Then check the call itself, not only the answer. VS Code’s MCP page says to “Expand the tool call in the conversation”, and counts the connection as working when, among other checks, “The agent’s answer reflects that tool output.”</p><h3>Check it in both directions</h3><ol><li>Run the script once, so it writes an entry no model could guess, such as the held refund for cust-4471.</li><li>Open a new agent session in Copilot Chat and ask why cust-4471 was held, without quoting the entry. Expand the tool call and check that the answer came from user_history, not from reading the code.</li><li>Tell the agent the 500 EUR rule and ask it to save the decision for cust-4471. Run the script and look at what it read before it called its model.</li><li>Control: point the server at an empty store, here HISTORY_DB set to a new file, and repeat step 2. The agent should not know about the hold. If it still answers, the answer came from somewhere else, such as an open file or an earlier chat, and step 2 proved nothing. With a hosted service, give a new entry a few minutes before you call a miss, since some services extract in batches.</li></ol><p><em>Which Python memory packages build requests to a server outside the package, and which ship the engine inside it, is on </em><a href="https://mnemoverse.com/docs/library/python-sdk-agent-memory-compared"><em>Python SDK for Agent Memory, Compared</em></a><em>.</em></p><p><em>Sources were read on 28 October 2026; the text describes them as of that date. They are the documentation of VS Code, the MCP Python SDK and the three memory services named above, and the code above was run the same day against version 2 of the MCP Python SDK.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e672ab891df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What tools are you using for human code review of AI-assisted code?]]></title>
            <link>https://medium.com/@izgorodin/what-tools-are-you-using-for-human-code-review-of-ai-assisted-code-445a593ef569?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/445a593ef569</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 14:25:59 GMT</pubDate>
            <atom:updated>2026-11-18T17:24:48.707Z</atom:updated>
            <content:encoded><![CDATA[<p>For the person reviewing an agent’s pull request, the useful tools change what that person has to read; linters and AI reviewers count here only as filters that run before a human opens the diff. Review surfaces reorder and explain a large diff: CodeRabbit calls its Change Stack a “review workspace”, and Devin Review “turns large, complex PRs into intuitively organized diffs and precise explanations”. Stacked pull requests, documented by GitHub and Graphite, make each unit of review smaller. Checks that fail the build, such as ArchUnit, Import Linter or PMD’s CPD, take module boundaries and copy-paste off the reader’s list. And an AI review pass helps only when its output arrives sorted, with a summary apart from the line comments.</p><p>Every fact below comes from each tool’s own pages as I read them on 27 October 2026, and none of their makers saw this text before publication.</p><h3>Four kinds of tools, by what they do for the reader</h3><ol><li>Review surfaces, for a diff too large to follow file by file: CodeRabbit Change Stack, Devin Review, cubic’s review page, Graphite Code Tours and Reviewable.</li><li>Stacked pull requests, for a change too large to review in one sitting: GitHub and Graphite document stacks of small dependent pull requests.</li><li>Checks that fail the build, plus written rules for the AI reviewer, for duplicate code and coupling between modules: ArchUnit, dependency-cruiser, Import Linter, PMD’s CPD and jscpd, and the written rules of CodeRabbit, Copilot, Claude Code Review, Bugbot, Greptile and Qodo.</li><li>An AI pass before the human, laid out for triage, for noise in the pull request thread: a summary in one place, line comments in another, and checks that report without failing.</li></ol><p>None of them reads the change for you. Each takes one kind of work off the reader’s list.</p><h3>When the pull request page is the bottleneck</h3><p>Three vendors start from the complaint in the question. CodeRabbit’s docs: “A pull request arrives as a flat list of files in alphabetical order, and nothing about that order reflects how the change was built or how it should be read.” Change Stack is “CodeRabbit’s review workspace: it turns a pull request into a structured, navigable artifact you can read, question, and act on in one place.”, with layers “ordered so foundations come before the code that depends on them”, and the pull request’s intent beside what its agents could not work out from the diff. The docs say “Change Stack is on by default.” wherever CodeRabbit reviews, call it a preview, and list GitHub, GitLab, Bitbucket and Azure DevOps, where “Azure DevOps Change Stack artifacts are read-only.” On GitHub the review stays in place: “Comments, approvals, and change requests sync between Change Stack and the GitHub review surface.”</p><p>Devin Review “Groups changes logically, putting related edits together instead of alphabetical order.”, shows copied or moved code “cleanly, instead of full deletes and inserts”, and “Related edits are grouped into sections with explanations alongside their diffs.” It covers GitHub, GitLab “and connected Azure DevOps, Bitbucket Data Center, and Bitbucket Cloud repositories.” “Perforce Swarm reviews are also supported for accounts with Perforce connections enabled.” On Swarm the Devin Review UI is “read-only for human comments and approval actions”. “Public PRs don’t require a Devin account.”</p><p>cubic: “GitHub lists a PR’s files alphabetically.” On cubic’s review page, “related files are grouped together, the core change comes first, and each group comes with a short explanation”; a reviewer can mark files as viewed, show only the changes since their last review, and ask its AI chat for a tour that at each stop “explains its role in the change, and suggests what to verify”. cubic draws the line itself: “Deciding what matters is still up to people, and that’s the step this page is for.”</p><p>Graphite introduced Code Tours in a post dated 1 April 2026: “Code Tours turn a pull request into a guided walkthrough of the proposed code changes.” Reviewable, “fully integrated with GitHub (and only GitHub)”, keeps review marks for each file and revision, and a reviewer’s avatar opens “the diff between that user’s last reviewed revision (for each file) and the latest revision”. On GitHub itself, Copilot can “Generate an AI-powered summary of your pull request changes to help reviewers quickly understand what you changed and why.”</p><h3>When the change is too big to read: stacked pull requests</h3><p>GitHub’s docs describe stacks as a way to “Break large code changes into a chain of smaller, dependent pull requests you can review and merge independently.” “With each pull request in a stack containing one focused change, reviewers see a small diff for each layer instead of the large pull request”, and the docs name the agent case: “When you generate a lot of code at once, often with AI agents, a stack gives each change a place to go.” “Every pull request in a stack is evaluated against rules for the base of the stack”, so required reviews and checks hold on every layer. The rollout guide says stacks need “no setup or enablement”, and the stack rules page adds “Cross-fork stacks are not supported.”</p><p>Graphite’s docs give “Five helpful frameworks for breaking up large changes into stacked PRs.” Devin can split a large task into a stack itself, and “Devin’s stacks are built on GitHub’s native stacked pull requests”; in Devin Review, “Each member links to its own review page, so you can read the stack layer by layer.”</p><h3>Duplicate code and coupling: checks that fail the build</h3><p>A rule written once runs on every pull request, whoever or whatever wrote the code. ArchUnit runs “using any plain Java unit test framework”, and “ArchUnit can check dependencies between packages and classes, layers and slices, check for cyclic dependencies and more.” dependency-cruiser, for JavaScript and TypeScript, describes itself as “Validate and visualise dependencies. With your rules.”; a rule with the error severity makes its err reporter “return a non-zero exit code”. Import Linter “allows you to impose constraints on the imports between your Python modules”; in the docs’ first example, “running lint-imports will error if any modules in myproject.green import from myproject.blue”.</p><p>For copies, PMD’s CPD covers many languages, and “By default CPD exits with status 4 if violations are found.” jscpd “finds duplicated token sequences across files with a rolling” Rabin-Karp hash; with a baseline it “tolerates legacy clones and fails the build on regressions”, and its GitHub Action “Uploads SARIF results to GitHub Code Scanning by default.”</p><p>Such a check fails whether or not a reviewer noticed the problem, and it checks only what someone wrote down.</p><h3>Telling an AI reviewer what your architecture is</h3><p>Each AI reviewer here reads written rules, in its own format. CodeRabbit takes instructions by glob pattern, structural rules through ast-grep, and custom pre-merge checks written as “your own validation logic using natural language instructions.” Copilot code review reads repository custom instructions, and GitHub’s tutorial states the limit: “Copilot may not follow every instruction perfectly every time.” Claude Code Review reads CLAUDE.md files as project context and “flags changes that violate them”, plus review-only rules in REVIEW.md. Bugbot merges team rules, repository rules and .cursor/BUGBOT.md files: the root file plus any “found while traversing upward from changed files”. Greptile’s examples of custom rules include “Domain logic must not depend on external frameworks or libraries”, and Repo Clusters let it “read related repositories as context during reviews.” Qodo’s Rule Miner “analyzes your organization’s pull request history to automatically discover recurring review patterns and generate rules from them.”</p><p>Where rules are read from matters when agents open the pull requests. Copilot reads instructions “from the head branch (the branch with your changes), not the base branch”, “so you can test changes to them in the same pull request without merging them first”. Claude Code Review reads REVIEW.md “never from the pull request’s own changes”.</p><p>A rule changes what a reviewer looks for; whether a finding stops the merge is a separate setting. CodeRabbit’s pre-merge checks in error mode, paired with Automatic Approvals, “block merges until resolved or manually overridden”.</p><h3>Keeping agent output out of the reviewer’s way</h3><p>An AI pass adds to the noise or takes it away depending on where its output lands. CodeRabbit’s walkthrough is “a structured overview of the changes that appears at the top of the PR comment thread, separate from inline code comments.” Its Slop Detection, in early access, looks for “low-quality, AI-generated content” and adds a warning to that walkthrough; on GitHub “Collaborators, contributors, organization members, and repository owners are exempt.” unless the team includes all authors, “Private repositories require the Essentials plan or higher.”, and “Slop Detection does not block merges.” Claude Code Review runs a “verification step” on findings before it posts inline comments, a summary and a check run that, in its docs’ words, “doesn’t conclude as a failure”. Sigma, a GitHub pull request reviewer, keeps confirmed and unconfirmed apart: its docs say “Up to five verified findings are posted inline, on the line they point to.”, suspicions no verifier confirmed sit in a separate folded block as “leads no verifier confirmed, not findings”, and “A verification label is agent-produced evidence, not proof that the code is correct.” Sigma runs on Claude Code and OpenAI models; its homepage says “Create an account. No invitation needed.” (read on 18 November 2026).</p><p>Sources and method: every page below was read on 27 October 2026, and this text describes them as of that date. The review process around these tools, from smaller pull requests to the author explaining the change, is covered in <a href="https://dev.to/izgorodin/how-are-you-guys-handling-code-reviews-when-a-lot-of-the-code-is-written-by-ai-3idk">How are you guys handling code reviews when a lot of the code is written by AI?</a>, on dev.to.</p><p>CodeRabbit: <a href="https://www.coderabbit.ai/change-stack">Change Stack</a>, <a href="https://docs.coderabbit.ai/change-stack">Change Stack docs</a>, <a href="https://docs.coderabbit.ai/pr-reviews/walkthroughs">walkthroughs</a>, <a href="https://docs.coderabbit.ai/configuration/path-instructions">path instructions</a>, <a href="https://docs.coderabbit.ai/pr-reviews/pre-merge-checks">pre-merge checks</a>, <a href="https://docs.coderabbit.ai/pr-reviews/slop-detection">Slop Detection</a></p><p>Devin: <a href="https://docs.devin.ai/work-with-devin/devin-review">Devin Review</a>, <a href="https://docs.devin.ai/work-with-devin/stacked-prs">stacked PRs</a></p><p>cubic: <a href="https://docs.cubic.dev/code-review-platform/overview">review in cubic</a>, <a href="https://docs.cubic.dev/code-review-platform/intelligent-diff-ordering">grouped changes</a>, <a href="https://docs.cubic.dev/code-review-platform/ai-sidebar">AI chat</a></p><p>Graphite: <a href="https://graphite.com/blog/code-tours">Code Tours</a>, <a href="https://graphite.com/docs/how-to-structure-your-stacks">structuring a stack</a></p><p>Reviewable: <a href="https://docs.reviewable.io/">user guide</a>, <a href="https://docs.reviewable.io/reviews.html">code review</a>, <a href="https://docs.reviewable.io/files.html">review files</a></p><p>GitHub: <a href="https://docs.github.com/en/pull-requests/get-started/about-stacked-prs">stacked pull requests</a>, <a href="https://docs.github.com/en/pull-requests/reference/stacked-pull-requests">stack rules</a>, <a href="https://docs.github.com/en/pull-requests/tutorials/roll-out-stacked-prs">rollout guide</a>, <a href="https://docs.github.com/en/copilot/how-tos/copilot-on-github/copilot-for-github-tasks/create-a-pr-summary">Copilot PR summary</a>, <a href="https://docs.github.com/en/copilot/tutorials/customize-code-review">Copilot review instructions</a></p><p>Checks: <a href="https://www.archunit.org/">ArchUnit</a>, <a href="https://github.com/sverweij/dependency-cruiser">dependency-cruiser</a>, <a href="https://github.com/sverweij/dependency-cruiser/blob/main/doc/rules-reference.md">dependency-cruiser rules</a>, <a href="https://import-linter.readthedocs.io/en/stable/">Import Linter</a>, <a href="https://pmd.github.io/pmd/pmd_userdocs_cpd.html">PMD CPD</a>, <a href="https://github.com/kucherenko/jscpd">jscpd</a></p><p>AI reviewers: <a href="https://code.claude.com/docs/en/code-review">Claude Code Review</a>, <a href="https://code.claude.com/docs/en/code-review-customize">customizing it</a>, <a href="https://cursor.com/docs/bugbot">Bugbot</a>, <a href="https://www.greptile.com/docs/how-greptile-works/custom-rules">Greptile custom rules</a>, <a href="https://www.greptile.com/docs/code-review/cross-repo-context">Greptile Repo Clusters</a>, <a href="https://docs.qodo.ai/governance/rule-enforcement/rule-miner">Qodo Rule Miner</a></p><p>Sigma: <a href="https://sigma.mnemoverse.com/?src=medium&amp;utm_source=medium&amp;utm_medium=article&amp;utm_campaign=human-review-tools-ai-code">homepage</a>, <a href="https://sigma.mnemoverse.com/docs/reading-a-review?src=medium&amp;utm_source=medium&amp;utm_medium=article&amp;utm_campaign=human-review-tools-ai-code">reading a review</a></p><p>Disclosure: I build Sigma, one of the tools compared here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=445a593ef569" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is the Difference Between Simple Key-Value State Storage and Graph-Based Associative Memory…]]></title>
            <link>https://medium.com/@izgorodin/what-is-the-difference-between-simple-key-value-state-storage-and-graph-based-associative-memory-3f16de3ccd4c?source=rss-ea5537cb1b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f16de3ccd4c</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <dc:creator><![CDATA[Edward Izgorodin]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 13:17:43 GMT</pubDate>
            <atom:updated>2026-10-25T13:17:43.311Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Is the Difference Between Simple Key-Value State Storage and Graph-Based Associative Memory for AI Workflows?</h3><p>An agent that helps run billing for a small SaaS keeps what it learns the obvious way, one key per fact: plan:acme, region:acme, export:schedule, billing:eu_rounding. On Monday someone asks why the Acme invoice export failed overnight. The note that explains it, a rounding rule for EU accounts that changed in September, sits under a key the question never mentions, so the agent answers from the export schedule and misses the cause.</p><p>Simple key-value state storage returns the value stored under the key you name, and nothing else. That makes it fast, cheap and predictable, and it is the right place for settings, flags and the step a workflow has reached. Graph-based associative memory stores items together with links, often weighted, between the concepts or entities they mention, so a query also returns related items it did not name: here, the rounding note, reached because Acme is linked to the EU and the EU to the rounding rule. The price is the links. Something has to build them on write, keep them correct when facts change, and bound how far a read may walk. Many AI workflows end up with both: a key for what you know you will ask for, and a graph for what you will not know to ask for.</p><h3>Two stores, the same facts</h3><p>Below, the same facts go into both stores, and both get the same three questions: an exact key, a neighbour the question did not name, and a value that changed. The key-value side is a plain dict. Redis, a LangGraph store or a table with a primary key behave the same way for a lookup by key.</p><pre>kv = {<br>    &quot;plan:acme&quot;: &quot;Pro, billed annually&quot;,<br>    &quot;region:acme&quot;: &quot;EU&quot;,<br>    &quot;export:schedule&quot;: &quot;Invoice CSV export runs nightly at 02:00 UTC&quot;,<br>    &quot;billing:eu_rounding&quot;: &quot;EU accounts round each invoice line to 2 decimals since September&quot;,<br>}</pre><pre>print(kv.get(&quot;region:acme&quot;))                   # EU<br>print(kv.get(&quot;why did the acme export fail&quot;))  # None</pre><p>The graph side keeps each note with the concepts it mentions and a weight on each link between two concepts. A read starts from the concepts in the question, spreads one hop along links at or above a threshold, and scores each note by the activation of its concepts. A note that shares no concept with the question is marked with the concept it was reached through. The weights are typed in by hand here. In a real system they come from extraction or from use, and that is where the cost sits.</p><pre>notes = [<br>    (&quot;Acme is on Pro, billed annually&quot;, {&quot;acme&quot;, &quot;plan&quot;}),<br>    (&quot;Acme is hosted in the EU region&quot;, {&quot;acme&quot;, &quot;eu&quot;}),<br>    (&quot;Invoice CSV export runs nightly at 02:00 UTC&quot;, {&quot;export&quot;, &quot;invoice&quot;}),<br>    (&quot;EU accounts round each invoice line to 2 decimals since September&quot;, {&quot;eu&quot;, &quot;rounding&quot;}),<br>    (&quot;Team offsite is in Lisbon in November&quot;, {&quot;offsite&quot;, &quot;lisbon&quot;}),<br>]</pre><pre>edges = {}</pre><pre>def link(a, b, weight):  # undirected: one weight per pair<br>    edges.setdefault(a, {})[b] = weight<br>    edges.setdefault(b, {})[a] = weight</pre><pre>link(&quot;acme&quot;, &quot;plan&quot;, 0.6)<br>link(&quot;acme&quot;, &quot;eu&quot;, 0.8)<br>link(&quot;eu&quot;, &quot;rounding&quot;, 0.7)<br>link(&quot;export&quot;, &quot;invoice&quot;, 0.9)<br>link(&quot;offsite&quot;, &quot;lisbon&quot;, 0.9)</pre><pre>def recall(query, threshold=0.5):<br>    act = {c: 1.0 for c in query}<br>    for c in query:  # one hop of spreading activation<br>        for neighbour, weight in edges.get(c, {}).items():<br>            act[neighbour] = max(act.get(neighbour, 0.0), weight)<br>    act = {c: a for c, a in act.items() if a &gt;= threshold}<br>    hits = []<br>    for text, concepts in notes:<br>        score = sum(act.get(c, 0.0) for c in concepts)<br>        if score:<br>            via = [] if concepts &amp; query else sorted(concepts &amp; act.keys())<br>            hits.append((round(score, 2), text, via))<br>    return sorted(hits, reverse=True)</pre><pre>def show(query):<br>    for score, text, via in recall(query):<br>        print(f&quot;{score:.2f}  {text}&quot; + (f&quot;  [via {&#39;, &#39;.join(via)}]&quot; if via else &quot;&quot;))</pre><p>The offsite note is a control inside the data: nothing links it to billing, so it should never come back.</p><h3>Question 1: the exact key</h3><p>Asked for region:acme, the dict returns EU. Asked about acme with show({&quot;acme&quot;}), the graph returns three notes:</p><pre>1.80  Acme is hosted in the EU region<br>1.60  Acme is on Pro, billed annually<br>0.80  EU accounts round each invoice line to 2 decimals since September  [via eu]</pre><p>The answer ranks first, next to two notes nobody asked for. For a lookup that is a cost: the caller has to pick the right line, and the order moves whenever a weight moves.</p><p>This is the question key-value storage was built for. Redis puts the miss case for <a href="https://redis.io/docs/latest/commands/get/">GET</a> in one sentence: “If the key does not exist, nil is returned.” In the <a href="https://docs.langchain.com/oss/python/langgraph/stores">LangGraph store</a>, “Memories are namespaced by a tuple”, and “the key is simply a unique identifier for the memory (memory_id) and the value (a dictionary) is the memory itself.” Its aget method will &quot;Retrieve a single item by key; return None if missing&quot;. The store sits beside the checkpointer: &quot;Unlike checkpointers, which save the full graph state scoped to one thread, stores hold arbitrary key-value data accessible from any thread.&quot; The graph in LangGraph is the agent&#39;s workflow, whose state the checkpointer saves, not a graph of linked memories. Letta&#39;s current memory files are addressed by name too, in <a href="https://docs.letta.com/concepts/memfs">MemFS</a>: &quot;Memory is addressed by path: the memory labelled persona is projected to persona.md.&quot; A setting, a flag or the row a migration reached is a question you can name before you need the answer, and it belongs under a key.</p><h3>Question 2: the neighbour you did not name</h3><p>“Why did the Acme export fail?” carries two concepts, acme and export. The dict has no such key and returns None. The graph, with show({&quot;acme&quot;, &quot;export&quot;}), returns this:</p><pre>1.90  Invoice CSV export runs nightly at 02:00 UTC<br>1.80  Acme is hosted in the EU region<br>1.60  Acme is on Pro, billed annually<br>0.80  EU accounts round each invoice line to 2 decimals since September  [via eu]</pre><p>The rounding note shares no concept with the question. It came back because acme is linked to eu at 0.8, above the threshold, and the note mentions eu, while the offsite note stays out. That is association: an item reached through a concept the query did not name.</p><p>Between the two sits a key-value store with a search index, and it does more than a plain get. The LangGraph store “also supports semantic search, allowing you to find memories based on meaning rather than exact matches”, and its contract for a backend with vector search is, given a query, to “embed it and rank results by cosine similarity.” <a href="https://github.com/redis-developer/langgraph-redis">langgraph-redis</a> provides “Redis-backed key-value stores with optional vector search capabilities”, and <a href="https://redis.io/docs/latest/develop/ai/context-engine/agent-memory/">Redis Agent Memory</a>, “currently available in preview”, can “Search long-term memory using semantic, keyword, or hybrid search.” In Letta, the <a href="https://docs.letta.com/concepts/memfs">MemFS</a> Search mod adds “keyword search and optional semantic or hybrid search” over memory files, and the legacy V1 SDK describes <a href="https://docs.letta.com/v1-sdk/memory/archival-memory/">archival memory</a> as “a semantically searchable database”. Search of this kind ranks items by closeness to the question. The export schedule is close to “Acme export”. The rounding note shares no words with the question, so whether it comes back depends on where its embedding lands, not on the fact that Acme is an EU account. Similarity finds what resembles the question; association finds what is connected to it.</p><p>Graph-based memory systems add the connection, and each one quoted here combines it with similarity rather than replacing it:</p><ul><li>In <a href="https://docs.mem0.ai/platform/features/graph-memory">Mem0 Graph Memory</a>, entities become nodes “and memories that share an entity are connected.” At search time Mem0 “extracts the entities from your query and matches them against the graph”, and connected memories get “a ranking boost, which is combined with semantic (vector) and keyword (BM25) scores”. The page lists “multi-hop recall, connecting a fact in one memory to a related fact in another” among the cases it is built for, which is the rounding note’s kind of path.</li><li><a href="https://help.getzep.com/graphiti/getting-started/overview">Graphiti</a> “Combines vector similarity, BM25 full-text, and graph traversal into a single ranked answer, with no LLM-in-the-loop reranking”, and one of its <a href="https://help.getzep.com/graphiti/working-with-data/searching">rerankers</a> “weights facts by their closeness to the focal node”.</li><li><a href="https://docs.cognee.ai/core-concepts/architecture">Cognee</a> keeps a graph store, “nodes and edges that let Cognee understand structure and navigate connections between concepts”, next to a vector store, and names “Hybrid searches (vector + graph)” among the ways it reads them. Its <a href="https://docs.cognee.ai/core-concepts/main-operations/recall">recall page</a> says that “for permanent memory, recall() runs graph retrieval”, rather than plain embedding similarity.</li><li><a href="https://neo4j.com/labs/agent-memory/">Neo4j Labs Agent Memory</a> offers to “Combine semantic retrieval with graph queries supported by the chosen backend.”</li><li>In <a href="https://mnemoverse.com/docs/api/reference">Mnemoverse</a> (the author’s company), a read is “semantic search plus expansion through learned concept associations”: the associations widen the query to related concepts, and an item found only that way is labelled hebbian_retrieval, &quot;missed by the direct stages and reached through learned associations, via a concept the query did not name&quot;, which is the rounding note&#39;s path in the toy. The association edges can be read back with POST /memory/graph, at most three hops from the seed concepts, and on a multi-hop read with no weight floor given the server applies 0.05 at every hop.</li></ul><h3>Question 3: the value that changed</h3><p>Acme moves to the US region on 1 October. In the dict that is one line, and the old value is gone, which is exactly what state wants:</p><pre>kv[&quot;region:acme&quot;] = &quot;US&quot;<br>print(kv[&quot;region:acme&quot;])  # US</pre><p>Redis states the rule for <a href="https://redis.io/docs/latest/commands/set/">SET</a>: “If key already holds a value, it is overwritten, regardless of its type.” The LangGraph store’s aput will &quot;Store or overwrite a single item&quot;, and langgraph-redis offers shallow savers for state where only the present matters: &quot;Shallow Redis checkpoint savers store only the latest checkpoint in Redis.&quot;</p><p>In the graph, the change is a new note and a new link. Nothing removed the old ones:</p><pre>notes.append((&quot;Acme moved to the US region on 1 October&quot;, {&quot;acme&quot;, &quot;us&quot;}))<br>link(&quot;acme&quot;, &quot;us&quot;, 0.5)<br>show({&quot;acme&quot;, &quot;export&quot;})</pre><pre>1.90  Invoice CSV export runs nightly at 02:00 UTC<br>1.80  Acme is hosted in the EU region<br>1.60  Acme is on Pro, billed annually<br>1.50  Acme moved to the US region on 1 October<br>0.80  EU accounts round each invoice line to 2 decimals since September  [via eu]</pre><p>The move ranks below the old region, and the EU rounding rule still comes back through acme to eu, now pointing at a rule that no longer applies to Acme. In a graph a changed value is not one write: the old item has to be marked as replaced, and the links through it lowered or cut, or the old neighbourhood keeps answering. Memory systems handle this in different ways:</p><ul><li>Invalidate, with time on the edge. In <a href="https://help.getzep.com/v3/facts">Zep</a>, “Facts are time-stamped claims stored on edges”. In its example, when a user named Kendra switches from Adidas to Puma, “Zep attempts to invalidate the fact that Kendra loves Adidas shoes and creates two new facts”, and each fact carries four timestamps: created_at, valid_at, invalid_at and expired_at. Graphiti, which Zep uses to derive its temporal graph, has a bi-temporal model that “supports queries about current and historical relationships.”</li><li>Add, rank for the present, and correct on request. In <a href="https://docs.mem0.ai/core-concepts/how-it-works">Mem0</a>, “The automatic extraction path is additive”, and Mem0 “can store the new fact without silently rewriting the old one”. On its Platform, search adds a temporal signal that “Scores candidates on time metadata extracted at write time against the query’s temporal intent”, listed for questions about current state and recency. For the rest the page advises: “Use explicit update or delete operations when your application needs to correct or remove a memory.”</li><li>Keep every version. In Letta MemFS, “Every memory edit is committed to the MemFS git repository.”</li><li>Point from the old item to the new one. A Mnemoverse write can name the memories it replaces in a supersedes field; a replaced memory is not deleted, it gains a superseded_by pointer to the new one and stays fetchable by ID.</li></ul><h3>What the links cost</h3><p>Every link in the toy was typed by hand. Real systems mostly derive them from text when they write. In Mem0, after an LLM extracts the facts, Mem0 “pulls out the people, places, organizations, and concepts each memory mentions”, and “On Platform these entities also become the nodes of Graph Memory.” Graphiti “Can parallelize LLM calls during bulk processing while preserving the chronology of events.” Cognee’s <a href="https://docs.cognee.ai/core-concepts/main-operations/legacy-operations/cognify">cognify step</a> “Calls the LLM to extract entities and relationships”, and the same page offers a GLiNER extractor that makes no LLM call. Then come the duplicates: Cognee “Deduplicates nodes and edges, commits to the graph DB”, and Neo4j Labs Agent Memory, on its Bolt backend, “resolves new mentions against existing entities on ingest”. A plain key-value write, with no search index, involves no model at all. A graph does not always mean a graph database to run: of its platform graph, Mem0 says “There is no Neo4j, Memgraph, or other graph store to deploy”. It does mean extraction to pay for on write, and usually entity resolution as well.</p><p>Then the links have to stay correct. Question 3 showed a true link going stale, and a link inferred from two things being mentioned together can be coincidence from the start. Something has to lower, invalidate or remove links over time, or a busy concept, such as a large customer, collects links to everything ever said near it.</p><p>Finally, the read has to be bounded. The toy walks one hop with a threshold of 0.5; two hops from acme in a real store could reach a large share of everything written about billing. Mem0 and Graphiti fuse graph signals with vector and keyword scores, so the graph is one signal among several. Others bound the walk itself: Cognee&#39;s <a href="https://docs.cognee.ai/core-concepts/main-operations/legacy-operations/search">graph completion</a> takes vector hits as seeds and projects &quot;a 1-hop expansion around the seeds&quot; unless you set neighborhood_depth, and Zep&#39;s <a href="https://help.getzep.com/v3/searching-the-graph">breadth-first search</a> starts from nodes or episodes you name: &quot;You can provide up to five UUIDs.&quot; Zep also returns a <a href="https://help.getzep.com/v4/reading-data-from-the-graph#bounded-subgraphs">bounded subgraph</a>: it expands from up to 20 seed nodes by at most three hops, within a node budget and an edge budget. When a budget stops the expansion, the response names the limit, &quot;so a partial neighborhood is never mistaken for a complete one.&quot; A key never needs any of this, because it never walks.</p><h3>Which one for which data</h3><ul><li>Under a plain key: settings, feature flags, the user’s language, the step a run reached. Anything you can name before you need it, where only the current value matters.</li><li>Key-value with a semantic index: notes you will look for by topic, where the useful note resembles the question.</li><li>An associative graph: incidents, decisions, workarounds and customer facts whose relevance you cannot predict, where the useful note is connected to the question rather than similar to it. Where facts change and the history matters, prefer one that records validity or replacement.</li><li>Both, in many agent workflows: the state of the run under keys, what the agent learned in a graph or an indexed store. Letta’s legacy archival memory page draws the same line when it lists frequently changing state among the things not to put there.</li></ul><p>Whichever you choose, <a href="https://neo4j.com/labs/agent-memory/">Neo4j’s page</a> states the part that is easy to forget: “Persistence stores data; retrieval and a model call must be wired into the application for that data to influence a later answer.”</p><h3>Check it on your own data</h3><ol><li>Write a dozen facts to a key-value store and to the graph memory you are considering. Include one that shares no concept with a question you plan to ask but is linked to one of its concepts, like the rounding note.</li><li>Ask for one exact key in both. Count what else the graph returns, and check whether the right item ranks first.</li><li>Ask the question. A plain get should return nothing, an indexed store whatever resembles the wording, and the graph the linked fact. If the system reports why an item came back, read that field.</li><li>Change one fact and ask again. Note where the old value ranks and what it still pulls in.</li><li>Control: lower or remove the one link the linked fact depends on, and repeat step 3. In the toy, link(&quot;acme&quot;, &quot;eu&quot;, 0.3) drops the rounding note. If the fact still comes back on your system, it arrived by similarity or by a shared concept, not by association, and step 3 proved nothing about the graph.</li></ol><p><em>Facts in this text, including every quotation, were read on 24 October 2026 in the documentation of LangGraph, Redis, Mem0, Zep and Graphiti, Cognee, Letta, Neo4j Labs and Mnemoverse, and the text describes that documentation as it stood on that day.</em></p><p><em>How learned associations widen a query, and how that differs from similarity search, is on </em><a href="https://mnemoverse.com/docs/library/hebbian-memory-for-ai-agents"><em>Hebbian memory for AI agents</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f16de3ccd4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>