All docs

Repos and shared memory

See every repository you work in, give all agents the same instructions, and keep one memory per repo for every account and provider.

Home › Repos

Home › Repos lists the repositories and project folders you work in, on this Mac and on SSH hosts, one box per device. A repo appears by itself when a session runs in it. You can also add a folder with Add Repository…, pin repos to the top, and remove one from the list. Removing a repo from the list never touches its files.

Worktree sessions count toward their main checkout. A folder that isn't a git repository is listed with a note.

Click a repo to open its page:

  • Header. Device and path, the branch, commits ahead or behind, the number of changed files and the branch's pull request.
  • Recent Sessions. Sessions of every provider in this repo, including worktree sessions.
  • Instructions. The instruction files in the repo root and which provider reads each one.
  • Worktrees, Recent Commits, and Settings for new worktrees (default account, setup command, symlinked folders).
  • Project MCP Servers that the repo defines itself, read-only.
  • Memory. The shared memory of the repo, see below.

The actions are Pull, Fetch, Show in Finder, Copy Path, Open in Terminal, Open on GitHub, New Session and New Session in Worktree. Pull only fast-forwards. If the branch has diverged or a local change would be overwritten, git refuses and nothing changes.

Instruction files

Each provider reads a different file from the repo root:

  • Claude and Z.ai: CLAUDE.md.
  • Codex: AGENTS.md.
  • Antigravity: GEMINI.md and AGENTS.md.
  • OpenCode: AGENTS.md, or CLAUDE.md if there is no AGENTS.md.
  • Cursor: AGENTS.md and CLAUDE.md.
  • Command Code: AGENTS.md only.

Some also read extra files, such as .claude/rules. The repo page lists what applies.

A repo with only a CLAUDE.md isn't read by Codex, Antigravity or Command Code. That is the usual reason one provider ignores rules that another follows. The Instructions box offers to fix it:

  • Link AGENTS.md to CLAUDE.md, so every provider reads one source.
  • Copy it into a separate AGENTS.md.
  • Create an empty file.

BeyDock never overwrites an existing file and never commits anything. You can also edit an instruction file there. If it changed on disk after you opened it, for example because an agent edited it, BeyDock asks before overwriting.

Shared memory

Each provider, and each Claude account, normally keeps its own notes, so what one session learned is lost to the next on another account. Shared Memory gives each repository one memory that every account and provider in BeyDock uses.

  • Where. <repo>/.beydock/memory/ in the main working copy. Worktrees share it. The folder is kept out of git, so git status stays clean.
  • What. Plain Markdown. MEMORY.md is the index, and each note is a small file about one fact. Notes are one of four types: user, feedback, project (a fact or decision that isn't in the code) and reference (where to find something outside the repo).
  • Per repo only. There is no memory across repos.

Who uses it

It applies only to sessions BeyDock starts, on this Mac or on the same SSH host. The memory files of the providers themselves, and the claude or codex you run in a terminal, are left alone.

  • Claude and Z.ai use Claude Code's own memory feature, pointed at the shared folder. When a Claude session starts in a repo, notes your Claude account already had for it are copied into the shared folder. The originals stay.
  • Codex, Antigravity, OpenCode, Cursor and Command Code get the index in their context and tools to read, write and delete notes. Codex's own memory is turned off in BeyDock sessions so there is one source.
  • Sub-agents read the memory but don't write to it. Only the main session writes.

Reading and saving notes needs no approval card, because the tools only touch that one folder.

Manage it

  • Settings › Agents › Shared Memory turns it on or off. It's on by default. When it's off, BeyDock adds nothing, and Claude goes back to its own per-account memory.
  • On the repo's page in Home › Repos, the Memory box lets you read, edit and delete notes. It updates live when an agent saves one.

Notes are background, not orders: agents don't carry out commands found in a note unless you ask. Don't keep secrets in memory.