DART is an open-source C++23 physics engine that simulates the movement and interactions of articulated rigid-body systems for robotics, animation, and machine learning. Researchers and developers use it for kinematics, dynamics, collision handling, constraints, and loading robot models, with C++ and Python interfaces. The catalogue add-ons support workflows built around this engine.
Borrowing it
Nothing to install: this file belongs to dartsim/dart. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dartsim/dart/main/.claude/commands/dart-branch-cleanup.mdgit clone --depth 1 https://github.com/dartsim/dartWrote 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/dartsim/dart/dart-branch-cleanup)<a href="https://agentmods.dev/commands/dartsim/dart/dart-branch-cleanup"><img src="https://agentmods.dev/badge/commands/dartsim/dart/dart-branch-cleanup/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.
<a href="https://agentmods.dev/commands/dartsim/dart/dart-branch-cleanup"><img src="https://agentmods.dev/badge/commands/dartsim/dart/dart-branch-cleanup.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00007 | $0.00791 |
| Opus 5 | $0.00003 | $0.00396 |
| Sonnet 5 | $0.00001 | $0.00158 |
| Haiku 4.5 | $0.00001 | $0.00079 |
Grade A, and why
dart-branch-cleanup 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Analyze or clean branches: $ARGUMENTS
Required Reading
@AGENTS.md @docs/onboarding/ci-cd.md @docs/onboarding/contributing.md
Modes
analyze: inspect only, no deletionsaction: prepare follow-up, or delete only after ownership/safety are clear and the maintainer/user gives explicit approval for each local or remote branch deletion
Default to analyze if the requested mode is ambiguous.
Workflow
git fetch --all --no-prune- List stale remote-tracking refs without deleting them:
Ifgit remote prune origin --dry-runoriginuses SSH and port 22 is unavailable, keep the check read-only and use a temporary HTTPS rewrite instead of changing repository config:
To confirm that a remote PR branch was deleted without updating refs, query GitHub directly over HTTPS:git -c url.https://github.com/[email protected]: \ fetch --all --no-prune git -c url.https://github.com/[email protected]: \ remote prune origin --dry-rungit ls-remote --heads https://github.com/dartsim/dart.git <BRANCH> - Determine target branch, usually
origin/main. - For each branch:
git rev-list --left-right --count <TARGET>...<BRANCH> git log --format='%h %cs %s' <TARGET>..<BRANCH> git diff --stat <TARGET>..<BRANCH> git cherry -v <TARGET> <BRANCH> - Before any explicitly approved local branch deletion, check whether the
branch is checked out by a linked worktree:
Dirty linked worktrees must not be removed, detached, or reset during branch cleanup. Only after explicit maintainer/user approval, switch that worktree to a preservation branch at the same commit to free the obsolete branch name before deleting the merged branch.git worktree list --porcelain git -C <WORKTREE> status --short --branch - The command
git branch --mergedmay not prove ancestry for PR branches that landed through a squash or merge commit. Use the merged PR state plus an empty tree diff or equivalentgit cherry -voutput as the deletion signal; if the history relationship is unclear, keep the branch. - Classify recommendations only; deleting a candidate requires explicit
maintainer/user approval:
ahead=0: safe deletion candidate- equivalent commits already landed: deletion candidate
- no-PR branch whose fix may already be solved differently on the target: confirm supersession with a focused A/B or content check before deciding; superseded is a deletion candidate, otherwise keep or open a follow-up
- small, current, useful diff: keep or rebase into PR
- large or unclear diff: document follow-up before action
- Ask for explicit maintainer/user approval before pruning refs or deleting any local or remote branch, even when ownership, branch purpose, and remote impact look clear.
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.
- 6d ago Changed e186cc2867bd
- 8d ago First seen · 86 lines · 7 tokens per session scan A 8fb389896d70
dart-branch-cleanup is a command published in the GitHub repository dartsim/dart (1,204 stars, last pushed 3d ago), licensed BSD-2-Clause. It adds 7 tokens to every session and 791 once invoked, about $0.0000 per session on Opus 5. 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-09-01.
Other commands, from other repositories
commit
A command that examines staged Git changes and proposes a commit message using the Conventional Commits format, such as feat, fix, or docs. Git is a tool for tracking changes to code.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
release-notes
Generate consistent, well-structured release notes from git history. Triggered on release tags following semver patterns (v..) to produce categorized changelog with breaking changes, features, fixes, and contributor attribution.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
handoff
Export a Waybill Bundle by default, or import one when requested.
pr
Handle the full workflow from current branch state to an open, CI-monitored pull request.