metagit-context-pack

metagit-context-pack is a skill for Claude Code, Codex from metagit-ai/metagit-cli. It costs 48 tokens per session (2,834 once invoked), scanned A, original, MIT.

A workspace onboarding tool for Metagit, a system that manages awareness across related code repositories. It creates small context summaries instead of requiring the agent to read every file.

In plain words
What is it for?
Starting work, returning after a pause, scoping a bug fix, checking repository boundaries, and coordinating work across repositories.
Why use it?
It helps an agent understand repository locations, changes, health, objectives, and approvals with less context.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Good fit Starting work, returning after a pause, scoping a bug fix, checking repository boundaries, and coordinating work across repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metagit-ai/metagit-cli/metagit-context-pack
Install

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.

Any agent
npx skills add metagit-ai/metagit-cli --skill metagit-context-pack
Clone the repo
git clone --depth 1 https://github.com/metagit-ai/metagit-cli

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for metagit-context-pack

README.md
[![agentmods](https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-context-pack/github.svg)](https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-context-pack)
Your own site
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-context-pack"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-context-pack/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.

agentmods 80×15 button for metagit-context-pack

Your own site · 80×15
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-context-pack"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-context-pack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,834 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02834
Opus 5 $0.00024 $0.01417
Sonnet 5 $0.00010 $0.00567
Haiku 4.5 $0.00005 $0.00283

Measured 9d ago against content hash fea6dbf939ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

metagit-context-pack 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 9d 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.

.agents/skills/metagit-context-pack/SKILL.md · 278 lines

How it starts

The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Metagit context packs

Use this skill for the most token-efficient way to onboard into a metagit workspace. Prefer metagit context pack --tier N --json over reading raw trees or full manifests.

Set non-interactive defaults:

export METAGIT_AGENT_MODE=true

Run from the umbrella repo that contains .metagit.yml (or pass -c path/to/.metagit.yml).

When to use

  • Session start in any metagit-managed workspace
  • Before editing — need project/repo boundaries and health without cloning everything
  • Returning after idle — tier 2 digest shows what changed since last session
  • Scoping a bugfix — tier 1 cards + repomix profile instead of whole-repo dumps
  • Coordinating humans and agents — objectives and approval queue state

Do not skip context packs and grep the filesystem when a manifest exists.

Tier workflow

Tier Command Typical tokens Contents
0 metagit context pack --tier 0 --json ~100–400 Workspace map: projects, repos, paths, clone status
1 metagit context pack --tier 1 --json +200–600/repo Tier 0 + repo cards (git state, stack hints, health flags)
2 metagit context pack --tier 2 --json +digest Tier 1 + session digest; updates session boundary

Escalate tiers only when needed. Narrow tier 1/2 with --project and/or --repo.

Primary session command

metagit context pack --tier 2 --json -c .metagit.yml

Pair with operational prompts (paste --text-only output into agent context):

metagit prompt workspace -k session-start --text-only -c .metagit.yml
metagit prompt workspace -k context-pack --text-only -c .metagit.yml   # tier escalation guide

Escalation rules

  1. Start tier 0 when you only need catalog boundaries (search-before-create, layout planning).
  2. Move to tier 1 when git health, stack hints, or per-repo instructions matter.
  3. Use tier 2 at session open/return — digest includes first_session, manifest_changed, per-repo commit counts, active objective id.
  4. Tier 2 touches the session boundary — avoid running it from multiple agents simultaneously on a shared manifest (see multi-instance below).

Read the full file on GitHub · 278 lines

Changes

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.

  1. 9d ago First seen · 278 lines · 48 tokens per session scan A fea6dbf939ae

Subscribe to this mod's changes

metagit-context-pack is a skill published in the GitHub repository metagit-ai/metagit-cli (3 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 2,834 once invoked, about $0.0002 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-08-31.