Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add mdsakalu/agent-plugins/plugin install workspaceWrote 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/mdsakalu/agent-plugins/import)<a href="https://agentmods.dev/commands/mdsakalu/agent-plugins/import"><img src="https://agentmods.dev/badge/commands/mdsakalu/agent-plugins/import/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/mdsakalu/agent-plugins/import"><img src="https://agentmods.dev/badge/commands/mdsakalu/agent-plugins/import.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.00012 | $0.00993 |
| Opus 5.5 | $0.00005 | $0.00397 |
| Sonnet 5.5 | $0.00002 | $0.00199 |
| Haiku 4.5 | $0.00001 | $0.00099 |
Grade A, and why
import 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 1mo 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Import an existing git checkout into the metarepo workspace system.
Resolve the metarepo path by reading ~/.claude/workspace-config.json and expanding ~ to $HOME.
The user's request: $ARGUMENTS
Steps
- Read
~/.claude/workspace-config.jsonto get the metarepo path. Expand~to$HOME. - Validate the source path:
- Expand
~to$HOMEin the provided path - Verify
.gitexists in the source directory - If
.gitis a file (not a directory), warn the user that the source is a git worktree — import may have unexpected results - Refuse if the source path is already inside
<metarepo>/repos/
- Expand
- Preflight the source — run git commands to collect information:
- Remote URL:
git -C <path> remote get-url origin(fallback to first available remote) - Current branch:
git -C <path> branch --show-current - All local branches:
git -C <path> branch --format='%(refname:short)' - Dirty state:
git -C <path> status --porcelain - Unpushed commits per branch:
git -C <path> log origin/<branch>..<branch> --onelinefor each branch - Stash list:
git -C <path> stash list— if non-empty, warn that stashes will NOT be imported
- Remote URL:
- Resolve repo mapping — parse the origin URL to determine
org/repo, then check ifrepos/<name>/.repo.jsonexists:- If onboarded: verify the URL matches. If it doesn't match (fork scenario), warn the user.
- If not onboarded: run
bash ${CLAUDE_PLUGIN_ROOT}/scripts/workspaces/add-repo.sh <origin-url>to onboard it first.
- Ask the user via
AskUserQuestionabout import scope:- Current branch only
- Select from branches (list them)
- All local branches
- Always skip the default branch (it maps to the existing
trunkworkspace).
- For each branch to import, propose a workspace name:
- Branch prefix mapping:
feature/*→epic-*,bugfix/*/hotfix/*→spike-*,pr-*passthrough - Otherwise: kebab-case the branch name, type =
import - Ask the user via
AskUserQuestionto confirm or override each workspace name - Check for collisions against existing
repos/<repo>/andnotes/<repo>/directories
- Branch prefix mapping:
- For each branch, run the import script:
Passbash ${CLAUDE_PLUGIN_ROOT}/scripts/workspaces/import-workspace.sh \ <repo> <name> --branch <branch> --source <path> \ --type <type> [--purpose "<purpose>"] [--dirty] [--local-commits]--dirtyonly for the current branch workspace when the source has dirty state (staged + unstaged changes). Pass--local-commitswhen the branch has unpushed commits (i.e.,git log origin/<branch>..<branch>is non-empty). - Run validation:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/workspaces/validate.sh --repo <repo> - Report a summary of what was imported and suggest next steps:
/workspace:cd <repo>/<workspace>to switch to an imported workspace/workspace:listto see all workspaces
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.
- 1mo ago First seen · 63 lines · 12 tokens per session scan A d19ee7a56417
import is a command published in the GitHub repository mdsakalu/agent-plugins (4 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 993 once invoked, about $0.0000 per session on Opus 5.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-08-31.
Other commands, from other repositories
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.
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.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
pr
Handle the full workflow from current branch state to an open, CI-monitored pull request.
codex-review
Use when asked to check, turn on, turn off, or switch this repo's Codex review mode (local, github, or off), or to report the effective mode and Codex sandbox status.