Type to search the docs and updates.

Browse documentation

Scopes

A spec lives at one of three scopes. --scope names the one a command works on.

ScopeWho gets itLives inIn Git
projectThe team, in this project.agnostic-ai/ and agnostic-ai.yamlCommitted
localYou, in this project.agnostic-ai/local/ and agnostic-ai.local.yamlIgnored
userYou, in every project~/.agnostic-ai/, or $AGNOSTIC_AI_HOMEYour own repository, or none

project is the default. Create a spec at each scope with new:

agnostic-ai new rule team-style                    # project
agnostic-ai new rule scratch-notes --scope local   # local
agnostic-ai new rule my-style --scope user         # user

Which spec wins

In a project, agnostic-ai sync reads built-ins, then packs, then project specs, then local ones. A later layer wins over an earlier one with the same kind and name. A local spec does not replace the shared one: it changes only the fields it writes.

agnostic-ai sync --scope user is a separate run. It reads built-ins, then ~/.agnostic-ai/, then its own local/ folder, and writes each tool's user files. It loads no project specs and no packs.

Project and user specs never merge. When a project and your user setup both have a skill or agent of one name, each tool decides which it loads, and a project sync warns about the clash. See shared names.

agnostic-ai list prints the layer each spec came from: builtin, pack:<name>, project or local. agnostic-ai list --scope user prints builtin, user or user-local.

What each command takes

CommandsScopes
new, listproject, local, user
sync, validate, lint, import, migrate, explain, install-hook, view (and ui), serve, mcp toolsproject, user
why, status, render, compare, graph, revert, cleanupproject only. Asked for --scope user, each stops and names the user-level command that does the job.

Local specs are part of a project, so the commands in the second row read them with --scope project.

init and doctor work on a project and take no --scope. To start a user setup, create ~/.agnostic-ai/ yourself, run new ... --scope user, or use Open user settings in the web interface.

Go further

Older names

Releases up to v0.96.0 called the user scope "global" and took --global in place of --scope user. --global still works and prints a deprecation warning. Config keys, API routes and the state/global.json file keep that word.