Shared Memory Across Claude Chat, Claude Code, and Codex (Beyond CLAUDE.md)
How to pair git-tracked CLAUDE.md / AGENTS.md files for codebase rules with a remote MCP state layer for cross-repo priorities and decisions.
1. Where CLAUDE.md Shines and Where It Breaks
Checked-in CLAUDE.md and AGENTS.md files are the right tool for static repository knowledge: build scripts, test runners, folder layout, and code style rules. They break down when builders try to force evolving personal context into them:
- Web and mobile gap: When you hash out a product pivot or architecture tradeoff in Claude Chat or a cloud Claude Code VM during a walk, your local terminal session has zero record of that decision when you sit back down to code.
- Multi-repo and multi-machine drift: Local
~/.claude/CLAUDE.mdand auto-memory files diverge across laptops, cloud devboxes, and separate repositories. - Cross-model blind spots: Reviewing a plan in ChatGPT or Codex, debugging in Claude Code, and testing in Antigravity means maintaining three separate instruction silos.
2. Clean Split: Repo Rules in Git, Evolving State in MCP
| Keep in Git (CLAUDE.md / AGENTS.md) | Keep in Remote MCP (PASL) |
|---|---|
| Build, typecheck, migration, and test commands | Current sprint priorities, open todos, and launch checklist |
| Framework conventions and directory boundaries | Strategic decisions (DEC-*) and rejected alternatives |
| Team-wide rules shared by every engineer on the repo | Personal communication preferences, specs (DOC-*), and cross-project context |
3. Setup Across Claude Code, claude.ai, Codex, and Antigravity
Step 1: Register PASL globally in Claude Code (user scope applies across every repository on your machine):
claude mcp add -s user --transport http pasl https://getpasl.com/api/mcp
Run /mcp inside Claude Code once to complete browser OAuth sign-in.
Step 2: Connect Claude (Web & Mobile) and ChatGPT under Settings -> Connectors in Claude or Settings -> Apps & Connectors in ChatGPT using https://getpasl.com/api/mcp with the same Google account.
Step 3: Connect Codex and Antigravity via OAuth or a Personal Access Token from getpasl.com (Authorization: Bearer pasl_pat_...).
4. Practical Mobile-to-Terminal Loop
- Brainstorm pricing or architecture on mobile Claude during a walk, then type
pasl-decision(orpasl) to commit what you decided and why. - Open Claude Code or Antigravity at your desk and run
pasl-b. Your coding agent immediately loads the updated decision and open action items without re-prompting. - After shipping the code and deploying, type
paslin the CLI so your next ChatGPT or mobile Claude session knows the feature is live.
Frequently Asked Questions
Does claude.ai share memory with Claude Code CLI automatically?
No. Claude Chat web/mobile memory, Projects, and cloud Claude Code VM sessions do not share memory with local CLAUDE.md files or per-machine auto-memory on disk. Connecting all surfaces to the same remote MCP server bridges them in real time.
Should PASL replace CLAUDE.md or AGENTS.md in my repository?
No. Keep deterministic codebase conventions, build commands, test flags, and lint rules inside git-tracked CLAUDE.md and AGENTS.md so every contributor and CI agent gets them. Use PASL for evolving personal and founder state that spans repositories, mobile chats, and non-Anthropic models.
Can Claude Code, OpenAI Codex, and Antigravity read the same state?
Yes. Because PASL serves state over standard Streamable HTTP MCP (with OAuth 2.1 and Personal Access Token support), Claude Code, claude.ai, ChatGPT, Codex, Gemini, and Antigravity all read and commit against the exact same Living Docs.