[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"blog-ai-agent-fix-ci-failures":3,"blog-related-ai-agent-fix-ci-failures":39},{"slug":4,"title":5,"description":6,"category":7,"categoryId":8,"keyword":9,"date":10,"minutes":11,"body":12,"html":13,"headings":14},"ai-agent-fix-ci-failures","An AI agent that looks into failed CI runs and proposes the fix","How to have an AI agent catch each failed CI run, read the logs, sort real bugs from flaky tests, fix what it can on a branch and tell you the rest.","Agents & automation","agents-automation","ai agent fix ci failures","2026-11-25",7,"A red build costs more than the minutes it takes to fix. Someone has to notice it, open the run, scroll through three thousand lines of log to find the one that matters, work out whether it's their change, a flaky test or an expired token, and then fix it. On a small team, that someone is usually in the middle of something else, so main stays red for an afternoon and the next three pushes pile on top.\n\nMost of that work is reading and sorting, which an AI agent does well and fast. This guide covers how to wire an agent to your CI, what it should fix on its own, what it should only explain, and the rules that stop it from \"fixing\" a build by deleting the test.\n\n## What does the agent do when CI fails?\n\nThe loop is the same on GitHub Actions, GitLab CI or anything else:\n\n1. **Hear about it.** A failed run triggers the agent within seconds.\n2. **Read the failure.** Only the failed jobs' logs, not the whole run, plus the commit that triggered it.\n3. **Sort it.** A real bug, a flaky test, the environment, or something it can't tell.\n4. **Act on what it's sure of.** Fix it on a branch, or rerun a known-flaky job once.\n5. **Report.** Two or three lines to you: what failed, why, what it did or proposes, with links.\n\nThe report is the important part. Even when the agent can't fix anything, \"the deploy job failed because the registry token expired yesterday\" saves the ten minutes it would take you to find that out.\n\n## How does the agent hear about a failure?\n\nThere are three ways, and they suit different setups.\n\n| Approach | How | Good for | Limits |\n| --- | --- | --- | --- |\n| Inside CI | A job that runs on failure and calls Claude Code headless (`claude -p`), or Anthropic's Claude Code GitHub Action | Teams that want everything in the pipeline | Runs on CI minutes, sees only the runner's checkout, a secret for the API key in CI |\n| A webhook | GitHub's `workflow_run` event (action `completed`) or GitLab's pipeline events post to an address that starts the agent | An agent that also knows your other repos, your notes, your team | Needs a public address and a token that can create webhooks |\n| Polling | A script checks for failed runs every few minutes (`gh run list --status failure`) | Quick experiments | Slow, wasteful, and it misses context |\n\nWebhooks are the usual sweet spot for a small team: nothing runs until something fails, and the agent works with your full context rather than a fresh CI runner. Two details matter. Filter early, so the agent only starts for completed runs that failed, on the branches you care about. And deduplicate: GitHub sends each delivery with an `X-GitHub-Delivery` id, and a retry of the same delivery should not start a second run.\n\n## Which failures can it fix, and which should it only explain?\n\nSort by how sure the agent can be, and how much damage a wrong fix does.\n\n| Kind of failure | Example | What the agent should do |\n| --- | --- | --- |\n| Lint, formatting, types | An unused import, a missing type after a rename | Fix on a branch, open a pull request |\n| A test broken by a real change | A function now returns `null` where the test expected `[]` | Find which side is wrong; fix the code if the change was a mistake, or explain and propose if the test is outdated |\n| A flaky test | Passes on rerun, fails one time in ten, timing-dependent | Rerun the failed jobs once (`gh run rerun \u003Cid> --failed`), and log it so flaky tests become a list you fix |\n| Dependencies | A new minor version broke the build | Pin the last working version on a branch, and say which release broke it |\n| Environment | An expired token, a missing secret, a full disk, a rate limit | Explain only. These need a person with access |\n| Infrastructure | The runner died, the registry is down | Explain, and check the provider's status page |\n| Unknown | Nothing in the logs makes sense | Say so, with the lines it read |\n\nOn GitLab, a known-flaky job can also be given a `retry:` setting in `.gitlab-ci.yml`, which is better than an agent rerunning it by hand. GitHub Actions has no built-in retry for a single step, so the rerun usually goes through `gh run rerun`.\n\n## How do you stop it from turning the build green the wrong way?\n\nThe easiest way to pass a failing test is to delete it. An agent under instructions to \"fix CI\" will sometimes find that shortcut. Write the rules down where it reads them every run:\n\n- **Never delete, skip or comment out a test** to make a build pass.\n- **Never loosen an assertion** (`toEqual` to `toBeDefined`, a tolerance raised) without saying so in the report as the main change.\n- **Never change the CI configuration** to make a job pass, unless the job's configuration is itself the bug, and then say so.\n- **Never touch secrets or credentials** to make something work.\n- **Fix the code, not the symptom.** If the test caught a real bug, the fix goes in the code.\n\nThen make the rules checkable: every fix comes as a diff you review, so a removed test is visible before it lands.\n\n## Where should the fix happen?\n\nNever on main. A CI agent should:\n\n- **Work on its own branch**, ideally in a separate git worktree, so it never disturbs a checkout you're using. See [Git worktrees with Claude Code](\u002Fblog\u002Fclaude-code-git-worktrees).\n- **Run the failing job's command locally** before claiming a fix. \"This should fix it\" without a green local run is a guess.\n- **Open a pull request**, not push to the main branch. Opening a pull request is public in your repository, so it's reasonable to want a yes first, at least for the first weeks.\n- **Never deploy.** Even if the failed job was the deploy step, the redeploy is a person's call.\n\n## What should it send you?\n\nA good report fits on a phone screen:\n\n```\nCI failed on main: \"test\" job, commit a1b2c3d (Rename user fields).\nWhy: tests\u002Fusers.test.ts still reads user.fullName, renamed to user.name.\nDone: fixed the test's field name on branch fix\u002Fci-user-name; local run green.\nNext: pull request ready to open, your OK?\nRun: https:\u002F\u002Fgithub.com\u002Flarkspur\u002Fapp\u002Factions\u002Fruns\u002F1234567890\n```\n\nWhen it can't fix anything, the same shape: what failed, the most likely cause, the lines that show it, and who or what can fix it. Over a few weeks, these reports also become a record of what breaks your build most often.\n\n## How do you keep it cheap and quiet?\n\nA CI agent that wakes up for every push is expensive and noisy. A few settings keep it sensible:\n\n- **Failed runs only**, on the branches that matter (usually main and release branches). A failing run on a feature branch is that branch's author's business.\n- **A cheaper model to sort, a stronger one to fix.** Reading a log and naming the failure is light work. Debugging a real test failure deserves a stronger model, and it runs far less often.\n- **A daily cap.** If something is badly broken, ten failures in a row should produce one useful report, not ten.\n- **Remember the known causes.** \"The e2e job fails when the staging database is asleep\" belongs in the agent's notes, so it says so in one line next time.\n\n## In Relais\n\nIn Relais you tell an agent \"when CI fails on main in larkspur\u002Fapp, find out why and tell me\", and it sets this up with `watch_repo`: Relais makes the webhook on the GitHub or GitLab repository with the token you gave the agent in the Vault, drops the noise before any run starts (runs still going, passing runs when only failures count, other branches, repeated deliveries), and starts the routine with a few lines, the workflow, the branch, the commit and the link. The agent reads the logs without asking; when the fix needs real code work, it opens a Claude Code session of its own in the project, in a worktree when it changes code, and that session reports back to it when its first turn ends. Opening a pull request, a force-push or a deploy waits for your yes, and you can add \"ask me before any git push\" in plain words. Each routine runs on the model it was given, and deleting the routine removes its webhook on the repository. See [routines](\u002Ffeatures\u002Froutines), [approvals](\u002Ffeatures\u002Fapprovals) and [Claude Code in headless mode](\u002Fblog\u002Fclaude-code-headless-mode).","\u003Cp>A red build costs more than the minutes it takes to fix. Someone has to notice it, open the run, scroll through three thousand lines of log to find the one that matters, work out whether it&#39;s their change, a flaky test or an expired token, and then fix it. On a small team, that someone is usually in the middle of something else, so main stays red for an afternoon and the next three pushes pile on top.\u003C\u002Fp>\n\u003Cp>Most of that work is reading and sorting, which an AI agent does well and fast. This guide covers how to wire an agent to your CI, what it should fix on its own, what it should only explain, and the rules that stop it from &quot;fixing&quot; a build by deleting the test.\u003C\u002Fp>\n\u003Ch2 id=\"what-does-the-agent-do-when-ci-fails\">\u003Ca class=\"anchor\" href=\"#what-does-the-agent-do-when-ci-fails\" aria-label=\"Link to this section\">#\u003C\u002Fa>What does the agent do when CI fails?\u003C\u002Fh2>\n\u003Cp>The loop is the same on GitHub Actions, GitLab CI or anything else:\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Cstrong>Hear about it.\u003C\u002Fstrong> A failed run triggers the agent within seconds.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Read the failure.\u003C\u002Fstrong> Only the failed jobs&#39; logs, not the whole run, plus the commit that triggered it.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Sort it.\u003C\u002Fstrong> A real bug, a flaky test, the environment, or something it can&#39;t tell.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Act on what it&#39;s sure of.\u003C\u002Fstrong> Fix it on a branch, or rerun a known-flaky job once.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Report.\u003C\u002Fstrong> Two or three lines to you: what failed, why, what it did or proposes, with links.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>The report is the important part. Even when the agent can&#39;t fix anything, &quot;the deploy job failed because the registry token expired yesterday&quot; saves the ten minutes it would take you to find that out.\u003C\u002Fp>\n\u003Ch2 id=\"how-does-the-agent-hear-about-a-failure\">\u003Ca class=\"anchor\" href=\"#how-does-the-agent-hear-about-a-failure\" aria-label=\"Link to this section\">#\u003C\u002Fa>How does the agent hear about a failure?\u003C\u002Fh2>\n\u003Cp>There are three ways, and they suit different setups.\u003C\u002Fp>\n\u003Cdiv class=\"table-wrap\">\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Approach\u003C\u002Fth>\u003Cth>How\u003C\u002Fth>\u003Cth>Good for\u003C\u002Fth>\u003Cth>Limits\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Inside CI\u003C\u002Ftd>\u003Ctd>A job that runs on failure and calls Claude Code headless (\u003Ccode>claude -p\u003C\u002Fcode>), or Anthropic&#39;s Claude Code GitHub Action\u003C\u002Ftd>\u003Ctd>Teams that want everything in the pipeline\u003C\u002Ftd>\u003Ctd>Runs on CI minutes, sees only the runner&#39;s checkout, a secret for the API key in CI\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>A webhook\u003C\u002Ftd>\u003Ctd>GitHub&#39;s \u003Ccode>workflow_run\u003C\u002Fcode> event (action \u003Ccode>completed\u003C\u002Fcode>) or GitLab&#39;s pipeline events post to an address that starts the agent\u003C\u002Ftd>\u003Ctd>An agent that also knows your other repos, your notes, your team\u003C\u002Ftd>\u003Ctd>Needs a public address and a token that can create webhooks\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Polling\u003C\u002Ftd>\u003Ctd>A script checks for failed runs every few minutes (\u003Ccode>gh run list --status failure\u003C\u002Fcode>)\u003C\u002Ftd>\u003Ctd>Quick experiments\u003C\u002Ftd>\u003Ctd>Slow, wasteful, and it misses context\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Webhooks are the usual sweet spot for a small team: nothing runs until something fails, and the agent works with your full context rather than a fresh CI runner. Two details matter. Filter early, so the agent only starts for completed runs that failed, on the branches you care about. And deduplicate: GitHub sends each delivery with an \u003Ccode>X-GitHub-Delivery\u003C\u002Fcode> id, and a retry of the same delivery should not start a second run.\u003C\u002Fp>\n\u003Ch2 id=\"which-failures-can-it-fix-and-which-should-it-only-explain\">\u003Ca class=\"anchor\" href=\"#which-failures-can-it-fix-and-which-should-it-only-explain\" aria-label=\"Link to this section\">#\u003C\u002Fa>Which failures can it fix, and which should it only explain?\u003C\u002Fh2>\n\u003Cp>Sort by how sure the agent can be, and how much damage a wrong fix does.\u003C\u002Fp>\n\u003Cdiv class=\"table-wrap\">\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Kind of failure\u003C\u002Fth>\u003Cth>Example\u003C\u002Fth>\u003Cth>What the agent should do\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Lint, formatting, types\u003C\u002Ftd>\u003Ctd>An unused import, a missing type after a rename\u003C\u002Ftd>\u003Ctd>Fix on a branch, open a pull request\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>A test broken by a real change\u003C\u002Ftd>\u003Ctd>A function now returns \u003Ccode>null\u003C\u002Fcode> where the test expected \u003Ccode>[]\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Find which side is wrong; fix the code if the change was a mistake, or explain and propose if the test is outdated\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>A flaky test\u003C\u002Ftd>\u003Ctd>Passes on rerun, fails one time in ten, timing-dependent\u003C\u002Ftd>\u003Ctd>Rerun the failed jobs once (\u003Ccode>gh run rerun &lt;id&gt; --failed\u003C\u002Fcode>), and log it so flaky tests become a list you fix\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Dependencies\u003C\u002Ftd>\u003Ctd>A new minor version broke the build\u003C\u002Ftd>\u003Ctd>Pin the last working version on a branch, and say which release broke it\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Environment\u003C\u002Ftd>\u003Ctd>An expired token, a missing secret, a full disk, a rate limit\u003C\u002Ftd>\u003Ctd>Explain only. These need a person with access\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Infrastructure\u003C\u002Ftd>\u003Ctd>The runner died, the registry is down\u003C\u002Ftd>\u003Ctd>Explain, and check the provider&#39;s status page\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Unknown\u003C\u002Ftd>\u003Ctd>Nothing in the logs makes sense\u003C\u002Ftd>\u003Ctd>Say so, with the lines it read\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>On GitLab, a known-flaky job can also be given a \u003Ccode>retry:\u003C\u002Fcode> setting in \u003Ccode>.gitlab-ci.yml\u003C\u002Fcode>, which is better than an agent rerunning it by hand. GitHub Actions has no built-in retry for a single step, so the rerun usually goes through \u003Ccode>gh run rerun\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-you-stop-it-from-turning-the-build-green-the-wrong-way\">\u003Ca class=\"anchor\" href=\"#how-do-you-stop-it-from-turning-the-build-green-the-wrong-way\" aria-label=\"Link to this section\">#\u003C\u002Fa>How do you stop it from turning the build green the wrong way?\u003C\u002Fh2>\n\u003Cp>The easiest way to pass a failing test is to delete it. An agent under instructions to &quot;fix CI&quot; will sometimes find that shortcut. Write the rules down where it reads them every run:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Never delete, skip or comment out a test\u003C\u002Fstrong> to make a build pass.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Never loosen an assertion\u003C\u002Fstrong> (\u003Ccode>toEqual\u003C\u002Fcode> to \u003Ccode>toBeDefined\u003C\u002Fcode>, a tolerance raised) without saying so in the report as the main change.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Never change the CI configuration\u003C\u002Fstrong> to make a job pass, unless the job&#39;s configuration is itself the bug, and then say so.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Never touch secrets or credentials\u003C\u002Fstrong> to make something work.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Fix the code, not the symptom.\u003C\u002Fstrong> If the test caught a real bug, the fix goes in the code.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Then make the rules checkable: every fix comes as a diff you review, so a removed test is visible before it lands.\u003C\u002Fp>\n\u003Ch2 id=\"where-should-the-fix-happen\">\u003Ca class=\"anchor\" href=\"#where-should-the-fix-happen\" aria-label=\"Link to this section\">#\u003C\u002Fa>Where should the fix happen?\u003C\u002Fh2>\n\u003Cp>Never on main. A CI agent should:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Work on its own branch\u003C\u002Fstrong>, ideally in a separate git worktree, so it never disturbs a checkout you&#39;re using. See \u003Ca href=\"\u002Fblog\u002Fclaude-code-git-worktrees\">Git worktrees with Claude Code\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Run the failing job&#39;s command locally\u003C\u002Fstrong> before claiming a fix. &quot;This should fix it&quot; without a green local run is a guess.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Open a pull request\u003C\u002Fstrong>, not push to the main branch. Opening a pull request is public in your repository, so it&#39;s reasonable to want a yes first, at least for the first weeks.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Never deploy.\u003C\u002Fstrong> Even if the failed job was the deploy step, the redeploy is a person&#39;s call.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"what-should-it-send-you\">\u003Ca class=\"anchor\" href=\"#what-should-it-send-you\" aria-label=\"Link to this section\">#\u003C\u002Fa>What should it send you?\u003C\u002Fh2>\n\u003Cp>A good report fits on a phone screen:\u003C\u002Fp>\n\u003Cpre class=\"code\">\u003Ccode>CI failed on main: &quot;test&quot; job, commit a1b2c3d (Rename user fields).\nWhy: tests\u002Fusers.test.ts still reads user.fullName, renamed to user.name.\nDone: fixed the test's field name on branch fix\u002Fci-user-name; local run green.\nNext: pull request ready to open, your OK?\nRun: https:\u002F\u002Fgithub.com\u002Flarkspur\u002Fapp\u002Factions\u002Fruns\u002F1234567890\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>When it can&#39;t fix anything, the same shape: what failed, the most likely cause, the lines that show it, and who or what can fix it. Over a few weeks, these reports also become a record of what breaks your build most often.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-you-keep-it-cheap-and-quiet\">\u003Ca class=\"anchor\" href=\"#how-do-you-keep-it-cheap-and-quiet\" aria-label=\"Link to this section\">#\u003C\u002Fa>How do you keep it cheap and quiet?\u003C\u002Fh2>\n\u003Cp>A CI agent that wakes up for every push is expensive and noisy. A few settings keep it sensible:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Failed runs only\u003C\u002Fstrong>, on the branches that matter (usually main and release branches). A failing run on a feature branch is that branch&#39;s author&#39;s business.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>A cheaper model to sort, a stronger one to fix.\u003C\u002Fstrong> Reading a log and naming the failure is light work. Debugging a real test failure deserves a stronger model, and it runs far less often.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>A daily cap.\u003C\u002Fstrong> If something is badly broken, ten failures in a row should produce one useful report, not ten.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Remember the known causes.\u003C\u002Fstrong> &quot;The e2e job fails when the staging database is asleep&quot; belongs in the agent&#39;s notes, so it says so in one line next time.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"in-relais\">\u003Ca class=\"anchor\" href=\"#in-relais\" aria-label=\"Link to this section\">#\u003C\u002Fa>In Relais\u003C\u002Fh2>\n\u003Cp>In Relais you tell an agent &quot;when CI fails on main in larkspur\u002Fapp, find out why and tell me&quot;, and it sets this up with \u003Ccode>watch_repo\u003C\u002Fcode>: Relais makes the webhook on the GitHub or GitLab repository with the token you gave the agent in the Vault, drops the noise before any run starts (runs still going, passing runs when only failures count, other branches, repeated deliveries), and starts the routine with a few lines, the workflow, the branch, the commit and the link. The agent reads the logs without asking; when the fix needs real code work, it opens a Claude Code session of its own in the project, in a worktree when it changes code, and that session reports back to it when its first turn ends. Opening a pull request, a force-push or a deploy waits for your yes, and you can add &quot;ask me before any git push&quot; in plain words. Each routine runs on the model it was given, and deleting the routine removes its webhook on the repository. See \u003Ca href=\"\u002Ffeatures\u002Froutines\">routines\u003C\u002Fa>, \u003Ca href=\"\u002Ffeatures\u002Fapprovals\">approvals\u003C\u002Fa> and \u003Ca href=\"\u002Fblog\u002Fclaude-code-headless-mode\">Claude Code in headless mode\u003C\u002Fa>.\u003C\u002Fp>\n",[15,18,21,24,27,30,33,36],{"id":16,"text":17},"what-does-the-agent-do-when-ci-fails","What does the agent do when CI fails?",{"id":19,"text":20},"how-does-the-agent-hear-about-a-failure","How does the agent hear about a failure?",{"id":22,"text":23},"which-failures-can-it-fix-and-which-should-it-only-explain","Which failures can it fix, and which should it only explain?",{"id":25,"text":26},"how-do-you-stop-it-from-turning-the-build-green-the-wrong-way","How do you stop it from turning the build green the wrong way?",{"id":28,"text":29},"where-should-the-fix-happen","Where should the fix happen?",{"id":31,"text":32},"what-should-it-send-you","What should it send you?",{"id":34,"text":35},"how-do-you-keep-it-cheap-and-quiet","How do you keep it cheap and quiet?",{"id":37,"text":38},"in-relais","In Relais",[40,47,52],{"slug":41,"title":42,"description":43,"category":7,"categoryId":8,"keyword":44,"date":45,"minutes":46},"claude-code-agent-teams","Claude Code agent teams: subagents, teammates, parallel sessions and hand-offs","Five ways to make several Claude Code agents work together, from subagents and the experimental agent teams to worktree sessions, scripts and agents that hand work to each other, with what each one does well and what it costs.","claude code agent teams","2026-11-27",6,{"slug":48,"title":49,"description":50,"category":7,"categoryId":8,"keyword":51,"date":10,"minutes":46},"ai-weekly-growth-report","A weekly growth report an AI agent writes for you","What a useful weekly growth report holds, where its numbers come from, how to tell a real change from noise, and how an AI agent can write it every Monday.","weekly growth report",{"slug":53,"title":54,"description":55,"category":7,"categoryId":8,"keyword":56,"date":10,"minutes":46},"ai-agent-memory","AI agent memory: what to keep, where, and how much","How to give an AI agent a memory that works. The kinds of memory an agent needs, why plain files beat a vector database for most of it, what deserves a line, why a cap helps, and how it remembers further back.","ai agent memory",1795902783327]