Skip to content
>devspeak
← glossary
level 0Foundations

Codebase

also: codebases, code base

All the code for one project, taken together. It includes every piece that makes your app work.

a bit more technical

The complete collection of source code for a software project, usually along with related files such as settings, tests and scripts. It is typically organized into many files and folders.

picture it

One page of a cookbook is a single recipe. The whole cookbook is the codebase: every recipe, the index, and the notes scribbled in the margins.

why it matters

Agents often need to look around your codebase before making a change. Asking them to understand the existing codebase first leads to changes that fit in, instead of duplicate or conflicting code.

what your agent might say
agent
I searched the codebase and found two separate functions that format dates. I'll reuse the existing one instead of adding a third.
how you might use it
you → your agent
Look through the codebase and tell me where the checkout logic lives before you change anything.
common mistake

Thinking the codebase is just the file you're looking at. A change in one file can affect code in many others.

builds on