Inside Satispay

Building memory for AI agents: lessons learned

S

Satispay

Building memory for AI agents: lessons learned

AI agents can help solve a problem, but what happens to what they learn when a session ends? Andrea Balsamo, a Senior Cloud Engineer at Satispay, started experimenting with a wiki to help agents remember and reuse that knowledge.

The project began on his laptop and became a way to capture lessons from everyday engineering work and share them with the team. Andrea tells us how the wiki works, what surprised him, and why keeping it up to date takes work.

1. What did you explore in the project? Is there a particular example you’d like to share?

AI agents suffer from complete amnesia: the moment you close a session, they forget everything and start from scratch. The question we asked was: what is actually worth remembering, and how do we place it back in front of the model when it matters?

Most traditional setups dump text into large search databases and hope the agent retrieves the right snippet at runtime. We tried a different path inspired by an idea from Andrej Karpathy: giving the agent its own personal “wiki” made of short, interconnected notes. Once it learns something, it updates the relevant note instead of having to rediscover the concept from scratch every time.

The biggest surprise was where that knowledge came from. I initially thought we’d have to manually feed it documentation, but most of it came directly from day-to-day work. Whenever the agent finishes debugging an issue or refactoring code, it records what it learned on the relevant page and links to the commit or pull request as proof.

Our Data & ML Platform team tested the same setup on their internal knowledge base. Previously, answering a single operational question meant querying dozens of documents across multiple systems and feeding massive walls of text to the model. With the wiki, the agent simply reads a short summary, checks an index, and follows 3 or 4 linked pages to give an accurate answer in seconds.

2. Can you share a specific example of something AI remembered that was useful later?

What would you have had to do without that context?

A few months ago, while adjusting our deployment configurations, the agent stumbled across a sneaky edge case: an intuitive setting was behaving in the exact opposite way we expected due to how default values were handled. It noted the pitfall and recorded the safer pattern to use instead.

Two months later, we were running load tests for canary deployments and hit a similar configuration block. The “obvious” fix was the exact one that concealed the trap. The agent’s note flagged the dead end right away and pointed directly to the workaround.

Without that context, I would have applied the obvious fix, waited through another deploy cycle wondering why the setting still wouldn’t budge, and spent a couple of hours debugging, only to relearn a lesson we had already figured out months earlier.

3. What was the hardest part of making the setup work, and what did you learn from it?

Getting an agent to search for information is easy; keeping that information alive is the real challenge.

When I audited the setup after a few months, I noticed that while searching worked smoothly, most pages had never been touched after they were created. As soon as the initial novelty wore off, new updates dropped. A wiki that is only written once quickly turns back into a dusty pile of stale documents. That was the exact problem we set out to solve.

We learned two key things:

Knowledge must grow directly out of daily work. Updating notes can’t be a chore you save for Friday afternoon. Every time the agent completes a task, it should leave the notes it touched slightly more accurate than it found them, just like keeping code and documentation in sync.

Trust the agent with content, not with structure. We let the model write the notes, but plain, deterministic code enforces the formatting rules, and standard version control tracks the history. If new evidence contradicts an older note, the agent flags the conflict openly rather than quietly overwriting past knowledge.

4. What would you tell an engineer joining Satispay who’s curious about working with AI agents?

Start small and unglamorous. You don’t need a complex system right away, a simple markdown file in your repository outlining basic guidelines is already functional memory, and it delivers immediate value.

Treat what the agent generates the same way you’d treat a colleague’s code review: inspect the diff, ask for evidence (like a file path or a commit), and don’t take anything at face value if it can’t point to where it learned it. Most of the skill in working with agents isn’t about prompting tricks; it’s about deciding what context belongs in front of the model.

Finally, share what you learn. This project started as a personal curiosity on my laptop and evolved into an internal tech talk. At Satispay, there’s plenty of room to take an individual experiment and turn it into something that helps the entire engineering team move faster.

For anyone curious about working with AI agents, Andrea's advice is simple: start with a file, check the agent's work, and share what you learn.

Curious about building and learning with our team?
Explore open roles at Satispay
Italy · English

Italy

France

Luxembourg

Satispay

Payment services are provided by Satispay Europe S.A., registered under no. W00000010 in the Register of Electronic Money Institutions kept by the Commission de Surveillance du Secteur Financier and under no. B229149 in the Luxembourg Trade and Companies Register. Registered office: 53, Boulevard Royal, L-2449 Luxembourg.

Corporate welfare services are provided by SatisWelfare S.p.A., tax code and registration number in the Milan Companies Register no. 12408640964. Registered office: piazza Fidia 1, 20159 Milan.

Investment services are provided by Satispay Invest S.A., registered under no. P00000555 in the Register of Investment Firms kept by the Commission de Surveillance du Secteur Financier and under no. B285448 in the Luxembourg Trade and Companies Register. Registered office: 53, Boulevard Royal, L-2449 Luxembourg.