Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

221 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. agents.toml is committed, managed skills, canonical installed subagents, and managed plugin bundles under .agents/ are gitignored. Collaborators run dotagents install to fetch or refresh local agent 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, Grok, VS Code, and OpenCode from a single agents.toml -- skills, MCP servers, hooks, subagents, and plugins where supported. Pi reads .agents/skills/ directly.

Quick Start

npx @sentry/dotagents init

The interactive setup walks you through selecting agents and trust policy. Then add skills:

# 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

This creates an agents.toml at your project root and an agents.lock tracking installed skills, subagents, and plugins.

After cloning a project that already has agents.toml, run install to fetch skills, subagents, and plugins. Run it again to refresh managed local state:

npx @sentry/dotagents install

Commands

Command Description
init Create agents.toml and .agents/skills/
add <source> [skills...] Add skill dependencies
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 project health and fix issues

All commands accept --user to operate on user scope (~/.agents/) instead of the current project.

Source Formats

Skills can come from GitHub, GitLab, any git server, well-known HTTPS skill sources, or local directories:

[[skills]]
name = "find-bugs"
source = "getsentry/skills"              # GitHub shorthand

[[skills]]
name = "review"
source = "getsentry/skills@v1.0.0"       # Pinned to a ref

[[skills]]
name = "gitlab-skill"
source = "https://gitlab.com/group/repo" # GitLab URL

[[skills]]
name = "internal"
source = "git:https://git.corp.dev/repo" # Any git server

[[skills]]
name = "error-tracking"
source = "https://cli.sentry.dev"        # Well-known HTTPS source

[[skills]]
name = "local"
source = "path:./my-skills/local-skill"  # Local directory

Shorthand (owner/repo) resolves to GitHub by default. Set defaultRepositorySource = "gitlab" in agents.toml to resolve to GitLab instead.

Agent Targets

The agents field tells dotagents which tools to configure:

agents = ["claude", "cursor", "codex", "grok", "opencode", "pi"]
Agent Config Dir MCP Config Hooks Subagents
claude .claude .mcp.json .claude/settings.json .claude/agents/*.md
cursor .cursor .cursor/mcp.json .cursor/hooks.json .cursor/agents/*.md
codex .codex .codex/config.toml -- .codex/agents/*.toml
grok .grok -- -- --
vscode .vscode .vscode/mcp.json .claude/settings.json --
opencode .opencode .opencode/opencode.jsonc -- .opencode/agents/*.md

Custom subagents are declared with [[subagents]] entries. dotagents writes generated runtime-specific files during install and repairs them during sync:

[[subagents]]
name = "code-reviewer"
source = "getsentry/agent-pack"
targets = ["claude", "codex", "opencode"]

If targets is omitted or empty, dotagents targets every configured agent and warns for agents that do not support custom subagents.

dotagents discovers portable subagent Markdown from conventional source directories such as agents/ and .agents/agents/. The frontmatter supplies the portable name and description; the body supplies the runtime instructions:

---
name: code-reviewer
description: Review code for correctness, security, and missing tests.
---

Review the current diff and return findings with file references.

dotagents can also import native runtime subagent files from .claude/agents/, .cursor/agents/, .codex/agents/*.toml, and .opencode/agents/. Input and matching-runtime output use the same native format: Markdown with YAML frontmatter for Claude, Cursor, and OpenCode; TOML for Codex. Claude and Codex identify agents by name, Cursor can derive name from the filename when omitted, and OpenCode uses the filename as the agent name. Multiple portable matches for the same subagent are rejected as ambiguous, while matching native runtime artifacts are merged. When the source format matches a target runtime, dotagents reuses the native source content for that runtime and only adds its managed-file marker. Other runtimes are generated from the portable name, description, and instructions. Subagent declarations intentionally cover only dependency source and runtime targets, not universal model/tool/permission behavior.

OpenCode reuses an existing project config from .opencode/opencode.jsonc, .opencode/opencode.json, opencode.jsonc, or opencode.json, in that order. New projects use .opencode/opencode.jsonc.

Plugins are declared with [[plugins]] entries. dotagents installs canonical bundles into .agents/plugins/<name>/ and generates runtime plugin outputs such as .claude-plugin/marketplace.json, .agents/plugins/<name>/.claude-plugin/plugin.json, .cursor-plugin/marketplace.json, .agents/plugins/<name>/.cursor-plugin/plugin.json, .agents/plugins/marketplace.json, .agents/plugins/<name>/.codex-plugin/plugin.json, .grok/plugins/<name>/, .opencode/skills/<skill>/, and Pi skill links under .agents/skills/<skill>/ where supported. During legacy migration, generalized bundles can also project Markdown agents into .opencode/agents/; standard extension agents are preserved but are not projected yet:

[[plugins]]
name = "review-tools"
source = "getsentry/agent-plugins"
path = "plugins/review-tools"
targets = ["claude", "cursor", "codex", "grok", "opencode", "pi"]

The canonical portable format is an Agent Plugins v1 bundle: required plugin.json, optional skills/, optional mcp.json, and reverse-domain client extensions. dotagents preserves those portable source files under .agents/plugins/<name>/ and generates isolated target harnesses. Generated JSON uses adjacent ownership sidecars, while component symlinks use markers in reserved .dotagents-managed/ directories, so client-owned JSON remains unchanged. Legacy generalized and native Claude/Cursor/Codex manifests remain discoverable during migration; native imports preserve their owning manifest and expose only core metadata and Agent Skills to other clients. Standard bundles reject legacy root components so client-specific behavior cannot leak across harnesses.

Plugin declarations are project-scope only for now. dotagents --user install rejects [[plugins]] entries because user-scope runtime plugin projections are not generated yet.

Pi plugin targets are global skill projections rather than isolated plugin installs: a Pi-targeted plugin skill is added to .agents/skills/ and is therefore visible to other clients that consume that shared directory.

Pi reads .agents/skills/ natively. Normal skills need no Pi-specific configuration; plugin bundles can target pi when their skills/ components should be exposed there.

Documentation

For the full guide -- including MCP servers, hooks, subagents, plugins, trust policies, wildcard skills, user scope, and CI setup -- see the documentation site.

Contributing

git clone git@github.com:getsentry/dotagents.git
cd dotagents
pnpm install
pnpm check  # lint + typecheck + test

Requires Node.js 20+ and pnpm.

This repo is a pnpm workspace with two packages:

  • packages/dotagents/@sentry/dotagents, the CLI and host library. Owns agents.toml, the .agents/ convention, and the per-agent (Claude/Cursor/etc.) integrations.
  • packages/dotagents-lib/@sentry/dotagents-lib, the reusable core (SKILL.md loading, source resolution, trust validation). Depend on this directly if you want to consume agent skills from your own tooling without agents.toml.

Both packages are versioned in lock-step — see RELEASING.md.

License

MIT

Releases

Sponsor this project

Packages

Used by

Contributors

Languages