$ cat articles/one-ai-setup-for-every-coding-tool.md

dotagents series · part 1

I stopped configuring my AI tools three times

published · 6 min read

This is part 1 of a series on dotagents, my setup for AI coding tools. This part covers what it is, how it installs, and why I didn’t use a package manager. Later parts cover the skills, the subagents, remote runs and how I measure all of it.

The problem

I use Claude Code, Codex and Cursor. Each one keeps its config in its own folder and in its own format:

Copying files between them by hand doesn’t last. I’d fix a skill in one tool and forget the others. A new laptop meant doing it all again.

One repo, linked everywhere

dotagents is one repo that holds everything: instructions, skills, subagents, hooks and MCP servers. install.sh connects it to each tool:

It connects files in one of two ways:

Before it replaces a real file, install.sh moves it to ~/.dotagents-backup/. Running it twice is safe. uninstall.sh removes only what install.sh added, and --dry-run shows the plan first.

~/.agents/ is the shared base. It holds the skills, the hook scripts and a few commands. Codex reads skills straight from there. Every tool’s hook config calls the same scripts in ~/.agents/hooks/.

Write it once, for any tool

Linking only helps if one copy works in every tool. Three rules make that work:

What a repo teaches an agent stays in that repo, in .agents/. Nothing about a specific project lives in dotagents.

Take only what you want

Not everyone wants everything. So every skill, subagent, hook and mod belongs to one group: a feature you can install on its own.

Group What it holds
core Always installed: settings, shared conventions, the hooks library
pr-loop Skills that ship, fix and review pull requests
epics Skills that turn notes into an epic and build it
security A security audit and its subagents
safety-hooks Hooks that block leaked secrets and direct merges
remote Running subagents on a cluster, Docker or an SSH host
agent-flow A live view of the session’s agents in Claude Code
small-tools Lessons, telemetry and the MCP servers
personal My own instructions, kept as an example

Each part declares its group and what it needs in a needs.json file beside it. Here is build-epic’s:

{
  "group": "epics",
  "needs": {
    "review-pr": "required",
    "ship-pr": "required",
    "pr-reviewer": "required",
    "telemetry": "optional",
    "remote": "optional"
  },
  "agents": ["epic-explorer", "epic-implementer", "epic-planner"]
}

install.sh reads these files and follows the required needs all the way down. Optional needs come only if you name them too. So installing build-epic brings this:

Installs add up, so you can start small:

./install.sh pr-loop              # one group, every tool
./install.sh claude safety-hooks   # one group, Claude Code only
./install.sh epics                 # adds epics, keeps pr-loop

Uninstalling works the same way in reverse. ./uninstall.sh pr-loop keeps any part that epics still needs and tells you what it kept. There is no record file. It reads the links on disk to see what is installed.

Why not a package manager?

A custom shell installer is extra code to maintain. So before making the repo public, I checked whether APM, Microsoft’s Agent Package Manager, could replace it.

I installed every public group with APM 0.36.1 for all three tools. No group installed fully in any tool. Every result was either “fails” or “partial”.

The gaps were structural:

The decision was “not now”. install.sh stays. The study and the issues I drafted for APM are in the repo, and I can rerun the study when APM adds these features.

Going public

The repo started private on 2026-10-23. Going public meant answering one question first: is the git history safe to publish?

I scanned every published branch and tag with gitleaks. It found one hit: a fake ghp_ token in a masking test. I allowed it in .gitleaksignore with the reason written above it. The secrets job in CI runs the same scan on every pull request.

I set a rule before looking at the results: keep the history unless the scan finds a real credential in a published ref. It didn’t, so the history stayed. Squashing would have lost every commit message, PR link and issue reference for no real gain.

Releases now come from the commits. Every commit follows Conventional Commits, and release-please turns them into a version, a changelog and a tag. The first one was v1.0.0.

Try it

You need bash, git and jq:

git clone https://github.com/rpvsilva/dotagents.git && cd dotagents
./install.sh remote pr-loop epics security safety-hooks agent-flow small-tools

That installs every public group for every tool you have and leaves out personal. Then start your tool and call a skill by name, like /ship-pr.

Next in the series: the PR skills, and how agents can open and fix pull requests without being able to merge them.

← cd ..