metagit-workspace-scope

metagit-workspace-scope is a skill for Claude Code, Codex from metagit-ai/metagit-cli. It costs 42 tokens per session (1,128 once invoked), scanned A, original, MIT.

A workspace-scoping skill for projects spread across multiple repositories. It identifies the active projects, repository boundaries, synchronization state, and the part of the workspace relevant to the current task.

In plain words
What is it for?
Use it when starting multi-repository work to gather workspace context, run status and boundary checks, and provide that context to an orchestrator.
Why use it?
It prevents an agent from editing the wrong repository or working outside the requested scope.

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 Use it when starting multi-repository work to gather workspace context, run status and boundary checks, and provide that context to an orchestrator.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metagit-ai/metagit-cli/metagit-workspace-scope
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-workspace-scope
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-workspace-scope

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-workspace-scope"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-workspace-scope.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,128 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.00042 $0.01128
Opus 5.5 $0.00017 $0.00451
Sonnet 5.5 $0.00008 $0.00226
Haiku 4.5 $0.00004 $0.00113

Measured 2mo ago against content hash 0f93472704e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

metagit-workspace-scope 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 2mo 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-workspace-scope/SKILL.md · 121 lines

How it starts

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

Discovering Workspace Scope

Use this skill at session start for workspace-aware tasks. Prefer metagit-context-pack for the full tiered pack workflow; this skill focuses on scope boundaries and Hermes wiring.

Do not dump the umbrella manifest. metagit workspace list --json is a paged index (no summary.workspace). Use --project on packs and workspace repo list --json --detail slim. 500+ repos: metagit prompt workspace -k large-workspace --text-only.

Workflow

  1. Run context pack (tier 0 minimum, tier 2 at session open):
export METAGIT_AGENT_MODE=true
metagit context pack --tier 0 --json --project <name> -c .metagit.yml
metagit prompt workspace -k session-start --text-only -c .metagit.yml
  1. Run workspace gate and status checks.
  2. Build a compact map of active project names, repo names, and sync state from pack JSON.
  3. Report a bounded scope for the current objective.

Hermes session bootstrap

Wire into Hermes (or any orchestrator) before the first tool call on a workspace task.

export METAGIT_AGENT_MODE=true
PACK_JSON="$(metagit context pack --tier 0 --json -c .metagit.yml)"
PROMPT_TEXT="$(metagit prompt workspace -k session-start --text-only -c .metagit.yml)"
Integration point What to inject
Hermes system / bootstrap template PROMPT_TEXT verbatim; summarize PACK_JSON map + health flags
Pre-turn shell hook Run commands; append stdout to conversation context
Subagent dispatch Tier-1 pack scoped with --project/--repo + subagent-handoff prompt
MCP-connected Hermes metagit_context_pack tier 0 (paged map), then workspace resources

Token-tight alternative: tier 0 pack + session-start prompt only.

See metagit-context-pack for tier escalation, objectives, approvals, and repomix.

Commands

Gate check (pick one):

SKILL_ROOT="$(python3 -c "import metagit, pathlib; print(pathlib.Path(metagit.__file__).parent / 'data/skills/metagit-gating')")"
"$SKILL_ROOT/scripts/gate-status.sh" [root_path]
# inline fallback:
metagit mcp serve --status-once --root .

Read the full file on GitHub · 121 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. 2mo ago Changed · +18 lines 0f93472704e8
  2. 3mo ago First seen · 103 lines · 42 tokens per session scan A 3944c22290fb

Subscribe to this mod's changes

metagit-workspace-scope is a skill published in the GitHub repository metagit-ai/metagit-cli (4 stars, last pushed 27d ago), licensed MIT. It adds 42 tokens to every session and 1,128 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-08-31.

Related

metagit-workspace-scope compared with skills from other repositories

metagit-workspace-scope next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
metagit-workspace-scopemetagit-ai/metagit-cliSkill427d agoMITA42Claude Code, Codex
ghbubbuild/bubSkill1.7k3d agoApache-2.0A96Claude Code, Codex
releasedylanroscover/EmbodySkill225yesterdayMITA63Claude Code
clawrium-release-announcementsric03uec/clawriumSkill68yesterdayApache-2.0A24Claude Code, Codex
merge-divergent-toxdylanroscover/EmbodySkill225yesterdayMITA74Claude Code
python-formatGoldziher/ai-rulezSkill1826d agoMITA16Claude Code
servicenow-studio-gitlab-appKnuckles-Team/servicenow-apiSkill202d agoMITA92Claude Code, Codex