I am a software engineer, not an ML researcher, and I arrived at this question through a practical experiment with coding agents. I am posting it here because people working on memory architectures, retrieval, or agentic systems may know whether this has already been explored more rigorously.
While developing a fairly large application with an AI coding agent, I realized that much of my own advantage when working on a familiar codebase came from something that was not actually present in the code: a mental map of the project.
I do not remember every function or implementation detail. Instead, I know roughly where things are, how the important concepts relate to each other, which paths lead to which functionality, and where I should look when I need to make a particular kind of change.
So I tried externalizing that mental map for the AI.
I created a file called ATLAS.md and gave the agent essentially this responsibility:
Maintain a compact technical map of the project: its architecture, data model, major components, and the precise locations of relevant implementations. Its purpose is to let you quickly determine where to make a specific change without rediscovering the codebase. Do not use it as a development log. Keep it updated after every change.
Importantly, I did not define a schema for the map.
There is no AST representation, predefined knowledge graph, embedding structure, ontology, or specialized retrieval system. I simply described in natural language what kind of mental model I wanted the agent to maintain.
The model decided what information was useful.
The resulting atlas contains things such as architecture, data relationships, important functions and components, API routes, tests, and—particularly useful—a mapping from types of intended changes to their actual implementation locations.
The workflow then became roughly:
intent → atlas → selective code inspection → reasoning → change → tests → atlas update
In practice, this has significantly changed how I interact with the coding agent. I can often describe only the desired behavioral change. The agent uses the atlas to determine where to investigate, verifies the relevant code, makes the change, tests it, and updates the atlas if its understanding of the project has changed.
This led me to a broader question.
What if this principle applies beyond codebases?
Current LLM systems have several ways of providing external knowledge: large context windows, RAG, vector stores, knowledge graphs, persistent memories, etc.
But in many of these approaches, we design the representation and retrieval mechanism for the model.
What if a sufficiently capable model were instead responsible for maintaining its own compact semantic topology of its external knowledge?
Not the knowledge itself, necessarily, but a persistent map that helps it answer questions such as:
- What kind of problem is this?
- Which areas of my external knowledge are relevant?
- How are those areas related?
- What information do I need to retrieve before reasoning?
- What do I already understand sufficiently?
- What new relationship did I just discover?
- Does this new information require updating my map?
The resulting loop might look something like:
query → semantic map → selective retrieval → reasoning → action/answer → map update
The distinction I am interested in is that the topology would not necessarily have a predefined representation.
Rather than us deciding that knowledge must be represented as a particular graph, hierarchy, embedding space, or ontology, we could describe the properties that the representation should have and allow the model itself to construct and continuously reorganize whatever representation is most useful.
In other words:
What if we let the model build and maintain the representation it needs to navigate its own external knowledge, instead of designing that representation for it?
My intuition comes from the coding experiment: the atlas does not contain the codebase. It contains enough structure for the model to know where to go next. The expensive detail remains in the repository and is retrieved only when needed.
I wonder whether a similar separation between map and territory could be useful at a much larger scale.
Potentially, such a system could spend less context and computation repeatedly reconstructing relationships that it had already discovered. It could also update external knowledge without retraining the underlying model, while preserving a continuously evolving conceptual organization of that knowledge.
I want to be careful about the scope of this claim. I am not proposing that this replaces Transformers, nor claiming that current models do not already learn rich internal representations. I also realize that this overlaps with existing work on agent memory, knowledge graphs, GraphRAG, hierarchical retrieval, continual learning, and related areas.
The specific question I am interested in is narrower:
Has there been research on persistent external memory where a capable language model is responsible not only for writing and retrieving memories, but for autonomously creating and maintaining the semantic topology used to navigate that memory—without being given a fixed ontology or representation?
If so, I would be very interested in references.
And if not, I would be curious whether people working in this area think the idea is worth testing.
My motivation is very practical: this simple pattern appears to work remarkably well for navigating a software project, and it made me wonder whether we are sometimes trying to engineer explicitly a knowledge structure that sufficiently capable models might be able to learn to maintain for themselves.