code repository
A code repository is a shared, organized location for all files of a program that records every modification: who changed what and when.
In plain terms
Imagine the design documentation of an apartment building, which records not only the drawings but also who moved a wall, when and why. A code repository does the same for software: it keeps the program's files and their full history in one place.
It lets many people work on the same program without overwriting each other's work. If something breaks, you can revert to an earlier, working state, and it shows exactly which change caused the problem.
It differs from a simple shared folder in that it stores not only the latest state but all previous ones too, together with explanatory notes. AI coding agents work in it as well: they read from the repository how the program is built, and they put their suggestions back into it.
How it works
- The developer (or a coding agent) clones the repository to their own machine. In the case of Git, the most widely used system today, this means the entire program and its history are available locally.
- It modifies files, then records the changes in a batch with a short description of what and why it did them (this is called a commit).
- If trying something larger, it opens a separate branch: a parallel work instance that does not interfere with others.
- It uploads the finished work to a shared repository, where others review it and, if approved, merge it into the main branch.
- The store preserves every recorded step, so any previously saved state can be retrieved and restored.
An everyday example
Your company orders an online store, and the developer says: "I uploaded it to the repo, you can see what changed this week." If you open the link, you see the files, the list of changes, and in whose name each change was recorded. You only see that an AI agent wrote a part if it was specifically marked.
Who is affected
A common misconception
Limits and risks
- Once something enters the history, it is difficult to erase without a trace, so never upload a password or secret key to the repository. If it happens anyway, the password or key must be changed immediately.
- A public repository can be viewed and copied by anyone, so check the visibility settings before uploading. Visibility does not imply free use: that is defined by the license attached to the repository.
- If an AI agent is granted write access to the repository, it can also place faulty or malicious code, so its changes must be reviewed by a human.
- The repository does not guarantee that the code inside is good or secure, only that changes are traceable.
Similar, but not the same
- version control system – The version control system (for example, Git) is the tool that tracks changes, while the code repository is the place where a project's files and history are actually stored.
- GitHub – GitHub is a service that hosts code repositories on the internet, but a repository can exist without it, on your own machine or with another provider.
- cloud storage – Cloud storage usually synchronizes the current state of files, while a code repository preserves every modification as a separate, explained step.
Related concepts
software development, version control
public code repository, private code repository, monorepo
Git, open source, coding agent, code verification, pull request
A brief history
Version control systems and code repositories have existed since the 1970s; before Git, CVS and Subversion were widespread. The most widely used version control system today, Git, was created by Linus Torvalds in 2005 for Linux development. GitHub launched in 2008 and played a major role in making shared online code repositories the standard workspace for software development.
Where things stand
At the end of 2026, practically all serious software is built in a code repository. What is new is that, alongside people, a growing share of changes are submitted by coding agents. By established practice a human reviews and approves these, but that does not happen everywhere.
In the news
- AI may come for managers' headcount too, FT reportsNov 8, 2026 · Work & HR
- AI coding agents still need human rework on three-quarters of tasksNov 8, 2026 · Code
- Eminem's publisher and the Elvis estate both sue AI music platform SunoNov 7, 2026 · Jog
- Activists break into Microsoft data centre construction site in AmsterdamNov 6, 2026 · Agent Age
- Survey: 57% of children turn to AI for emotional support, almost matching homework useNov 6, 2026 · Education & Family
- Teachers' union leader urges Democratic elected officials to address AI in schoolsNov 6, 2026 · Education & Family
- Year-long trial: Rosie AI chatbot did not reduce anxiety or depression in pregnant women and new mothersNov 6, 2026 · Education & Family
- Estonia's AI Leap programme expands to vocational educationNov 6, 2026 · Education & Family
Also known as
repo · repo · repository · code repository · source code repository · code repository · Git repository · source code repository
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.