The evolution of my AI memory system

In August of 2025, I developed my own persistent AI memory system. My initial objective was relatively straightforward: capture my historical conversations across the different AI platforms I had been using and make that accumulated knowledge available to future AI sessions.

I had accumulated a considerable amount of information through my interactions with AI. These conversations contained architectural decisions, development methodologies, business requirements, personal preferences, solutions to technical problems and, equally important, discussions about approaches that had not worked.

What frustrated me was that much of this knowledge was effectively lost every time I started a new session or moved from one AI platform to another.

I found myself repeatedly explaining the same things, correcting the same assumptions and providing information that I had already spent considerable time discussing.

Coming from a software development and technology leadership background, I viewed this as a problem that needed to be addressed before I could effectively scale my use of AI in software development.

I developed a system that allowed me to consolidate, index and semantically search my historical AI conversations, independently of the platforms on which those conversations originally occurred.

As I continued developing and integrating this capability into my automated multi-agent development framework, q, I began encountering a different challenge.

The problem was no longer simply getting AI to remember things. It was getting AI to remember the right things at the right time.

Why memory is so important in software development

When an experienced developer joins an existing development organization, there is generally a period of time during which that individual learns how the organization operates.

They learn its architecture, coding standards, database conventions, development methodologies, business rules and the reasons behind previous technical decisions.

Over time, that developer becomes more effective because they accumulate experience within that environment.

When working with AI, we often expect an agent to be productive without providing it with the benefit of that accumulated experience.

Every new session effectively introduces another developer who may be technically capable but knows relatively little about the organization, the application or the decisions that have already been made.

The AI may understand how to design a database, but it doesn't necessarily understand how I design databases.

It may know several ways to implement a particular feature, but it doesn't necessarily know why I rejected some of those approaches three months ago.

It may be capable of developing a solution that meets the immediate requirements while introducing inconsistencies with the rest of the application.

Persistent memory provides an opportunity to address these problems.

Rather than repeatedly educating each new agent, I want agents to have access to the knowledge and experience that have already been accumulated through previous development activities.

Consistency across multiple AI agents

As I have continued to mature my multi-agent development process, consistency has become increasingly important.

I may have one agent analyzing requirements, another reviewing those requirements, another performing development and another validating the implementation.

Each of these agents may be operating in an independent session. They may even be using different models from different providers.

Without access to a common body of knowledge, each agent is potentially operating from a different understanding of the application and my expectations.

For example, an agent developing a new API might introduce an authentication pattern that differs from the one already established elsewhere in the application.

Another agent might recommend a database change that conflicts with an architectural decision made several months earlier.

A reviewing agent might identify something as a deficiency when it was actually an intentional design decision.

These are not necessarily failures of model intelligence. They are failures to provide the model with sufficient organizational and historical context.

By making persistent memory available across agents, I can give them a more consistent understanding of the environment in which they are operating.

The objective is not to eliminate independent thinking. I want agents to challenge assumptions and identify better approaches. However, I want those discussions to begin with an understanding of the decisions that have already been made.

More memory introduces another problem

When I initially developed my memory system, much of my attention was focused on capturing and retrieving information.

As the amount of information grows, I am becoming increasingly interested in governing how that information is used.

An architectural decision made for one application may be completely inappropriate for another.

A solution developed for a particular task may not represent a development standard.

A conversation about a potential feature does not necessarily represent an approved requirement.

A decision made six months ago may have been superseded by a more recent decision.

Simply performing a semantic search across everything an AI remembers does not adequately address these distinctions.

Semantic similarity tells us that two pieces of information are related. It does not necessarily tell us that one should influence the other.

I believe effective AI memory systems need to understand more than the content of a memory. They need to understand the context in which that memory was created, the scope within which it is applicable and the circumstances under which it should be retrieved.

Introducing a memory hierarchy

Within my existing development framework, I already have the ability to associate memory with projects, cards, tasks and conversations.

I am now looking at formalizing how these different scopes interact with each other.

Rather than automatically searching the entire memory repository whenever an agent needs information, I want retrieval to begin within the most relevant scope and progressively expand when additional information is necessary.

The hierarchy I am exploring consists of five levels.

Five levels of retrieval, from task to card, session, project and authorized shared memory. Widen only when necessary and authorized.
Figure 1. Proposed memory retrieval hierarchy, April 2026.

1. Task memory

Information specifically associated with the work currently being performed. This may include implementation decisions, previous attempts, findings, errors and outstanding questions.

2. Card memory

Information associated with the broader work item or feature. A card may contain multiple tasks that need to share knowledge, requirements and implementation decisions.

3. Session or conversation memory

Information accumulated through discussions about the work, including clarifications, decisions and relevant historical context.

4. Project memory

Information applicable to the broader application, including architectural decisions, development conventions, established patterns, business rules and previous project experience.

5. Shared memory

Information that may be useful across multiple projects, such as general development practices, personal preferences, reusable solutions and lessons learned.

Access to this broader scope would be subject to defined policies.

The objective is to retrieve enough information to accomplish the task without unnecessarily introducing unrelated information into the agent's context.

Progressively widening memory retrieval

One of the areas I am exploring is whether memory retrieval should operate more like a controlled search process than a single vector database query.

When an agent requests information, the system would initially search within the narrowest applicable scope.

If that search returns sufficient relevant information, there may be no reason to search more broadly.

If it does not, the system could progressively widen the search to include additional scopes.

There are several factors that could influence whether retrieval should expand:

  • The similarity of the information returned.
  • The number of relevant memories identified.
  • The confidence associated with those memories.
  • The diversity of the information returned.
  • Explicit references to earlier conversations or decisions.
  • Policies governing access to broader memory scopes.

This approach could provide two important benefits.

First, it could improve the quality and relevance of the information presented to the agent.

Second, it could reduce the amount of unnecessary information being introduced into the context window.

As I documented in March while working through context exhaustion, managing context efficiently becomes particularly important when operating autonomous development processes.

Memory should help an agent work more efficiently, not accelerate the exhaustion of its available context.

Governing how memory is written

Retrieval is only one part of the problem. We also need to consider how information enters the memory system.

When an agent discovers something during development, where should that information be stored?

Is it relevant only to the current task? Does it apply to the entire project? Is it a lesson that could benefit other projects?

I do not necessarily want every observation made by an AI agent to become part of the knowledge used by every future agent.

There is an important distinction between recording an observation and establishing a development standard.

I am exploring a model in which memory is written within the appropriate project scope, with additional attribution to the task, card or conversation that produced it.

Information could subsequently be promoted to a broader scope when there is sufficient justification for doing so.

For example, an agent might discover that a particular approach to database connection management introduces problems within one application.

Initially, that finding belongs to the task and project in which it was discovered.

If further investigation establishes that the problem applies more generally, the knowledge may become useful across multiple projects.

However, I want that broader applicability to be established rather than assumed.

This becomes particularly important as autonomous agents begin contributing more information to the memory system themselves.

Preserving continuity between conversations

Another area I am working on is making memory available when returning to an existing conversation or beginning a new conversation related to previous work.

There are several situations in which continuity information may need to be restored:

  • Beginning a new session associated with an existing project.
  • Returning to a conversation after an extended period of inactivity.
  • Referencing an existing card or task.
  • Continuing a discussion that occurred in another session.
  • Moving from a general project discussion into implementation of a specific feature.

Rather than requiring the user to repeatedly provide this information, the system could identify these situations and retrieve the relevant continuity memories.

My existing framework already includes functionality for assembling continuity information, retrieving recent memories and providing resumed session context.

I want to extend this capability through more deliberate retrieval controls, source identification and scope-aware restoration.

Again, the objective is not to reconstruct every previous conversation. It is to provide the information necessary to resume productive work.

Learning from previous development activities

One of the more interesting opportunities with persistent memory is the ability to capture lessons learned throughout the development process.

Traditional software development organizations often conduct retrospectives to identify what worked well, what did not and what should change going forward.

The effectiveness of those retrospectives depends largely on whether the organization actually applies what it learns.

I see a similar opportunity within automated development frameworks.

When a development task encounters a problem, that experience should potentially become useful to subsequent agents.

When a reviewer identifies a recurring deficiency, that information should be available during future development activities.

When an implementation succeeds using a particular approach, the reasoning behind that approach may be worth preserving.

My existing framework already supports project-scoped retrospective memory and cross-agent access to relevant findings.

What I want to accomplish is a more controlled mechanism through which development experience becomes reusable knowledge.

Requirements, development and verification contribute decisions, standards, solutions, failures, preferences and experience to persistent memory, which informs subsequent development cycles.
Figure 2. Development experience becomes reusable knowledge that informs future work.

Over time, the development framework should benefit not only from improvements in the underlying AI models but also from the experience accumulated while using those models.

Memory must have boundaries

As memory becomes more integrated into development processes, I believe it is important to explicitly define what the system should not do.

An agent working on one project should not automatically retrieve information from another project.

Task-specific knowledge should not automatically become an organization-wide development standard.

A historical conversation should not override an approved requirement simply because it is semantically similar.

Information should not be retrieved beyond the scope authorized for the agent performing the work.

These boundaries are important for consistency, but they are also important from a security and governance perspective.

The same architecture that makes organizational knowledge broadly available could introduce significant problems if that knowledge is made available indiscriminately.

I want memory to become a controlled resource within the development framework, not an unrestricted collection of information that every agent can access.

Keeping memory independent of the AI provider

One of the reasons I developed my own memory system was that I did not want my accumulated knowledge to be dependent on a particular AI provider.

I use different AI models for different purposes. I expect those models and the platforms through which I access them to continue changing.

The knowledge I accumulate while using them should remain useful regardless of which provider I choose tomorrow.

By maintaining memory independently of the AI platforms, I can provide a common body of knowledge to different models, agents and development workflows.

This also allows me to separate two things that I believe are fundamentally different: the intelligence provided by the AI model and the experience accumulated through its use.

I expect to replace models regularly as better capabilities become available.

I do not want to lose the experience I have accumulated every time I make that change.

Where I think this is going

I expect persistent memory to become an increasingly important component of AI-driven software development.

As more organizations begin using multiple AI agents across requirements analysis, architecture, development, testing and operational support, the challenge of maintaining consistency will become more apparent.

I believe organizations will eventually need to treat accumulated AI knowledge in much the same way they treat other organizational assets.

That will require mechanisms for capturing information, determining its applicability, preserving its origin, managing its lifecycle and controlling how it is used.

It will also require distinguishing between information that is useful for an individual task and information that represents broader organizational knowledge.

I am particularly interested in how this capability may allow AI-driven development frameworks to become more effective through accumulated experience rather than relying exclusively on improvements in the underlying models.

We spend considerable time discussing how much more intelligent the next generation of AI models will be.

I think we should also be spending time discussing how we preserve and leverage what we have already learned while using the current generation.

The larger objective

When I began developing my memory system in August 2025, I was primarily interested in avoiding the frustration of repeatedly explaining things to AI.

As I have continued integrating memory into my automated development framework, I have come to view it as something considerably more important.

It provides a foundation for consistency across agents, continuity across development sessions, preservation of architectural decisions and the accumulation of development experience.

Ultimately, I want each new agent to begin its work with the benefit of the experience accumulated by the agents that came before it.

The intelligence of the underlying models will continue to improve. The tools will continue to change. The development methodologies will continue to evolve.

But the knowledge and experience accumulated throughout that process should remain available to us.

I don't simply want AI to remember what we have done. I want what we have done to influence how effectively AI performs the next task.

Editorial note: Reconstructed in November 2026 from the original April 1, 2026 whitepaper, Scoped Memory Continuity and Hierarchical Retrieval Control, and the author’s recollection of the August 2025 memory system. Proposed enhancements are presented as proposals, not verified outcomes.