Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/gitkb/metanpx agentmods add skills/gitkb/meta/meta-worktreeWrote 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/skills/gitkb/meta/meta-worktree)<a href="https://agentmods.dev/skills/gitkb/meta/meta-worktree"><img src="https://agentmods.dev/badge/skills/gitkb/meta/meta-worktree/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/skills/gitkb/meta/meta-worktree"><img src="https://agentmods.dev/badge/skills/gitkb/meta/meta-worktree.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.00061 | $0.05018 |
| Opus 5.5 | $0.00024 | $0.02007 |
| Sonnet 5.5 | $0.00012 | $0.01004 |
| Haiku 4.5 | $0.00006 | $0.00502 |
Grade A, and why
meta-worktree 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 12d 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 — 392 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Meta Worktree Skill
A worktree set is a named group of git worktrees, one per repo, on one branch by default. It lets a change span several repos without touching the primary checkout, and lets several tasks run side by side.
The repo names below (backend, frontend, api) are examples; <repo>,
<branch> and <tag> stand for a repo, branch and tag of yours. meta -A --json project list lists your repos and their tags. A repo of a nested meta repo needs -r (its path from
the nearest .meta.yaml) or -A (its path from the workspace root).
.worktrees/
auth-fix/ # set name; also the default branch name
backend/ # git worktree of the primary checkout's backend/
frontend/
When to Use Worktrees
Every change gets its own worktree set, even a one-line fix in one repo.
The primary checkout is pull-only: it stays on the default branch and only
meta -r git pull --ff-only (which fast-forwards every repo) and
meta -r git update (which clones the missing ones) change it, after a PR lands
or at the start of a task. Never commit, switch
branches or leave edits there.
Read-only work (reading code, searching, answering questions) may stay in the primary checkout.
Create one set per task, with only the repos it touches, and give each set its
own build output (for Cargo, a CARGO_TARGET_DIR of its own or the set's own
target/): builds shared between sets silently reuse each other's results.
Remove a set once the work is pushed; before a session ends, remove every set
it created. Inside a set, meta git worktree commands find sets where the
checkout the set was made from keeps them, so running them there acts on the
workspace's sets.
Creating Worktrees
Run these from the workspace root. Use -r when a repo you name, or one it
depends on, is nested in a meta repo, and -A when the target is at another
nesting level than the folder you are in: without them a set holds only this
level's repos. -r follows a dependency written as a repo's path from the
workspace root, across nesting levels too, and one written as a path or a
capability (provides) of the dependent's own .meta.yaml. It doesn't resolve
a capability or a name from another nesting level (unless that name is also the
repo's path from the root), or a project name whose path: differs from it.
Started inside a nested meta repo, -r reaches only that repo's tree. Each
dependency the set won't hold that meta can name (one repo is or provides it) is
named in a warning that ends with the --repo that adds it, spelled as it works
from the folder you ran in (a repo of that folder's tree by its path from there,
any other with -A and its path from the root), and says to add -r or -A
where that is what it takes: follow it as written (with --strict the warning is
an error, and nothing is made). A dependency nothing or several repos provide
keeps its own warning. --no-deps leaves dependencies out without a word.
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.
- 12d ago Changed · +13 tokens per session 411da1f4bf8d
- 15d ago First seen · 392 lines · 48 tokens per session scan A 219cd6276dc2
meta-worktree is a skill published in the GitHub repository gitkb/meta (20 stars, last pushed 8d ago), licensed MIT. It adds 61 tokens to every session and 5,018 once invoked, about $0.0002 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-11-15.
meta-worktree compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| meta-worktreegitkb/meta | Skill | 20 | 8d ago | MIT | A | 61 | Claude Code |
| merge-batchdiegosouzapw/OmniRoute | Skill | 91k | yesterday | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | 3d ago | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.7k | today | MIT | A | 20 | Claude Code, Codex |
| comet-githubrpamis/comet | Skill | 3.3k | yesterday | MIT | A | 72 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | 4d ago | MIT | A | 51 | Claude Code |
| codex-autoresearchleo-lilinxiao/codex-autoresearch | Skill | 3.3k | 11d ago | MIT | A | 39 | Codex |