Files
zed/docs/src
Smit Barmase 0cc1ffb6b3 agent: Support global skills over SSH, WSL, and dev containers (#66767)
Closes #58222
Closes #59088
Closes #58148

In a remote project (SSH, WSL, or a dev container), global skills came
from your local `~/.agents/skills`. The remote machine's own
`~/.agents/skills` was ignored, and when the agent tried to read or edit
a skill file it looked on the local disk.

Global skills in a remote project now come from the remote machine. The
remote server loads and watches its `~/.agents/skills` and tells Zed
when it changes.

What changed:

- The agent lists the remote's global skills, and picks up new, edited
and deleted ones without a restart.
- Using a skill, or mentioning one, reads its `SKILL.md` from the
remote.
- The agent's file tools (read, list, edit, write, create directory,
copy, move, delete) work on the remote's `~/.agents/skills`. They still
ask before changing anything there, even when the tool is set to always
allow.
- The User tab of the Skills settings page lists, creates and deletes
skills on the remote, and says which machine it is showing.
- Opening the global `AGENTS.md` from a remote project shows a read-only
copy. The file lives on your local machine, and Zed used to look for it
on the remote.
- Local projects work the same as before.

Some calls I made:

- A remote project uses only the remote's global skills, not both. The
agent's tools take a plain path, and
`~/.agents/skills/my-skill/SKILL.md` could then mean a file on either
machine. A local skill's scripts also wouldn't exist on the remote,
where the agent's terminal runs.
- The check for "is this path inside the skills folder" runs on the
remote. Only that machine can resolve `..` and symlinks in a path on its
disk.
- The remote only sends each skill's name and description. The body is
read when the skill is used.
- The agent now rebuilds its project context when the project's visible
folders change, not on every worktree added or removed. Reading a remote
skill file opens it outside the project, and that used to trigger a
rebuild each time.

Left out on purpose:

- The Skills settings page still doesn't list skills until a Zed Agent
thread has been started (#59543). That also happens in local projects.
- Collab guests keep using their own local global skills.

Release Notes:

- Added support for global skills from the remote machine's
`~/.agents/skills` in remote projects (SSH, WSL, and dev containers).
2026-11-19 14:32:00 +00:00
..
2026-11-08 18:27:50 +00:00
…
2026-10-26 11:20:07 +00:00
…
…
…
…