Connect terminal folders
Claude Code and Codex sessions you start from your own terminal can land in the shared record, next to the work your agents do. You connect a folder once, on the Mac. After that, every session you start in it, or in a folder inside it, lands with its messages, tool calls and errors. A session anywhere else stays on your Mac.
Connect a folder in the Mac app
Section titled “Connect a folder in the Mac app”Only the Agents app on the Mac connects folders, since the connection uses the Mac’s own daemon.
- Open your menu and choose Terminal folders. In a browser the page lists your connected folders and says to open the Agents app on the Mac. In the app, choose Open Terminal folders.
- Find the folder under On this Mac. The list shows the folders Claude Code or Codex ran in, newest first, with the day each was used. A folder both ran in shows once, with the later day. For Codex the list looks at your 200 newest sessions, so a folder Codex last ran in before those doesn’t show. If it says “Neither Claude Code nor Codex has run on this Mac yet”, start a session in a project folder and the folder shows up.
- Choose Team, Just me or Off on its row.
The three choices mean this.
- Team. Everyone on the team sees the sessions started in the folder.
- Just me. Only you see them.
- Off. Sessions started in the folder stay on this Mac, even when a connected folder holds it.
Each row’s choice decides where its sessions go. A folder’s own choice wins over the choice of a folder that holds it. A row inside a connected folder shows a note, such as “Its sessions land through shop, which the team sees.”
Sessions you ran before connecting a folder stay on the Mac. Choosing Off keeps what already landed in the record, and turns off only the sessions that come after.
Your home folder and any folder above it cannot be connected, since they hold every project you have. Its row says “so it can’t be connected. Connect a project inside it.” Folders in the system’s temporary space sit under Temporary folders, which opens on request.
Show earlier sessions to the team
Section titled “Show earlier sessions to the team”When you choose Team for a folder whose Just me sessions are already in the record, the row asks “Show the team the 3 sessions already in the record from” the folder’s name. Choose Yes, show the team to show them. Choose Keep it to me to change nothing.
Codex sessions
Section titled “Codex sessions”A Codex session you start in a connected folder lands under the same Team, Just me or Off choice as a Claude Code session. The record gets its prompts, replies, turns, tool calls and their results. Before any of it leaves the Mac, the daemon takes out secrets, the values in the folder’s .env files among them, as it does for Claude Code.
These stay on your Mac:
- A thread a Codex subagent runs.
- The result of a
write_stdincall, of a call that takes free text such asapply_patchor code, and of a call for a path outside the folder. - Images and files.
- Codex’s reasoning.
Connect a folder from a terminal
Section titled “Connect a folder from a terminal”A daemon run from a checkout of the Agents repo also takes the connection from a command. Run it on that Mac, from the checkout’s folder.
node daemon/folders.tsnode daemon/folders.ts connect [folder] [--private | --team]node daemon/folders.ts disconnect [folder]With no verb, the command lists the connected folders. The folder defaults to the current one. A new folder is the team’s. Connecting a folder again keeps its choice unless you pass --private or --team. Add --json to print JSON. The exit codes are 0 for done, 1 for a failure that is safe to retry, 2 for a usage error and 3 for a refusal that changed nothing.
The daemon reads Claude Code’s transcripts from ~/.claude/projects. If the shell you run Claude Code from sets CLAUDE_CONFIG_DIR to another folder, the command warns that those sessions will not land until the daemon’s own environment sets the same folder.
The daemon reads Codex’s sessions from ~/.codex/sessions. If the shell you run Codex from sets CODEX_HOME to another folder, the command warns in the same way.
Read terminal sessions
Section titled “Read terminal sessions”Choose Terminals in the places bar. Each row is named for the folder, with the subfolder where the session started. Its second line reads like “Your terminal · Working · 3 turns”. The filters are Team, Mine and Working, and the sort is Last active.
Choose a row to open the session. Its page says “From your terminal”, or “From” a teammate’s name and “terminal”, then shows the folder, the tool it ran in, Claude Code or Codex, the status, the machine, the number of turns and when it started. Below that are the session’s steps.
You see every session in a Team folder. You see a Just me folder’s sessions only when you connected it.