dotagents
Shared tooling for coding agents. Declare skills, MCP servers, hooks, subagents, and plugins in agents.toml — dotagents wires them into every agent tool on your team.
Why dotagents?
One source of truth. Skills live in .agents/skills/ and symlink into .claude/skills/ or wherever your tools expect them. Cursor shares Claude-compatible skills. No copy-pasting between directories.
One command to install. Global dependencies live under ~/.agents/. Repository-local dependencies can be declared in a committed agents.toml; collaborators run dotagents --project install to fetch or refresh that project's managed state.
Shareable. Skills are directories with a SKILL.md. Host them in any git repo, discover them automatically, install with one command.
Multi-agent. Configure Claude, Cursor, Codex, GitHub Copilot CLI, Grok, VS Code, OpenCode, Pi, and Google Antigravity from a single agents.toml -- skills, MCP servers, hooks, subagents, and plugins where supported. Pi reads .agents/skills/ directly.
Quick Start: Global by Default
npx @sentry/dotagents init
Without a scope flag, every command operates on global state under ~/.agents/, even when run inside a repository. The interactive setup walks you through selecting agents and trust policy. Then add skills or plugins:
# Add a skill from a GitHub repo
npx @sentry/dotagents add getsentry/skills find-bugs
# Add multiple skills at once
npx @sentry/dotagents add getsentry/skills find-bugs code-review commit
# Or add all skills from a repo
npx @sentry/dotagents add getsentry/skills --all
# Add a plugin (auto-detected from the source)
npx @sentry/dotagents add getsentry/agent-plugins review-tools
This creates ~/.agents/agents.toml and ~/.agents/agents.lock, making the dependencies available across projects.
Run install again whenever you want to refresh global managed state:
npx @sentry/dotagents install
Repository-Local Workflow
Use --project for repository-local state. Inside Git, dotagents uses the repository root; outside Git, --project init uses the current directory.
# Initialize this repository
npx @sentry/dotagents --project init
# Add a dependency only for this repository
npx @sentry/dotagents --project add getsentry/skills find-bugs
# After cloning or pulling a repository with agents.toml
npx @sentry/dotagents --project install
# Check and repair repository-local state
npx @sentry/dotagents --project doctor --fix
Project commands other than init require agents.toml and never fall back to global state. Existing project and global files are not copied, merged, or removed when switching scopes.
Project-managed paths must also resolve inside the repository: traversal paths and symlinks that point outside it are rejected, while aliases to another location inside the repository remain supported.
The optional project post-merge hook clears inherited Git repository variables for its install command, keeping cache updates separate from the repository being merged. Run npx @sentry/dotagents --project init to refresh an existing managed hook.
Commands
| Command | Description |
|---|
init | Create the selected scope's config and managed directories |
add <source> [names...] | Discover and add plugins, otherwise skills; exact repeats refresh installation |
remove <name|source> [-y] | Remove a skill, plugin, or all dependencies from a source |
install | Install all dependencies from agents.toml |
list | Show declared skills, plugins, and their status |
sync | Reconcile state offline: adopt local skills, prune stale managed ones, repair configs |
mcp | Manage MCP server declarations |
trust | Manage trusted sources |
doctor | Check active-scope health, including plugin runtime projections, and fix supported issues |
All commands default to global scope (~/.agents/). --global selects it explicitly, and legacy --user remains a compatibility alias. --project selects repository-local state. Combining --project with either global alias is an error.
Removing a wildcard-provided skill updates the source's exclude array, including multiline arrays, and preserves comments. If saving the exclusion fails, the skill and lock entry stay intact.
trust add and trust remove support inline and multiline arrays and preserve comments. Removing the last trusted source keeps an empty allow-list. If an edit cannot be applied safely, the config stays unchanged and the command fails.
sync repairs changed MCP server settings; matching entries, including Codex configs, stay unchanged.
Source Formats