Claude Agent Exchange
A two-way file exchange between you and Claude Code on your own machine, with its own
small file explorer.
~/Desktop/Claude-Exchange/
├── from-human/ you put files here for the agent
├── from-agent/ the agent saves files here for you
└── archive/ older files, by month (created when first needed)
The project has three parts that ship together:
| Part | What it is |
|---|
Explorer (explorer/) | A Qt app locked to the exchange folder. The sidebar has two fixed places, From Human and From Agent, then Archive, then your own bookmarks. You can browse inside a place but not above it. Drop files on the window to send them to the agent. Agent files you haven't opened are bold, and From Agent shows a count. Files the agent has read get a ✓. It never deletes: you can archive or move to Trash, with confirmation. |
Template (template/) | The folder layout (template.json), the CLAUDE.md snippet, and apply.py, which installs and updates both deterministically. |
Claude Code plugin (skills/) | setup-exchange, update-exchange, publish-template-change, save-for-user, read-from-human, tidy-exchange. |
Install
As a Claude Code plugin:
/plugin marketplace add danielrosehill/Claude-Agent-Exchange
/plugin install agent-exchange@claude-agent-exchange
Then ask Claude to "set up the agent exchange".
Or without Claude:
git clone https://github.com/danielrosehill/Claude-Agent-Exchange
cd Claude-Agent-Exchange && ./install.sh # --no-app for folder + CLAUDE.md only, --dry-run to preview
install.sh installs the explorer with uv tool (or pipx), adds the launcher
Claude Agent Exchange to your application menu, creates the folder, and adds a
marked block to ~/CLAUDE.md. Requirements: Python 3.10+, uv or pipx, and a Linux
desktop that reads ~/.local/share/applications (KDE, GNOME and others). The
explorer itself is plain PySide6 and should run on macOS and Windows too, but the
installer is Linux-only for now.
Drive exchange (primary since 1.1.0)
The local folder needs you at the computer. The Drive exchange doesn't: you share a
file from your phone into a Google Shared Drive, tell Claude "I just shared it", and
Claude downloads it, checks it, and moves the Drive copy to the trash. The Drive is an
intermediate space, not storage.
| Folder | Direction | Skill |
|---|
fe (first entry) | you → Claude, unsorted, bind your phone shortcuts here | fetch-from-drive |
from-agent | Claude → you | send-to-drive |
| shared (optional) | Claude → you and one other person | send-to-drive --to shared |
Folders are addressed by ID, from AGENT_EXCHANGE_DRIVE_ID / _INBOX_ID /
_OUTBOX_ID / _SHARED_ID / _RCLONE_REMOTE, or from the drive section of the
config file. scripts/exchange_drive.py does the transfer with rclone, because Drive
MCP servers often run on another host and can't write to your disk. Deleting always
means the Drive trash, never a permanent delete.
Configure it for yourself
Personal settings live in ~/.config/claude-agent-exchange/config.json, never in
this repo:
{
"root": "~/Desktop/Claude-Exchange",
"bookmarks": [
{ "name": "Downloads", "path": "~/Downloads" },
{ "name": "Scans", "path": "~/Documents/Scans" }
]
}
root moves the exchange folder. $CLAUDE_EXCHANGE_DIR overrides it, and so does
--root on the command line. Every component (explorer, apply.py, skills) resolves
it the same way: --root, then the env var, then config, then the default.
bookmarks are extra sidebar places. The explorer adds, renames and removes them
for you (toolbar → Bookmark this folder / Add bookmark…, or right-click a
bookmark). Each bookmark is its own jail too.
How the agent side works
The CLAUDE.md block (between <!-- file-exchange:begin --> and
<!-- file-exchange:end -->) is a short pointer, so it costs little in every session. It names the
phrases that trigger the exchange and the skills to use, and the rules live in those skills:
- "Save it for me" means
from-agent/. Files are named YYYY-MM-DD_<what-it-is>.<ext>,
nothing is ever overwritten, and Claude tells you the full path.
- "I put it in the folder" means
from-human/. Claude uses the newest file it hasn't
seen, and asks if it's ambiguous.
- Claude never moves, changes or deletes what you gave it.
Two small manifests keep both sides in sync. Both are hidden dotfiles that the
explorer doesn't show:
| File | Written by | Means |
|---|
from-human/.seen.json | the agent (read-from-human) | which of your files the agent has read, by SHA-256 |
from-agent/.opened.json | the explorer | which agent files you've opened, by mtime |
Updating