Protected and rejected paths
Keep the files that instruct everyone's agents to a workspace's admins, and keep out files that would run code on everyone's machines.
When everyone's agent reads the same workspace, its files instruct those agents. Fontego has two lists of path patterns to keep that safe:
- Protected paths can only be written (created, changed, moved or deleted) by the workspace's admins. By default:
agent instructions, skills and rules, such as
**/AGENTS.md,**/CLAUDE.md,**/.claude/**and**/.agents/**. - Rejected paths can't be written by anyone, because those files would make an agent or an editor run code or start servers on its own on the machines of everyone who syncs. By default: Claude Code's settings (where hooks live), MCP server lists and OpenCode's config and plugins. A rejected file already in a workspace is never handed to anyone's sync.
The full default lists are in the settings reference. The server doesn't know what
these files are: they are only patterns, which a server admin can change for the whole instance (paths.protected
and paths.rejected) and each workspace can replace with its own.
A workspace's lists
fontego workspace paths notes # its lists, or the instance's defaults
fontego workspace paths protect notes "playbooks/**" # workspace admins
fontego workspace paths unprotect notes "playbooks/**"
fontego workspace paths reject notes "**/.husky/**" # server admins only
fontego workspace paths unreject notes "**/.husky/**"
fontego workspace paths reset notes # back to the instance's defaultsA workspace's admins change its protected list; its rejected list takes a server admin.
A refused write fails with 422, naming the path and the pattern. A sync sets that file aside and sends the rest.
Patterns
- A pattern matches a whole path from the top of the workspace:
docs/plan.md, notplan.mdanywhere. *and?match within one name;**, alone between slashes, matches any number of folders, none included. So**/AGENTS.mdis everyAGENTS.md, and.claude/**is everything under the top.claudefolder.- Case is ignored, as on macOS and Windows.
A symlink counts for everything it would bring in below it. A protected symlink doesn't protect the folder it points
to: that folder needs its own pattern. That is why **/.agents/** is protected by default, since .claude/skills often
points to .agents/skills.