@shruubi/agentconfig
v0.4.2
Published
Sync a single agent config source to multiple coding agents
Downloads
78
Readme
agentconfig
Sync a single agent config source to multiple coding agents.
Requirements
- Node.js 20+
Quickstart
npm install
npm run build
npm link
agentconfig init
agentconfig syncInstall from npm
npm install -g agentconfig
agentconfig --help
agentconfig init
agentconfig syncCommands
agentconfig initCreateagentconfig.ymlin the source root and create any missing source directories.- Use
--forceor--on-conflict overwrite|backup|skip|cancelto handle an existing config file.
- Use
agentconfig syncSync configs to agent targets.agentconfig statusShow drift status based on last sync.agentconfig doctorValidate config structure.agentconfig list-agentsList supported agents.
Common options
--project <path>Project-only sync into a repo root.--dry-runShow actions without writing.--linkForce symlink mode.--copyForce copy mode.--forceOverwrite unmanaged targets, including non-empty directories (alias for--on-conflict overwrite).--on-conflict <policy>Choose how to handle existing unmanaged targets:overwrite,backup,skip,cancel.--agent <name>Restrict to one agent.
Config location
Default source root is ~/.agentconfig. Override with AGENTCONFIG_HOME.
Default mappings
The default template includes common locations for agent instructions, rules, skills, and (where supported) agents, commands, and hooks.
- Claude Code hooks are synced via
claude/settings.json, plus agents and commands viaclaude/agents/andclaude/commands/. - Codex skills are synced to
.agents/skills/(global uses${CODEX_HOME:-~/.codex}root with a relative../.agents/skills/). - Cursor hooks are synced via
cursor/hooks.jsonandcursor/hooks/. - OpenCode agents and commands are synced via
agents/andcommands/.
Tests
npm testLinting and formatting
npm run lint
npm run format:check
npm run format