<?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 Artem Hrechanychenko on Medium]]></title>
        <description><![CDATA[Stories by Artem Hrechanychenko on Medium]]></description>
        <link>https://medium.com/@ahrechanychenko?source=rss-20d1a76d43fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VV3m0fwUI9r-cV41</url>
            <title>Stories by Artem Hrechanychenko on Medium</title>
            <link>https://medium.com/@ahrechanychenko?source=rss-20d1a76d43fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:56:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahrechanychenko/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[The Chronicle Gets a Librarian, or Why I Took Back What I Said About MCP]]></title>
            <link>https://medium.com/@ahrechanychenko/the-chronicle-gets-a-librarian-or-why-i-took-back-what-i-said-about-mcp-0ed8a16eded1?source=rss-20d1a76d43fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ed8a16eded1</guid>
            <category><![CDATA[langfuse]]></category>
            <category><![CDATA[evaluation]]></category>
            <category><![CDATA[bedrock-knowledge-bases]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[knowledge-base]]></category>
            <dc:creator><![CDATA[Artem Hrechanychenko]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 13:12:24 GMT</pubDate>
            <atom:updated>2026-11-21T13:19:28.732Z</atom:updated>
            <content:encoded><![CDATA[<h4>Two months of a shared memory for coding agents: search by meaning, one typed MCP server for every agent, every call traced, and links between records. Measured before and after, again.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47Kaailo2xNyvsmJtHtinQ.png" /></figure><p>The Chronicle is what I called our team’s knowledge repo in the earlier articles: markdown in git where every finding goes through a merge request. The last article ended with a short section about MCP. Somebody in the team asked whether we should wrap the repo in an MCP server, and I answered:</p><ul><li>laptops have a shell and a clone;</li><li>CI has a clone;</li><li>so MCP stays an option for one reader, the hosted agent that cannot run a CLI.</li></ul><p>I meant it. <strong>Two months later every agent we have reads the repo through one MCP server.</strong> This article is about why.</p><p>It started with a talk. I presented the repo to the department, and someone asked:</p><blockquote><em>“When agents work through git, the context blows up. Your records are typed and tagged. Why not wrap them in MCP?”</em></blockquote><p>I had my answer ready: search output is tiny, about 2.5 KB for ten results. Then I went and looked at what the agent does <em>after</em> the search.</p><ul><li>it reads whole files, a full wiki page when it needs one section;</li><li>when search finds nothing, it opens the full index: <strong>137 KB, about 35 thousand tokens</strong>.</li></ul><p>Why? Because the skill told it to. And I wrote that skill.</p><h3>🗺 What changed in two months</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LM5liqGVRv0PsZd8.png" /></figure><p><strong>Writes did not change.</strong> The repo in git is still the source of truth. A new finding is a branch and a merge request, and a human reviews it.</p><p><strong>Reads did:</strong></p><ul><li>every agent goes through one read-only server with four tools: <em>search</em>, <em>get</em>, <em>list</em> and <em>related</em>. The server keeps a clone of main and pulls it every five minutes;</li><li>search got a second ranking, by meaning, from <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html">Amazon Bedrock Knowledge Bases</a> with an <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors.html">S3 Vectors</a> index;</li><li>every call leaves a metric in Prometheus, a log line in Loki and a trace in Langfuse;</li><li>laptops keep the CLI as a fallback, and CI still works from a clone.</li></ul><p>The repo grew too: 329 findings, 64 decisions, 56 system pages and a handful of incidents, written by coding agents and reviewed by people.</p><h3>🔍 Search by meaning, finally</h3><p>In the last article keyword search was enough. I said vectors could wait until a ruler told us otherwise, and the query log on my laptop became that ruler: <strong>in every third search no page held all the words.</strong> Two typical reasons:</p><ul><li>the page said “network policy”, the question said “NetworkPolicy”;</li><li>the page described the <em>cause</em>, the question described the <em>symptom</em>.</li></ul><p>So we built a proof of concept on Amazon Bedrock Knowledge Bases: Titan Text V2 embeddings, an S3 Vectors index, no servers of our own.</p><h4>The ruler that lied</h4><p>The first result was exciting. On 79 real searches that had missed, keyword search found the right page in only 38% of cases, and the knowledge base did far better. I put 38% on a slide.</p><p>Then I re-ran the keyword part on main and got <strong>95%</strong>. What happened:</p><ul><li>the PoC scripts had run on my laptop clone, <em>32 commits behind main</em>;</li><li>for 36 of the 79 “misses” the right page was written after the search;</li><li>so those searches missed because the page did not exist yet.</li></ul><p>The ruler was fine; I had measured an old copy of the library. <strong>Since then the first thing I check about any number is what it was measured on.</strong></p><h4>How a page gets into the knowledge base</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PxqPE34OjCGZ3a8u.png" /></figure><ul><li>a CI job runs on every merge to main and exports the repo as KB documents;</li><li>every record becomes two documents: <strong>the whole record and a short digest</strong> with the symptom first, then the summary and the aliases;</li><li>each document carries metadata (repo path, type, status, systems), so an answer from the KB is turned back into a path in git. <em>The agent always reads the reviewed file, not a copy;</em></li><li>only changed files go to the S3 bucket (MD5 against what is there), then a Bedrock ingestion job embeds them with Titan. No chunking: one record, one vector in S3 Vectors.</li></ul><p>The digest came from a real miss. One finding was a 6 KB story about pods starting slowly every morning. Its vector leaned towards the cause (a webhook port), while people asked about the symptom (“ten pods per minute after night mode”), and the KB never returned it. With a symptom-first digest next to the full record, <strong>the KB alone on symptom-worded questions went from 0.879 to 0.970</strong> in the top five.</p><h4>How a question is answered</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J6gwMhwt-DOAGlws.png" /></figure><p>First, the keyword side. It is <a href="https://www.sqlite.org/fts5.html">SQLite FTS5</a>, the full-text engine that usually ships inside Python’s SQLite. On every call the CLI loads all records, about 450 files, into an in-memory table and ranks them with BM25. There is no index file to keep fresh, and it takes a fraction of a second. BM25 in one sentence: <em>a word counts more when it is rare across the repo and frequent in this page, and a long page does not win just by being long.</em></p><p>Meaning search loses on exact strings: error messages, alert names, flags. On our labelled questions the Bedrock KB alone found the right page in the top five in 0.941 of cases, keyword search in 0.985. <strong>So meaning search does not replace keyword search; the two lists are merged:</strong></p><pre>1. records holding every word come first, ordered by BM25<br>   (a word in the path, id, summary, tags or aliases weighs x5)<br>2. the rest is a vote between the two lists:<br>   score = 1/(60 + place by words) + 0.5/(60 + place by meaning)</pre><p>Two numbers in that formula need a word each:</p><ul><li><strong>60</strong> comes from <a href="https://plg.uwaterloo.ca/~gvcormac/cormacksigir09-rrf.pdf">reciprocal rank fusion</a> (Cormack, Clarke and Büttcher, 2009): each list gives a page 1/(60 + its place), and the paper’s authors fixed k = 60 after their own experiments. With such a large constant places 1 and 2 differ very little, so a page that <em>both</em> lists put high beats a page that one list puts first;</li><li><strong>0.5</strong> is the weight of the meaning vote. With equal weights, a page that sat deep in both lists overtook a strong keyword match the KB had missed: one query fell from second place to twenty-first. At half weight no query in the eval got worse than keywords alone.</li></ul><p>On the 68 labelled questions:</p><pre>search            top-5   first place   MRR<br>keywords only     0.985   0.794         0.874<br>keywords + KB     1.000   0.838         0.907</pre><p>When the KB is down, slow or not configured, the answer starts with (keywords only: ...) and goes on without it.</p><h3>📦 The bill was never the search</h3><p>Back to the question from the talk. <strong>The cost was in the reading.</strong> So the CLI got two new verbs first:</p><ul><li>get returns a record&#39;s working fields (status, confidence, summary, symptom, root cause, fix) instead of the file. For a wiki page it returns the outline, then only the section you ask for;</li><li>list returns records by type, status or system with their summaries, instead of an index file.</li></ul><p>Then we measured: twenty questions from our search eval, a small model (Haiku), a fixed copy of the repo, a headless Claude Code, four ways to read the knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RxtQOKd3mUUnhXjl.png" /></figure><pre>mode                    correct  tool output  input tokens  cost, 20 q<br>old CLI, whole files    20/20    12.1 KB      190k          $0.135<br>CLI with get and list   20/20    10.1 KB      131k          $0.121<br>MCP, indented JSON      20/20    16.2 KB      140k          $0.128<br>MCP, compact text       20/20    10.1 KB      135k          $0.116</pre><p>Look at the third line. <strong>The first version of the MCP server returned more than the CLI it was supposed to replace: +34% of tool output.</strong> It answered in indented JSON: braces, quotes, empty lists and fields nobody asked for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5SBBEyRnU5HD2uzi.png" /></figure><p>Plain key: value lines fixed it:</p><ul><li>the same bytes as the CLI;</li><li><strong>29% fewer input tokens and 14% less money</strong> than the old CLI;</li><li>the same 20 out of 20 correct.</li></ul><p>A model reads lines as well as JSON. Scripts that want JSON still get it from the CLI with --json.</p><p>One more confession. Before these runs I told the team <em>“minus 50% of context”</em>, counted from file sizes. The runs said minus 29%. Since then my numbers come from runs, not from wc -c.</p><h3>🔌 One librarian, typed</h3><p>Four tools:</p><ul><li>kb_search: the terms as a list, filters for type and status as enums, other wordings of the same question;</li><li>kb_get: one record&#39;s fields or one page&#39;s sections;</li><li>kb_list: records by type, status, repo or system;</li><li>kb_related: what a record connects to (below).</li></ul><p><strong>Typed parameters fixed a bug we saw in the query log.</strong> An agent passed the whole question as one quoted argument, so search looked for one long phrase and found nothing. With terms as a list that cannot happen.</p><p>Every agent we use connects the same way, each with its own config file format. The CLI prints the right snippet for each of them and can call the server once to check that search works, by words only or also by meaning.</p><h4>Two traps, if you measure agents yourself</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PzOhYdLGJWspNg8V.png" /></figure><ul><li><strong>An installed skill leaked into the mode that was supposed to run without it.</strong> The agent loaded it anyway. --disallowedTools Skill fixed the measurement.</li><li><strong>Claude Code lists MCP tools by name only until they are loaded.</strong> An agent that sees kb_search by name and Grep ready to use picks grep. The first MCP run cost the same as the CLI run because the server got no calls at all. The skill now says: load the tools first, do not grep the checkout.</li></ul><p>The server has one shared token today. Per-person identity is the next step.</p><h3>🔭 Every call is visible</h3><p>Each call leaves three things:</p><ul><li>a counter and a latency histogram per tool in Prometheus;</li><li>one JSON log line in Loki;</li><li>one trace in our self-hosted <a href="https://langfuse.com/docs/opentelemetry/get-started">Langfuse</a>, sent over OpenTelemetry.</li></ul><p>What goes in: the tool, the caller, the terms, the paths returned, bytes returned, latency. <strong>What never goes in: page text and prompts.</strong></p><p>The first useful thing it showed was about the hosted ops agent. It sent searches of eight words and more, and almost none of them had a full match. Laptop logs would never show that, because that agent has no laptop. <em>The fix belongs in its instructions; the search is fine.</em></p><p>The Grafana dashboard is code too, reviewed like everything else.</p><h3>🕸 The records know how they connect</h3><p>After the talk came a second question: <em>“are records and tags related? Is that what MCP resources are for?”</em></p><p>The relations were already in the files:</p><ul><li>1,635 wiki links to 287 targets;</li><li>336 record ids named in wiki pages;</li><li>superseded_by on records that were replaced;</li><li>systems on every record.</li></ul><p>Nothing used them. To answer “is this decision still current”, an agent called get once per hop. To answer &quot;who refers to this page&quot;, it had no way at all short of reading every file.</p><p><strong>MCP resources would not help here.</strong> In the <a href="https://modelcontextprotocol.io/specification">MCP specification</a> a resource is a document the client attaches to the context, usually picked by a person. Following a relation is a question with a parameter, so it is a tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4frUbrkWsyZMTF1D.png" /></figure><p>related works like this:</p><pre>read every page once (about 450 files, ~0.2 s on a laptop)<br>links     = [[links]] and record ids in the text<br>            (a link and an id to the same record count once)<br>cited by  = pages whose links or ids point here<br>chain     = follow superseded_by until it stops,<br>            and list the records this one replaced<br>systems   = other records on the same systems, open first, closed counted<br>print each page once, summaries cut at 120 chars, 5 lines per group</pre><p>Then we measured again, with a ruler that does not depend on the tool: 12 questions whose answer depends on links (is this still current, who cites this, what else is open on this system), with the expected answer computed straight from the files. Two runs each, the same small model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zy-phpSmYMI-HsOZ.png" /></figure><pre>mode                     found   calls   input tokens<br>clone + MCP, before      0.96    4.5     149k<br>clone + MCP + related    1.00    2.5     111k<br>MCP only, before         0.85    6.5     144k<br>MCP only + related       1.00    2.2      94k</pre><p>The biggest change is where the hosted agent lives, with MCP only and no clone. <strong>“Who cites this page” took 11.5 calls and 39 KB of tool output, and still missed some. With </strong><strong>related it is one call and 4 KB.</strong></p><h4>And the vendor’s graph?</h4><p>I was asked about it right after. Our wiki vendor has its own team graph now, and it indexes a lot: tickets, pages, people, pull requests when the code host is connected. The two answer different questions:</p><ul><li>the vendor’s graph: <em>who worked on this and what is around it</em>;</li><li>our repo: <em>what is still true</em>, with status, confidence, expiry and what replaced what.</li></ul><p>An agent can ask both.</p><h3>⚠️ What the numbers do not tell you</h3><ul><li>one small model and one or two runs per question: enough to see a 30% change, not a 3% one;</li><li>the relation questions come from the same link graph the tool reads. Fair for “does it find everything”, generous to the tool;</li><li>the search labels were made by agents and still wait for a human review;</li><li>the hosted ops agent gains less than people do: on alert investigations it spends about 2 of 12 steps on the knowledge repo, so a cheaper lookup saves it about one step;</li><li>all of this runs in the test environment, with one shared token.</li></ul><h3>Ending</h3><p>Two months ago I wrote that MCP is for one reader. The measurements disagreed, and only after the server stopped answering in JSON.</p><p>This is the last article of the series. Search by meaning, MCP and traces were added on top, but the frame is still the one from the first article:</p><ul><li><strong>git</strong> holds the knowledge, and every record goes through a merge request;</li><li>a <strong>skill</strong> tells each agent where to look and how much to read;</li><li>a <strong>hook</strong> reminds the agent to capture what it found before the session ends.</li></ul><p>For the engineers there is nothing new to learn:</p><ul><li>ask the agent <em>“how do we do this here”</em>;</li><li>say <em>“capture this”</em> when you dig something up;</li><li>and ask the question that is now cheap: <em>“what else do we know about this?”</em></li></ul><p>The sample repo has all of it, tag article-3: get, list, related, the ranking by meaning (bring your own Bedrock knowledge base), a small MCP server over the same functions, and the eval harness.</p><h3>Links</h3><ul><li>The previous article: <a href="https://medium.com/@ahrechanychenko/the-chronicle-learns-to-search-or-how-we-measured-before-we-guessed-8235ae6e5c98">The Chronicle Learns to Search, or How We Measured Before We Guessed</a></li><li>The one before it: <a href="https://medium.com/p/c1ae7f1a45fb">The Chronicle of the Tower, or How Our Coding Agents Learned to Remember</a></li><li>The sample repo, tag article-3: <a href="https://github.com/devops01ua/agent-knowledge-sample/tree/article-3">https://github.com/devops01ua/agent-knowledge-sample/tree/article-3</a></li><li>MCP specification, tools and resources: <a href="https://modelcontextprotocol.io/specification">https://modelcontextprotocol.io/specification</a></li><li>SQLite FTS5: <a href="https://www.sqlite.org/fts5.html">https://www.sqlite.org/fts5.html</a></li><li>Cormack, Clarke, Büttcher, Reciprocal Rank Fusion (SIGIR 2009): <a href="https://plg.uwaterloo.ca/~gvcormac/cormacksigir09-rrf.pdf">https://plg.uwaterloo.ca/~gvcormac/cormacksigir09-rrf.pdf</a></li><li>Amazon Bedrock Knowledge Bases: <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html">https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html</a></li><li>Amazon S3 Vectors: <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors.html">https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors.html</a></li><li>Langfuse, OpenTelemetry ingestion: <a href="https://langfuse.com/docs/opentelemetry/get-started">https://langfuse.com/docs/opentelemetry/get-started</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ed8a16eded1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Chronicle Learns to Search, or How We Measured Before We Guessed]]></title>
            <link>https://medium.com/@ahrechanychenko/the-chronicle-learns-to-search-or-how-we-measured-before-we-guessed-8235ae6e5c98?source=rss-20d1a76d43fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8235ae6e5c98</guid>
            <category><![CDATA[agent-memory]]></category>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[shared-knowledge]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Artem Hrechanychenko]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 08:47:31 GMT</pubDate>
            <atom:updated>2026-10-07T08:47:31.587Z</atom:updated>
            <content:encoded><![CDATA[<h4>A shared memory for coding agents, two weeks later: a ruler made of our own questions, a bug it found, ranking without a database, and an audit of the Chronicle against the code</h4><p>In the previous tale the familiars got a memory: the Chronicle, a repository of markdown in git where every finding goes through a merge request. I finished that tale with a confession about search. It finds exact words only, there is no ranking, and “the day it stops being enough we will know what to take from the third traveller”.</p><p>I thought that day would come in a few months. <strong>It came in two weeks</strong>, and the question did not come from the familiars. It came from us.</p><h3>First, the map</h3><p>After the last tale a few people asked me the same thing: <strong>how is all of this connected?</strong> The Book with plugins, the Chronicle, the skills, the hook, the project repos. Fair question, so here is the map before the story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MfKzJfqhVJK7M15fgSy8Sg.png" /></figure><p>The interactive version lets you follow six flows step by step (set up a laptop, look something up, capture a finding, onboard a repo, the monthly ritual, readers without a laptop) and click any part to see what it does: <a href="https://devops01ua.github.io/agent-knowledge-sample/architecture.html">https://devops01ua.github.io/agent-knowledge-sample/architecture.html</a></p><p>In short:</p><ul><li>📖 the Book (marketplace repo) <strong>gives every agent the same plugins</strong>. One of them is the wiki plugin: a stop hook and a setup skill</li><li>💻 the setup skill <strong>clones the Chronicle to the laptop</strong>, installs the CLI and links five skills into the agent</li><li>🧠 the Chronicle holds the schema, the wiki, the memory, the raw sources and a log, and <strong>nothing gets into main without a merge request</strong></li><li>🧭 every project repo <strong>has its own AGENTS.md</strong>, and the Chronicle builds the repo catalogue from them</li><li>🤖 readers without a laptop <strong>get the same data another way</strong>: a clone in CI, an export for the hosted agent</li></ul><p>Now the story.</p><h3>The temptation</h3><p>When a search misses, the first idea is always to bring a bigger tool. Embeddings. A vector store. A managed memory service. A knowledge graph. Or the new open source “context database” that somebody dropped in the team chat on Monday morning (<em>there is always one</em>).</p><p>So before building anything, I asked for a deep research: is markdown in git still the right shape for a few hundred pages, or is it time to move?</p><p>The answer came in three parts:</p><ul><li>🧱 <strong>the shape is fine</strong>. For a corpus of about three hundred pages, none of the verified sources shows a vector store, a managed memory or a graph doing better</li><li>🔍 <strong>the weak spot is the search itself</strong>: exact substrings, every word required, no order. Ranked lexical search first, embeddings maybe later</li><li>🕳 and <strong>none of the benchmarks measured a corpus as small as ours</strong>. They talk about hundreds of thousands of documents</li></ul><blockquote>The last part was the useful one. If nobody measured a corpus of our size, we had to measure it ourselves.</blockquote><h3>A ruler made of our own questions</h3><p>Every session of a familiar leaves a transcript. Every time a familiar searched the Chronicle, the command is in there, next to the question the builder asked.</p><p>I went through them:</p><ul><li>121 real searches from 36 past sessions</li><li>62 of them had a clear intent behind them</li><li>60 of those had an answer somewhere in the Chronicle, 2 did not</li></ul><p>Then somebody had to say which page is the right answer for each question. I gave that job to four familiars, a quarter of the questions each, with one rule: <strong>you cannot use the search we are measuring</strong>. Only grep, the index and reading pages. <em>Labels made with the tool under test would measure nothing.</em></p><p>A hit means the right page is in the first ten lines of the output. The first run:</p><pre>misses: 12 of 60 (20%)<br>first page right: 32<br>in the first three: 44</pre><p><strong>One search in five did not find a page that was there.</strong> <em>Not great, not terrible.</em></p><h3>The ruler found a bug</h3><p>The misses fell into two piles, and <strong>the first one surprised me</strong>.</p><pre>with the repo filter: 8 of 20 missed (40%)<br>without filters:     4 of 40 missed (10%)</pre><p>Every record in memory/ has a repos field. No page in wiki/ has one. So the repo filter (--in-repo platform in the sample) <strong>quietly threw away every wiki page</strong>. And the look-up skill told the familiar to search with the repo filter first. <em>Yes, I wrote that skill.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ji3GYvSgf_UkS01BeLAoqQ.png" /></figure><p>A deep research would never find this, because it is <strong>three lines of our own code</strong>. The fix: with search words, the repo filter narrows the records and keeps the shared pages. Without words it still lists the records of that repo, as before.</p><pre>misses: 12 → 8</pre><h3>Ranking without a database</h3><p>The second pile was about words. The page says “release flow”, the familiar asks for “release strategy”, and since every word was required, the page was gone.</p><p>I did not want a database for three hundred files. Then I remembered that <strong>SQLite has a full text engine with BM25 inside</strong>, and Python ships with SQLite. So the CLI now builds an in-memory FTS5 table on every call. For a few hundred files it takes about 0.2 seconds, and there is <em>no index file to keep fresh</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0imjV_MOhYWK8gS271_DQ.png" /></figure><p>What changed in the output:</p><ul><li>🥇 <strong>pages with every word come first, best first</strong>. A word in the path, the id, the summary or the tags counts more than a word somewhere in the body</li><li>🧩 <strong>pages with only some of the words come after a marker line</strong>, so one unlucky word does not empty the whole result</li><li>✂️ <strong>ten lines by default</strong>, --limit if you want more</li></ul><pre>acme-kb search gitops token --limit 3</pre><pre>memory/findings/F-2026-09-16-001.md  [fixed]  The GitOps server cannot issue API tokens for SSO users ...<br>wiki/systems/gitops-server.md  [wiki]  The GitOps server that deploys every workload ...<br>-- not every term matched --<br>memory/incidents/I-2026-09-25-001.md  [closed]  The payments rollout in prod paused at 1 of 4 replicas ...</pre><pre>misses:              8 → 2<br>first page right:   33 → 51<br>in the first three: 46 → 56</pre><p>If the local SQLite has no FTS5, the same pages come back, sorted by how many words they have. <em>Worse order, same pages.</em></p><h3>The names people actually use</h3><p>The last two misses were “gitflow” and “release strategy”. Nobody uses these words on the release flow page, but <strong>people use them all the time when they ask</strong>.</p><p>So now a page or a record can have aliases, the other names people search by:</p><pre>aliases: [gitflow, &quot;release strategy&quot;, &quot;branching strategy&quot;]</pre><p>Search treats them like the summary.</p><pre>misses: 2 → 0</pre><p>Zero looks nice, but I wrote those two aliases for exactly those two questions. So <strong>it proves that aliases work, not that search is now perfect</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0g7mox_wLDkAbrJ7yWF1g.png" /></figure><h3>📜 A contract, and a question about MCP</h3><p>The text output is one result per line with the path and the summary. A familiar reads it fine, a script does not. So there is now --json: the same ranked results as records, with path, kind, match (full or partial), id, status, confidence, summary, systems, repos and dates. The schema sits in the repo as a JSON Schema file with a version, and a test checks the real output against it, so <strong>they cannot drift apart</strong>.</p><p>This came from a question in the team: “should we build an MCP server, we have contracts?”. <strong>It depends on who reads</strong>:</p><ul><li>💻 familiars on laptops: no MCP needed, they have a shell and a clone</li><li>🤖 agents in CI: no MCP either, a clone and the same CLI with --json is enough</li><li>☁️ a hosted ops agent that cannot run a CLI: only here, and only if a static export is not enough</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kyRJ-AfUB3taw3rDBQD5XQ.png" /></figure><p><strong>So we got the contract from the CLI.</strong> MCP stays an option for one reader.</p><h3>The Chronicle checks itself</h3><p>After two weeks of captures I wanted to know <strong>how much of the Chronicle is still true</strong>. So we ran an audit: every open record against the code it describes, and every recent commit against the pages.</p><p>Six familiars, one group of repositories each, reading only the remote branches, no live systems:</p><pre>open records: 114<br>still accurate:        78<br>fixed in code:         12<br>text no longer true:   12<br>cannot tell from git:  12<br>pages behind the code: 51 places</pre><p>Two things we agreed on before changing anything:</p><ul><li>✅ <strong>merged does not mean fixed</strong>. Ten fixes were in the code, but nobody had looked at the cluster yet. They stay open, with the commit written next to them, until somebody checks</li><li>🧐 an audit made by familiars <strong>is a list of leads, not a list of facts</strong>. The familiars that applied the corrections had to check every claim again before writing it. They threw out several: a “fourth user” of a secrets store that was only a mention in a text file, a fix credited to the wrong commit, a data source with the wrong name</li></ul><p>And one finding was not about the Chronicle at all. Somebody renamed a node pool, but two other lists still had the old name, and both lists are validated against the pool names. The current release was fine. <strong>The next one would fail at plan time.</strong> We filed a ticket and told the author before anyone cut a new tag.</p><h3>Two more pieces, in review</h3><ul><li>📒 <strong>a search log</strong>. Every search writes one line to a local file that git ignores: the words, how many pages matched, the first results. acme-kb queries shows how often searches miss or get rephrased. Once a month the misses (only the misses) go to the Chronicle as a merge request, and each one gets an alias or a page. <em>So the ruler keeps measuring after this tale is published</em></li><li>🗺 <strong>a map instead of a phone book</strong>. The index had one line per page and grew to more than 80 KB. Now index.md has one line per system: its page, how many records mention it and how many of those are open. About 11 KB. The full list is still there, in the next file</li></ul><h3>What the ruler does not tell you</h3><ul><li>the labels were made by familiars, and <strong>no human has reviewed them yet</strong></li><li><strong>all 62 questions came from my own sessions</strong></li><li>“no matches” is rare now: even a question without an answer gets a few partial matches under the marker, and the familiar has to notice the marker</li><li><strong>the ruler measures search, not answers</strong>. A familiar can still find the right page and read it wrong</li></ul><h3>Epilog</h3><blockquote>The third traveller said that vectors and rerankers can wait as long as plain search copes. I did not have to guess when that moment comes. We built a ruler, and the ruler said: not yet, but your filter is broken.</blockquote><p>For the builders the habits stay the same. Ask the familiar “how do we do this here”. Say “capture this” when you dig something up. And when a search misses, tell it what you would call the thing. <strong>That is an alias now.</strong></p><h3>Links</h3><ul><li>The previous tale: <a href="https://medium.com/p/c1ae7f1a45fb">The Chronicle of the Tower, or How Our Coding Agents Learned to Remember</a></li><li>The tale before it: <a href="https://medium.com/@ahrechanychenko/the-tower-of-babylon-or-how-we-shipped-one-plugin-to-four-coding-agents-d5032253e0f8">https://medium.com/@ahrechanychenko/the-tower-of-babylon-or-how-we-shipped-one-plugin-to-four-coding-agents-d5032253e0f8</a></li><li>How it all fits together, interactive: <a href="https://devops01ua.github.io/agent-knowledge-sample/architecture.html">https://devops01ua.github.io/agent-knowledge-sample/architecture.html</a></li><li>The sample repo for the Chronicle: <a href="https://github.com/devops01ua/agent-knowledge-sample">https://github.com/devops01ua/agent-knowledge-sample</a> (tag article-1 is the state of the previous tale, tag article-2 the state of this one)</li><li>Andrej Karpathy, LLM Wiki: <a href="https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f">https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f</a></li><li>SQLite FTS5: <a href="https://www.sqlite.org/fts5.html">https://www.sqlite.org/fts5.html</a></li><li>BM25 Wins at Scale (preprint): <a href="https://arxiv.org/abs/2607.26497">https://arxiv.org/abs/2607.26497</a></li><li>EnterpriseRAG-Bench (preprint): <a href="https://arxiv.org/abs/2605.05253">https://arxiv.org/abs/2605.05253</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8235ae6e5c98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Chronicle of the Tower, or How Our Coding Agents Learned to Remember]]></title>
            <link>https://medium.com/@ahrechanychenko/the-chronicle-of-the-tower-or-how-our-coding-agents-learned-to-remember-c1ae7f1a45fb?source=rss-20d1a76d43fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1ae7f1a45fb</guid>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[technical-leadership]]></category>
            <category><![CDATA[knowledge-management]]></category>
            <dc:creator><![CDATA[Artem Hrechanychenko]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 13:35:05 GMT</pubDate>
            <atom:updated>2026-10-07T21:04:05.706Z</atom:updated>
            <content:encoded><![CDATA[<h4>A shared memory for a team’s coding agents: markdown in git, review through merge requests, no new database</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXWw1yeybD-UlepM0kVKIQ.png" /></figure><p>In the previous tale the builders of the tower got one Book: a single repository with the tools for every familiar (Claude Code, Codex, Kiro, Antigravity). The construction started again.</p><p>And then we noticed the next problem. The familiars had tools. <strong>They had no memory.</strong></p><h3>Every morning starts from zero</h3><p>A familiar is a wonderful worker with one flaw: every morning it wakes up <strong>knowing nothing about yesterday</strong>.</p><p>Yesterday it spent two hours finding out why the gate server refuses to give a builder a key. It found the reason. The builder said “nice”, closed the session and went home.</p><p>This morning another builder, on the other side of the scaffolding, asks his familiar the same question. And the familiar goes digging for the same two hours.</p><p>What the team knew was lying in three places:</p><ul><li>📜 <strong>Scattered</strong>: in the archive of scrolls, in tickets, in merge request threads and in the heads of the builders</li><li>🎒 <strong>Local</strong>: what a familiar found stayed in the pocket of one builder</li><li>🕸 <strong>Stale</strong>: the wiki written for humans, which nobody had time to maintain</li></ul><p>So the goal for this tale is one sentence:</p><blockquote><strong>What the familiar of one builder found today, the familiar of every builder knows tomorrow morning.</strong></blockquote><p>And one constraint: markdown in git and review through merge requests. <strong>No new database, no new SaaS.</strong></p><h3>Three travellers</h3><p>I did not invent this. Three travellers came by the tower and each told a story.</p><p><strong>The first traveller (Andrej Karpathy, “LLM Wiki”) said</strong>: <em>knowledge is worth compiling once.</em> Keep the raw sources untouched, let the model write and maintain the wiki pages on top of them, and give the model a schema file with the rules of an editor. A new source updates the pages it touches. A good answer becomes a new page. And from time to time somebody looks for contradictions and stale pages.</p><p><strong>The second (mem0, “The State of Agent Wikis”) said</strong>: four different teams arrived at the same architecture. Markdown in git, a schema file for the model, compilation at ingest. And one more thing, the one I liked most: <strong>a wiki is not yet a memory</strong>. The wiki holds what is written in the documents. The memory holds what the team learned in practice: decisions, rejected options, things that did not work.</p><p><strong>The third (Cerebras, “How We Built Our Knowledge Base”) said</strong>: at the scale of a company this becomes a platform, with thousands of questions a day. We are not a company of that size, so we took one thing from them and postponed another. <strong>Took:</strong> the same shape for every record (symptom, cause, fix, systems). <strong>Postponed:</strong> vectors and rerankers, for as long as plain search copes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-rzgRQpq2nDCPygf65irpQ.png" /></figure><h3>What we built: the Chronicle</h3><p>Next to the Book of tools <strong>there is now a second repository</strong>. The Chronicle.</p><ul><li>🗃 raw/ -⁠ sources as they are, never edited</li><li>📖 wiki/ -⁠ pages about our systems, written and maintained by the familiars</li><li>🧠 memory/ -⁠ what we learned in practice: findings, decisions, incidents</li><li>📐 AGENTS.md -⁠ the schema: rules for the familiar when it acts as an editor</li><li>🛠 a small CLI and five skills: look up, capture, ingest, lint, start a task</li></ul><p>And one more piece outside of it: a compass in every repository. An AGENTS.md next to the code that says why this repo exists, which commands matter, where the traps are and what it depends on.</p><p>The scrolls for humans (the wiki, the tickets) stay where they were, as the source of truth for humans. The familiar reads them live through an MCP server, <strong>we do not copy them</strong>.</p><p>This is how the pieces connect, from the marketplace to the project repos. The interactive version lets you follow each flow step by step: <a href="https://devops01ua.github.io/agent-knowledge-sample/architecture.html">https://devops01ua.github.io/agent-knowledge-sample/architecture.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MfKzJfqhVJK7M15fgSy8Sg.png" /></figure><p>A runnable sample of the Chronicle (the schema, a few records, the skills, the CLI and the gatekeeper) lives here: <a href="https://github.com/devops01ua/agent-knowledge-sample">https://github.com/devops01ua/agent-knowledge-sample</a> (tag article-1 is the state described in this tale; the next tale moved main further)</p><h3>The path of one finding</h3><p>Let’s follow one finding from the night it was found to the morning everyone knows it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHCT5P_MQUu_JktNukz5tQ.png" /></figure><p><strong>1. The compass.</strong> A builder runs one command in a repo, once. The repo gets its AGENTS.md and joins the catalogue.</p><p><strong>2. Sync before search.</strong> Before every search the familiar pulls the fresh Chronicle. <strong>Nothing is injected into the session at the start</strong>, so the context stays clean, and a colleague’s finding is available right after the merge.</p><p><strong>3. Search by words and fields.</strong></p><pre>acme-kb sync<br>acme-kb search gitops token --in-repo platform</pre><p>Every word is a separate condition, quotes mean an exact phrase. You can filter by type (finding, decision, incident, wiki) and by status.</p><p><strong>4. The answer names its source.</strong> The familiar reads two or three pages, not more, and ends the answer with a footer:</p><pre>source: F-2026-09-16-001 (verified) · wiki/systems/gitops-install (2026-09-16) · owner: platform-team</pre><p>The footer tells you whether the fact was observed or only assumed, and how old it is. <strong>An answer without a footer is an answer from the model</strong>’s imagination.</p><p><strong>5. Capture by schema.</strong> When a session digs something up, the familiar proposes to write it down, and does it only after the builder says yes.</p><pre># memory/findings/F-2026-09-16-001.md<br>---<br>id: F-2026-09-16-001<br>type: finding<br>status: open<br>severity: medium<br>repos: [platform]<br>systems: [gitops-server]<br>summary: &quot;The GitOps server cannot issue API tokens for SSO users; use the CLI session (24h, refreshable) or a local read-only account&quot;<br>symptom: &quot;generate-token fails with &#39;account does not exist&#39; although the user is logged in&quot;<br>root_cause: &quot;API keys exist only for local accounts; SSO identities are not accounts&quot;<br>fix: &quot;Personal use: SSO login, the CLI refreshes the session. Long-lived: a local account with get-only permissions&quot;<br>evidence: [platform a1b2c3d, configs/gitops/server.yaml]<br>author: a-builder<br>agent: claude-code<br>confidence: verified<br>updated: 2026-09-16<br>expires: 2027-03-15<br>---</pre><p>Three rules sit in this file. The summary is <strong>one sentence you can act on</strong>. confidence: verified is allowed <strong>only when somebody actually saw it happen</strong>. And every record has expires, <strong>180 days by default</strong>, because knowledge about infrastructure rots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q2RfvJ-lDNJJyx9F67qKJQ.png" /></figure><p><strong>6. A minute of review.</strong> The capture opens a merge request. A colleague checks four things:</p><ul><li>you can act on the summary</li><li>there is evidence: a commit, a merge request or a file</li><li>the confidence is honest</li><li>there are no secrets</li></ul><p>That minute <strong>protects the whole team from a confident lie</strong> in the Chronicle.</p><p><strong>7. Status and lifetime.</strong> A record is open, fixed, accepted-risk or superseded, and it changes status the same way it was born, through a merge request. An open record past its expires date shows up as a warning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rrFF5KBYazJhh-3ZQRzagg.png" /></figure><p><strong>8. The gatekeeper again.</strong> CI runs on every merge request, with nothing but python and git on the runners:</p><ul><li>the frontmatter schema</li><li>dead links between pages</li><li>required sections on system pages</li><li>expired open records (a warning)</li><li>secrets in the diff</li></ul><p><strong>The gatekeeper catches the form.</strong> Contradictions between pages are still found by a human with a familiar, once a month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLdNGe5TWP0T2wg8zF8mRg.png" /></figure><h3>The plan and what came out of it</h3><p>The first plan was written in one evening. <strong>Five things in it did not survive.</strong></p><ul><li>The plan was for one tribe of familiars. There are four, so the skills and the compass had to work for all of them</li><li>The index was supposed to be written by the familiar and kept in git. Now it is generated locally, because every merge request was fighting over it</li><li>Lint was supposed to be a nightly familiar in CI. The mechanical checks stayed in CI, the semantic ones are done by hand</li><li>One shared log file for everyone became one file per record. A shared file that everybody appends to <strong>is a merge conflict factory</strong></li><li>The agent instruction file was supposed to import AGENTS.md. It is now a symlink to it, one file for every familiar</li></ul><h3>Honestly about the limits</h3><p><strong>Three things are not closed yet.</strong></p><p>Most of the findings are still open: the problems are described, not fixed. A chronicle of known problems is useful, but it is not the same as a tower without them.</p><p>The freshness of the Chronicle depends on a manual ritual once a month. <em>Rituals get skipped.</em></p><p>And the <strong>search finds exact words only</strong>. Ask for nightmode and it will not see the records about night mode. There is no ranking either. For our size it is enough, and the day it stops being enough we will know what to take from the third traveller.</p><h3>Epilog</h3><p>The tower is still not up to the sky. But a familiar that wakes up in the morning <strong>now has something to read</strong>.</p><p>For the builders it came down to two habits. Ask the familiar “how do we do this here” before starting. And say “capture this” when you dig something up.</p><p>And BYOA? The gatekeeper has met them. <em>They did not have a compass.</em></p><h3>Links</h3><ul><li>Andrej Karpathy, LLM Wiki: <a href="https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f">https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f</a></li><li>mem0, The State of Agent Wikis: <a href="https://x.com/mem0ai/article/2079585032587694582">https://x.com/mem0ai/article/2079585032587694582</a></li><li>Cerebras, How We Built Our Knowledge Base: <a href="https://www.cerebras.ai/blog/how-we-built-our-knowledge-base">https://www.cerebras.ai/blog/how-we-built-our-knowledge-base</a></li><li>The previous tale: <a href="https://medium.com/@ahrechanychenko/the-tower-of-babylon-or-how-we-shipped-one-plugin-to-four-coding-agents-d5032253e0f8">https://medium.com/@ahrechanychenko/the-tower-of-babylon-or-how-we-shipped-one-plugin-to-four-coding-agents-d5032253e0f8</a></li><li>The sample repo for the Book of tools: <a href="https://github.com/devops01ua/agent-plugins-sample">https://github.com/devops01ua/agent-plugins-sample</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1ae7f1a45fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Tower of Babylon, or How We Shipped One Plugin to Four Coding Agents]]></title>
            <link>https://medium.com/@ahrechanychenko/the-tower-of-babylon-or-how-we-shipped-one-plugin-to-four-coding-agents-d5032253e0f8?source=rss-20d1a76d43fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5032253e0f8</guid>
            <category><![CDATA[mcp-protocol]]></category>
            <category><![CDATA[plugins]]></category>
            <category><![CDATA[technical-leadership]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Artem Hrechanychenko]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 20:31:38 GMT</pubDate>
            <atom:updated>2026-10-01T21:01:05.683Z</atom:updated>
            <content:encoded><![CDATA[<h4>Claude Code, Codex, Kiro, Antigravity: a tale with blueprints for one team plugin marketplace</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MTLJVGg0rNsa0mjHQad3dw.png" /></figure><p>As a technical lead, one of my duties is to provide standards. And now, when we live in the AI era, each company and each team has to deal with the same questions:</p><ul><li>what coding agent we will use</li><li>what MCP servers, and with what configuration</li><li>what skills</li><li>how to improve team knowledge for local coding agents (this is a topic for the next article)</li></ul><p>I could write a boring guide about it. But I am a storyteller, so here is a tale. With blueprints at the end, I promise.</p><h3>🏗 It all started with a tower</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*8lV99mBCJ8X0uHZqBnjtsg.png" /></figure><p>Once upon a time a team of builders decided to build a tower. Not a small one. A tower up to the sky, where every deploy is checked, every dashboard is read and every runbook writes itself.</p><p>The builders were not ordinary. Each of them had a familiar, a talking spirit that did the heavy lifting. During the PoC phase everyone picked the familiar they liked, and we forgot to decide on one for all.</p><p>So there were four tribes on the scaffolding:</p><ul><li>the tribe of Claude Code</li><li>the tribe of Codex</li><li>the tribe of Kiro</li><li>the tribe of Antigravity</li></ul><p>And somewhere in the shadows, BYOA (bring your own agent). Nobody has seen their familiar. Nobody asks.</p><p>For a while everything went fine. The tower grew.</p><h3>🌩 The morning of confusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*Gy5h-ZY1gG2w6bs9tgQD-g.png" /></figure><p>Then one morning a new builder arrived (or an old one finally decided to configure some MCP and skills) and asked a simple question: “How do I connect my familiar to the cluster?”</p><p>He got four answers. One per tribe he asked.</p><p>One builder sent a JSON snippet from a chat thread. Another said “copy my config, just change the token”. The third had a skill in his home directory that no one else had ever seen. The fourth spoke a different dialect altogether, so none of the above applied.</p><p>You know the old story. Everyone woke up speaking a different language and the construction stopped. In the old story it was the wrath of the gods. In ours, I suspect, somebody just hit the limit of tokens(LMAO).</p><p>The bricks were fine. Every familiar wanted the same things:</p><ul><li>🔌 MCP servers for the systems we run: GitOps, Kubernetes, observability, cloud accounts</li><li>📜 Skills: markdown procedures for “how we do X here”</li><li>🪝 Hooks: behaviour that must always run</li><li>🔑 Settings: URLs, profiles, tokens (only ask during config, never store)</li></ul><p>But each one wanted them in its own dialect. Different file names, different config locations, different ways to ask the builder for a token.</p><h3>🧙 The false prophets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*mKOg3z-LEZ21of9tuV3QMQ.png" /></figure><p>Of course, prophets came. They always come.</p><p>The first prophet brought a wiki page with snippets to copy. It was true on the day it was written. Then a server version changed, somebody fixed it locally, and the sacred page quietly became fiction.</p><p>The second brought his dotfiles repo. Better, at least it is in git. But it is one man’s layout for one familiar, and tokens sneak into it like mice into a granary.</p><p>The third said: “Let everyone figure it out. Temporarily.” We listened to this one the longest. (You know what “temporarily” means in infrastructure.)</p><h3>📖 The idea (genius one)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*L1S2c7yoOYVyDKl5bOO7ow.png" /></figure><p>One evening, looking at the unfinished tower, I thought: the builders do not need one language. Nobody will give up their familiar, and tomorrow a fifth tribe will come anyway.</p><p>They need one book. And scribes who translate it.</p><ul><li>📖 The Book: one git repository. A plugin in it is a folder with MCP servers + skills + hooks + the settings to ask the builder for</li><li>✍️ The Scribes: an export step that copies each page into the dialect of every tribe. Nobody edits a translation by hand</li><li>🚪 The Gatekeeper: CI. It compares each translation with the original and does not let a wrong one through</li><li>🧳 The Messenger: a small installer for the tribes whose familiars cannot ask for settings themselves</li><li>🔑 The Keys: tokens. Asked for on the builder’s machine, kept there, never written in the Book</li></ul><p>And from here, no more magic.</p><p>I’m not going to show real code, but I have something better: blueprints to follow.</p><h3>🛠 Blueprints: acme-platform</h3><p>All names below are made up, the shape is the real one.</p><p>A runnable sample of all this (the plugin, the scribes, the messenger and the gatekeeper) lives here: <a href="https://github.com/devops01ua/agent-plugins-sample">https://github.com/devops01ua/agent-plugins-sample</a></p><pre># repo layout<br>agent-plugins/<br>├── .claude-plugin/<br>│   └── marketplace.json        # the catalog, written by hand<br>├── plugins/<br>│   └── devops/<br>│       └── acme-platform/<br>│           ├── .claude-plugin/<br>│           │   └── plugin.json  # metadata + userConfig<br>│           ├── .mcp.json        # MCP servers<br>│           ├── skills/<br>│           │   └── rollout-check/<br>│           │       └── SKILL.md<br>│           ├── hooks/<br>│           │   ├── hooks.json<br>│           │   └── remind_notes.py<br>│           └── README.md<br>└── scripts/<br>    └── check.sh                 # the gatekeeper</pre><h4>1) The manifest and the settings</h4><pre>// plugins/devops/acme-platform/.claude-plugin/plugin.json<br>{<br>  &quot;name&quot;: &quot;acme-platform&quot;,<br>  &quot;version&quot;: &quot;0.1.0&quot;,<br>  &quot;description&quot;: &quot;Read-only GitOps status MCP for prod and test, a rollout checklist skill, and an end-of-session reminder hook.&quot;,<br>  &quot;author&quot;: { &quot;name&quot;: &quot;platform-team&quot; },<br>  &quot;userConfig&quot;: {<br>    &quot;prod_url&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;title&quot;: &quot;GitOps API, prod&quot;,<br>      &quot;description&quot;: &quot;Base URL of the prod GitOps API&quot;,<br>      &quot;default&quot;: &quot;https://gitops.example.com&quot;,<br>      &quot;required&quot;: true<br>    },<br>    &quot;prod_token&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;title&quot;: &quot;GitOps API token, prod&quot;,<br>      &quot;description&quot;: &quot;Read-only API token&quot;,<br>      &quot;sensitive&quot;: true,<br>      &quot;required&quot;: true<br>    }<br>  }<br>}</pre><p>default holds the team&#39;s real endpoint, so the builder types only the token.</p><p>sensitive: true masks the input and keeps the value out of the plain settings file, so the token never gets into the repository.</p><h4>2) The MCP servers</h4><pre>// plugins/devops/acme-platform/.mcp.json<br>{<br>  &quot;mcpServers&quot;: {<br>    &quot;gitops-prod&quot;: {<br>      &quot;type&quot;: &quot;stdio&quot;,<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;acme-gitops-mcp@1.4.2&quot;, &quot;stdio&quot;],<br>      &quot;env&quot;: {<br>        &quot;GITOPS_BASE_URL&quot;: &quot;${user_config.prod_url}&quot;,<br>        &quot;GITOPS_API_TOKEN&quot;: &quot;${user_config.prod_token}&quot;,<br>        &quot;MCP_READ_ONLY&quot;: &quot;true&quot;<br>      }<br>    }<br>  }<br>}</pre><p>The server version is pinned. With @latest every laptop runs something slightly different.</p><p>Read-only is the default. Letting a familiar change production is a separate decision with a separate review.</p><p>One server per environment (gitops-prod, gitops-test), so both the familiar and the human see which one is being asked.</p><h4>3) The skill</h4><pre>&lt;!-- plugins/devops/acme-platform/skills/rollout-check/SKILL.md --&gt;<br>---<br>name: rollout-check<br>description: Check a rollout before and after it ships. Use when the user asks<br>  whether a rollout is safe, why a rollout is stuck, or to verify a release in<br>  prod or test. Reads sync state and recent events through the GitOps status MCP.<br>---<br># Rollout check<br>1. Ask which environment. Never assume prod.<br>2. Read the application state with the `gitops-&lt;env&gt;` server.<br>3. Compare the desired and the live revision, list what differs.<br>4. Report: state, differences, last five events. Do not change anything.</pre><p>The description is the trigger. The familiar reads only this line at startup and decides by it whether to load the rest. With a vague description the skill will never be called.</p><h4>4) The hook</h4><pre>// plugins/devops/acme-platform/hooks/hooks.json<br>{<br>  &quot;hooks&quot;: {<br>    &quot;Stop&quot;: [<br>      {<br>        &quot;hooks&quot;: [<br>          { &quot;type&quot;: &quot;command&quot;, &quot;command&quot;: &quot;python3 \&quot;${CLAUDE_PLUGIN_ROOT}/hooks/remind_notes.py\&quot;&quot; }<br>        ]<br>      }<br>    ]<br>  }<br>}</pre><p>Guidance goes in a skill, behaviour that must always happen goes in a hook. “Please write down what you learned at the end” in a prompt depends on the model remembering it. A hook is run by the harness.</p><h4>5) The catalog entry</h4><pre>// .claude-plugin/marketplace.json<br>{<br>  &quot;name&quot;: &quot;acme&quot;,<br>  &quot;owner&quot;: { &quot;name&quot;: &quot;platform-team&quot; },<br>  &quot;plugins&quot;: [<br>    {<br>      &quot;name&quot;: &quot;acme-platform&quot;,<br>      &quot;source&quot;: &quot;./plugins/devops/acme-platform&quot;,<br>      &quot;description&quot;: &quot;Read-only GitOps status MCP, rollout checklist skill, reminder hook.&quot;,<br>      &quot;category&quot;: &quot;devops&quot;<br>    }<br>  ]<br>}</pre><p>One entry per plugin. Keep the entry name and the manifest name the same, otherwise the install command will not find the plugin.</p><h3>✍️ How the scribes work</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*_91yQveM8JgCIL768ZJv4Q.png" /></figure><p>The files above are what a human writes. Then the scribes produce the rest:</p><pre>acme-platform/<br>├── .claude-plugin/plugin.json   # written by hand<br>├── .mcp.json                    # written by hand<br>├── plugin.json                  # generated: portable manifest<br>├── mcp.json                     # generated: servers with ${ACME_...} variables<br>├── .codex-plugin/plugin.json    # generated<br>└── codex.mcp.json               # generated</pre><p>What changes between the dialects is mostly how a setting reaches the server:</p><pre>// written by hand<br>&quot;GITOPS_API_TOKEN&quot;: &quot;${user_config.prod_token}&quot;<br>// generated<br>&quot;GITOPS_API_TOKEN&quot;: &quot;${ACME_ACME_PLATFORM_PROD_TOKEN}&quot;</pre><p>The first form is filled from the agent’s own settings dialog. The second is an environment variable with a predictable name: prefix, plugin, key.</p><p>Every generated file carries a marker (&quot;x-generated-by&quot;: &quot;...&quot;), and the gatekeeper runs the export in --check mode. If a translation drifts from the original, the pipeline is red.</p><p>And the messenger, for the tribes without a settings dialog:</p><pre>acme-mcp sync                                    # clone or update the checkout<br>acme-mcp list                                    # plugins and their settings<br>acme-mcp install --tool codex acme-platform      # prompts, merges, links skills</pre><p>It merges the servers into the tool’s own config file, replaces servers with the same name and leaves the rest alone. A new plugin needs no change in the messenger, it reads the same two hand-written files.</p><h3>📦 How each tribe gets the Book</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*HZgGJpbuTcwSw5FXVHTzRg.png" /></figure><p><strong>Claude Code</strong></p><pre>claude plugin marketplace add https://git.example.com/platform/agent-plugins.git<br>claude plugin install acme-platform@acme</pre><p>Then, inside a session, /plugin configure acme-platform to enter the settings.</p><p><strong>Codex</strong></p><pre>codex plugin marketplace add https://git.example.com/platform/agent-plugins.git</pre><p>Then /plugins inside a session.</p><p><strong>Kiro</strong></p><p>Clone the repo, then: Powers panel, Add Custom Power, Import power from a folder, pick the plugin directory.</p><p><strong>Antigravity CLI</strong></p><pre>agy plugin install ~/agent-plugins/plugins/devops/acme-platform</pre><h3>⚠️ The curses of the tower</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*ARl0l9hbC-4XJN54Sn2S7w.png" /></figure><p><em>No tower is built without curses. Ours were small.</em></p><p><strong>The first curse was four characters long</strong>. Without .git at the end of the URL the marketplace was read as a link to a single file, and the answer was Invalid marketplace schema. With .git it is a repository again.</p><p><strong>The second</strong>: the settings dialog that never came. Installing from the shell does not open it, the plugin panel inside a session does. So the servers start without their values. Install, then configure.</p><p><strong>The third came from one of the tribes</strong>: their familiar ignores skills that are symlinks. No error, the skill is just absent. The messenger now copies the skills for that tribe and links them for the others.</p><p>Some more, shorter:</p><ul><li>If a familiar can read the Book natively and you also send the messenger, you get every server twice. Pick one path per tribe</li><li>Hooks travel worse than skills. Ours ship for one tribe so far, the others run the same step as a skill by hand</li><li>The keys land in different places: the OS credential store with a native install, the tool’s own config file (mode 600) with the messenger</li></ul><p>And the last one is about the gatekeeper. It checks layout, frontmatter, catalog parity, versions, translations and secrets. Review still found the same mistakes more than once. Each of them became a new check.</p><h3>⚡ Epilog</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*plTQKZdQkf9asp7FALqbxw.png" /></figure><p>The tower is still not up to the sky. But the builders build again.</p><p>There are 19 plugins in the Book and four tribes read it. A new builder gets one answer now: the address of the Book. A fix to a server version or a skill is a merge request with a reviewer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*gzZvBLyqglJyzo5gB98ajw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*_rjq8gnWoEiTOepUDUHBnw.png" /></figure><p>And BYOA? Still in the shadows. Nobody has seen their familiar. But I have a feeling the gatekeeper will meet them soon.</p><p>In the next tale: how the familiars learned to remember what the builders already knew.</p><h3>Links</h3><p><strong>Claude Code</strong></p><ul><li><a href="https://code.claude.com/docs/en/plugins/create">https://code.claude.com/docs/en/plugins/create</a></li><li><a href="https://code.claude.com/docs/en/plugins/manifest-reference">https://code.claude.com/docs/en/plugins/manifest-reference</a></li><li><a href="https://code.claude.com/docs/en/plugins/create-marketplace">https://code.claude.com/docs/en/plugins/create-marketplace</a></li><li><a href="https://code.claude.com/docs/en/plugins/host-marketplace">https://code.claude.com/docs/en/plugins/host-marketplace</a></li><li><a href="https://code.claude.com/docs/en/skills">https://code.claude.com/docs/en/skills</a></li><li><a href="https://code.claude.com/docs/en/hooks-guide">https://code.claude.com/docs/en/hooks-guide</a></li><li><a href="https://code.claude.com/docs/en/mcp">https://code.claude.com/docs/en/mcp</a></li></ul><p><strong>Codex</strong></p><ul><li><a href="https://learn.chatgpt.com/docs/plugins">https://learn.chatgpt.com/docs/plugins</a></li><li><a href="https://developers.openai.com/plugins/build/plugins">https://developers.openai.com/plugins/build/plugins</a></li></ul><p><strong>Kiro</strong></p><ul><li><a href="https://kiro.dev/docs/powers/">https://kiro.dev/docs/powers/</a></li><li><a href="https://kiro.dev/docs/powers/create/">https://kiro.dev/docs/powers/create/</a></li><li><a href="https://kiro.dev/docs/powers/installation/">https://kiro.dev/docs/powers/installation/</a></li></ul><p><strong>Antigravity</strong></p><ul><li><a href="https://antigravity.google/docs/plugins/">https://antigravity.google/docs/plugins/</a></li><li><a href="https://antigravity.google/docs/skills/">https://antigravity.google/docs/skills/</a></li><li><a href="https://antigravity.google/docs/mcp/">https://antigravity.google/docs/mcp/</a></li></ul><p><strong>Standards</strong></p><ul><li><a href="https://agentskills.io/specification">https://agentskills.io/specification</a></li><li><a href="https://modelcontextprotocol.io/">https://modelcontextprotocol.io</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5032253e0f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>