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.
npx agentmods add commands/swarm-ai-research/swarm/sync_artifactsgit clone --depth 1 https://github.com/swarm-ai-research/swarmWrote 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.
[](https://agentmods.dev/commands/swarm-ai-research/swarm/sync_artifacts)<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/sync_artifacts"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/sync_artifacts.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01549 |
| Opus 5 | $0.00000 | $0.00775 |
| Sonnet 5 | $0.00000 | $0.00310 |
| Haiku 4.5 | $0.00000 | $0.00155 |
Grade C, and why
sync_artifacts scanned grade C with 2 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 4d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf /tmp/sync_artifacts_migrate Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sL "https://raw.githubusercontent.com/<owner/repo>/main/<file-path>" \ How it starts
The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/sync_artifacts
Stage, commit, and push changes in the swarm-artifacts repo. Handles pre-commit validation and Co-Authored-By automatically.
Usage
/sync_artifacts [message]
/sync_artifacts --migrate <owner/repo> <path>
Examples:
/sync_artifacts(auto-generates commit message from diff)/sync_artifacts "Add new claim cards from collusion study"/sync_artifacts --migrate swarm-ai-research/swarm runs/20260221_104316_langgraph_governed
Behavior
1. Locate the artifacts repo
Check these paths in order:
$SWARM_ARTIFACTS_DIRenvironment variable (if set)/Users/raelisavitt/swarm-artifacts(default)../swarm-artifactsrelative to the main repo root
If none exist, report: "Cannot find swarm-artifacts repo. Set $SWARM_ARTIFACTS_DIR or clone it."
2. Check for changes
cd <artifacts-repo>
git status --short
If no changes (staged or unstaged), report "swarm-artifacts is clean, nothing to sync." and stop.
3. Show what changed
git diff --stat # unstaged
git diff --cached --stat # staged
Report the summary to the user.
4. Stage files
Stage all changed files, excluding:
.DS_Store*.db.env*credentials*
git add -A -- ':!.DS_Store' ':!*.db' ':!.env*' ':!credentials*'
5. Commit
If the user provided a message via $ARGUMENTS, use it. Otherwise, auto-generate from the staged diff:
- Count files by category (vault/, scripts/, schemas/, runs/)
- Summarize: "Update N vault notes, M scripts" or similar
Always append Co-Authored-By: Claude Opus 4.6 <[email protected]>.
git commit -m "$(cat <<'EOF'
<message>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
EOF
)"
If pre-commit hooks fail:
- Read the error output
- If it's an index consistency error (notes not in
_index.md), auto-fix by adding the missing references tovault/_index.md, re-stage, and retry the commit - If it's a validation error (schema, YAML), report the errors and stop
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.
- 4d ago First seen · 205 lines · 0 tokens per session scan C 29cde0c8510e
sync_artifacts is a command published in the GitHub repository swarm-ai-research/swarm (41 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,549 tokens. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
tma1-peer
List recent sessions on this project by agent — peers (Codex, OpenClaw, Copilot CLI) or your own.
skill-inbox
Unified entry point for managing skill suggestions and browsing all installed skills. Provides two views: suggestions (default) and all skills.
eval-merge
Use the Read tool to load .skill-compass/{skill-name}/manifest.json. Verify.
video
Create a design based on video.
good
Write good creative & smart copy [GOOD].
speckit.git.validate
Validate current branch follows feature branch naming conventions.