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/rios0rios0/guide/sync-reposgit clone --depth 1 https://github.com/rios0rios0/guideWrote 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/rios0rios0/guide/sync-repos)<a href="https://agentmods.dev/commands/rios0rios0/guide/sync-repos"><img src="https://agentmods.dev/badge/commands/rios0rios0/guide/sync-repos.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.00299 |
| Opus 5 | $0.00000 | $0.00150 |
| Sonnet 5 | $0.00000 | $0.00060 |
| Haiku 4.5 | $0.00000 | $0.00030 |
Grade A, and why
sync-repos scanned grade A with 0 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Sync all git repositories found recursively under the current directory (or a given path). For each repo discovered via find -name .git -type d:
- If the repo has uncommitted changes (staged, unstaged, or untracked), create a WIP branch (
wip/auto-stash-<timestamp>) and commit all changes with messagewip: auto-stash uncommitted changes. - Checkout the default branch (detected via
git symbolic-ref refs/remotes/origin/HEAD, fallback tomain). - Run
git fetch --all --pruneandgit pull --rebase. - If pull/rebase fails, abort the rebase and restore the previous branch.
- Restore the original branch (or WIP branch if changes were stashed).
Run this by executing the shell function:
source ~/.scripts/linux-engineering-git-sync-repos.sh && git-sync-repos
When no argument is given, it defaults to the current working directory ($PWD). If the user provides a specific subdirectory (e.g. dev.azure.com/ContosoSecurity), pass it as argument:
source ~/.scripts/linux-engineering-git-sync-repos.sh && git-sync-repos "$HOME/Development/dev.azure.com/ContosoSecurity"
Print the summary at the end showing total repos, synced, WIP commits, and failures.
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 · 22 lines · 0 tokens per session scan A 19d62dd74e9f
sync-repos is a command published in the GitHub repository rios0rios0/guide (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 299 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
awesome-chatgpt
Search awesome-ChatGPT-repositories for open-source GitHub repositories related to ChatGPT and LLMs.
init
Scaffold a new MindBase project (v2 layout). Usage: /mb:init [template] [-- mission ...].
commit
智能生成 Git 提交信息并提交.
pr
Handle the full workflow from current branch state to an open, CI-monitored pull request.
doctor.es
Diagnostica problemas de inferencia LLM en Mac: asiai doctor verifica el estado de los motores, conflictos de puertos, carga de modelos y estado de la GPU.
harness-adopt
Apply Harness Starter Kit to the current target repository with the prompt-first adoption workflow.