/agent-exchange:setup-exchangefrom agent-exchange
Set up Claude Agent Exchange on this machine — the exchange folder (default ~/Desktop/Claude-Exchange with from-human/ and from-agent/), the marked ~/CLAUDE.md block that makes Claude use it unprompted, and the dedicated explorer app with its desktop launcher. Use on first use on a machine, or when the user says "set up the exchange folder", "install the agent exchange", "create the drop folder", or another agent-exchange skill finds the folder missing.
Ships in agent-exchange. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The project repo (danielrosehill/Claude-Agent-Exchange) is the source of truth.
Its template/ folder holds the layout (template.json), the CLAUDE.md snippet, and
a deterministic apply.py. install.sh installs the explorer and launcher, then
runs apply.py. Running it again is safe. On an existing install it does the same as
update-exchange.
REPO="${XDG_CACHE_HOME:-$HOME/.cache}/claude-agent-exchange/repo"
if [ -d "$REPO/.git" ]; then
git -C "$REPO" fetch -q origin && git -C "$REPO" reset -q --hard origin/main # cache only, never a dev clone
else
mkdir -p "$(dirname "$REPO")" && git clone -q https://github.com/danielrosehill/Claude-Agent-Exchange "$REPO"
fi
git -C "$REPO" log --oneline -1
Settings live in ~/.config/claude-agent-exchange/config.json, never in the repo:
{ "root": "~/Desktop/Claude-Exchange", "bookmarks": [ { "name": "Downloads", "path": "~/Downloads" } ] }
root moves the exchange folder ($CLAUDE_EXCHANGE_DIR overrides it). bookmarks
are the extra sidebar entries in the explorer, which also edits this file from its
toolbar. Create the file only if the user wants a non-default location or named
bookmarks.
"$REPO/install.sh" --dry-run # report what apply.py would change; installs nothing
"$REPO/install.sh" # explorer (uv tool, else pipx) + launcher + folder + CLAUDE.md block
"$REPO/install.sh" --no-app # folder and CLAUDE.md block only (headless machines)
apply.py prints a JSON report: renamed_dirs, created_dirs, updated_files,
claude_md (appended block / replaced block /
converted unmarked section to marked block / unchanged), orphan_dirs, and
template_version and previous_version. It backs up CLAUDE.md to
CLAUDE.md.bak-<timestamp> before changing it.
If the block doesn't exist in CLAUDE.md yet, show the dry run first. Otherwise install directly.
The primary transport is a Google Shared Drive with three folders: fe (inbox, which
the user uploads to from the phone share sheet), from-agent (outbox) and, optionally,
a folder shared with one other person. The user creates the Shared Drive. The agent
creates the folders (with a Drive MCP or rclone mkdir) and records the IDs:
{ "drive": { "drive_id": "0A...", "inbox_id": "1...", "outbox_id": "1...",
"shared_id": "1...", "rclone_remote": "<rclone drive remote>" } }
in ~/.config/claude-agent-exchange/config.json (or as AGENT_EXCHANGE_* env vars,
which take precedence). It needs an rclone Drive remote with access to that Shared
Drive. Check with python3 -I "$REPO/scripts/exchange_drive.py" list inbox. On the
phone, Drive's share sheet ("Save to Drive") remembers the last folder, so after the
first time a share is three taps.
Report the apply output in a line or two, and tell the user the launcher is in the
application menu as Claude Agent Exchange (command: claude-agent-exchange).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/fetch-from-drivePick up a file the user uploaded to the exchange Shared Drive's inbox folder ("fe", first entry), usually from their phone's share sheet, download it locally, verify it, then move the Drive copy to the trash. Use when the user says "I just shared it", "it's in fe", "check the drive", "grab the recording I sent", or refers to a file sent from their phone without giving a path./publish-template-changeChange how Claude Agent Exchange works at the source — the folder layout, the CLAUDE.md snippet, or apply.py in the project repo (danielrosehill/Claude-Agent-Exchange, template/) — bump the template version, commit and push, then apply locally with update-exchange. Use when the user wants to change the exchange ("add a folder to the exchange", "change the exchange rules in CLAUDE.md", "update the template"), or when a local tweak should become the standard./read-from-humanLocal-folder mode only, when no Drive exchange is configured (otherwise use fetch-from-drive). Pick up files the user dropped into the exchange folder's from-human/ directory (default ~/Desktop/Claude-Exchange/from-human), listing what's new since Claude last looked, and use them in the current task. Use when the user says "I put something in the folder", "check the exchange", "use the file I dropped in", "grab what I gave you", or refers to a file they passed in without giving a path./save-for-userLocal-folder mode only, when no Drive exchange is configured (otherwise use send-to-drive). Save a file for the user in the exchange folder's from-agent/ directory (default ~/Desktop/Claude-Exchange/from-agent) with a dated, descriptive name, and tell them the full path. Use when the user says "save that for me", "give me the file", "export it", "put it somewhere I can grab it", or when Claude produces a file for the user and no other destination was named. Not for files that belong in a repo or on Drive./send-to-driveLeave a file for the user in the exchange Shared Drive's from-agent folder (or the optional shared folder) with a dated name, verify the upload and give them the link. Use when the user says "send it to my phone", "put it on the drive", "save it for me", "share it with us", or when Claude produces a file for the user and no other destination was named./tidy-exchangeArchive old files out of the Claude exchange folder (default ~/Desktop/Claude-Exchange) — anything in from-human/ or from-agent/ older than 14 days (or a given age) moves to archive/YYYY-MM/<side>/. Never deletes. Use when the user says "tidy the exchange", "clear out the drop folder", "archive old exchange files", or the folders have grown long.npx claudepluginhub danielrosehill/claude-agent-exchange --plugin agent-exchange