How I Moved My Daily AI Chats Out of ChatGPT Web with Git, Markdown, and MCP
Contents
In my previous post, The AI Subscriptions I Keep (and Dropped) in November 2026, I mentioned in passing that while I used to be a heavy ChatGPT Web user, I barely open it anymore. Instead, I created a dedicated local folder inside Herdr and moved my daily conversations and project discussions ahead of time to Claude Code, Antigravity CLI, and Codex CLI.
There are two reasons for this move:
First is OpenAI’s recently updated usage policy taking effect in December: Understanding ChatGPT and Codex usage limits. Starting in December 2026, the previously separate ChatGPT and Codex usage pools on Plus, Pro, and Business plans will merge into a single shared usage pool measured in tokens, with only basic Instant chat exempt from that pool.
Before this change, the reason I kept multiple ChatGPT Team seats was specifically that long web chats and Codex coding runs were metered separately. Once they merge into a single token-measured pool in December, going back and forth with a reasoning model inside a ChatGPT Web Project loaded with long background docs will burn the exact same shared pool you rely on to run Codex for coding.
The second reason is that the ChatGPT Web experience has noticeably degraded for me. I usually select the highest thinking effort, yet the reply quality keeps fluctuating: sometimes a question that requires gathering live external information comes back in tens of seconds with a cursory answer; other times I have to wait half an hour just to get a reply.
1. Why Web-Based Projects Fall Short for a Multi-AI Workflow
Before building a local replacement, I listed the four things that bothered me most about ChatGPT Web and its Projects feature:
- Memory locked inside a single vendor: Every design trade-off and preference I worked through in
ChatGPT Webstays locked inside OpenAI’s cloud. Whenever I wanted a second opinion fromGemini 4orOpus 5.5—both of which talk much more naturally right now—I had to copy and paste the background from scratch. - Web sandboxes cut off from the local environment: I previously wrote about Connecting Local stdio MCP Servers to ChatGPT Web. Exposing local data sources safely to the web UI required tunnels and custom auth layers that were heavy to maintain; and once a design was settled in the browser, I still had to act as a human clipboard to apply code changes in my local repositories.
- Context loss in long threads: Once a web conversation runs long, I routinely see later replies drop key numerical baselines established earlier or re-propose options we had already ruled out.
- Unauditable, non-revertible memory: The built-in
MemoryinChatGPT Webis just a flat list of sentence fragments. You cannot see how a decision evolved over time, nor can you rungit diffto inspect or roll back a bad memory entry.
Once those four pain points were clear, the direction became obvious: since Claude Code, Antigravity CLI, and Codex CLI all run directly on top of the local filesystem, I created a plain-text Git repository called chat-studio dedicated to daily conversations, paired with a unified MCP gateway and Notion MCP to take over what used to live in ChatGPT Web.
2. Directory Structure of chat-studio: Why Split One File into Shards?
At its core, chat-studio is just a plain Git repository with zero plugin dependencies.
When designing the first version, I followed the common community Memory Bank pattern and placed a single global active-context.md in the repo, expecting every AI session to read and update that one file. While mapping out my actual daily habits, however, I realized a single-file state design has two unavoidable concurrency hazards: in Herdr, I routinely keep two or three terminal windows open at the same time to discuss different topics. If multiple CLI sessions read and write the same active-context.md, context from different topics can easily bleed together or overwrite each other; and if one window runs git add -A or commits against the shared staging area, it can sweep in half-finished edits from a neighboring window.
To avoid that risk, the second version splits the single context file into a thin global index, per-topic handoff boards, and standalone session logs:
~/workspace/chat-studio/ # Cross-AI shared memory & daily chat repo
├── AGENTS.md # Unified cross-AI root protocol (kept under 100 lines)
├── CLAUDE.md -> AGENTS.md # Symlink so Claude Code reads the exact same rules
├── memory/ # Thin global index read at the start of every new session (< 140 lines total)
│ ├── active-context.md # Global board: one-line status pointer per topic + routing table (≤ 60 lines)
│ └── user-profile.md # Preferences + MCP data source map + sibling repo paths (≤ 80 lines)
├── topics/ # Topic-isolated workspaces replacing ChatGPT Projects
│ ├── README.md # Knowledge base index
│ ├── domain-a/ # Topic or Project A
│ │ ├── _context.md # Dedicated handoff board for this topic (≤ 100 lines)
│ │ ├── baseline-notes.md # Distilled evergreen baseline notes
│ │ └── changelog.md # Staged experiments and change log
│ ├── domain-b/ # Topic or Project B
│ │ ├── _context.md # Dedicated handoff board for this topic (≤ 100 lines)
│ │ └── strategy-notes.md
│ └── domain-c/ # Topic or Project C
│ └── _context.md
└── sessions/ # Per-session snapshots written by date and topic
├── 2026-11-17-domain-a-review.md
└── 2026-11-18-domain-b-planning.md
3. Four Practical Details for Running Multiple CLIs on One Context
Once the folders are in place, keeping Claude Code, Antigravity CLI, and Codex CLI working together cleanly inside the same repository comes down to four specific rules.
1. Two-Stage On-Demand Loading Without Context Pollution
Stuffing every project’s progress into one monolithic file means that when you want to talk about Project A, the model’s context is filled with old notes from Project B—wasting tokens and diluting attention.
In the root AGENTS.md, I enforce a two-step read order: when any CLI starts a new session, Step 1 reads only memory/active-context.md (at most 60 lines) and memory/user-profile.md (at most 80 lines), totaling under 140 lines. Step 2 waits for my opening prompt, identifies which topic I am asking about, and reads only that subdirectory’s topics/<domain>/_context.md. Different topics stay isolated at the file level, while cross-topic comparisons remain a simple relative-path read away whenever needed.
2. Sharded Writes, the 100-Line Cap, and git commit --only
To prevent write collisions or staging-area leaks across concurrent windows, writes follow three rules:
- During a regular conversation about a single topic, the AI only updates that topic’s
topics/<domain>/_context.md; it only touches the globalmemory/active-context.mdif a top-level cross-project priority changes. - Each topic’s
_context.mdis capped at 100 lines, holding only the current focus and the latest 3 to 5 progress items. It records core decisions alongside why alternative options were rejected, rather than raw transcripts, so the next AI picking up the thread does not re-propose a dead end that was already ruled out. Once_context.mdexceeds 100 lines, settled conclusions move down into evergreen notes in the same folder, stale status lines drop out, and historical detail stays insessions/andgit log. - Running
git add -Aorgit add .is strictly banned. Because multiple terminal windows inside the same Git repository share a single.git/indexstaging area, even if each window runsgit add <file>only on its own file, a plaingit commitwill still sweep in files already staged by another window. In theAGENTS.mdtemplate below, I extended the path-scopedgit addrule with--only: rungit add <file1> <file2>followed bygit commit -m "记忆(领域): ..." --only -- <file1> <file2>so only the current window’s modified files are included. Note also thatgit commit --onlyleaves any staged changes from another window in.git/index, which under default Git settings will cause an immediategit pull --rebaseto fail because the index is not clean; therefore, if two windows need to edit the exact same file, coordinate their order first, and if the remote has moved ahead, wait until the working tree and staging area can safely sync before runninggit pull --rebase.
3. Division of Labor Between Local Markdown, Unified MCP, and Notion
If local Git and Markdown already store the conversation state, why also connect Notion MCP alongside a unified MCP gateway?
You can think of chat-studio as the daily conversation entry point replacing ChatGPT Web. Back when I used ChatGPT Web, I archived important conclusions to Notion both for persistence and to make them readable by other AIs. Now that I run Claude Code, Codex CLI, and Antigravity CLI directly inside the chat-studio folder, reading local Markdown files already achieves cross-AI sharing among my terminal tools.
Keeping Notion MCP still serves two practical purposes: first, many of my long-term reference tables and structured pages already live in Notion; second, if I occasionally want another AI—say SuperGrok in the browser—to join a discussion, Notion still works as the cross-platform bridge (even though I could also just run Grok CLI directly inside chat-studio). Separately, the unified MCP gateway I set up aggregates my other live data sources behind a single endpoint so CLIs can pull fresh numbers on demand instead of hardcoding stale figures in local Markdown.
4. Jumping Directly from Discussion to Sibling Code Repositories
Previously, after settling on a change inside ChatGPT Web, I had to switch back to my editor, locate the files, edit the code, and run the tests myself. Now, memory/user-profile.md inside chat-studio maps the local paths to my sibling code repositories on the same machine, so once a plan is decided in chat, the CLI can step directly into the target repo and make the change.
For example, when maintaining my blog or working on a side project, once I talk through a title, copy, or code structure change against the saved history inside chat-studio, I do not have to copy any instructions back into an editor. I simply let the CLI in the same terminal step into the sibling repository, edit the files, run the local build and test checks, commit the change, and record the reasoning back into the corresponding _context.md inside chat-studio.
4. Appendix: 4-Step Bootstrap Guide and Generalized AGENTS.md Template
If you want to move your daily chats out of ChatGPT Web before the December usage merge takes effect, you can set up this structure locally in four steps:
- Create the repository and base directories: Run
mkdir -p ~/workspace/chat-studio/{memory,topics/domain-a,sessions} && cd ~/workspace/chat-studio && git init, then create initialmemory/active-context.md,memory/user-profile.md, andtopics/domain-a/_context.mdfiles. - Save the root protocol and create the symlink: Save the template below as
AGENTS.mdin the repository root (Codex CLIandAntigravity CLIreadAGENTS.mddirectly), then runln -s AGENTS.md CLAUDE.mdsoClaude Codeloads the exact same file on startup. - Configure your Git remote and MCP servers: Point the repo to your own private Git remote (for example
git remote add origin <repo-url>, rungit push -u origin HEADon the initial push to set the upstream branch, and rungit pushafter subsequent checkpoints), and connect the MCP servers you rely on (such as Notion MCP) in your CLI configurations. - Verify cross-CLI handoff: Launch your first CLI (for example,
Antigravity CLI) inside~/workspace/chat-studio, discuss a topic underdomain-a, and have it write the decision and a rejected alternative intotopics/domain-a/_context.mdand commit withgit commit --only --. Then open a second CLI (such asClaude CodeorCodex CLI) in the same folder and continue the topic—confirming that it follows the two-step route inAGENTS.mdto read back the decision fromtopics/domain-a/_context.md.
Below is the generalized, sanitized AGENTS.md template for the repository root:
# AGENTS.md — Cross-AI Shared Memory & Multi-Session Protocol
This repository (`chat-studio`) is a cross-AI persistent conversation, research, and memory hub replacing ChatGPT Web.
Regardless of which AI you are (Claude Code, Codex, Gemini / Antigravity, etc.), you must follow this protocol strictly.
## 1. Core Rules
1. Two-Stage Progressive Loading (Read Before Answering, Route on Demand)
- Step 1 (Global Mandatory Read, Thin Index): At the start of every new session, read only `memory/active-context.md` (≤ 60 lines) and `memory/user-profile.md` (≤ 80 lines).
- Step 2 (Domain-Scoped Read, Zero Cross-Pollution): Based on the topic of the user's prompt, read only the corresponding `topics/<domain>/_context.md` (≤ 100 lines) and relevant evergreen docs, calling MCP tools on demand for live external data.
2. Sharded Persistence, Line Budgets, and Rolling Eviction
- Flush important conclusions to disk and commit at the end of each key turn rather than relying on volatile session context.
- Record Decisions and Why Not: Prioritize dated numerical baselines, core decisions, and why specific options were rejected over verbatim transcripts.
- Strict Line Caps and Rolling Eviction:
- Global Board (`memory/active-context.md`, ≤ 60 lines): Update only when cross-project priorities shift; do not edit during routine single-domain chats.
- Domain Handoff Board (`topics/<domain>/_context.md`, ≤ 100 lines): Keep only the active focus and latest 3–5 updates; sink mature conclusions into evergreen docs in the same directory and evict stale items.
- Session Snapshots (`sessions/YYYY-MM-DD-<domain>-<slug>.md`): Log key questions, data sources, conclusions, and the participating AI identifier.
3. Multi-Session Concurrency Safety & Path-Scoped Commit + Push
- After updating memory files, commit to Git and run `git push` immediately (use `git push -u origin HEAD` on the initial push; if the remote is ahead, wait until the working tree and staging area can safely sync before running `git pull --rebase`).
- Never run `git add -A` or `git add .`. Because multiple terminal windows in the same repository share `.git/index`, always scope commits explicitly to the file paths modified in the current session:
`git add <file1> <file2> && git commit -m "记忆(领域): ..." --only -- <file1> <file2>`
- Coordinate manually if two concurrent windows need to edit the exact same file.
## 2. On-Demand Domain Routing Table
| Domain | Example Triggers | Domain Context File | Linked MCP / External Sources | Sibling Execution Repo |
| :--- | :--- | :--- | :--- | :--- |
| Domain A | Project A metrics & planning | `topics/domain-a/_context.md` | `mcp-source-a`, `notion` | `../project-a-repo` |
| Domain B | Project B product iteration | `topics/domain-b/_context.md` | `mcp-source-b`, `notion` | `../project-b-repo` |
| Domain C | Documentation & archive notes | `topics/domain-c/_context.md` | `mcp-source-c`, `notion` | `../project-c-repo` |
| Workflows | Multi-AI memory & MCP setup | `topics/workflows/_context.md` | `unified-mcp`, `notion` | `./` (`chat-studio`) |FAQ
What is changing in the December 2026 ChatGPT and Codex usage policy?
How does this local chat-studio setup replace ChatGPT Web and Projects?
chat-studio, place AGENTS.md at the root with a CLAUDE.md symlink so Claude Code, Codex CLI, and Antigravity CLI read the same protocol, and split each topic into its own directory under topics/ with a dedicated _context.md handoff file. Launching different terminal CLIs in that folder lets them read the same sharded memory files on demand and call local MCP tools.If local Git and Markdown already store the memory, why still connect Notion?
chat-studio directory, reading local Markdown already lets those CLIs share context. I keep Notion MCP for two reasons: first, my long-term structured databases already live in Notion; second, if I want a web-based AI like SuperGrok to join a discussion, Notion still serves as a cross-platform relay.How do you avoid memory file and Git staging conflicts when chatting in multiple terminal windows at once?
memory/active-context.md, ≤60 lines) and per-topic handoff boards (topics/<domain>/_context.md, ≤100 lines), so a single-topic session only edits its own subdirectory. Second, because multiple terminal windows in the same Git repo share a single .git/index staging area, the AGENTS.md template in this post not only bans git add -A, it also uses path-scoped commits via git commit --only -- <modified-paths> so only the current window’s files are committed. If two windows edit the exact same file, coordinate their order first; if the remote is ahead, wait until the working tree and staging area can safely sync before running git pull --rebase.
Comments
Spot a flaw, hit the same snag, or just want to say hi — leave a note below.
Loading comments…