Skip to content

Scopes & Overrides

Tuff currently has two scopes:

  • project
  • global

The important rule is simple: project scope wins.

Project-scoped capabilities live in the repository and are tracked by:

  • tuff.lock
  • tuff.config.json (optional project preferences)

This is the default scope for tuff add, tuff list, tuff diff, and tuff update.

Global scope is for personal capabilities shared across projects. It uses the platform’s XDG-style Tuff config, state, and cache directories:

  • tuff.lock in Tuff’s user state directory
  • verified trees in Tuff’s user cache directory
  • ~/.agents/ or other global emitted files

Use it explicitly:

Terminal window
tuff init --global
tuff add ./my-skill --global
tuff update my-skill --scope global

Global scope writes nothing into the directory you run it from, so it suits capabilities you want on your machine without adding files to a repository. tuff add --global creates the global state on first use, so tuff init --global is optional. It is still useful: it prints where the lockfile and config live, and it registers the harnesses it finds in your home directory, such as claude for ~/.claude/.

Every global command needs --global (or --scope global). Without it, tuff add installs into the current project and asks for tuff init there.

The harness decides which folder a global skill lands in. open-agents writes ~/.agents/skills/, which Claude Code does not read, so pass -a claude to install into ~/.claude/skills/, or make it the global default with tuff harness set-default claude --global. When an install misses a harness Tuff detects, it prints a note naming the flag to add.

When Tuff looks up an installed capability by id, it resolves in this order:

  1. project scope
  2. global scope

That means a project copy shadows a global copy with the same id.

If both scopes contain the same capability id:

  • the project copy is the active one for that repo
  • the global copy remains installed, but is shadowed there

Tuff surfaces this in status output:

  • project entries can show: [overrides global: won't receive global updates]
  • global entries can show: [shadowed by project copy]
Terminal window
# Install globally
tuff add ./company-review --global
# In a repo, install a project-specific copy with the same id
tuff add ./company-review-custom
tuff status

In that repository, Tuff resolves the project copy first.

If a capability id already exists globally and you install a project copy from a different source, Tuff warns that the project copy will take precedence.

This is especially useful when:

  • a company skill is installed globally
  • a repository wants to pin or fork its own version
Terminal window
tuff add ./my-skill
tuff list
tuff diff my-skill
tuff update my-skill
Terminal window
tuff add ./my-skill --global
tuff list --scope global
tuff delete my-skill --scope global
tuff untrack my-skill --scope global
tuff update my-skill --scope global

Tuff does not currently support a deeper layered model such as:

  • company
  • team
  • project
  • personal local

Today the scope model is intentionally small: one repo-local layer plus one global layer, with clear precedence and explicit warnings when one shadows the other.