- How do experienced engineers learn what isn't documented?
- What is a memory layer for AI agents?
- What goes wrong when an AI agent has no memory?
- What is b-Cortex?
- How does b-Cortex retrieve the right context?
- How does a memory layer reduce context size, cost and hallucinations?
- What happens to team knowledge when engineers leave or new people join?
- Frequently asked questions
- How does continuous learning lead to agentic operations at scale?
- What should you ask of any agent you let near production?
What an ops agent has to remember, how it learns it from your environment and your team, and how it recalls only what matters for the alert in front of it. Written from building b-Cortex, the memory layer in NudgeBee.
In short
Experienced engineers resolve incidents fast because of what they remember, not what is documented. AI agents without memory start every alert from zero, so they make more tool calls, carry bigger contexts, cost more and guess more. A memory layer fixes this by holding a live service dependency map, the events on each service, your SOPs and skills, and what the agent learns from your team, then returning only the slice that applies. The largest long-term benefit is that team knowledge stays when people move on.
Key takeaways
- A bigger context window does not fix a stateless agent. Better-chosen context does.
- The service dependency map is the base layer. Events, findings and playbooks attach to its nodes, so context is already there when an alert fires.
- Existing SOPs, wiki pages and Git-hosted skills can become agent knowledge, and SOPs can become runnable runbooks with approval on risky steps.
- Keeping corrections, decisions and resolved alerts stops repeat mistakes and turns recurring alerts into playbooks.
- Retrieval that starts from the affected service and caps each layer's size keeps prompts small, cuts tool loops, and makes smaller models workable.
- Agent memory needs the same hygiene as any data: scope, expiry, de-duplication, provenance and deletion.
- Because the savings build on each other, continuous learning is what moves agents from answering questions to handling operational work at scale.

how your best engineer actually learns
How do experienced engineers learn what isn't documented?
Mostly by being around. They pick it up from incident threads, war rooms, Slack arguments, emails and being corrected, and they recall it later without searching.
Think about the engineer on your team everyone pings when something odd happens at 2 a.m. Most of what they know was never written down:
- They read the incident thread where someone found that the payments pods OOM every time the nightly batch job runs.
- They watched a senior engineer in a war room say "don't restart that, it drops the queue" and remembered it.
- They saw the Slack thread that ended with "we pin the Redis client version, the new one breaks failover", and the decision stuck.
- They got corrected once ("that alert is noise in staging, ignore it") and didn't make the mistake again.
- They noticed that three of the last four latency incidents started with a config push to the API gateway.
It lives in their head as facts, decisions, corrections, patterns, and approaches that worked or didn't. When an alert fires, the relevant piece comes back to them, filtered to this service, this time of day, this kind of failure. That is why a five-year engineer resolves in ten minutes what a new hire spends two hours on, with the same dashboards and tools.
If we put AI agents into the operations loop, they need to work the same way: learn from what they observe and from the people they work with, and recall the right piece at the right time. Otherwise every investigation starts as a new hire's first day.
What is a memory layer for AI agents?
A memory layer is the part of an agent platform that stores what the agent knows about your environment, what your team has written down, and what the agent has learned from past work, and returns only the part that is relevant to the current task.
It is different from a chat history and different from a search index over your wiki. For operations it has to hold several kinds of knowledge that change at different speeds: the shape of your infrastructure (changes with every deploy), what is happening on each service (changes by the minute), written procedures (change rarely), and lessons from past incidents (build up over months). Each needs its own way of being updated and recalled.
What goes wrong when an AI agent has no memory?
A stateless agent rediscovers your environment on every alert, fills its context with data it isn't sure it needs, and pays for that in accuracy, latency and cost.

every alert, from zero
- It rediscovers topology every time. It doesn't know that
checkoutcallsinventorythrough an internal load balancer, or that the database behind it is shared with reporting. The first several tool calls go to listing namespaces and describing services, and the picture is thrown away when the session ends. - It pulls in everything. Without knowing what is relevant, the safe move is to fetch all recent events, all pod logs and every metric that might matter. Most of it is unrelated to the problem.
- Large contexts make answers worse. Models get less reliable at finding the signal in a long context. Details get missed and gaps get filled with plausible guesses. A confident wrong root cause is worse than none, because someone acts on it.
- Latency goes up. More tool loops and more tokens per loop means minutes instead of seconds, during an incident.
- Cost goes up per investigation. Token spend scales with context size and loop count, and the full discovery cost is paid on every alert, including the hundredth repeat of the same one.
- You need the largest models. Large, noisy contexts push you to the biggest and most expensive models, which narrows your options on cost, data residency and running inside your own boundary.
- It repeats corrected mistakes. You told it last week the staging disk alert is expected. It doesn't know that, so you tell it again.
All of these have one cause: the agent is reasoning without the context an experienced engineer carries.
Find the root cause faster
NudgeBee finds the root cause of an incident, with evidence, and suggests a fix. Runs self-hosted in your own environment.
What is b-Cortex?
b-Cortex is the memory layer behind NudgeBee's ops agents. It keeps what the agents know about your estate, what your team has written down, and what they have learned from working with you, in separate layers that are updated and recalled differently.

six layers, one small brief
Each layer maps to something an experienced engineer carries in their head:
| What the engineer carries | b-Cortex layer |
|---|---|
| A mental map of how the system fits together | Knowledge Graph: the service dependency map |
| A sense of what has been going on with each service | Events and insights attached to each node on that map |
| The runbooks, SOPs and wiki pages they have read | Knowledge: SOPs, the factset, skills from your repositories |
| What they learned by doing the work | Memory: facts, decisions, corrections, patterns |
| How they and their team like to work | Preferences: typed and inferred |
| "Oh, it's that one again" | Triage patterns and playbooks learned from alert handling |
| Knowing which of all that to recall right now | Retrieval: contextual, budgeted, loaded on demand |
How is the service dependency map built?
From four sources: declared structure from Kubernetes and cloud APIs, observed traffic, cross-account rules, and dependencies your team declares by hand. It is patched as resources change rather than rebuilt on a schedule.

the map, with context already sitting on each node
- Declared structure from Kubernetes and AWS, Azure or GCP: this Deployment runs in this cluster, behind this load balancer, using this RDS instance, in this VPC.
- Observed behaviour from eBPF flows, traces and APM data: who actually calls whom, and who publishes to which queue, including calls nobody drew on the architecture diagram.
- Cross-account rules that join a service in one account to the database or queue it uses in another.
- Manual dependencies and nodes for what no telemetry can see: a third-party API, a mainframe, a partner SFTP drop.
When sources disagree, a fixed precedence decides (Kubernetes, then manual declarations, then cloud APIs, then flow data, then traces), so the map doesn't depend on which source ran last. Inventory changes are detected every few minutes and a created, deleted or rolled-out resource is patched in directly. When the agent asks what checkout depends on, the answer includes this afternoon's deploy.
Why attach events and insights to each node?
So the context for a service is already in one place when the agent arrives, and so the agent can scope an investigation by walking the graph instead of searching everything.
Each node carries:
- recent alerts and Kubernetes events on that workload
- deploys, config changes and scaling actions
- findings and recommendations (rightsizing, cost, security) for that resource
- past investigations and their root causes
- patterns and playbooks that apply to it
A deploy to inventory and a latency alert on checkout look unrelated in an event list. On the graph they are one hop apart. This also makes blast radius cheap to work out: walk upstream for likely causes, downstream for affected services, and pull logs and metrics only for the few components on that path.
How do existing SOPs, runbooks and skills become agent knowledge?
b-Cortex indexes what your team already has (manual SOPs and facts, Confluence and ServiceNow articles, Agent Skills folders in Git), labels each document as a fact or a procedure, and can turn procedures into runbooks the platform can run.

facts inform, SOPs become runbooks
- Manually added SOPs and facts. Write or paste a procedure or reference page and tag it with the services and namespaces it applies to. Tags help ranking; they don't restrict who can see it.
- Synced knowledge bases. Confluence and ServiceNow articles are indexed into the same search as everything else.
- Skills from Git repositories. An admin points b-Cortex at a repository, folder and branch, and each Agent Skills folder becomes an organisation-wide skill. Skills are read-only in the platform, the source controls which accounts see them, and a re-sync only re-indexes a skill whose
SKILL.mdchanged. Your platform team keeps its know-how in Git, under code review. - The factset. Each document is labelled a Fact (reference, such as "payments reads from the replica" or "this cluster is PCI-scoped") or an SOP (a procedure). Facts inform reasoning. An SOP is checked for applicability, scope and prerequisites before it is used, because a matching title is not enough.
- SOP conversion. An agent cannot safely run prose. The SOP review step maps each step to a real capability, an agent tool or a workflow task. Any step that maps to a free-form command or script stays behind human approval, however harmless it looks. The output is a runbook built from a procedure your team already trusts.
What does the agent learn from working with your team?
Facts, decisions, corrections, patterns and preferences, each stored as its own type and scoped to a session, a team or a single agent.
- Facts. "The payments service reads from the replica, not the primary." Things about your environment that no API shows.
- Decisions. "We don't scale the Kafka consumers past 12; it rebalances too much." Choices with their reasons, so the agent doesn't propose what you already ruled out.
- Corrections. "No, that alert is expected during the nightly batch." The most useful signal in a session. It replaces the fact it corrects and shouldn't need repeating.
- Patterns. "Checkout latency plus inventory connection errors usually means the pool is exhausted." Shapes that only show up across many investigations, including logs known to be misleading and recommendations your team has dismissed.
- Preferences. Which dashboards to check first, what a good summary looks like. Typed preferences apply straight away; inferred ones are kept apart until someone confirms them.

investigate, review, remember, recall
Memory has three scopes. Sessions hold one conversation's working context. The collective is shared across the team, so a correction one SRE gives on Monday helps whoever is on call on Saturday. Each agent also has a soul: what it has learned from its own investigation history about doing its job well.
How does alert triage turn into playbooks?
Each triage decision (which alerts are duplicates, which are one incident, what was real, what fixed it) is recorded. When the same situation keeps coming back, it becomes a playbook that a person reviews and the agent follows next time.

every resolution teaches the next
Typical patterns that come out of triage:
- This alert fires in bursts, and the duplicates are one incident, not twelve.
- This alert, on this service, at this hour, is almost always the batch job, and the threshold could be raised.
- These three alerts together mean one root cause, and these steps fixed it the last four times.
A triage playbook records how to recognise the situation, what to check in what order, and what fixed it before. Playbooks are matched by situation, so they come up when the same problem on the same service returns. Teams can also write their own ("when X happens, check A, then B, then C"). The next occurrence is then handled from the playbook, and only what doesn't fit gets escalated. It's the "oh, it's that one again" an experienced engineer says, except written down and shared.
How do you manage agent memory in an enterprise?
With the same controls you would want on any data store: scope, expiry, de-duplication, provenance, deletion and visibility.
- Scope. A fact about one cluster must not leak into another tenant, account or team.
- Decay. A pattern that held before a migration can mislead after it. Pattern weight fades over a couple of weeks unless new evidence supports it, and memories can expire.
- Consolidation. Ten near-identical notes are merged into one so retrieval doesn't drown in duplicates.
- Provenance and erasure. Every memory records where it came from and who confirmed it, and can be deleted, for correctness and compliance.
- Visibility. Digests, feedback and usage views show what the agents learned, what they used, and what it cost.
Unmanaged memory is another source of context bloat. Managed memory is institutional knowledge.
How does b-Cortex retrieve the right context?
It starts from the affected service on the dependency map, reads each layer with a fixed size budget, ranks by the context of the problem, shows the agent an index before loading anything in full, and reuses what it found in later steps.
Plain "embed everything and return the ten most similar notes" fails in predictable ways: prompt size depends on luck, one large knowledge base crowds out the runbook you needed, and there is no way to ask for one specific thing.

right context first, then just enough
- Anchor on the graph. The alert names a resource. Retrieval finds that node and walks its blast radius to the few neighbours that matter. Everything after this is scoped to those nodes.
- Read each layer directly, with its own budget. The agent asks each layer a specific question: the decisions for this service, the patterns on this subject, this user's preferences. Each layer has a token cap, so prompt size is a known sum, not whatever a search returned.
- Rank on context, not just words. Ranking uses the services and namespaces a document is tagged with, the subject a playbook covers, the account, and how recent and reinforced a pattern is. Knowledge mapped to the agent doing the work gets reserved slots, so a specialist runbook isn't pushed out by a large wiki.
- Show the index, load only what is chosen. The agent first sees titles, sources and short snippets of candidate skills and SOPs. It loads the one or two that apply and checks an SOP's scope and prerequisites before acting on it.
- Reuse what was found. Candidates found in a turn get stable references, so later steps load exactly what was found instead of searching again. Delegated sub-agents search with the original question plus their own task, so the logs specialist and the metrics specialist each get context for their part. A correction made mid-conversation applies to the next retrieval, and memories that prove useful are reinforced.
The model ends up with a short brief: the relevant slice of the dependency map, the events on those nodes, the applicable SOP, the decisions and corrections that matter, and a playbook if one fits.
How teams actually run it
Four AI assistants sharing one context across SRE, FinOps, Kubernetes and CloudOps, with every change gated on human approval.
How does a memory layer reduce context size, cost and hallucinations?
By replacing discovery with recall. The agent makes fewer tool calls, sends a smaller and more relevant context to the model, and has less room to guess.

same question, a fraction of the context
- Fewer tool loops. No rediscovering topology or re-asking what is already known.
- Smaller context. A capped brief instead of everything that might be relevant.
- Fewer hallucinations. A short context of grounded, environment-specific facts leaves little to fill in.
- Lower latency and cost. Both scale with loops and tokens, so both drop, and keep dropping as memory fills in.
- Smaller models become workable. When the memory layer supplies knowledge of your environment, the model only reasons over a clean brief. That opens up cheaper models and models you can run inside your own boundary.
- Answers that fit your team. Recommendations follow the decisions you made, the SOPs you wrote and the corrections you gave.
What happens to team knowledge when engineers leave or new people join?
Without a memory layer, most of it leaves with them, and new joiners relearn it the hard way. With one, what people taught the platform stays, can be reviewed, and is available to whoever is on call.
Go back to the engineer from the start. They move to another team, or leave. Maybe several people leave in the same quarter. The handover covers what they remembered to write down. It doesn't cover the Redis pin and why it exists, the alert that is always the batch job, the service that breaks if you restart things in the wrong order, or the three things they check first when checkout gets slow. The team finds out what was lost one incident at a time.
From the other side: a new engineer joins and the person who would have shown them around is gone or busy. They get dashboards and a wiki two migrations out of date, spend months learning old lessons again, and page someone senior for problems the team solved years ago.
This is where a continuously learning memory layer pays off most. b-Cortex acts as a working memory for your environment and its tools:
- It keeps observing. Deploys, alerts, config changes, investigations and conversations feed it whether or not anyone writes things down.
- It keeps learning. Resolved alerts, accepted decisions and corrections are kept, with their source and who confirmed them.
- It corrects itself as things change. The dependency map follows every deploy, stale patterns lose weight, and corrections replace outdated facts, so it doesn't go stale like a wiki page.
- It doesn't leave. When someone changes teams, what they taught the platform stays.
- It helps whoever is on call. A new joiner can ask "what usually causes this?" or "what did we decide about scaling this consumer?" and get the team's answer with the reasoning.
Faster investigations and lower token spend are the visible gains. The larger one is that your team's operational knowledge stops depending on who happens to be in the room.
Frequently asked questions
Start free, any scale
Readable source, self-hosted, and free at any scale. 2 clusters or cloud accounts free on Cloud SaaS.
How does continuous learning lead to agentic operations at scale?
Every alert and conversation adds facts, decisions, corrections, patterns and dependency history. Recalling them later makes each investigation cheaper and more accurate than the last, which is what lets agents take on real operational work instead of only answering questions.

learning once, saving on every alert after
The effects build on each other:
- Sharper context means the agent already knows the dependencies, the recent changes and the past fixes, so it makes fewer discovery calls.
- Fewer calls and a recalled brief mean a smaller context and fewer tokens per investigation.
- A smaller, cleaner brief means small models can handle most steps, with large models kept for the cases that need them.
- Fewer calls, fewer tokens and smaller models add up to faster throughput and lower AI cost per incident.
- Every incident handled this way adds more to learn from, so the cost per incident keeps falling instead of staying flat.
That changes what you can hand to agents:
| Query support | Agentic operations with a memory layer | |
|---|---|---|
| When it acts | When someone asks | On alerts as they arrive |
| Context | Rebuilt from scratch for each question | Recalled from the dependency map and memory |
| Repeat alerts | Investigated again from zero | Recognised and handled from a playbook |
| Corrections | Forgotten after the chat | Kept and applied next time |
| Cost per incident | Flat, and high | Falls as memory fills in |
| Models | Largest model for everything | Small models for most steps, large ones when needed |
| Team knowledge | Stays in people's heads | Kept, reviewable and shared |
Query support saves an engineer a few minutes of searching. Agentic operations take whole categories of work off SRE, ops and platform teams: alert triage, first-pass investigation, known fixes and handover. Only the second keeps up as your estate and alert volume grow.
What should you ask of any agent you let near production?
Strong engineers are valuable because they remember: years of facts, decisions, corrections and patterns, recalled without being asked. An agent that can't do that behaves like a capable new hire on every page. It costs more per incident, takes longer, and needs the biggest models to keep up.
An agent backed by a managed memory layer improves the longer it runs in your environment: a dependency map that keeps itself current, context on every node, your SOPs and skills in a form it can use, memory from every interaction, playbooks from triage, and retrieval that returns only what applies. That is what we built b-Cortex for, and it's a fair test for any agent you evaluate:
What will it remember tomorrow about what happened today?
