sync-agents

sync-agents is a command for Claude Code from alinaqi/maggy. It costs 0 tokens per session (1,684 once invoked), scanned D, original, MIT.

A command for keeping project settings aligned across Claude Code, Kimi CLI, and Codex CLI. These are command-line tools that let developers work with AI coding agents.

In plain words
What is it for?
Use it after project initialization or whenever you need to detect installed tools, compare their current setup, and synchronize project configuration.
Why use it?
It avoids mismatches where the tools have different skills, instructions, or event hooks configured for the same project.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it after project initialization or whenever you need to detect installed tools, compare their current setup, and synchronize project configuration.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alinaqi/maggy/sync-agents
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/alinaqi/maggy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-agents

README.md
[![agentmods](https://agentmods.dev/badge/commands/alinaqi/maggy/sync-agents/github.svg)](https://agentmods.dev/commands/alinaqi/maggy/sync-agents)
Your own site
<a href="https://agentmods.dev/commands/alinaqi/maggy/sync-agents"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/sync-agents/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-agents

Your own site · 80×15
<a href="https://agentmods.dev/commands/alinaqi/maggy/sync-agents"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/sync-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,684 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01684
Opus 5.5 $0.00000 $0.00674
Sonnet 5.5 $0.00000 $0.00337
Haiku 4.5 $0.00000 $0.00168

Measured 3mo ago against content hash 920ba842b1d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

sync-agents scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

BOOTSTRAP_DIR=$(cat ~/.claude/.bootstrap-dir 2>/dev/null)

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

[ -d ".claude/skills" ] && echo " Skills: .claude/skills/ ($(ls -d .claude/skills/*/ 2>/dev/null | wc -l | tr -d ' ') skills)" || echo " Skills: NOT SET UP"

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .kimi/skills
commands/sync-agents.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sync Agents

Sync project configuration between Claude Code, Kimi CLI, and Codex CLI.

Run this after /initialize-project or anytime you want to ensure all installed AI CLI tools have matching skills, project instructions, and hooks.


Phase 1: Detect Installed Tools

BOOTSTRAP_DIR=$(cat ~/.claude/.bootstrap-dir 2>/dev/null)
if [ -z "$BOOTSTRAP_DIR" ]; then
    echo "Error: Maggy not installed. Run install.sh first."
    exit 1
fi
DETECTED=$("$BOOTSTRAP_DIR/scripts/detect-agents.sh" 2>/dev/null || echo "claude")
echo "Detected AI CLI tools: $DETECTED"

Phase 2: Show Current State

Check what exists for each tool and present a status table:

echo "=== Current State ==="

# Claude
echo "Claude Code:"
[ -d ".claude/skills" ] && echo "  Skills:       .claude/skills/ ($(ls -d .claude/skills/*/ 2>/dev/null | wc -l | tr -d ' ') skills)" || echo "  Skills:       NOT SET UP"
[ -f "CLAUDE.md" ] && echo "  Instructions: CLAUDE.md" || echo "  Instructions: NOT SET UP"
[ -f ".claude/settings.json" ] && echo "  Hooks:        .claude/settings.json" || echo "  Hooks:        NOT SET UP"

# Kimi
echo "Kimi CLI:"
[ -d ".kimi/skills" ] && echo "  Skills:       .kimi/skills/ ($(ls -d .kimi/skills/*/ 2>/dev/null | wc -l | tr -d ' ') skills)" || echo "  Skills:       NOT SET UP"
echo "  Instructions: (Kimi uses skills directly, no project file needed)"
[ -f ".kimi/config.toml" ] && echo "  Hooks:        .kimi/config.toml" || echo "  Hooks:        NOT SET UP"

# Codex
echo "Codex CLI:"
[ -d ".codex/skills" ] && echo "  Skills:       .codex/skills/ ($(ls -d .codex/skills/*/ 2>/dev/null | wc -l | tr -d ' ') skills)" || echo "  Skills:       NOT SET UP"
[ -f "AGENTS.md" ] && echo "  Instructions: AGENTS.md" || echo "  Instructions: NOT SET UP"
[ -f ".codex/config.toml" ] && echo "  Hooks:        .codex/config.toml" || echo "  Hooks:        NOT SET UP"

Present the status table to the user, then ask what they want to do.


Phase 3: Offer Sync Actions

Read the full file on GitHub · 177 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 177 lines · 0 tokens per session scan D 920ba842b1d1

Subscribe to this mod's changes

sync-agents is a command published in the GitHub repository alinaqi/maggy (713 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,684 tokens. A static security scan graded it D with 3 findings (reads agent configuration directories, enumerates other installed skills, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

sync-agents compared with commands from other repositories

sync-agents next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync-agentsalinaqi/maggyCommand7133d agoMITD0Claude Code
python-reviewloulanyue/awesome-claude-notesCommand2711mo agoMITA31Claude Code
frappe-backendDkm0315/frappe-agentCommand271mo agoMITA0Claude Code, Cursor
py-structuremathisk2095/jko-claude-pluginsCommand31mo agoMITA23Claude Code
py-hardenmathisk2095/jko-claude-pluginsCommand31mo agoMITA32Claude Code
skill-fastapi-apidewtech-technologies/dare-methodCommand54mo agoMITA0Claude Code
skill-mcp-serverdewtech-technologies/dare-methodCommand54mo agoMITA0Claude Code