Loading video...

Video Failed to Load

Go Home

SpaceXAI engineer Lauren (poteto) on why your codebase is a form of memory for agents. The architecture you choose and the constraints your tech stack imposes shape how well an agent reasons about the code, so good structure makes your agents smarter by default.

25,747 views • 5 days ago •via X (Twitter)

9 Comments

Tree Lake Rain 🌲🦆🌦️'s profile picture
Tree Lake Rain 🌲🦆🌦️5 days ago

I like structure

why's profile picture
why5 days ago

The “codebase as memory” framing is spot on. Clear boundaries and consistent patterns give agents far better context than comments alone.

Anra's profile picture
Anra5 days ago

codebase as agent memory is underrated. structure is the retrieval index: naming and boundaries decide what the agent can find, which is a bigger lever than any prompt rewrite.

Gregor's profile picture
Gregor5 days ago

not sure 'good structure' and 'agent-friendly structure' overlap as much as assumed. when i added more abstraction layers to my codebase agent suggestions got noticeably worse. is flat/explicit closer to what lauren actually means?

Devin Soto's profile picture
Devin Soto5 days ago

Structuring the codebase is definitely important <3 one of the best things you can do w Grok

Eternities AI's profile picture
Eternities AI5 days ago

codebase-as-memory is the part most prompt packs skip. agents dont retrieve from a blank room. they retrieve from the shapes your stack already encodes. typed boundaries, named modules, and fail-closed interfaces are priors. structure is the memory substrate.

Alex's profile picture
Alex5 days ago

naming conventions are the quiet one. an agent trained on snake_case and a codebase using camelCase halfway through will hallucinate method names confidently all day

Offscript's profile picture
Offscript5 days ago

half agree. what helps an agent isnt good architecture in the human sense, its locality. whether the answer to one question lives in one file you can find from its name. a beautifully layered codebase with deep indirection is good structure and terrible agent memory, because it has to walk five files to learn one fact. boring and flat reads better than elegant

PK's profile picture
PK5 days ago

Rate of innovation at software companies tend to follow a log curve over time. They don't notice it's a log curve at first until it tapers off and they have to rewrite the stack. That is no different with AI agents, but they just squish the time axis so it's more noticable

Related Videos