User configuration
Use the user scope for configuration shared across your projects. Releases up to v0.96.0 called it "global". That name remains in this page's URL and some anchors, state/global.json, sync.allow-global-names, and sync.global-name-clash.
Keep instructions, rules, hooks, skills, agents, settings, and MCP servers for all your projects in one home folder. Run agnostic-ai sync --scope user to install them in each tool's user files. Put team defaults in a project or pack.
Source and targets
The source folder is $AGNOSTIC_AI_HOME, or ~/.agnostic-ai/ when unset. sync --scope user runs from any directory; --global is its older spelling: still accepted, with a deprecation warning on stderr, and the only one releases up to v0.96.0 take. It loads no packs or project specs. User-level output lists the paths it writes.
~/.agnostic-ai/
├── agnostic-ai.yaml # optional: targets, builtins, requires, lint, on-unsupported, models, approvals
├── AGNOSTIC_AI.md
├── agents/*.md
├── rules/*.md
├── hooks/*.yaml
├── settings/*.yaml # default model and effort
├── mcps/*.yaml # user-level MCP servers
├── skills/<name>/SKILL.md
└── local/ # optional personal layer, same layout
Create a spec there from any directory with agnostic-ai new rule my-style --scope user. It takes agents, skills, rules, hooks, MCP servers, and settings. A user-level rule starts without globs, since it applies everywhere.
local/ works as in a project (local overrides): a spec there merges into the shared spec of the same kind and name, and a new name adds one. local/AGNOSTIC_AI.md comes last in the managed instructions block. Add /local/ to the source root's .gitignore before adding personal files.
To sync a fixed set of tools without --only on every run, list them in the source root's agnostic-ai.yaml:
targets: [claude, codex, cursor]
sync --scope user,lint --scope user, andvalidate --scope userthen use only those targets.--onlyand--exceptnarrow the list for one run. They must name configured targets.--targetreplaces the list and skips the home config'stargets.- A target with no user-level files, such as
aiderorcontinue, is skipped with one warning. An unknown name stops the run.
User specs never merge with project specs. When both exist, each tool decides which wins (shared names). Ordinary agnostic-ai sync reads only the names of your user specs, to warn about clashes.Details: home config keys
targets list in local/agnostic-ai.yaml replaces the shared one.builtins, requires, lint, and models work as in a project.local/agnostic-ai.yaml replaces the shared value. A models tier replaces the whole shared tier of the same name.sync --scope user lists the tiers that have a description in the instructions block it manages.sync --scope user stops. With -t, it warns, skips that file's tiers, and omits the model of any spec that names one.on-unsupported (warn, error, or silent) sets what sync --scope user does with a skill line that Claude Code expands and other targets read as plain text (Claude Code body syntax).version print a warning and are ignored.Details: start the folder, commands, backup
AGNOSTIC_AI.md and agnostic-ai.yaml, makes sure .gitignore lists /local/, and can run git init. It does not run sync --scope user.agnostic-ai import --scope user (import).import --scope user reads voice dictation keys into shared settings/imported.yaml. Tool arguments select which native files to read.list --scope user shows the specs in effect with their builtin, user, or user-local layer.validate --scope user and lint --scope user check before a sync writes. migrate --scope user rewrites old spec forms.sync flags.sync, init, import, new, packs, cleanup, revert, and install-hook stop before any write and name the user-level command to run instead. Read-only commands such as lint, validate, and doctor still run.install-hook --scope user writes a pre-commit hook that runs lint --scope user --strict, validate --scope user, and sync --scope user --check.Details: what is unsupported
permissions rule lists, except for Claude Code and CodeBuddy Code.Details: hooks, skills and settings routing
target, targets, and targets-exclude.on events and match values translate for each tool. Native event and matcher values pass through unchanged, so set those per target (portable hooks).~/.agents/skills/ keep neutral frontmatter (skill invocation support, including OpenCode V2).import --scope user copilot adopts matching handlers from neighboring user JSON files (Copilot hooks).~/.kiro/hooks/<name>.json per spec, in the project hook format, with shared scripts in ~/.kiro/scripts/. Unrelated hook files stay, and a conflicting file stops sync.Details: ownership, state and conflicts
CLAUDE.md, is written through.$AGNOSTIC_AI_HOME/state/global.json. It removes only those files and settings, for the targets in the run.--only, other targets' output stays in place.--check notes it. It fails only when a tool file differs too.--backup to overwrite or remove the file and keep <path>.bak.HOME.--only, explicit targets, or a home targets list, a target with a relative root variable or an invalid agent name is skipped with a warning. Naming it makes that an error.
Agents
A personal agent such as ~/.agnostic-ai/agents/reviewer.md with targets: [claude, codex] installs with:
agnostic-ai sync --scope user --only claude,codex
agnostic-ai sync --scope user --only claude,codex --check
Sync writes ~/.claude/agents/reviewer.md and ~/.codex/agents/reviewer.toml.
If a hand-copied file sits at an output path, copy its edits into the source and move the file aside first. --backup does not override a file sync does not own.
More user-level settings
The reference covers:
- Shared names: what happens when a project and your home use the same skill or agent name.
- Default model and effort, permission defaults and session retention.
- MCP servers in each tool's user file.
- Native discovery and shared paths, and the tools left out.
- User-level output: the user-level files
sync --scope userwrites for each tool.