How Developers Can Organize AI Chats by Repository

If you work on more than one codebase, your AI history is a pile of short questions: why this stack trace, how to write this query, whether this design holds up. A week later you remember the answer existed, but not which repo it was about, or which AI you asked.

The fix is to organize AI chats the way your code is already organized: one project per repository, one folder per kind of work. This guide shows the setup, how to name chats so search finds them, and how to fit it into the free plan.

Why coding chats get lost faster than others

One project per repository

A repository is a natural boundary: it has its own name, its own tickets and its own context. Make each active repo a project and name it exactly like the repo, so you don't have to translate.

LevelWhat it holdsExample
ProjectOne repository or side projectbilling-service · dotfiles · blog-engine
FolderOne kind of work inside that repoBugs · Features · Reviews · Ops
UnsortedQuick questions about the repo that don't fit a folder"What does this regex match?"

Folders by kind of work

Inside a project, folders sort chats by what you were doing. Folders are one level deep — a folder holds chats, not other folders — so keep the list short:

Projects
  • billing-service11
    • All Chats11
    • Folders
    • Bugs4
      • billing-service #212: duplicate invoice on retry
      • billing-service #212: second opinion on the fix
      • billing-service #218: timezone off by one
      • billing-service #221: webhook signature error
    • Features3
    • Reviews2
    • Ops1
    • Unsorted1
    • New Folder
One project for one repository. The Bugs folder holds chats from four different AIs, each marked with its icon and titled with the repo and ticket number. Other kinds of work have their own folders, and quick questions wait in Unsorted.

Name chats so search works

Search in Relay looks at chat titles, project names and folder names. It does not search what's inside a conversation. So the title is the handle you'll use later, and a short habit pays off: put the repo or the ticket number at the start.

Rename the chat in the AI's own sidebar once you know what it's about; Relay shows the same title.

How to set it up with Relay

Relay is a Chrome extension that adds one shared project section to the sidebar of ChatGPT, Claude, Gemini and Grok on the web, so a repo project can hold chats from any of them.

  1. Add Relay to Chrome and sign in with Google.
  2. Create a project for each repo you're actively working in.
  3. Open a project and click + New Folder to add folders like Bugs and Features.
  4. File chats as you go. Hover a chat in the sidebar and use the button that appears, or drag it onto a project or folder.

Find it later

Press ⌘⇧K (Ctrl+Shift+K on Windows) to search the titles of every chat you've filed, plus project and folder names, across all four AIs. A search for "billing-service" brings up the repo's project and its chats; a search for "#212" finds every chat you titled with that ticket. For more on this, see how to search all your AI chats at once.

Clean up after a release

When a release ships, the Bugs and Features chats for it have done their job. Open Workspace from the Relay popup and use the Chats tab to select several chats at once:

Making it work on the free plan

Relay Free includes 3 projects and 5 folders in total, across all projects, and shows up to 20 search results. That's enough to start, but you'll need to choose:

If you want every repo to have its own folders, Relay Pro removes the limits. See pricing.

What Relay doesn't cover

The bottom line

Give each repo a project, sort inside it with a few folders for the kinds of work you do, and put the repo or ticket number in every chat title. For how to split work between AIs, read the multi-AI coding workflow. For the same idea with other kinds of work, see organizing chats by client or by class, or the general guide to organizing AI chats in one place. Ready to start? Try Relay for free.