<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hoegun You</title>
    <description>The latest articles on DEV Community by Hoegun You (@kenhyou).</description>
    <link>https://dev.to/kenhyou</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4245314%2F965f5242-2439-48d7-bfc2-4c0fd16b94db.jpg</url>
      <title>DEV Community: Hoegun You</title>
      <link>https://dev.to/kenhyou</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kenhyou"/>
    <language>en</language>
    <item>
      <title>Who asked, and what did they get?</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Sat, 28 Nov 2026 23:23:16 +0000</pubDate>
      <link>https://dev.to/kenhyou/who-asked-and-what-did-they-get-58j3</link>
      <guid>https://dev.to/kenhyou/who-asked-and-what-did-they-get-58j3</guid>
      <description>&lt;p&gt;Once the masking worked, I had a new place where unmasked data could pile up: the audit log.&lt;/p&gt;

&lt;p&gt;An audit log is supposed to record what was asked and what came back. Do that faithfully for a person who's allowed to see customer details, and the log holds a second copy of those details, kept for longer and read by different people than the original.&lt;/p&gt;

&lt;p&gt;This is the last part of a series on &lt;strong&gt;Prism&lt;/strong&gt;, the gateway I built so my teammates' AI agents can read company data safely. Parts &lt;a href="https://dev.to/kenhyou/i-didnt-write-a-sql-parser-3g2l"&gt;2&lt;/a&gt; and &lt;a href="https://dev.to/kenhyou/the-api-key-can-cancel-bookings-5291"&gt;3&lt;/a&gt; were about what an agent can reach. This one is about knowing who is behind each call, and what to write down about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A token the person makes themselves
&lt;/h2&gt;

&lt;p&gt;An agent can't sign in with a browser, so it needs a credential it can hold. I looked at three ways to hand one out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;An admin issues tokens.&lt;/strong&gt; Simple, but then removing access when someone leaves depends on the admin remembering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use the company login's own short-lived tokens.&lt;/strong&gt; Leavers are handled automatically, but those tokens rotate too often to sit in an agent's configuration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sign in with the company account, then create your own long-lived token.&lt;/strong&gt; This is the one I chose.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A person signs in to a small portal with their company account and creates a token for their agent. The token is random, with a recognisable prefix so secret scanners can spot one in a commit. Prism stores only its hash and shows the value once.&lt;/p&gt;

&lt;p&gt;The token carries identity and nothing else. Permissions aren't inside it. Every request looks them up on the server, so taking a permission away from a person takes effect without touching their tokens.&lt;/p&gt;

&lt;p&gt;A new person starts with no permissions at all. Each grant is made by an admin in the portal, needs a written reason, and is recorded.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent's token can't open the admin door
&lt;/h2&gt;

&lt;p&gt;The portal is for people with a browser session. A token doesn't work there, for any page.&lt;/p&gt;

&lt;p&gt;That one rule answers a question I'd otherwise have to keep asking: what if the agent's token leaks, or the agent is talked into misusing it? Whatever happens, the token can't grant itself a permission, can't create another token, and can't read the audit log. It can do what its person was allowed to do through the tools, and every one of those calls is recorded.&lt;/p&gt;

&lt;p&gt;There's a matching rule on the human side. An admin can't remove their own admin permission or disable their own account, so a slip can't leave the system with no admin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scopes can only narrow
&lt;/h2&gt;

&lt;p&gt;At first, a token could do everything its person could. That's more than most agents need. A person may run more than one agent, and they don't all need the same reach.&lt;/p&gt;

&lt;p&gt;So a token now has a scope, chosen when it's created. What the token can actually do is the overlap of two sets: its scope, and the person's permissions right now.&lt;/p&gt;

&lt;p&gt;The overlap matters in both directions. A scope can't give a token more than its person has. And when a permission is taken from the person, every token loses it at once, whatever its scope says.&lt;/p&gt;

&lt;p&gt;Two defaults do the rest. The permissions for personal data are unticked when you create a token, so reaching customer details through an agent is always a deliberate choice. And admin permissions can't be put into a token at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  When people leave
&lt;/h2&gt;

&lt;p&gt;I didn't want removing a leaver's access to depend on anyone's memory, including mine. The design is a periodic check against the company directory: an account that's suspended or gone there loses its sessions and tokens here.&lt;/p&gt;

&lt;p&gt;A job that revokes access automatically needs a brake, because the directory can be wrong too. An outage or a bad credential could make it look as if everyone had left. So the check refuses to act if the directory's answer is empty, or if it would disable more than a few people who are also a large share of all users. It records that it stopped and waits for a person.&lt;/p&gt;

&lt;h2&gt;
  
  
  What gets written down
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9pw5a3duzs1sdy7sa7sb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9pw5a3duzs1sdy7sa7sb.png" alt="What gets written down: who (the person and which token), what (the tool, the full request, a server-generated request ID), the outcome (allowed or refused, and why), and the result (size and a hash; nothing more for personal data). If the record can't be written, the data isn't returned, and the application can add and read records but not change or delete them" width="800" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every call produces a record: who, through which token, which tool, the full query or request, and the outcome. A few decisions shaped it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Refusals are recorded too.&lt;/strong&gt; If only successes are logged, you can't later show that something was blocked, or see who keeps running into the same wall.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No record, no data.&lt;/strong&gt; If the record can't be written, Prism returns an error instead of the result. This wasn't in my plan; I added it during the build. Without it, a failing log store quietly turns into unrecorded access.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The application can't edit its own history.&lt;/strong&gt; The database account Prism runs as can add records and read them. It can't change or delete one. Schema changes use a different account whose password the running application never sees.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The server names the request.&lt;/strong&gt; Each call gets an ID generated by Prism. An ID supplied by the client is ignored, so a caller can't choose how its own request will be found later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the log from becoming the leak
&lt;/h2&gt;

&lt;p&gt;Back to where this post started.&lt;/p&gt;

&lt;p&gt;For results that contain personal data, Prism records the size and a hash, and nothing else. The hash is enough to confirm later that a particular result is what was returned. It isn't enough to read anything. Masked results are safe to sample, so for those the record also keeps the first part.&lt;/p&gt;

&lt;p&gt;The request side is harder. A person who's allowed to see customer details can write a query that contains some: a phone number in a &lt;code&gt;WHERE&lt;/code&gt; clause, for example. The full query is in the record, so that phone number is too. Query parameters that are known to carry personal data get replaced with a placeholder, and real secrets are scrubbed. But free-form SQL can't be cleaned reliably. That's the parser problem from part 2 again.&lt;/p&gt;

&lt;p&gt;So I stopped trying to make the log clean and changed what I assume about it: the audit store is treated as a store of personal data, and it's protected and access-controlled on that basis. Masking most of it doesn't change the category.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your agent's log is yours to read
&lt;/h2&gt;

&lt;p&gt;In the first design, one person could read the audit log: me. Twelve days later I changed that. Everyone can now see their own records and filter them by token, which in practice means by agent.&lt;/p&gt;

&lt;p&gt;The reason is simple. If you hand work to an agent, you need to be able to check what it asked on your behalf. An audit log only an admin can read protects the company. It does nothing for the person whose name is on every line.&lt;/p&gt;

&lt;p&gt;Reading everyone's records needs a separate admin permission, and that reading is itself recorded. Reading your own isn't, because it reveals nothing new and would fill your list with entries about looking at your list.&lt;/p&gt;

&lt;h2&gt;
  
  
  Promises as tests
&lt;/h2&gt;

&lt;p&gt;In part 1 I wrote three promises. For the build I turned them into ten invariants, each one sentence long. Some examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Real keys and passwords appear in no response and no log.&lt;/li&gt;
&lt;li&gt;A call that isn't on the list never reaches the supplier.&lt;/li&gt;
&lt;li&gt;The masked account can't read the real tables.&lt;/li&gt;
&lt;li&gt;A token can't use the portal.&lt;/li&gt;
&lt;li&gt;The application can't change or delete an audit record.&lt;/li&gt;
&lt;li&gt;The SQL that reaches the database is the SQL the agent sent.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each invariant has tests that try to break it, and the suite has grown to nearly four hundred tests. The rule I set for them: a security test, once written, is never deleted.&lt;/p&gt;

&lt;p&gt;I've broken that rule once. When the stand-in keys from &lt;a href="https://dev.to/kenhyou/i-designed-it-for-curl-agents-needed-a-tool-4aa6"&gt;part 4&lt;/a&gt; were removed, the tests guarding them had nothing left to guard. I deleted them, reworded the invariant, and wrote down why. I'd rather record an exception than keep a rule that quietly stops being true.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone building one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Let people make their own tokens, and keep permissions on the server.&lt;/strong&gt; Then revoking is one change in one place.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep agent credentials away from the admin surface.&lt;/strong&gt; Then a leaked token can't promote itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make a token's reach the overlap of its scope and its person's permissions.&lt;/strong&gt; Scopes should only ever narrow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give automatic revocation a brake.&lt;/strong&gt; The source of truth can be wrong too.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Log refusals, and fail closed when you can't log.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide what the log is before it fills up.&lt;/strong&gt; If it can contain personal data, treat it that way from the first day.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Let people read their own agent's trail.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/a-read-only-account-is-not-a-safe-account-5dep"&gt;A read-only account is not a safe account&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/i-didnt-write-a-sql-parser-3g2l"&gt;I didn't write a SQL parser&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-api-key-can-cancel-bookings-5291"&gt;The API key can cancel bookings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/i-designed-it-for-curl-agents-needed-a-tool-4aa6"&gt;I designed it for curl. Agents needed a tool&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who asked, and what did they get?&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's the design. The next step is my teammates using it, and I expect that to change it again. I'll write that up when there's something to measure. If you want the wider context, this series grew out of my &lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;field notes on working with AI agents&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If an agent acted for you yesterday, could you see today what it asked for?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>mcp</category>
      <category>privacy</category>
    </item>
    <item>
      <title>I designed it for curl. Agents needed a tool</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Sat, 28 Nov 2026 12:49:23 +0000</pubDate>
      <link>https://dev.to/kenhyou/i-designed-it-for-curl-agents-needed-a-tool-4aa6</link>
      <guid>https://dev.to/kenhyou/i-designed-it-for-curl-agents-needed-a-tool-4aa6</guid>
      <description>&lt;p&gt;In mid-October I wrote a decision record about how agents would reach supplier APIs through Prism. I listed three options and chose a transparent HTTP proxy. One of the options I rejected was a single generic tool on the MCP server. The reason I gave: it was an unnecessary layer, because the agents could already call HTTP directly.&lt;/p&gt;

&lt;p&gt;Six weeks later I deleted the proxy and built that tool. The new decision record says the earlier reasoning turned out to be backwards.&lt;/p&gt;

&lt;p&gt;This is part 4 of a series on &lt;strong&gt;Prism&lt;/strong&gt;, the gateway I built so my teammates' AI agents can read company data safely. &lt;a href="https://dev.to/kenhyou/the-api-key-can-cancel-bookings-5291"&gt;Part 3&lt;/a&gt; covered the checks every supplier call goes through. Those checks survived. The way agents reach them didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the proxy looked right
&lt;/h2&gt;

&lt;p&gt;The idea was simple, and it was mine. An agent calls the supplier's API exactly as the supplier documents it, except for two things: the base URL points at Prism, and the key isn't the real one. Prism checks the request, swaps in the real key, and relays it.&lt;/p&gt;

&lt;p&gt;Two things made it attractive:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The agent's knowledge of the supplier's documentation applies unchanged. So do curl and the supplier's SDK.&lt;/li&gt;
&lt;li&gt;Opening a new endpoint is one line of configuration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It came with a second idea. The supplier's protocol has a slot where the key goes, and something had to go in it. I issued a stand-in key per person, per supplier. A call needed both the person's Prism token and their stand-in key, so leaking one wasn't enough to make a call. I recorded that as a benefit: two factors.&lt;/p&gt;

&lt;h2&gt;
  
  
  What six weeks of use showed
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq8zfwuzgmp4pqeedoe5i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq8zfwuzgmp4pqeedoe5i.png" alt="Before and after: with the HTTP proxy the agent held a personal token and a stand-in key per supplier and had to be told the proxy existed; with one MCP tool it holds one token and the tool description lists what that token may call, at the cost of the second factor" width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The costs all landed on the agent's side.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Two secrets in every shell.&lt;/strong&gt; Each agent needed the token and a stand-in key as environment variables, and they ended up in shell history and conversation logs. They weren't real supplier keys, but they were credentials, and they were everywhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rules that lived nowhere.&lt;/strong&gt; The agent had to know the base URL and which header carried what. None of that was discoverable. Someone had to tell it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agents didn't know the proxy existed.&lt;/strong&gt; An agent with only the MCP server attached could see the database tools and had no idea there was a supplier relay next door. My workaround was a paragraph in the MCP server's instructions explaining how to call the HTTP proxy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last one settled it. I was using one interface to document the other. And the interface doing the documenting already authenticated the person, already described what could be called through its tool list, and already wrote the audit log. The HTTP proxy was the extra layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  One tool, one token
&lt;/h2&gt;

&lt;p&gt;The replacement is one tool on the same MCP server. It takes a supplier, a method, a path, a query and a body. Everything from part 3 carried over unchanged: the exact-match list, the refused paths, the quotas.&lt;/p&gt;

&lt;p&gt;The stand-in keys went completely: the table, the page in the portal, the admin screens, the error code. I considered keeping both doors, HTTP for bulk work and the tool for everything else. But two doors means the same checks maintained twice, and as long as HTTP stayed, the stand-in keys stayed with it.&lt;/p&gt;

&lt;p&gt;What I gave up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The second factor.&lt;/strong&gt; One leaked token now opens supplier lookups within that token's permissions. I accepted it because the supplier side is lookups only, a token can be issued with a narrow scope, and revoking one takes effect quickly. The database side had worked with a token alone from the start.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;curl and SDKs.&lt;/strong&gt; Paths still follow the supplier's spec, so the knowledge transfers. The tooling doesn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Big responses in one piece.&lt;/strong&gt; A large response comes back in pages, and each page calls the supplier again. That uses quota, and the pages can disagree if the data changes in between.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Designing for a model as the user
&lt;/h2&gt;

&lt;p&gt;The bigger lesson was about who the user is. I'd designed the proxy for a developer with a terminal. The actual user is a model reading a tool list. Once I took that seriously, several things changed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tool list is the permission screen.&lt;/strong&gt; The supplier tool is only registered if the token has a supplier permission. Its description is generated from the configuration: which environments this token can use, and every method and path that's allowed. Lookups that need a permission the token doesn't have are marked as such. An agent can read what it's able to do before trying anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It says where the spec is, and not to guess.&lt;/strong&gt; Prism doesn't serve the supplier's documentation. The tool description says where to find it, and tells the agent to ask its person for the file if it can't read it, instead of guessing at paths.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Refusals are written for the reader.&lt;/strong&gt; A supplier's own error comes back as a normal result, because the agent should see what the supplier said. Only Prism's refusals are errors, and each one names what was blocked, what is allowed instead, and when to retry if that applies. A model that gets "forbidden" tries variations. A model that gets a reason stops and tells its person.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Result size follows the client.&lt;/strong&gt; The coding agent my team uses saves very large tool results to a file on disk and gives the model the file's path. That's sensible, until the result is customer data for someone allowed to see it. Then the data sits in a file on a laptop. So I set Prism's result cap below that threshold. A truncated result says it was truncated and suggests aggregating or narrowing the query. I also stopped sending a structured copy of each result alongside the text, because it doubled the size.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every error says which Prism is speaking.&lt;/strong&gt; I run more than one instance: one for development, one for my own use, and now a shared one. I once went round in circles on an authentication error because a token from one instance was registered against another, and nothing in the error said so. Now an authentication error names the instance that refused and the address of its portal, and each instance appears under its own name in the agent's tool list.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I got wrong, exactly
&lt;/h2&gt;

&lt;p&gt;I don't think the proxy was a careless choice. For a developer it's the better interface.&lt;/p&gt;

&lt;p&gt;My mistake was the sentence "the agents can call HTTP directly". It's true, and it measures the wrong thing. An agent can call anything. What matters is whether it can find out what exists, what it's allowed to do, and why something failed, without a person explaining it first. MCP gives a server a place to say all of that. An HTTP endpoint doesn't have one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone building one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ask who reads your interface.&lt;/strong&gt; If it's a model, discoverability is the feature.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch for one interface documenting another.&lt;/strong&gt; That's the sign the second one shouldn't exist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count the secrets on the client.&lt;/strong&gt; Each one ends up in a history file sooner or later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write down what a simplification costs.&lt;/strong&gt; Dropping the second factor was a real loss, and the decision record says so.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write refusals as instructions.&lt;/strong&gt; Say what happened, what's allowed, and when to come back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Learn what the client does with your output.&lt;/strong&gt; Its handling of large results became part of my privacy design.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/a-read-only-account-is-not-a-safe-account-5dep"&gt;A read-only account is not a safe account&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/i-didnt-write-a-sql-parser-3g2l"&gt;I didn't write a SQL parser&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-api-key-can-cancel-bookings-5291"&gt;The API key can cancel bookings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I designed it for curl. Agents needed a tool&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/who-asked-and-what-did-they-get-58j3"&gt;Who asked, and what did they get?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Next, the last part: tying every call to a person, and keeping a record that doesn't become a second copy of the data I just masked.&lt;/p&gt;

&lt;p&gt;Have you built something for developers that an agent ended up using? What did the agent need that the developer didn't?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>api</category>
      <category>architecture</category>
    </item>
    <item>
      <title>The API key can cancel bookings</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Fri, 27 Nov 2026 06:59:45 +0000</pubDate>
      <link>https://dev.to/kenhyou/the-api-key-can-cancel-bookings-5291</link>
      <guid>https://dev.to/kenhyou/the-api-key-can-cancel-bookings-5291</guid>
      <description>&lt;p&gt;When I went through a supplier's API documentation to separate the reads from the writes, the HTTP method was no help.&lt;/p&gt;

&lt;p&gt;Every booking endpoint was a &lt;code&gt;POST&lt;/code&gt;. Looking up bookings was a &lt;code&gt;POST&lt;/code&gt;. Confirming one was a &lt;code&gt;POST&lt;/code&gt;. Cancelling one, which also cancels the payment, was a &lt;code&gt;POST&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is part 3 of a series on &lt;strong&gt;Prism&lt;/strong&gt;, the gateway I built so my teammates' AI agents can read company data safely. &lt;a href="https://dev.to/kenhyou/i-didnt-write-a-sql-parser-3g2l"&gt;Part 2&lt;/a&gt; was about the database, where I could lean on the database's own permissions. A supplier's API gives me nothing like that. The key I hold can do everything, and suppliers don't issue a read-only one.&lt;/p&gt;

&lt;h2&gt;
  
  
  You can't sort by method
&lt;/h2&gt;

&lt;p&gt;Here's the shape of the problem, with made-up paths:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;POST /bookings            look up bookings by date or number
POST /booking/confirm     confirm a booking
GET  /listings/{id}       read a listing
PUT  /listings/{id}       change a listing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things in those four lines broke the shortcuts I had in mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The method doesn't tell you.&lt;/strong&gt; A search that takes a body is a &lt;code&gt;POST&lt;/code&gt;, and so is a confirmation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same path can be both.&lt;/strong&gt; One method reads it and another writes it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A lookup and a write can be one character apart.&lt;/strong&gt; &lt;code&gt;/bookings&lt;/code&gt; and &lt;code&gt;/booking/confirm&lt;/code&gt;. Any rule based on prefixes or wildcards lets a write through sooner or later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the rule in Prism is the least clever one available: a request is relayed only if its method and its path both exactly match an entry on a list. Everything else is refused. The list never infers anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  A list made by reading
&lt;/h2&gt;

&lt;p&gt;Building the list meant going through every endpoint in the supplier's spec, a few dozen of them, and putting each into one of three piles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lookups, allowed.&lt;/strong&gt; About a third of the total.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lookups, blocked anyway.&lt;/strong&gt; A couple of endpoints return text that customers typed, such as inquiries. Free text can contain anything, so they stay closed until someone needs them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Writes, blocked.&lt;/strong&gt; Everything that creates, changes, confirms, cancels or refunds.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One allowed lookup returns customer details, because bookings have customers. That one needs a separate permission, which most people won't have.&lt;/p&gt;

&lt;p&gt;For each allowed &lt;code&gt;POST&lt;/code&gt;, I went back to the spec and read its request fields one by one, to confirm they were all search criteria and none of them set a value. One field had the same name as a field in a write endpoint. Here it was a filter. The endpoint that sets it lives at a different path.&lt;/p&gt;

&lt;p&gt;A list like this is only as good as the document it was built from. Reading a spec can't tell you about behaviour the spec doesn't mention. That's a limit of the method, and it's why the list starts as small as the first project allows.&lt;/p&gt;

&lt;h2&gt;
  
  
  Refuse, don't repair
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzyxb8r4f4vj5sm7nhcrh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzyxb8r4f4vj5sm7nhcrh.png" alt="What happens to a supplier call: the agent sends a method, path, query and body with no headers or host; ambiguous paths are refused; only exact matches on the allowlist continue, so a write never reaches the supplier; one rate-limit response pauses all agent calls on that key; the gateway adds the real key, follows no redirects and retries nothing; secrets are scrubbed before the response and the log entry leave" width="800" height="1110"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An exact-match list has a classic weakness: the string you check isn't always the string the other server acts on. &lt;code&gt;/bookings/../booking/confirm&lt;/code&gt; might match one pattern here and resolve to something else there.&lt;/p&gt;

&lt;p&gt;The usual fix is to normalize the path first. I went the other way. If a path is ambiguous in any way, Prism refuses it and sends nothing. That covers dot segments, doubled slashes, encoded slashes and backslashes, double encoding, malformed escapes, control characters, and a &lt;code&gt;?&lt;/code&gt; or &lt;code&gt;#&lt;/code&gt; inside the path. The query string has its own field, because the list only looks at the path and anything mixed into it would slip past the check.&lt;/p&gt;

&lt;p&gt;The result is a property I can state in one line: the path that was checked is the path that is sent.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent can't aim the request
&lt;/h2&gt;

&lt;p&gt;The tool the agent calls takes a method, a path, a query and a body. That's all.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No headers.&lt;/strong&gt; The agent has no way to set one, so nothing from its side can reach the supplier as a credential, a cookie or a forwarding header.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No host.&lt;/strong&gt; Each supplier's address is fixed in Prism's configuration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No account code.&lt;/strong&gt; Part of the supplier's path identifies our account. The agent writes a placeholder there, and Prism fills in the real value after the match.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Prism adds the authentication itself. Two more rules apply on the way out. It doesn't follow redirects, because a redirect could carry the key to a different host. And it doesn't retry, because a gateway that retries multiplies load exactly when the supplier is struggling.&lt;/p&gt;

&lt;h2&gt;
  
  
  Someone else is using this key
&lt;/h2&gt;

&lt;p&gt;The key Prism uses is the same key our production systems use to take real orders. Suppliers count requests per key. If an agent burns through the quota exploring a catalogue, a customer's booking fails.&lt;/p&gt;

&lt;p&gt;I think this is the biggest risk in the whole feature, bigger than a leaked token, because it needs no attacker. It only needs a curious agent in a loop.&lt;/p&gt;

&lt;p&gt;So the first design goal for quotas was: Prism gives way to production.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each person has a per-minute limit, and all agents together share a conservative overall limit.&lt;/li&gt;
&lt;li&gt;If the supplier answers "too many requests" even once, Prism stops every agent call on that key for a while. It doesn't matter who caused it.&lt;/li&gt;
&lt;li&gt;After several failures in a row, Prism stops calling and probes again later with a single request.&lt;/li&gt;
&lt;li&gt;The pause is stored in the database, so restarting Prism doesn't quietly lift it.&lt;/li&gt;
&lt;li&gt;The refusal tells the agent when it may try again, so it doesn't sit in a loop asking.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Looking for my own key
&lt;/h2&gt;

&lt;p&gt;The agent never has the real key, so why scan for it? Because a person might. Someone pastes a key into a conversation to "help", and the agent passes it along.&lt;/p&gt;

&lt;p&gt;Prism checks the path, the query and the body of every request for the real secrets it holds. If it finds one, it refuses the request and raises an alert. It also removes its own secrets from responses, in case a supplier echoes one back.&lt;/p&gt;

&lt;p&gt;A test found a bug here that I wouldn't have found by reading. When a request containing a real key was refused, the refusal worked, and the key was written into the log entry describing the refusal. The safeguard had created a second copy of the secret. The fix was a final scrub over the whole log entry just before it's written, whatever path the request took to get there.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I know a write never leaves
&lt;/h2&gt;

&lt;p&gt;The promise is that a write is never sent, and a promise like that needs a test, not a code review. The tests run against a fake supplier that counts the calls it receives. For write endpoints, and for the path tricks above, the expected count is zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Someone has to read every spec.&lt;/strong&gt; Each new supplier means classifying every endpoint by hand. A new endpoint is one line of configuration, plus the reading.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The list can go stale.&lt;/strong&gt; If a supplier changes what an endpoint does, the list doesn't know.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agents hit walls.&lt;/strong&gt; A refusal is a normal part of using it, so the refusal has to explain itself. That turned out to matter more than I expected, and it's the next post.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I'd tell someone building one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Don't trust the method.&lt;/strong&gt; &lt;code&gt;POST&lt;/code&gt; doesn't mean write, and &lt;code&gt;GET&lt;/code&gt; doesn't promise read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Match exactly, deny by default.&lt;/strong&gt; A list that needs wildcards will eventually match something you didn't mean.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refuse ambiguous input instead of fixing it.&lt;/strong&gt; Then what you checked is what you send.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give the caller as few fields as possible.&lt;/strong&gt; Every field the agent can't set is an attack you don't have to think about.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you share a key with production, yield.&lt;/strong&gt; One rate-limit response should stop the agents, not the customers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scrub the log last.&lt;/strong&gt; Your safeguards write logs too.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/a-read-only-account-is-not-a-safe-account-5dep"&gt;A read-only account is not a safe account&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/i-didnt-write-a-sql-parser-3g2l"&gt;I didn't write a SQL parser&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The API key can cancel bookings&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/i-designed-it-for-curl-agents-needed-a-tool-4aa6"&gt;I designed it for curl. Agents needed a tool&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/who-asked-and-what-did-they-get-58j3"&gt;Who asked, and what did they get?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


Next: the first version of this was a transparent HTTP proxy, and it was my own idea. Then agents started using it.

Which of the API keys your team shares could do more than the people holding them realise?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>api</category>
      <category>mcp</category>
    </item>
    <item>
      <title>I didn't write a SQL parser</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Thu, 26 Nov 2026 04:54:47 +0000</pubDate>
      <link>https://dev.to/kenhyou/i-didnt-write-a-sql-parser-3g2l</link>
      <guid>https://dev.to/kenhyou/i-didnt-write-a-sql-parser-3g2l</guid>
      <description>&lt;p&gt;My first idea for the data side of Prism fit in one sentence: make a copy of the customer table with the personal columns masked, and let agents read only the copy.&lt;/p&gt;

&lt;p&gt;That sentence didn't survive the design. What replaced it has no masking code in the gateway at all, and no SQL parser either. The gateway passes the agent's query to the database without changing a character.&lt;/p&gt;

&lt;p&gt;This is part 2 of a series on &lt;strong&gt;Prism&lt;/strong&gt;, the gateway I built so my teammates' AI agents can read company data without seeing personal data. &lt;a href="https://dev.to/kenhyou/a-read-only-account-is-not-a-safe-account-5dep"&gt;Part 1&lt;/a&gt; covered why a read-only account isn't enough. This part is about the masking.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways to open a database to an agent
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl00w1rdclkez3ywhuaxv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl00w1rdclkez3ywhuaxv.png" alt="Three options: curated tools that need a developer for every new question, parsing SQL where a parser bug is a data leak, and letting the database mask so the real columns are out of reach; the same query returns masked values for most people and real values for a few" width="800" height="766"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option A: curated tools.&lt;/strong&gt; Build a tool per question, like "get the summary of an order". The gateway knows exactly what leaves, so masking is easy. But the people this is for do analysis, and analysis questions never repeat. Every new question would need a developer to add a tool, which is the queue I was trying to remove.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option B: accept SQL and police it.&lt;/strong&gt; Parse each query, work out which columns it touches, and block or rewrite the personal ones. This is the obvious design, and I got as far as listing what the parser would have to catch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- a function hides the column name from a naive check&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;LOWER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- nothing personal is selected, but the filter leaks it one guess at a time&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM customers WHERE phone LIKE '0412 3%';

-- the grouping key is the personal data
SELECT email, COUNT(*)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt; &lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And then subqueries, unions, views, window functions, and whatever the next database release adds. Each one is a rule I'd have to get right, and each rule I got wrong would be silent. In the decision record I wrote: a parser bug is a data leak.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option C: accept SQL and let the database do the masking.&lt;/strong&gt; If the account the query runs as can't reach the real columns at all, there's nothing for a clever query to get around. I chose this one.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;For each table agents may read, there's a view with the same name in a separate schema. The view selects the safe columns as they are and replaces the personal ones with masked expressions. Simplified, with made-up names:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;VIEW&lt;/span&gt; &lt;span class="n"&gt;masked&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customers&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nb"&gt;CONCAT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;LEFT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'**'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="s1"&gt;'***'&lt;/span&gt;                       &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="n"&gt;created_at&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three database features do the rest:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The reader account can only &lt;code&gt;SELECT&lt;/code&gt; from the schema of views.&lt;/strong&gt; It has no permission on the real tables, so naming them directly is a permission error from the database, not from my code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The views run with their owner's permissions,&lt;/strong&gt; and the owner is a locked account that nobody can log in as. It's the only account that can read the real tables, and only through the view definitions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The reader can't read the view definitions,&lt;/strong&gt; so the agent can't see how a value was masked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now run the three queries from option B. &lt;code&gt;LOWER(email)&lt;/code&gt; returns the lowercase of &lt;code&gt;***&lt;/code&gt;. The &lt;code&gt;LIKE&lt;/code&gt; filter is compared against the masked value and matches nothing. The &lt;code&gt;GROUP BY&lt;/code&gt; puts every row under &lt;code&gt;***&lt;/code&gt;. None of them needed a rule.&lt;/p&gt;

&lt;p&gt;The gateway's job shrank to three things: pick the right account for the person, open a fresh connection for every request so nothing leaks between sessions, and stop runaway queries. One of my tests reads the database's own query log and checks that what arrived is byte-for-byte what the agent sent.&lt;/p&gt;

&lt;h2&gt;
  
  
  The copy table I didn't build
&lt;/h2&gt;

&lt;p&gt;Back to the first idea. To keep a masked copy of a table current, you need triggers on the original. Listing what that meant ended it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If a trigger fails, the original write fails with it. A bug in a tool built for analysts could break customer sign-ups.&lt;/li&gt;
&lt;li&gt;Every write happens twice.&lt;/li&gt;
&lt;li&gt;Some changes don't fire triggers at all, such as rows removed by a cascading delete, so the copy drifts without anyone noticing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A view has none of these problems. It copies nothing, it can't break a write, and it's always current. For a simple one-table view the database merges it into the query, so the original indexes still apply. I compared query plans against the real tables to be sure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Same SQL, same shape
&lt;/h2&gt;

&lt;p&gt;A few colleagues are allowed to see customer details. For them there's a second schema of views with the real values, and a second account.&lt;/p&gt;

&lt;p&gt;The two schemas have the same view names and the same columns in the same order. The gateway connects as one account or the other, depending on the person. So the agent writes the same SQL either way and doesn't need to know which tier it's on, and &lt;code&gt;SELECT *&lt;/code&gt; has the same shape for everyone. Columns holding secrets, like password hashes, exist in neither.&lt;/p&gt;

&lt;p&gt;If the gateway is ever unsure which tier applies, it uses the masked one. The only dangerous mistake is in one direction, so the default points the other way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Unclassified means invisible
&lt;/h2&gt;

&lt;p&gt;The views are generated from a classification file: for each table, each column is marked as pass, mask, or hide. The rule that matters most is what happens to things nobody classified:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A table that isn't in the file gets no view. To the agent, it doesn't exist.&lt;/li&gt;
&lt;li&gt;A column that isn't in the file is left out of the view.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So when a developer adds a column next month, agents can't see it until someone decides what it is. That's an inconvenience, and it's on the safe side.&lt;/p&gt;

&lt;p&gt;The database has hundreds of tables and thousands of columns, far too many to classify by hand in one sitting. I classified the core tables myself and wrote a classifier for the rest. It looks only at column names and types, never at the data, and it follows one principle: when wrong, mask more. Anything that looks like a contact detail, a name, an address or free text written by a person gets masked. Anything that looks like a credential gets hidden. Tables that hold secrets inside their values are excluded entirely.&lt;/p&gt;

&lt;p&gt;Classifying by name has a blind spot: an innocently named column can hold text a customer typed. So every automatic decision is marked as automatic in the file, which tells a reviewer exactly where to look.&lt;/p&gt;

&lt;h2&gt;
  
  
  The assumption that was wrong
&lt;/h2&gt;

&lt;p&gt;Prism reads from a replica of the database, not the primary. I'd assumed the replica was read-only, and I'd written that assumption into three design documents. In one it was a reason writes were impossible. In another it decided where the views had to be created.&lt;/p&gt;

&lt;p&gt;About a week in, I checked. It wasn't read-only.&lt;/p&gt;

&lt;p&gt;Two things changed. First, I took "the replica is read-only" out of the argument for the no-writes promise. What stops writes is the reader account's permissions, plus a read-only transaction on every connection as a second layer. Second, the design got simpler. I'd planned to create the views on the primary and let them replicate, which meant schema changes on the production primary. Now I could create them on the replica only, in schemas that don't exist on the primary, and leave the primary alone.&lt;/p&gt;

&lt;p&gt;The lesson I took from it: a property you didn't verify isn't a layer of defence.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No searching or joining on masked columns.&lt;/strong&gt; The comparison runs against the masked value, so it finds nothing. The server's instructions tell agents to join on IDs instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No counting distinct customers by email or phone.&lt;/strong&gt; Every masked value looks the same.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Heavy queries can only be bounded from outside.&lt;/strong&gt; Since I don't touch the SQL, I can't add a &lt;code&gt;LIMIT&lt;/code&gt;. The gateway sets a time limit on the session, stops reading at a row cap, and limits how many queries one person can run at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Classification is now part of every schema change.&lt;/strong&gt; The work moved from writing tools to maintaining a file. I think that's the right trade, but it is work.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I'd tell someone building one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Don't police a language you didn't write.&lt;/strong&gt; If the control depends on understanding every query, the first query you misunderstand is a leak.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the boundary where the data lives.&lt;/strong&gt; Database permissions have been attacked for decades. Your new parser hasn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Default to invisible.&lt;/strong&gt; New tables and columns should need a decision before an agent can see them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;When a classifier is wrong, make it wrong in the safe direction,&lt;/strong&gt; and mark what it decided.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify the properties you're relying on.&lt;/strong&gt; I built on "read-only" for a week before checking it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/a-read-only-account-is-not-a-safe-account-5dep"&gt;A read-only account is not a safe account&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I didn't write a SQL parser&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-api-key-can-cancel-bookings-5291"&gt;The API key can cancel bookings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/i-designed-it-for-curl-agents-needed-a-tool-4aa6"&gt;I designed it for curl. Agents needed a tool&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/who-asked-and-what-did-they-get-58j3"&gt;Who asked, and what did they get?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Next: the supplier APIs, where there's no database permission system to lean on and the key I hold can cancel a booking.&lt;/p&gt;

&lt;p&gt;Where does the boundary sit in your setup: in code that inspects the request, or in the system that owns the data?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>database</category>
      <category>sql</category>
    </item>
    <item>
      <title>A read-only account is not a safe account</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:16:54 +0000</pubDate>
      <link>https://dev.to/kenhyou/a-read-only-account-is-not-a-safe-account-5dep</link>
      <guid>https://dev.to/kenhyou/a-read-only-account-is-not-a-safe-account-5dep</guid>
      <description>&lt;p&gt;Giving an AI agent a read-only database login takes about five minutes. Create the account, grant &lt;code&gt;SELECT&lt;/code&gt;, paste the connection string into the agent's config. I nearly did exactly that for my team.&lt;/p&gt;

&lt;p&gt;Then I pictured the first query. A teammate asks their agent to check product descriptions, and the agent, being thorough, looks around the schema first. The customer table sits in the same database. Names, phone numbers and email addresses are all readable, and one curious &lt;code&gt;SELECT *&lt;/code&gt; puts them in a model's context and in a chat log on someone's laptop.&lt;/p&gt;

&lt;p&gt;Read-only stops an agent from breaking things. It does nothing about what the agent sees.&lt;/p&gt;

&lt;p&gt;This is part 1 of a series on &lt;strong&gt;Prism&lt;/strong&gt;, the gateway I built so my teammates' agents can read company data without seeing personal data, and without being able to change anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  What my teammates should be able to do
&lt;/h2&gt;

&lt;p&gt;The people I have in mind aren't developers. They work in operations, finance, marketing and merchandising, and more and more of them have an AI agent open all day. Two examples of what they could do if that agent could reach our data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Review product content with an agent.&lt;/strong&gt; Today a reviewer opens products one at a time in an admin screen and reads each one. An agent could read all of them, flag the ones that look wrong, and discuss them with the reviewer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore a supplier's catalogue with an agent.&lt;/strong&gt; Today that means logging in to each supplier's portal and clicking through products one by one. An agent could pull the catalogue through the supplier's API and compare it with what we already sell.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Right now, anything beyond the admin screens turns into a request to a developer, and that developer is often me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two shortcuts, two problems
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Shortcut one: a read-only database account.&lt;/strong&gt; It has the problem I started with: products and customers live in the same database, so an account that can read one can read the other. It also can't tell people apart. A few colleagues are allowed to look up a customer's details as part of their job, and most aren't. One shared account gives everyone the same view.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shortcut two: share the supplier's API key.&lt;/strong&gt; Suppliers generally issue one key per integration, not a read-only one. The key that lists products can also create a booking and cancel one. An agent that misreads an instruction, or invents a booking reference that happens to exist, is one HTTP call away from a real cancellation. And once the key is in an agent's config, it's also in shell history, in conversation logs, and on every laptop that has a copy.&lt;/p&gt;

&lt;p&gt;Both shortcuts work on day one. Both fail the first time an agent does something reasonable that nobody expected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three promises
&lt;/h2&gt;

&lt;p&gt;Before writing code I wrote down what the gateway had to guarantee:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The agent never holds a real credential.&lt;/strong&gt; No database password and no supplier key. It holds one token that identifies a person, and nothing else.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The agent never receives data its person isn't allowed to see.&lt;/strong&gt; The check happens before the data leaves, not in a prompt asking the model to look away.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The agent can't change anything.&lt;/strong&gt; It can't write to the database, and it can't send a supplier a request that changes state.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What these have in common is that none of them depends on the model behaving. In &lt;a href="https://dev.to/kenhyou/the-rules-i-never-break-1lnd"&gt;an earlier post&lt;/a&gt; I described an agent that ignored a rule it had been given, and the fix was to take the tool away. A rule in a prompt is a request. I wanted these three to hold even if the model ignored every instruction it had.&lt;/p&gt;

&lt;h2&gt;
  
  
  "No writes" is a decision
&lt;/h2&gt;

&lt;p&gt;The third promise is the one that needed an actual decision. I looked at three options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Ban writes completely.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allow specific writes for specific people.&lt;/strong&gt; That needs a permission model for writes, a way to make retries safe, and a recovery procedure for mistakes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allow writes after a human approves each one.&lt;/strong&gt; That needs an approval screen, and the agent sits idle while it waits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I chose the ban, and three days later I nearly took it back. The first supplier I planned to connect turned out to be one where most of the calls our own systems make are writes: creating listings, updating prices, confirming and cancelling bookings. If the main use of an API is writing, a read-only gateway in front of it looks pointless.&lt;/p&gt;

&lt;p&gt;So I went back to the first project we actually wanted to run through it, which was comparing the supplier's records with ours. Every call it needed was a lookup. The ban stayed.&lt;/p&gt;

&lt;p&gt;I'm glad it did. Among that supplier's write calls, some change what customers see on a sales page straight away, and one cancels a payment. With writes banned, I don't have to design a recovery plan for those accidents, because the request never leaves the gateway.&lt;/p&gt;

&lt;p&gt;The cost is real: any automation that needs to write can't use Prism. If that need turns up, it gets its own decision, with the approval and recovery design it deserves.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqmlw8xbqtg3l9lx5aoob.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqmlw8xbqtg3l9lx5aoob.png" alt="One door, three promises: an agent with a personal token calls Prism, which identifies the person, runs SQL unchanged on masked views or relays only allowlisted supplier lookups, and records every call and refusal" width="800" height="875"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Prism is one server that speaks the &lt;a href="https://modelcontextprotocol.io/" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; (MCP), so a teammate adds it to their agent once. What the agent sees after that depends on who its person is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Who is asking?&lt;/strong&gt; People sign in to a small portal with their company account and create a personal token for their agent. Every request maps that token to a person and that person's permissions. The agent's tool list only shows what the token can do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data questions.&lt;/strong&gt; The agent writes ordinary SQL and Prism runs it without changing a character. The masking happens inside the database: the agent's queries run against views where personal data is already masked, using a database account that can't reach the real tables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supplier questions.&lt;/strong&gt; The agent names a method and a path from the supplier's API. Prism holds the real key, adds the authentication itself, and relays the call only if it exactly matches a list of lookups I checked against the supplier's documentation. Anything else is refused before it leaves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A record.&lt;/strong&gt; Every call is recorded against the person, and so is every refusal.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each layer assumes the one before it has a bug. On the database side, the last line of defence isn't my code at all. It's the database's own permission system, which has had far more people trying to break it than anything I wrote in the last six weeks.&lt;/p&gt;

&lt;h2&gt;
  
  
  From the agent's side
&lt;/h2&gt;

&lt;p&gt;Here's an illustration of a session. The names and paths are made up; the masking and the refusal are how Prism behaves.&lt;/p&gt;

&lt;p&gt;A reviewer asks for the bookings on one product from last week. The agent lists the tables, reads the columns, and runs a query. The rows come back with booking IDs, dates and amounts intact. The customer name column says &lt;code&gt;K**&lt;/code&gt; and the email column says &lt;code&gt;***&lt;/code&gt;. The agent didn't ask for masked data and didn't have to know about it. For this person, that's simply what the table contains.&lt;/p&gt;

&lt;p&gt;Later the agent decides one of those bookings should be cancelled and tries to call the supplier:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;POST /bookings/8841/cancel

Refused: this method and path are not on the allowlist.
Only lookup endpoints can be used through this gateway.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The supplier never receives the request. The refusal is written for the model to read, so the agent can tell the reviewer that cancelling isn't something it can do from here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this stands
&lt;/h2&gt;

&lt;p&gt;I started in mid-October, and I've been using Prism against live data since about a week after that. So far the users are me and my own agents, including &lt;a href="https://dev.to/kenhyou/kenny-an-agent-that-does-my-job-2d77"&gt;kenny&lt;/a&gt;, which reads current data through it to answer teammates' questions. A shared instance for the team went up a few days ago, and opening it to more people is the next step.&lt;/p&gt;

&lt;p&gt;So this series is about the design and the build, not about adoption. I'll write about adoption when there's something to measure.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone starting the same thing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read-only limits damage, not exposure.&lt;/strong&gt; Ask what the agent can see before asking what it can break.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write the promises first.&lt;/strong&gt; Three sentences I could test were more useful than any architecture diagram.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't let a promise depend on the model.&lt;/strong&gt; If a guarantee lives in a prompt, it's a preference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide about writes on purpose.&lt;/strong&gt; "No writes" removed a whole class of accident and a lot of design work. Check it against a real first project before you give it up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the key on your side of the door.&lt;/strong&gt; An agent can't leak or misuse a credential it never had.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A read-only account is not a safe account&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/i-didnt-write-a-sql-parser-3g2l"&gt;I didn't write a SQL parser&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-api-key-can-cancel-bookings-5291"&gt;The API key can cancel bookings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/i-designed-it-for-curl-agents-needed-a-tool-4aa6"&gt;I designed it for curl. Agents needed a tool&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/who-asked-and-what-did-they-get-58j3"&gt;Who asked, and what did they get?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Next: the masking. I had three ways to keep personal data away from an agent that writes its own SQL, and the obvious one was a parser.&lt;/p&gt;

&lt;p&gt;If your team's agents can already reach your data, what can they see that the person using them can't?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>mcp</category>
      <category>agents</category>
    </item>
    <item>
      <title>How to start in two weeks</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Tue, 24 Nov 2026 12:47:17 +0000</pubDate>
      <link>https://dev.to/kenhyou/how-to-start-in-two-weeks-2kab</link>
      <guid>https://dev.to/kenhyou/how-to-start-in-two-weeks-2kab</guid>
      <description>&lt;p&gt;If you've read this far, the obvious question is where to start.&lt;/p&gt;

&lt;p&gt;Not with a tool comparison. Every tool I mention in this series will look different in six months. Start with a habit: one real piece of work handed to an AI every day, and a short note about what happened. Everything else in this series grew from that.&lt;/p&gt;

&lt;p&gt;This is the last part of a series on what I learned putting AI agents to work in my own job. The first seven parts are the evidence; this one is the plan. It's the same plan I wrote down for others, as a ten-chapter internal guide, after doing it myself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why two weeks is enough to start
&lt;/h2&gt;

&lt;p&gt;Two weeks won't transform anything. It's enough to find out which of your tasks an AI does well, to set up one folder an agent can work in, and to write down the first rules. That's the foundation every later step stands on.&lt;/p&gt;

&lt;p&gt;For a sense of what becomes possible once that foundation exists, three examples from my own work, each with the detail in its own episode:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A documentation hub of 63 documents in one day (part 5).&lt;/li&gt;
&lt;li&gt;A team agent with two helpers behind it, built in three days (part 6).&lt;/li&gt;
&lt;li&gt;Reminders that carry the check, designed, tested and moved over in one day (part 7).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of that was the first step. My first step was web chat, in October 2025. The later steps, from local agents to handing off routines, took under three months once I committed in September 2026 (part 1).&lt;/p&gt;

&lt;h2&gt;
  
  
  Five steps, and when to take the next
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjogujnpqbbrudtj52yvh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjogujnpqbbrudtj52yvh.png" alt="Five steps, and when to take the next: web chat, saved instructions and files, a local agent in a folder, a shared team agent, recurring work handed off" width="800" height="1158"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You don't have to take these in order, but each one makes the next easier. The "next step when" signals are goals I'd aim for, not measurements; your timing will differ.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Web chat.&lt;/strong&gt; Use a chat assistant for one real task a day: a first draft, a summary of a long thread, a translation, a second reading of something before it goes out. &lt;strong&gt;Next step when&lt;/strong&gt; drafting with AI first feels normal, and you notice you keep pasting the same background.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Saved instructions and files.&lt;/strong&gt; Most assistants let you keep a project: standing instructions ("tone, things never to promise, how to sign off") plus the reference documents you always need. &lt;strong&gt;Next step when&lt;/strong&gt; new chats start without explanation, and the work starts spanning many files or you want results as files, not chat replies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A local agent in a folder.&lt;/strong&gt; An agent that reads and writes files in one folder, set to ask before it edits. One folder per job: originals it never edits, references, results, and a short rules file it reads first (part 4). &lt;strong&gt;Next step when&lt;/strong&gt; other people repeatedly need answers you can support with written context, and your team agrees on the agent's scope and access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A shared team agent.&lt;/strong&gt; An agent other people can ask, in the place they already work. Keep it narrow, make it say how sure it is, and give it the written context first (parts 5 and 6). This step is usually a team decision, not a personal one. &lt;strong&gt;Next step when&lt;/strong&gt; a recurring check has explicit rules, a clear owner, and a way to detect when it fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recurring work handed off.&lt;/strong&gt; The checks you run every week become code that decides and a model that explains (part 2); the "check this again next week" notes become reminders that carry the exact check (part 7). After this, each new job starts again at step 3.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A two-week plan
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxdyutyrak541ph2sytjo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxdyutyrak541ph2sytjo.png" alt="A two-week plan: week 1 to get used to it, week 2 to go one step further" width="800" height="870"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Week 1: get used to it
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Day one, read the rules first.&lt;/strong&gt; Decide what you will never paste into any AI tool (personal data, credentials, anything you'd regret seeing outside the company) and what you check before anything AI-written leaves your hands. Part 3 has mine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every day, one real task.&lt;/strong&gt; Not a toy question. Something you'd have done anyway: an email, a summary, a review. Keep the result only after you've checked the facts in it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Once, the same request in two assistants.&lt;/strong&gt; Compare the answers. You'll learn more about both tools, and about your request, than from either one alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Once, ask for sources.&lt;/strong&gt; Add "show me which part of the material you used, and say 'not in the material' when it isn't there." Watch how much easier it is to check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On Friday, list three recurring tasks&lt;/strong&gt; you could hand off. Good candidates repeat on a schedule, gather material from several places, need a first draft, or are things you've always wanted to do and never had time for.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Week 2: one step further
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Make one project&lt;/strong&gt; with standing instructions and two or three reference files for a job you do often.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set up a practice folder&lt;/strong&gt; with files that hold nothing sensitive. Ask a local agent to summarise them into a new file. Start with a read-only plan. Before it executes, choose a mode that asks before edits and check that it's set; approving the plan isn't approval for every later action. Approve only what you can explain in your own words.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write a rules file&lt;/strong&gt; for that folder. Every time the agent makes a mistake, fix it, then ask it to add one line so it doesn't happen again. That file becomes the know-how for the job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do one of your three tasks&lt;/strong&gt; with the agent. End the session by asking it to write what it did, what it learned, and the first request to use next time (part 5).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Share one thing that worked and one that didn't&lt;/strong&gt; with your team.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Share what works
&lt;/h2&gt;

&lt;p&gt;Writing things down paid off for me before it paid off for anyone else. The records behind this series, design notes, a timeline and a lessons file, are why I could quote numbers instead of impressions. When the machine my agents run on had to be rebuilt, the agents and supporting services were back in about a day; one monitor's history was lost (&lt;a href="https://dev.to/kenhyou/agents-forget-so-i-write-it-down-3kp0"&gt;part 5&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;What's worth sharing with a team:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A request that worked, with the result&lt;/td&gt;
&lt;td&gt;Others can reuse it as is&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A rules file, with nothing secret in it&lt;/td&gt;
&lt;td&gt;The know-how for a job, in one page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A before and after for one task&lt;/td&gt;
&lt;td&gt;Shows where the time actually went&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A failure, and what fixed it&lt;/td&gt;
&lt;td&gt;Saves everyone else the same afternoon&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A question ("could AI do this?")&lt;/td&gt;
&lt;td&gt;Often someone already tried&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep it short: what you did, how you asked, and what happened, in three lines. When something works for everyone, move it from the chat into the team's documentation, so the next person, and the next agent, starts from it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions people ask
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Will this take my job?&lt;/strong&gt; My view: it takes the parts of the job that were finding, copying and chasing, and moves people towards judgment, review and relationships with customers and partners. That's where my own time went (part 1). And I believe the people who use it well will end up with bigger jobs, not smaller ones.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I'm not technical. Can I still do this?&lt;/strong&gt; Yes. Ask in plain language, and when an answer doesn't make sense, say "explain that as if I'm not a developer." Local agents now start from desktop apps; you don't need a terminal to begin. The one rule that matters most: never approve an action you can't explain in your own words. Refuse and ask what it does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if it's wrong?&lt;/strong&gt; It will be, sometimes, confidently. That's why a person checks numbers, dates, policies and promises against the source before anything leaves their hands, and why anything that must be right the same way every time belongs in code or a formula, not in a model's answer (parts 2 and 3). When it's wrong, correct it, then turn the correction into a rule.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which tool should I use?&lt;/strong&gt; Try two for a week and keep the one that fits your work. For local agents, learn one well before adding another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I don't have time to learn this.&lt;/strong&gt; That's why the plan is one task a day. Keep the first task small enough to fit in a few minutes, and allow extra time for setup and checking. What you get back depends on which tasks you hand off, which is what the Friday list is for.&lt;/p&gt;

&lt;h2&gt;
  
  
  If I started again
&lt;/h2&gt;

&lt;p&gt;Three things from the records, not from hindsight:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Write the context before building the agent.&lt;/strong&gt; Agents without written context kept rediscovering the same things; the documentation hub is what made everything after it work (parts 4 and 5).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep decisions in code.&lt;/strong&gt; A model should explain a result, not decide whether something is wrong (part 2).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforce rules outside the prompt.&lt;/strong&gt; When an agent ignored a written rule and burned through the API credit, the fix was to take the tool away, not to write the rule more firmly (part 3).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's the series. Start with one task tomorrow, and a note about what happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;From doing the work to delegating it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp"&gt;Let code decide, let the LLM explain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-rules-i-never-break-1lnd"&gt;The rules I never break&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/context-is-the-job-426n"&gt;Context is the job&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/agents-forget-so-i-write-it-down-3kp0"&gt;Agents forget, so I write it down&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/kenny-an-agent-that-does-my-job-2d77"&gt;kenny: an agent that does my job&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/hermes-reminders-that-carry-the-check-3n1n"&gt;Hermes: reminders that carry the check&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How to start in two weeks&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What's the one recurring task you'll hand to an agent first, and what will you write down before you do?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>agents</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Hermes: reminders that carry the check</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Mon, 23 Nov 2026 06:20:41 +0000</pubDate>
      <link>https://dev.to/kenhyou/hermes-reminders-that-carry-the-check-3n1n</link>
      <guid>https://dev.to/kenhyou/hermes-reminders-that-carry-the-check-3n1n</guid>
      <description>&lt;p&gt;The loose end I leave most often isn't a bug. It's "check this next week."&lt;/p&gt;

&lt;p&gt;I ship a fix, and the real test is next week's numbers. I send a partner a question, and I need to chase it on Friday if nothing comes back. A coding agent can do the work today, but in my setup the session didn't leave a durable follow-up behind, and I've learned not to assume the next session has this one's context.&lt;/p&gt;

&lt;p&gt;My calendar notes didn't fix that either. They held a title, "check the fix", not a ready-to-run check, and a week later I had to rebuild everything else: what exactly to look at, why it mattered, and what a normal result would look like. By then the context was gone, so the check got skipped, or done badly.&lt;/p&gt;

&lt;p&gt;This is part 7 of a series on what I learned putting AI agents to work in my own job. It's about the smallest agent I run, and the design choice that made it useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a follow-up actually needs
&lt;/h2&gt;

&lt;p&gt;When I finish a task, I know four things that I won't know next week:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;What to check.&lt;/strong&gt; The query, the log, the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why.&lt;/strong&gt; What the change was supposed to do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What normal looks like.&lt;/strong&gt; The number or result that means "it worked".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The request to run.&lt;/strong&gt; The exact words to give an agent so it can do the check without me
explaining it again.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The fourth is the one my calendar notes never had, and it's the one that saves the most time. So the question became: where do I put a follow-up that carries all four, and who reminds me?&lt;/p&gt;

&lt;h2&gt;
  
  
  The long way round
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrb4f9lthtw3utytfbms.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrb4f9lthtw3utytfbms.png" alt="Three ways I tried: a plain reminder, a scheduled job on the team agent, and a reminder that carries the check" width="800" height="700"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I went through three designs before one stuck.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, a plain reminder from my personal assistant.&lt;/strong&gt; Hermes is my personal assistant, a profile on the open-source &lt;a href="https://github.com/NousResearch/hermes-agent" rel="noopener noreferrer"&gt;Hermes Agent&lt;/a&gt; runtime that I talk&lt;br&gt;
to in a Slack DM. It reminded me on the day, but it can't see any company data, so I still had to do the whole check myself. I dropped it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, a scheduled job on the team agent.&lt;/strong&gt; kenny, the agent that answers my team's questions, can read production data through a read-only view. So I had my coding agent register a one-off scheduled job on kenny: on the day, kenny would run the check itself and post the result. It worked: a test run queried the data once and reported back.&lt;/p&gt;

&lt;p&gt;It was also heavy. Each follow-up meant logging in to the agent host, registering the job, test-running a copy, re-baselining the integrity check that pins every scheduled job, committing, and syncing. Twice, two of my coding-agent sessions did it at once: once registering the same job forty seconds apart, once committing new baselines at the same time and having to be untangled. And I couldn't close or postpone a follow-up from Slack; that needed another round on the host.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Third, back to the assistant, on purpose.&lt;/strong&gt; The obvious fix was to let kenny create its own jobs from a Slack conversation. I decided against it. kenny touches production data, and its guardrails deliberately stop it from changing its own configuration through chat. Giving an agent like that the power to create persistent jobs from a conversation is exactly the kind of widening I don't want. So I gave up the version that could run the check by itself, and took the smaller blast radius instead: the assistant only reminds, and I run the check.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works now
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8x56bk2j8awc512b6xkc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8x56bk2j8awc512b6xkc.png" alt="How a follow-up flows now: register, wait, remind, check, then reply done, again, or cancel" width="800" height="975"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At the end of a task, my coding agent posts one message to Hermes in Slack. It always has the same fields: a title, when to remind me first, how (once, or until I answer), and then the important part: what to check and why, what normal looks like, and a request I can paste straight back into a coding agent.&lt;/p&gt;

&lt;p&gt;Hermes turns that into a reminder. By default it reminds me twice a day from the chosen date, up to seven times over four days, stopping sooner when I answer. When it fires, I paste the request into a local agent, which has the access Hermes doesn't, and judge the result. Then I reply in the thread with one word (in my setup the replies are Korean words; these are their translations):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;done&lt;/strong&gt; (완료): it's finished, and the reminder is removed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;again&lt;/strong&gt; (다시) with a time: remind me later, in the same mode as before.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;cancel&lt;/strong&gt; (취소): stop all reminders for it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's the whole interface. Registering, finishing and postponing all happen in Slack. Nothing changes on the team agent, and nothing gets committed.&lt;/p&gt;

&lt;p&gt;The message itself is also the record. Weeks later, the registration post says why I wanted to check, which is half of what &lt;a href="https://dev.to/kenhyou/agents-forget-so-i-write-it-down-3kp0"&gt;part 5&lt;/a&gt; is about.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving over, and the bug the test caught
&lt;/h2&gt;

&lt;p&gt;I wrote the new rules on 8 November and moved everything the same day: four pending follow-ups and one daily reminder came off the team agent and became Hermes reminders.&lt;/p&gt;

&lt;p&gt;Testing the reply paths that day caught a bug in "again". Replying "again" did recreate the reminder, but in the wrong mode: an "until I answer" reminder came back as a one-off, which would have fired once and then gone quiet. Hermes now has an explicit rule to keep the original mode. The lesson I keep relearning: the creation path is the one everyone tests; the reply paths are where reminders quietly die.&lt;/p&gt;

&lt;p&gt;Speed was never the problem. When I first connected a coding agent to Hermes over Slack, the round trip from posting to a reply in the thread was 4.4 seconds. Registering a follow-up is one message&lt;br&gt;
my coding agent writes for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  The other half: an advisor with a role, not a history
&lt;/h2&gt;

&lt;p&gt;Hermes does one more job: I ask it for advice on decisions. One recommendation, the reason, and the cost if it's wrong. The decision stays mine.&lt;/p&gt;

&lt;p&gt;I wanted it to reason like an experienced founder. The tempting way is to write that history into its instructions: "you've run three companies". I didn't, because a model given a fake history will produce fake anecdotes, "at my second company we...", and those read like evidence. When I'm the one making a real decision from the advice, invented evidence is the most dangerous thing it can produce.&lt;/p&gt;

&lt;p&gt;So its instructions describe a perspective, not a past: what it looks at first, what it weighs heavily, what it's suspicious of. It speaks in patterns and judgments, never in made-up stories, and it never hides that it's an AI. The advice is a little less impressive. It's also something I can actually check.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I use it now
&lt;/h2&gt;

&lt;p&gt;Two follow-ups I registered on 15 and 16 November, both written by my coding agent at the end of the task:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A reminder to check, a week after this series started, how the first post did on each channel, with the request that pulls the numbers together and records them.&lt;/li&gt;
&lt;li&gt;One reminder a day while this series is publishing: check that the day's post went live, then prepare the cross-posts. The request even says what to do if the post didn't appear.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Neither needed me to remember anything except to read a Slack message.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No automatic check.&lt;/strong&gt; In the second design, the agent looked at the data itself. Now I do it, with a local agent, when the reminder fires. That's real work I took back on purpose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It depends on me answering.&lt;/strong&gt; Seven reminders over four days is persistent, not infinite.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A reminder is only as good as the request written at the time.&lt;/strong&gt; If the request is vague, the check will be too. The fields force me to write what normal looks like while I still know it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Write the check while you still have the context.&lt;/strong&gt; Next week's you won't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make the reminder carry the request, not just the title.&lt;/strong&gt; The paste-ready request lets me start the check without rebuilding the context.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the reminder away from company systems.&lt;/strong&gt; An assistant that has no access to them and stores only the reminder and the check instructions can't do much damage, even if its own instructions are wrong. The message itself still follows the same rules as anything I post.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make closing it one word.&lt;/strong&gt; If finishing or postponing takes effort, reminders pile up and you start ignoring them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test the reply paths,&lt;/strong&gt; not just creation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give an advisor a role, not a history,&lt;/strong&gt; if you want advice you can check.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;From doing the work to delegating it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp"&gt;Let code decide, let the LLM explain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-rules-i-never-break-1lnd"&gt;The rules I never break&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/context-is-the-job-426n"&gt;Context is the job&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/agents-forget-so-i-write-it-down-3kp0"&gt;Agents forget, so I write it down&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/kenny-an-agent-that-does-my-job-2d77"&gt;kenny: an agent that does my job&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hermes: reminders that carry the check&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.hoegun.xyz/posts/ai-field-notes-8-start/" rel="noopener noreferrer"&gt;How to start in two weeks&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What's the follow-up you most often forget, and what would the reminder need to say for you to do it in five minutes?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>slack</category>
      <category>automation</category>
    </item>
    <item>
      <title>kenny: an agent that does my job</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Sat, 21 Nov 2026 10:23:00 +0000</pubDate>
      <link>https://dev.to/kenhyou/kenny-an-agent-that-does-my-job-2d77</link>
      <guid>https://dev.to/kenhyou/kenny-an-agent-that-does-my-job-2d77</guid>
      <description>&lt;p&gt;In &lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;part 1&lt;/a&gt; I described a teammate's question getting a&lt;br&gt;
written-up answer in Slack while I was busy with something else. This post is about the agent that&lt;br&gt;
writes those answers.&lt;/p&gt;

&lt;p&gt;I named it &lt;strong&gt;kenny&lt;/strong&gt;, after Ken, because I built it to take the first-response work people used to&lt;br&gt;
wait for me to do.&lt;/p&gt;

&lt;p&gt;This is part 6 of a series on what I learned putting AI agents to work in my own job.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "my job" means here
&lt;/h2&gt;

&lt;p&gt;One of my jobs is first response when something goes wrong in the running service. Someone reports&lt;br&gt;
it in Slack. I work out what it is: reproduce it, read the code. If it needs a fix, I open an issue&lt;br&gt;
and fix it, and along the way I tell people what's happening and what to do in the meantime.&lt;/p&gt;

&lt;p&gt;The bottleneck was my availability. When I was deep in something else, I didn't see the request or&lt;br&gt;
couldn't get to it, and the person who asked was blocked until I did.&lt;/p&gt;

&lt;p&gt;So before writing a line of configuration, I wrote down which parts of that job an agent should&lt;br&gt;
take and which it shouldn't:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Take:&lt;/strong&gt; receiving the question, finding the answer in the docs and code, checking the current
data, reproducing suspected bugs, writing up the cause and a suggested fix, and keeping the person
who asked informed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep:&lt;/strong&gt; deciding policy and exceptions, promising anything, changing production, and making the
fix. The fix stays with me, made from the write-up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That list became the agent's rules almost line for line. kenny runs on&lt;br&gt;
&lt;a href="https://github.com/NousResearch/hermes-agent" rel="noopener noreferrer"&gt;Hermes Agent&lt;/a&gt;, the open-source agent runtime, in&lt;br&gt;
Slack.&lt;/p&gt;

&lt;h2&gt;
  
  
  One front door, two specialists
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6rxfdiwbl930ipcniwt2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6rxfdiwbl930ipcniwt2.png" alt="One front door, two specialists: kenny answers most questions, an investigator handles suspected bugs, an idea reviewer handles feature ideas, and results come back to the same thread" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Teammates only ever talk to kenny. Behind it are two specialist agents that only kenny talks to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;An investigator.&lt;/strong&gt; It reproduces suspected bugs in a development environment, finds the cause,
and writes the cause and a suggested fix. It may edit code there to confirm a cause, and it always
reverts the edit; the real fix is made by a person from the write-up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An idea reviewer.&lt;/strong&gt; When someone asks "what if we changed…?", it compares the idea with what
exists today and writes a first scope with acceptance criteria. It can read but not run anything.
Whether to adopt the idea is a human call, and kenny asks the person first before sending an idea
for review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;kenny sends only three kinds of work to the investigator: suspected bugs, sweeps that cut across&lt;br&gt;
many repositories, and investigations that need a person to confirm something. Feature ideas follow&lt;br&gt;
the separate review path above. Everything else kenny answers itself. The results come back to the&lt;br&gt;
same Slack thread, and of the three agents, only kenny files issues in the tracker, so there's one&lt;br&gt;
voice in the thread and one agent that writes issues.&lt;/p&gt;

&lt;p&gt;The handoff rule came from the first real case. kenny held on to a bug for too long, doing the&lt;br&gt;
investigator's work in the front door. The rule now says: point at where the problem is, hand it&lt;br&gt;
off quickly, and tell the person "received, here's my first read".&lt;/p&gt;

&lt;p&gt;The front door turned out to carry most of the load. In one week in early November, the&lt;br&gt;
investigator got no cases at all: kenny answered every question directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  An answer format that admits doubt
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsmgwqdajkvblhpcjfs1a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsmgwqdajkvblhpcjfs1a.png" alt="Every answer has the same shape: a plain-language conclusion, what you'll see and how to check, its evidence status (checked in the code, read in the docs only, or inferred), and an offer of technical details" width="800" height="625"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The most important rule isn't about what kenny knows. It's about how it says what it doesn't. Every&lt;br&gt;
answer includes its evidence status: checked in the code, read in the docs only, or inferred. In&lt;br&gt;
kenny's own rules, the worst failure is saying something was checked when it wasn't.&lt;/p&gt;

&lt;p&gt;The rest of the format came from feedback. Within the first week, people said the answers were too&lt;br&gt;
technical. So the default changed: a conclusion in plain words first, then what they'll&lt;br&gt;
see on screen and how to check it, then the evidence status, then an offer of the technical&lt;br&gt;
details. File paths and tables appear only when someone asks, and source code never does.&lt;/p&gt;

&lt;p&gt;Two smaller rules do a lot of work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The code wins.&lt;/strong&gt; For the conditions that decide a policy question, kenny checks the code, not
just the docs, because some docs are still drafts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It only answers when mentioned.&lt;/strong&gt; In a channel, kenny responds to &lt;code&gt;@kenny&lt;/code&gt; and stays out of
conversations between people.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  From "here's the SQL" to "here's the number"
&lt;/h2&gt;

&lt;p&gt;For its first few days, kenny could only read an older copy of the data. Asked "what's this order's&lt;br&gt;
status right now?" or "how many were auto-rejected this week?", the best it could do was answer from&lt;br&gt;
that copy or suggest a query someone else could run.&lt;/p&gt;

&lt;p&gt;Then I connected it to a read-only view of the live data with personal data masked. Now it answers&lt;br&gt;
with the current value. The rules around that access are strict: it doesn't select personal-data&lt;br&gt;
fields, it carries only counts and identifiers into Slack or issues, it has a small query budget per&lt;br&gt;
question, and if a lookup fails it says the value wasn't checked rather than guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deliberately narrow
&lt;/h2&gt;

&lt;p&gt;kenny could do more. It doesn't, on purpose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No policy and no promises.&lt;/strong&gt; Exceptions, compensation and "we'll fix that" come from a person.
When a question needs a decision, kenny mentions me in the thread.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No production changes.&lt;/strong&gt; It can't deploy, change data or change settings. It reads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No personal data in the open.&lt;/strong&gt; Order and member IDs only; names, contact details and payment
details never go into Slack or issues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No source code in Slack.&lt;/strong&gt; It may read code to reason, but it doesn't post it. That guard is the
subject of &lt;a href="https://dev.to/kenhyou/our-slack-ai-agent-can-read-our-code-it-cant-ship-it-2mec"&gt;my first post&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Its rules don't change through chat.&lt;/strong&gt; Not even when I'm the one asking.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So kenny's answers are material for a decision. The decision, and anything said to a customer,&lt;br&gt;
stays with a person.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it changed
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Built in three days.&lt;/strong&gt; Built from 17 to 19 October: kenny first, then the investigator, then
the idea reviewer. By the 20th, six people had access, and eleven investigations and reviews were
complete.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast first answers.&lt;/strong&gt; From 31 October to 14 November it answered about 95 questions from five
people, me included. The median time to a first answer was 93 seconds, and 94 of the 95 got one
within ten minutes. One answer I measured in detail took about 30 seconds and five lookups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Issues that arrive written up.&lt;/strong&gt; In its first month it filed two dozen issues from Slack
requests, each investigated and written up, so whoever fixes it starts from the cause and a
suggested fix.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The sample is small and many of the questions were mine. These numbers show speed, not answer&lt;br&gt;
quality or hours saved. But speed was the problem I set out to fix: the question no longer waits&lt;br&gt;
for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone building one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Name the job, not the bot.&lt;/strong&gt; Write down which part of your work the agent takes and which it
doesn't. That list is most of its rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give people one front door.&lt;/strong&gt; Specialists behind it keep each agent's permissions small.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hand off fast.&lt;/strong&gt; A front door that does deep work becomes the new bottleneck.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make doubt part of the format.&lt;/strong&gt; An evidence status on every answer tells people when to
double-check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Narrow beats clever.&lt;/strong&gt; Every capability you leave out is a failure you don't have to guard
against.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Let feedback change the defaults.&lt;/strong&gt; One complaint about jargon rewrote every answer after it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;From doing the work to delegating it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp"&gt;Let code decide, let the LLM explain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-rules-i-never-break-1lnd"&gt;The rules I never break&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/context-is-the-job-426n"&gt;Context is the job&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/agents-forget-so-i-write-it-down-3kp0"&gt;Agents forget, so I write it down&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;kenny: an agent that does my job&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;Hermes: reminders that carry the check&lt;/li&gt;
&lt;li&gt;How to start in two weeks&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you built an agent to take one part of your job, what would you name it, and what would you&lt;br&gt;
forbid it to do?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>slack</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Agents forget, so I write it down</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Fri, 20 Nov 2026 05:54:03 +0000</pubDate>
      <link>https://dev.to/kenhyou/agents-forget-so-i-write-it-down-3kp0</link>
      <guid>https://dev.to/kenhyou/agents-forget-so-i-write-it-down-3kp0</guid>
      <description>&lt;p&gt;In September I asked a simple question about our system: if I change this table, what breaks?&lt;/p&gt;

&lt;p&gt;There was nowhere to look it up. We had eleven repositories. One of them had real documentation,&lt;br&gt;
and that documentation wasn't even in version control. Another one's README was a single line with&lt;br&gt;
its own name. None of them had a rules file telling a coding agent where to start. So every time&lt;br&gt;
the question came up, someone had to read the code again from the beginning. Once agents were&lt;br&gt;
doing the reading, it got no better: a new session didn't have what the last one had worked out,&lt;br&gt;
so it did it all over again.&lt;/p&gt;

&lt;p&gt;That's the lesson of this post: &lt;strong&gt;records are the agent's memory.&lt;/strong&gt; Don't assume the next session&lt;br&gt;
has the context from this one. Give it durable records, and check that they are actually loaded.&lt;/p&gt;

&lt;p&gt;This is part 5 of a series on what I learned putting AI agents to work in my own job.&lt;br&gt;
&lt;a href="https://dev.to/kenhyou/context-is-the-job-426n"&gt;Part 4&lt;/a&gt; was about giving an agent the right context for a task.&lt;br&gt;
This one is about what lasts after the task is done.&lt;/p&gt;

&lt;h2&gt;
  
  
  Records are the agent's memory
&lt;/h2&gt;

&lt;p&gt;Treat a new session like a very capable new hire who missed yesterday. Unless you hand it records,&lt;br&gt;
it knows the world in general and little about your system: not why a table is named oddly, not which status column&lt;br&gt;
is the real one, not the trap you fell into last week. What it does well is read. Written records&lt;br&gt;
give the next session something to retrieve instead of rediscovering it.&lt;/p&gt;

&lt;p&gt;So the question isn't "how do I make the agent remember?" It's "what did we write down?"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmi1xx2g505qs7wctndov.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmi1xx2g505qs7wctndov.png" alt="Records are the agent's memory: do the work, write it down, the next session starts from the records, fewer repeats" width="800" height="595"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each turn of that loop makes the next one cheaper. Skip the "write it down" step and the loop&lt;br&gt;
breaks: each session has to rediscover what the last one learned, and so does every new teammate.&lt;/p&gt;

&lt;h2&gt;
  
  
  A documentation hub in a day
&lt;/h2&gt;

&lt;p&gt;On 17 September I decided where the documentation should live. I wrote down three options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fill in each repository's own docs.&lt;/strong&gt; Close to the code, but there's no place for the most
valuable facts, the ones about how services talk to each other. "This API calls that one" is
only half true in either repository, so it would be written twice and drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A wiki.&lt;/strong&gt; Easy to edit, but separate from the code, so it goes stale quickly. It would also
need a separate retrieval path; a repository was readable with the file tools my agents already
used.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A separate documentation repository, a hub.&lt;/strong&gt; One home for cross-service facts, readable by
agents with the same tools they use on code. This is what I chose.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The hub holds what belongs to no single repository: how services connect, the database,&lt;br&gt;
operations, and decisions. Docs that live next to the code, like how to run it or an API spec,&lt;br&gt;
stay in their repositories. Then I wrote it, with an agent reading the code alongside me: 63&lt;br&gt;
documents on that first day, plus the first rules files pointing agents at the hub. It has grown&lt;br&gt;
to more than a hundred documents since.&lt;/p&gt;

&lt;p&gt;Two decisions from that day turned out to matter more than I expected:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reuse what people already knew.&lt;/strong&gt; Someone had written an excellent database reference in a
repository of operational scripts, not where a developer would look. Its best parts were traps, like which of two similar table names is the real
one, or which column holds the true status. You can't get that from reading the code. I copied
it into the hub and declared the hub the original from then on, so there'd be one source of
truth instead of two copies drifting apart.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split big files.&lt;/strong&gt; That reference was one 895-line document. I split it by domain, because
when a file is huge, an agent reads the parts it doesn't need along with the part it does.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Keeping the docs honest
&lt;/h2&gt;

&lt;p&gt;A documentation hub has an obvious weakness: it's not the code, so it can go stale. Four things&lt;br&gt;
counter that.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F035z8ptx3ra9elb3rwg9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F035z8ptx3ra9elb3rwg9.png" alt="How the docs stay honest: each doc names its sources, each repository has a rules file, the Slack agent reports mismatches for a person to fix, and for current behaviour the code wins over an unverified doc" width="799" height="672"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Each doc names its sources.&lt;/strong&gt; Its header lists the code paths it describes and the date it was
last verified. A small lint compares that date with the latest change to those paths and flags
the doc as stale.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each repository has a rules file.&lt;/strong&gt; It says: if you change the structure, update the doc. I put
the rule where agents read first, rather than relying on anyone remembering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agents report mismatches back.&lt;/strong&gt; When the Slack agent answers a question and finds the doc
disagrees with the code, it doesn't argue with the person asking. It logs one line, and a
scheduled job sends it to me. The Slack agent can't edit the docs; it reports mismatches for me
to resolve, and I fix the doc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For what the system currently does, code wins.&lt;/strong&gt; The rules say that when a doc and the code
disagree, the code is right about current behaviour, so an agent doesn't trust an unverified doc
over the code in front of it. Whether that behaviour is correct is a separate decision.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two of these failed in instructive ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Freshness depends on the refresh path.&lt;/strong&gt; For the first few days the agents' machine didn't pull
the docs hub at all. "Answer from the latest docs" means nothing if the latest docs never arrive.
Once I noticed, I added the hub to the list of repositories it keeps up to date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A report can disappear.&lt;/strong&gt; One mismatch report was blocked by an over-eager safety check: a
full stop inside a quoted sentence looked like a file path. The agent didn't retry, and the report
never reached me. I found it three days later while reviewing what the guards had blocked, and
fixed both the check and the doc. I wrote about that review in
&lt;a href="https://dev.to/kenhyou/our-slack-ai-agent-can-read-our-code-it-cant-ship-it-2mec"&gt;the first post on this blog&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  From grep to one query
&lt;/h2&gt;

&lt;p&gt;The documentation answered "what is this?" well. "What breaks if I change this?" was still slow.&lt;br&gt;
The agent went from the hub to the code paths a doc named, then searched the code. It missed&lt;br&gt;
things, and the more code it opened, the more chance there was of quoting code back into Slack.&lt;/p&gt;

&lt;p&gt;At the end of October I connected the agents to a metadata graph built from the database schema,&lt;br&gt;
the code, the routes, the scheduled jobs and the docs. Now the rule is: ask the graph first, and&lt;br&gt;
open only the files and lines it points to. Questions like "which code writes this table?" or&lt;br&gt;
"what might be affected if this value changes?" take one or two queries, and the answer comes with&lt;br&gt;
file and line ranges as evidence.&lt;/p&gt;

&lt;p&gt;It has costs, and they're written down too: the graph is rebuilt by hand, so it can lag behind the&lt;br&gt;
code; some older code builds its queries in ways the extractor can't follow; and impact estimates&lt;br&gt;
come out broad, so the agent says "possible impact", not "impact".&lt;/p&gt;

&lt;h2&gt;
  
  
  The agents keep their own records
&lt;/h2&gt;

&lt;p&gt;The agent setup itself is documented the same way, because it changes almost every day:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A timeline&lt;/strong&gt;, newest entry first. Facts tied to a date, only ever added to, never edited.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A lessons file&lt;/strong&gt;, each entry an observation and a lesson. It has more than thirty entries now.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decision records&lt;/strong&gt;: 36 of them between 17 October and 11 November, each with the context,
the options considered, the decision and its costs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The point isn't the paperwork. It's that the next session, mine or an agent's, can read why&lt;br&gt;
something is the way it is, not just what it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  The day I rebuilt everything
&lt;/h2&gt;

&lt;p&gt;On 31 October I reinstalled the machine the agents run on from scratch. By the end of the next day&lt;br&gt;
everything was back: the agents, the masked test environment the investigator uses, the read-only&lt;br&gt;
data gateway, the monitors from part 2. I brought it back in three stages and checked each stage&lt;br&gt;
before the next.&lt;/p&gt;

&lt;p&gt;That was only possible because the setup steps, the rules and the reasons were all written down.&lt;br&gt;
I improved the setup guide along the way, for the next time.&lt;/p&gt;

&lt;p&gt;It also showed the limit of documentation. One monitor's history lived only in a local database on&lt;br&gt;
that machine, and it was lost. Documents let you rebuild how something works. They don't bring back&lt;br&gt;
data. Write down how to rebuild; back up what can't be rebuilt.&lt;/p&gt;

&lt;h2&gt;
  
  
  A habit, not a project
&lt;/h2&gt;

&lt;p&gt;None of this needs a big documentation effort. It needs a habit at the end of each piece of work.&lt;br&gt;
In my guide I suggest closing every session by asking the agent to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;add a few lines to the work log: what was done, what came of it, what's left;&lt;/li&gt;
&lt;li&gt;add anything we corrected today that should hold next time to the rules file;&lt;/li&gt;
&lt;li&gt;suggest the first request to paste in when the work picks up again.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The third one is the most useful. The next session starts where this one stopped, instead of&lt;br&gt;
rediscovering it.&lt;/p&gt;

&lt;p&gt;And a short list of what not to write down: full chat transcripts (nobody rereads them, keep the&lt;br&gt;
conclusions), personal data or secrets, and copies of things that already live somewhere else.&lt;br&gt;
Copies always drift. Link to the original.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Records are the agent's memory.&lt;/strong&gt; Don't assume the next session has this one's context; write
it down and check it loads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give cross-cutting facts their own home.&lt;/strong&gt; Facts about how systems connect belong to no single
repository.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reuse knowledge people already wrote.&lt;/strong&gt; The traps are the valuable part, and code won't tell you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make staleness visible.&lt;/strong&gt; Name each doc's sources, date the last check, and let a script
complain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Close the loop back to the docs.&lt;/strong&gt; Let the agent report what it found wrong, and check that
the reports actually arrive.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Write down how to rebuild, back up what can't be rebuilt.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;From doing the work to delegating it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp"&gt;Let code decide, let the LLM explain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-rules-i-never-break-1lnd"&gt;The rules I never break&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/context-is-the-job-426n"&gt;Context is the job&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agents forget, so I write it down&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;kenny: an agent that does my job&lt;/li&gt;
&lt;li&gt;Hermes: reminders that carry the check&lt;/li&gt;
&lt;li&gt;How to start in two weeks&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What's the one question about your system that someone, or something, has to answer by reading the&lt;br&gt;
code from scratch every time?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>documentation</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Context is the job</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Thu, 19 Nov 2026 01:28:49 +0000</pubDate>
      <link>https://dev.to/kenhyou/context-is-the-job-426n</link>
      <guid>https://dev.to/kenhyou/context-is-the-job-426n</guid>
      <description>&lt;p&gt;One day in October, our Slack agent posted an empty message into a thread, then another,&lt;br&gt;
fourteen in all. Two people were talking to each other in that thread; nobody had asked the agent&lt;br&gt;
anything.&lt;/p&gt;

&lt;p&gt;The messages weren't really empty. Each one held a single invisible character. In a thread, the&lt;br&gt;
agent got a turn on every new message. An empty reply counted as a failure and was retried, and&lt;br&gt;
nothing in its instructions said how to stay quiet. So the model found its own way to say&lt;br&gt;
nothing: a character a person can't see, which slipped past the filter that drops empty replies&lt;br&gt;
and went out.&lt;/p&gt;

&lt;p&gt;The model wasn't broken. Its context was missing one line, so I added a rule that says exactly&lt;br&gt;
how to not answer.&lt;/p&gt;

&lt;p&gt;That's the theme of this post. When an agent does something dumb, the first question I ask now&lt;br&gt;
isn't "is the model good enough?" It's "what did it start with?"&lt;/p&gt;

&lt;p&gt;This is part 4 of a series on what I learned putting AI agents to work in my own job.&lt;/p&gt;
&lt;h2&gt;
  
  
  What an agent starts with
&lt;/h2&gt;

&lt;p&gt;A new colleague can be brilliant and still useless on day one, because they don't know your&lt;br&gt;
rules, where anything is, what you decided last month, or what you actually want. With an agent,&lt;br&gt;
I don't assume the next session has the context from this one. I give it durable records, and I&lt;br&gt;
check that they are actually loaded.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgpqh28rjb5p585ftthhm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgpqh28rjb5p585ftthhm.png" alt="What an agent starts with: the rules file, the folder, the records, the request, the data" width="800" height="832"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So I think of an agent's context as five things I control, and I treat each one as part of the&lt;br&gt;
job, not as setup:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The rules file&lt;/strong&gt; it should read before anything else.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The folder&lt;/strong&gt; it works in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The records&lt;/strong&gt; of what was decided before (episode 5 is about these).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The request&lt;/strong&gt;, including what "done" means.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The data&lt;/strong&gt;, and the door it comes through.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  One folder per job
&lt;/h2&gt;

&lt;p&gt;Agents read folders directly, so the folder is part of the instructions. Here's the shape I use,&lt;br&gt;
with a new example: reviewing a contract with an agent.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;contract-review-2026-11/
├── RULES.md        ← what this folder is for, what to check, what never to do
├── originals/      ← the drafts as received; the agent reads, never edits
├── reference/      ← our standard terms checklist, past agreed versions
├── results/        ← everything the agent produces, as new files
└── log.md          ← one line per session: what was done, what's left
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;RULES.md&lt;/code&gt; is a placeholder name. Use the instruction filename your agent recognises, or tell it&lt;br&gt;
explicitly to read this file first, and then check that it was actually loaded.&lt;/p&gt;

&lt;p&gt;The principles behind it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Principle&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Originals are never edited&lt;/td&gt;
&lt;td&gt;If the agent gets it wrong, you can always start again&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Results are new files&lt;/td&gt;
&lt;td&gt;You can see what came from the agent, and compare versions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Names carry a date and a topic&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;2026-11-19-redline-summary.md&lt;/code&gt; beats &lt;code&gt;final-v2.md&lt;/code&gt;, for you and the agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One job per folder&lt;/td&gt;
&lt;td&gt;Unrelated files become "evidence" for the wrong answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Old versions are moved out&lt;/td&gt;
&lt;td&gt;An agent will happily read last month's draft&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Meaning lives in text, not colour&lt;/td&gt;
&lt;td&gt;"Status: cancelled" in a column, not a red cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of this is new to anyone who has organised a shared drive. What's new is the cost of not&lt;br&gt;
doing it: a person skips the stale file because they remember it's stale. An agent only knows&lt;br&gt;
it's stale if something it reads says so.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the agent starts decides what it reads
&lt;/h2&gt;

&lt;p&gt;The first lesson I learned building my Slack agent was mechanical. The runtime loads one context&lt;br&gt;
file from the agent's profile folder and another from the folder the session starts in. So&lt;br&gt;
"where does this agent start?" decides which rules it sees. I now settle that before writing a&lt;br&gt;
single rule.&lt;/p&gt;

&lt;p&gt;The second lesson was about scope. My first idea was to put the Slack agent's rules into the rules&lt;br&gt;
file that already sat at the top of the workspace, the one my coding agents read. I backed out of&lt;br&gt;
it. The coding agents would have read rules about answer formats and hand-offs, and the Slack&lt;br&gt;
agent would have read rules about editing code and updating docs. &lt;strong&gt;Keep role-specific rules&lt;br&gt;
separate from repository instructions.&lt;/strong&gt; Both kinds of file can exist side by side; my Slack agent&lt;br&gt;
and my coding agents just shouldn't inherit each other's jobs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rules files grow one line per mistake
&lt;/h2&gt;

&lt;p&gt;My rules files didn't start complete, and I don't try to write them complete. They grow by one&lt;br&gt;
line every time an agent gets something wrong in a way that will happen again.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54lopi5a4k5o4zhzfgdp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54lopi5a4k5o4zhzfgdp.png" alt="How a rules file grows: the agent gets something wrong, I correct it, one line goes into the rules file, the next session starts with the correction" width="800" height="748"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Three of the lines my Slack agent follows today, each from one real case in its first week:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hand suspected bugs off fast.&lt;/strong&gt; On its first real bug, the agent tried to investigate and
reproduce it itself and held on to it too long. That's the investigator agent's job; doing it
twice is waste. Now it points at the likely location, hands the case off, and tells the person
what it thinks so far.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Answer in plain words by default.&lt;/strong&gt; Other teams told me the answers were too technical. The
default format changed to plain language first, technical evidence on request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;This is exactly how to say nothing.&lt;/strong&gt; The invisible-character story above.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two more lessons were about the rules themselves going wrong:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Rules rot.&lt;/strong&gt; After we renamed some repositories, the agents' rules still pointed at the old
paths. I noticed the next day while writing docs. Paths written into a prompt go stale like code
does, so when the workspace changes, I search the rules files too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A one-off instruction can quietly override a standing one.&lt;/strong&gt; I added "don't change any code or
data" to a check I handed the investigator. A required setup step in the local test environment
changed state, so my blanket "don't change data" blocked the normal procedure. The agent obeyed
me precisely, looked for another way, found none, and stopped. Before I add a constraint to a
task now, I check which standing procedure it collides with.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The agent maintains some of its own notes too. In its first two days, one procedure the Slack&lt;br&gt;
agent wrote for itself was revised 25 times. Context isn't a document you write once; it's the&lt;br&gt;
thing you keep editing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write down "done" before the work starts
&lt;/h2&gt;

&lt;p&gt;The most useful line in any request is the one that says what finished looks like. It lets the&lt;br&gt;
agent check its own work, and it tells me what to review.&lt;/p&gt;

&lt;p&gt;Two places this became concrete:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hand-offs between agents.&lt;/strong&gt; The investigator agent can't see the Slack conversation. So every
hand-off uses the same template: the original question, what's already been checked, what still
needs checking, and who will read the result. Without it, the investigator starts from zero.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changing a monitoring rule.&lt;/strong&gt; In my operations monitor from episode 2, a rule change counts as
done only when the replays still pass: the quiet day still raises nothing urgent and at most
three medium alerts, and both incident days still raise the urgent alert they should.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For your own work it can be as simple as three lines at the end of a request: the file that should&lt;br&gt;
exist, what it should contain, and "if you're unsure, stop and ask".&lt;/p&gt;

&lt;h2&gt;
  
  
  Data through a safe door
&lt;/h2&gt;

&lt;p&gt;The fifth thing an agent starts with is data, and it's the one that can hurt you.&lt;/p&gt;

&lt;p&gt;Before my Slack agent could read live data, the best it could do with "how many orders were&lt;br&gt;
auto-rejected this week?" was to suggest a query someone else could run. Once it could read data&lt;br&gt;
through a read-only gateway that masks personal information, the answer became a number.&lt;/p&gt;

&lt;p&gt;The door matters more than the data. The rules around it are simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read-only&lt;/strong&gt;, through the gateway, never a copy of an admin screen pasted into a chat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Personal data stays masked&lt;/strong&gt;, and the agent never asks for those columns in the first place.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only counts and identifiers leave&lt;/strong&gt;: an order number, never a name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A small query budget per question&lt;/strong&gt;, so a curious agent can't wander through a database.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Episode 3 has more on the rules I hold myself and my agents to.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone starting
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;When an agent gets it wrong, ask what it started with before you blame the model.&lt;/li&gt;
&lt;li&gt;Give every recurring job its own folder: originals untouched, results as new files, dated names.&lt;/li&gt;
&lt;li&gt;Decide where each agent starts, keep role-specific rules separate from repository
instructions, and check that the rules were loaded.&lt;/li&gt;
&lt;li&gt;Add one line to the rules file every time a mistake could happen again. Expect to edit it often.&lt;/li&gt;
&lt;li&gt;Search your rules files when you rename things.&lt;/li&gt;
&lt;li&gt;Write "done" before the work starts.&lt;/li&gt;
&lt;li&gt;Give data through a door that is read-only and masks personal information, or not at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;From doing the work to delegating it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp"&gt;Let code decide, let the LLM explain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/the-rules-i-never-break-1lnd"&gt;The rules I never break&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context is the job&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;Agents forget, so I write it down&lt;/li&gt;
&lt;li&gt;kenny: an agent that does my job&lt;/li&gt;
&lt;li&gt;Hermes: reminders that carry the check&lt;/li&gt;
&lt;li&gt;How to start in two weeks&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What's the one line your agent's rules file is missing right now?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>agents</category>
      <category>productivity</category>
    </item>
    <item>
      <title>The rules I never break</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Wed, 18 Nov 2026 06:59:54 +0000</pubDate>
      <link>https://dev.to/kenhyou/the-rules-i-never-break-1lnd</link>
      <guid>https://dev.to/kenhyou/the-rules-i-never-break-1lnd</guid>
      <description>&lt;p&gt;One night in November, our Slack agent was handed a batch of broad questions. For each set of&lt;br&gt;
questions, it started four or five sub-agents in parallel. In about two hours it ran 21 sub-sessions and more than&lt;br&gt;
a thousand model calls. Across the day it made roughly eight times its normal number of calls, and&lt;br&gt;
the organisation's API credit ran out, which stopped all three of our agents at once.&lt;/p&gt;

&lt;p&gt;The frustrating part: a rule for exactly this already existed. Its instructions said that broad,&lt;br&gt;
multi-repository investigations go to the investigator agent as cards, one at a time. The model had&lt;br&gt;
the rule and delegated anyway. It was the first time it had used sub-agents at all.&lt;/p&gt;

&lt;p&gt;So I didn't add another sentence to the prompt. I took the delegation tool away from it. The&lt;br&gt;
investigator kept bounded parallel delegation. Since then I've treated a small&lt;br&gt;
set of rules differently from everything else: they don't live where the model can talk itself out&lt;br&gt;
of them.&lt;/p&gt;

&lt;p&gt;This is part 3 of a series on what I learned putting AI agents to work in my own job.&lt;br&gt;
&lt;a href="https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp"&gt;Part 2&lt;/a&gt; was about letting code, not the model, make the&lt;br&gt;
decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where a rule lives
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwo0pgqio95xazgb8gfuo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwo0pgqio95xazgb8gfuo.png" alt="Six locks, strongest first: the tool doesn't exist; the other side refuses; a hook blocks it; the outbound path is cut; a person approves; a sentence in the prompt. Anything irreversible or visible outside the system needs one of the first four. The fan-out rule sat at six; the fix moved it to one." width="799" height="752"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I rank every control by how hard it is for the agent to get around. If the tool doesn't exist, the&lt;br&gt;
model can't use it. If the server refuses, the model can't argue with it. A hook that runs before&lt;br&gt;
every action is strong, once you've verified it's actually active. A sentence in the prompt is the&lt;br&gt;
weakest lock there is: it only holds when the model decides to follow it.&lt;/p&gt;

&lt;p&gt;The principle that falls out of this: &lt;strong&gt;anything irreversible or visible outside the system needs&lt;br&gt;
one of the strong locks.&lt;/strong&gt; Prompt rules are for intent, tone and things you can undo. I wrote about&lt;br&gt;
the same ladder, applied to keeping source code out of Slack, in&lt;br&gt;
&lt;a href="https://dev.to/kenhyou/our-slack-ai-agent-can-read-our-code-it-cant-ship-it-2mec"&gt;the first post on this blog&lt;/a&gt;. It's the same ordering&lt;br&gt;
as that post's five layers, with human approval shown as its own step; drift detection stays what&lt;br&gt;
it was there, a safety net after the fact rather than a lock.&lt;/p&gt;

&lt;p&gt;The six rules below are the ones I don't bend. Not all of them can be enforced in code; where they&lt;br&gt;
can, they are.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. A person owns everything that leaves
&lt;/h2&gt;

&lt;p&gt;An agent drafts; a person is responsible. A customer who got the wrong answer doesn't care that an&lt;br&gt;
agent wrote it.&lt;/p&gt;

&lt;p&gt;In practice that means agents propose and people decide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The idea reviewer turns a feature idea into a written scope and acceptance criteria. Nothing
becomes a ticket until a person adopts it.&lt;/li&gt;
&lt;li&gt;Among my three agents, only the Slack agent, kenny, writes to the issue tracker. The investigator
and the idea reviewer leave drafts, which keeps every agent write in one place I can check. The
search monitor's issues are filed by a scheduled kenny job, so they go through the same gate.&lt;/li&gt;
&lt;li&gt;When a monitor files a ticket for a problem, the agent can move it as far as "in review". Closing
it is mine.&lt;/li&gt;
&lt;li&gt;The Slack agent doesn't promise refunds, exceptions or fixes. That's a decision, and decisions
have owners.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Minimise data: approved identifiers, no names or contact details
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmmfn3djyuky1zb9opyxm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmmfn3djyuky1zb9opyxm.png" alt="What goes into an AI tool. Never: names, contact details, payment data, passwords and keys; use approved identifiers instead. With care: approved internal material with personal data and secrets removed, only the part the task needs. Non-sensitive material: public pages, your own non-confidential drafts, general questions. Everything an agent reads goes to the model provider, and to the fallback provider when the main one fails." width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Everything an agent reads goes to the model provider. So the rule for what goes in is about what&lt;br&gt;
you'd be comfortable sending there, and the answer is: as little as the task needs.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Approved identifiers instead of people.&lt;/strong&gt; An order number or a member ID is enough to
investigate almost anything. Names, contact details and payment data stay out of Slack, tickets
and agent notes. Those IDs still need controlled access; they aren't automatically anonymous.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key names, never key values.&lt;/strong&gt; An agent can say which secret a service needs and where it comes
from. It never repeats the secret.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mask what spreads.&lt;/strong&gt; Screenshots attached to tickets are masked, because more people read the
tracker than the place the agent works.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remember the fallback.&lt;/strong&gt; When our main model provider refused calls during that credit outage,
traffic went to a second provider: first as an automatic fallback, then by my choice until the
credit was topped up. For about sixteen hours, the agents' model requests went to the second
provider. I logged the exact window, because "where did our data go?" deserves a precise answer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Check what your data really is before writing rules
&lt;/h2&gt;

&lt;p&gt;While writing the rules for the investigator agent, I described its local database as test data,&lt;br&gt;
safe to change. Then I looked closer: the row counts and dates said it was a copy of production.&lt;/p&gt;

&lt;p&gt;That changed the rules completely: anything that could change state was blocked until we'd checked&lt;br&gt;
every path out of the system.&lt;/p&gt;

&lt;p&gt;Then I swung too far the other way and assumed every outbound channel would reach real customers.&lt;br&gt;
I checked the outbound integrations one by one. Most were isolated; one could still send real&lt;br&gt;
messages. We disabled it before reopening state-changing work.&lt;/p&gt;

&lt;p&gt;Two lessons I still use. Establish what data you're dealing with from evidence&lt;br&gt;
(counts, dates), not from what it's called. And assess risk item by item; a blanket "it's&lt;br&gt;
dangerous" is as wrong as a blanket "it's fine".&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Never approve what I can't explain
&lt;/h2&gt;

&lt;p&gt;When I wrote a guide for my team on working with agents, I put this in as a rule, not advice: if&lt;br&gt;
an agent asks for approval and you can't explain, in your own words, what it will do, refuse and&lt;br&gt;
ask. I hold myself to it. My local coding agent asks before it runs commands or makes changes I&lt;br&gt;
haven't allowed; if I can't explain a command, I ask the agent to explain it, and if I still can't,&lt;br&gt;
I don't run it.&lt;/p&gt;

&lt;p&gt;The mirror image matters just as much. Several times a safety check stopped my agent mid-task: once&lt;br&gt;
over granting write access to a database, once over moving a credential, once over auto-approving&lt;br&gt;
a hook. Each time the agent stopped, and I did the step myself or changed the setting deliberately.&lt;br&gt;
A block sends the decision back to me. I review why it fired and explicitly decide whether the&lt;br&gt;
action or the permission should change; I don't ask the agent to evade the control. &lt;strong&gt;When a guard&lt;br&gt;
says no, nobody looks for a way around it.&lt;/strong&gt; That includes me, and it includes the agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Scope is cost
&lt;/h2&gt;

&lt;p&gt;The night of the credit outage is the expensive version of a simple point: an agent's cost and&lt;br&gt;
blast radius scale with how much you let it do per request.&lt;/p&gt;

&lt;p&gt;So every tool has a budget per question:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Requests to the live site are capped per question and counted as actual requests, so a script
that loops still counts every call.&lt;/li&gt;
&lt;li&gt;Database queries are capped per question, and only aggregates and identifiers leave the
database.&lt;/li&gt;
&lt;li&gt;Cloud access is a read-only account. A write attempt fails on the provider's side, whatever the
model decides.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the way you ask matters as much as the limits. "Investigate everything about refunds" invites a&lt;br&gt;
fan-out. "These three cases, from last month" gets a faster, cheaper and more accurate answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Count before you claim
&lt;/h2&gt;

&lt;p&gt;Early on, I told myself the idea reviewer had "hammered production". When I counted, it had&lt;br&gt;
made about five requests. The heavier traffic had come from the investigator's cards, whose&lt;br&gt;
instructions were missing the request limit the Slack agent already had. The fix was the same&lt;br&gt;
sentence in all three agents' instructions, not a new restriction on the wrong agent.&lt;/p&gt;

&lt;p&gt;I hold the agents to the same standard. Our Slack agent says how sure it is: checked in the code,&lt;br&gt;
read in the docs, or inferred. Its worst failure is stating something unchecked as if it were&lt;br&gt;
checked. If I expect that from an agent, I owe it to the team to count before I make a claim about&lt;br&gt;
the agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Put the rules that must hold in a lock the model can't argue with. Prompts are for intent.&lt;/li&gt;
&lt;li&gt;Agents propose; a person decides, and a person closes the loop.&lt;/li&gt;
&lt;li&gt;Minimise data: approved identifiers, not names or contact details. Know where your data goes,
including the fallback.&lt;/li&gt;
&lt;li&gt;Find out what your data is before you write rules for it, then check risks one at a time.&lt;/li&gt;
&lt;li&gt;Don't approve what you can't explain, and don't route around a guard.&lt;/li&gt;
&lt;li&gt;Give every tool a budget per request, and ask narrow questions.&lt;/li&gt;
&lt;li&gt;Count before you claim, especially about your own systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;From doing the work to delegating it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp"&gt;Let code decide, let the LLM explain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The rules I never break&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;Context is the job&lt;/li&gt;
&lt;li&gt;Agents forget, so I write it down&lt;/li&gt;
&lt;li&gt;kenny: an agent that does my job&lt;/li&gt;
&lt;li&gt;Hermes: reminders that carry the check&lt;/li&gt;
&lt;li&gt;How to start in two weeks&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Which of your agent's rules live only in a prompt today, and what would it take to move one of them&lt;br&gt;
to a lock the model can't argue with?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>security</category>
      <category>programming</category>
    </item>
    <item>
      <title>Let code decide, let the LLM explain</title>
      <dc:creator>Hoegun You</dc:creator>
      <pubDate>Tue, 17 Nov 2026 05:09:20 +0000</pubDate>
      <link>https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp</link>
      <guid>https://dev.to/kenhyou/let-code-decide-let-the-llm-explain-4ogp</guid>
      <description>&lt;p&gt;For five months, about one in five of our live product pages had quietly dropped out of Google's&lt;br&gt;
results. The cause was a one-line change to a file that tells crawlers what they may read.&lt;/p&gt;

&lt;p&gt;We had a monitor for exactly this. It collected search data around the clock and sent an&lt;br&gt;
AI-written summary to Slack twice a day. It didn't catch it. Worse, when I finally looked closely,&lt;br&gt;
the monitor had stopped watching the sitemap months earlier, and the only trace was one log line a&lt;br&gt;
day. Thousands of broken sitemap URLs had been collected and never diagnosed: the alerts existed,&lt;br&gt;
but nobody owned them. And its warnings also fired on harmless changes, so they had stopped&lt;br&gt;
meaning anything.&lt;/p&gt;

&lt;p&gt;That monitor taught me the most useful rule I have for working with LLMs, and it's the subject of&lt;br&gt;
this post: &lt;strong&gt;let code decide, and let the model explain.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is part 2 of a series on what I learned putting AI agents to work in my own job.&lt;br&gt;
&lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;Part 1&lt;/a&gt; was about how my work changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two kinds of answers
&lt;/h2&gt;

&lt;p&gt;Some tools are &lt;strong&gt;deterministic&lt;/strong&gt;: the same input always gives the same output. A spreadsheet&lt;br&gt;
formula, a billing calculation, a database query. Run it a hundred times and you get the same&lt;br&gt;
answer a hundred times, and when it's wrong, it's wrong the same way every time, so you can find&lt;br&gt;
and fix it.&lt;/p&gt;

&lt;p&gt;An LLM is &lt;strong&gt;probabilistic&lt;/strong&gt;. It writes the most plausible continuation of what it has seen, so the&lt;br&gt;
same question can get a different answer, sometimes a different conclusion. That's why it's&lt;br&gt;
brilliant at drafting, summarising, translating and classifying, and why it can be confidently&lt;br&gt;
wrong about a number.&lt;/p&gt;

&lt;p&gt;So I split the work by that line:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Deterministic code&lt;/th&gt;
&lt;th&gt;LLM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ask it again&lt;/td&gt;
&lt;td&gt;Same answer&lt;/td&gt;
&lt;td&gt;Maybe a different one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Good at&lt;/td&gt;
&lt;td&gt;Totals, thresholds, state, rules&lt;/td&gt;
&lt;td&gt;Drafts, summaries, diagnosis, explanation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;When it's wrong&lt;/td&gt;
&lt;td&gt;The same way every time, so you can test and fix it&lt;/td&gt;
&lt;td&gt;Occasionally, without warning, and plausibly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fas4bz3qtuu4ecjhvhby6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fas4bz3qtuu4ecjhvhby6.png" alt="Should the model decide this? A decision tree" width="800" height="700"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The everyday version: don't ask the model "what's the March total?" Ask it to write the formula.&lt;br&gt;
The formula does the arithmetic; the model's job is to build it and explain the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not just let the model look at the data?
&lt;/h2&gt;

&lt;p&gt;It's tempting. You point an agent at the dashboards every morning and ask, "anything wrong?" I&lt;br&gt;
considered exactly that, and wrote down why not:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The same data can get different judgments, and a missed one leaves no signal.&lt;/strong&gt; I can
evaluate a model against past cases, but I can't rely on it to make the same call every time:
a spike it calls fine on Tuesday may be a problem on Wednesday. And if it simply doesn't
mention something, nothing tells you it was missed. For these checks I wanted explicit rules
that give the same answer every run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If the model stops, the alerts stop.&lt;/strong&gt; API outages, rate limits, an empty credit balance (it
happened to me, see part 3): an alerting path that runs through a model inherits every one of
those failures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost and load become unpredictable.&lt;/strong&gt; If the model decides what to query each time, you can't
say in advance how much it will read, or how much it will cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So in all three monitors I rebuilt, code makes the decision. Where I use a model at all, it reads&lt;br&gt;
the results and explains them. The search monitor shows the full shape:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fllxria15w6a0tjbjczwx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fllxria15w6a0tjbjczwx.png" alt="How the search monitor is built: sources, checks in code, critical alerts straight to the team, everything else summarised by the LLM once a day" width="800" height="675"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Monitor 1: search visibility, rebuilt in a day
&lt;/h2&gt;

&lt;p&gt;The new search monitor works like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code assigns severity.&lt;/strong&gt; Each kind of problem gets a count, a severity and a state (new,
worse, resolved, back again), stored in a small database. Severity decides the route.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Critical goes straight to the channel within ten minutes, with no model in the path.&lt;/strong&gt; That
includes the failure modes that bit us: the crawler rules file changing, a sitemap not
registered, collection stopping.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The monitor watches itself.&lt;/strong&gt; If collection stops or the daily report doesn't arrive, that's a
critical alert too. A half-dead monitor was the original problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The model gets the rest, once a day.&lt;/strong&gt; It reads the results, diagnoses each group of problems,
files a tracked issue per cause, and posts a summary. An afternoon follow-up only wakes the
model if something changed since the morning; otherwise there's no model call at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I designed, built and deployed it in a day with a coding agent. On its first run it found a&lt;br&gt;
problem nobody knew existed: a group of pages pointing search engines at URLs that returned 404.&lt;/p&gt;

&lt;h2&gt;
  
  
  Monitor 2: price checks that recheck before alerting
&lt;/h2&gt;

&lt;p&gt;Another check compared the prices in a feed we send to a price-comparison site against the prices&lt;br&gt;
on our own pages. It sent a message on every run, about 30 a day, and every morning it raised a&lt;br&gt;
false alarm. The feed is rebuilt a few times a day with that moment's exchange rates, while our&lt;br&gt;
pages update immediately, so for a few hours each morning most foreign-currency products disagree&lt;br&gt;
with the feed by the same small ratio.&lt;/p&gt;

&lt;p&gt;The clever fix was obvious: if every product in a currency is off by the same ratio, it's&lt;br&gt;
exchange-rate lag, so ignore it. I tested that rule by replaying 400 logged runs. It produced&lt;br&gt;
&lt;strong&gt;97 false alarms&lt;/strong&gt;: ratios differed slightly between products, and some products didn't follow&lt;br&gt;
exchange rates at all.&lt;/p&gt;

&lt;p&gt;The boring fix is what I shipped, rebuilt in a day. A small state machine: when a price&lt;br&gt;
disagrees, don't alert, remember it. After the next feed rebuild, check that product again. Still&lt;br&gt;
wrong? Alert. Right? Close it quietly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5ipe740aekrrw6dbfqhf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5ipe740aekrrw6dbfqhf.png" alt="Replaying 180 past price alerts: 174 fixed themselves, 5 dropped out of the feed, 1 was real" width="800" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Replaying 180 past alerts through it: 174 cleared after the next rebuild, 5 products had dropped&lt;br&gt;
out of the feed, and &lt;strong&gt;one was a real problem&lt;/strong&gt;, a coupon price that had been missing from the feed&lt;br&gt;
for days. The state machine set that one apart from the temporary mismatches. Now the check alerts&lt;br&gt;
only when a mismatch survives the next feed rebuild, alongside two summaries a day. It doesn't use&lt;br&gt;
a model at all; I decided not to add one until it's needed.&lt;/p&gt;

&lt;p&gt;The trade-off is written down: a real price problem now surfaces only after the next rebuild, up&lt;br&gt;
to a few hours later during the day and up to half a day overnight. For this check, that's the&lt;br&gt;
right price for silence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Monitor 3: operations, a rule engine and a once-a-day reader
&lt;/h2&gt;

&lt;p&gt;Over three days I ran the same production health check by hand three times, and each time it found&lt;br&gt;
something new. One of them was a twelve-minute database saturation that dozens of existing alarms&lt;br&gt;
had missed, because the alarm needed a longer spike before it fired.&lt;/p&gt;

&lt;p&gt;So I built a rule engine in about two days: 40 rules and 48 tests, built around three "golden&lt;br&gt;
days" of real data (two with incidents, one quiet). It runs every 30 minutes with no model&lt;br&gt;
involved. In the design, a model reads a small digest of the results once a day, under 30 KB, and&lt;br&gt;
writes the summary and the issues.&lt;/p&gt;

&lt;p&gt;Two checks gave me enough confidence to keep testing it in shadow mode:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Replay before trust.&lt;/strong&gt; I tuned it against a full week of real logs until it raised at most two
medium alerts a day, and every high-priority alert on a non-incident day turned out to be a real
event.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shadow mode first.&lt;/strong&gt; It's still running without paging anyone. That's already paid off: it
flagged two server restarts as an incident because they were 12.4 minutes apart and the "this is
a deploy" window was 10. Fixed, with new tests, before it ever woke anyone up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's honest to say this one hasn't caught a live incident yet. One cost number I did measure:&lt;br&gt;
caching cut the logs it scans per run to about a fifth.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Put the decision where it repeats.&lt;/strong&gt; A model can be evaluated, but only a rule in code gives
the same answer every run, and can be replayed against last week to prove it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replay before you trust a rule.&lt;/strong&gt; The clever heuristic looked fine on paper; a replay of real
runs showed 97 false alarms before it ever shipped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the model out of the urgent path.&lt;/strong&gt; Critical alerts should fire even when the model, the
API or your credit balance is down.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make extra model calls conditional on change.&lt;/strong&gt; The search monitor's afternoon follow-up
stays quiet unless something changed since the morning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch the watcher.&lt;/strong&gt; A monitor that stops quietly is worse than none, because you think you're
covered.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design the silence.&lt;/strong&gt; An alert nobody owns teaches everyone to ignore alerts. Every alert
should mean "a person needs to act".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model still does a lot of the work here: it wrote most of the code, it reads the results every&lt;br&gt;
day, and it writes the explanations people actually read. It just doesn't get the final say on&lt;br&gt;
whether something is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kenhyou/from-doing-the-work-to-delegating-it-56m6"&gt;From doing the work to delegating it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Let code decide, let the LLM explain&lt;/strong&gt; (this post)&lt;/li&gt;
&lt;li&gt;The rules I never break&lt;/li&gt;
&lt;li&gt;Context is the job&lt;/li&gt;
&lt;li&gt;Agents forget, so I write it down&lt;/li&gt;
&lt;li&gt;kenny: an agent that does my job&lt;/li&gt;
&lt;li&gt;Hermes: reminders that carry the check&lt;/li&gt;
&lt;li&gt;How to start in two weeks&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Where in your own systems is a model making a call that a few lines of code could make, and test?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>monitoring</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
