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.
npx skills add metagit-ai/metagit-cli --skill metagit-workspace-grepgit clone --depth 1 https://github.com/metagit-ai/metagit-cliWrote 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/metagit-ai/metagit-cli/metagit-workspace-grep)<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-workspace-grep"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-workspace-grep/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/metagit-ai/metagit-cli/metagit-workspace-grep"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-workspace-grep.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.00044 | $0.00629 |
| Opus 5.5 | $0.00018 | $0.00252 |
| Sonnet 5.5 | $0.00009 | $0.00126 |
| Haiku 4.5 | $0.00004 | $0.00063 |
Grade A, and why
metagit-workspace-grep 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 — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Workspace content grep
Use this skill when you need file contents inside managed repos. Use metagit search / metagit_repo_search only for catalog metadata (names, URLs, tags).
Scaffold paths (node_modules, .venv, __pycache__, .git, etc.) are always excluded.
Modalities (same semantics)
| Modality | Search | Ripgrep / backend status |
|---|---|---|
| CLI | metagit workspace grep "QUERY" … |
metagit workspace grep info [--json] |
| MCP (ACTIVE gate) | metagit_workspace_search |
metagit_workspace_grep_info |
HTTP (metagit api serve) |
GET /v2/workspace/grep?q=… |
GET /v2/workspace/grep/info |
| Web UI | Workspace Console → Grep tab | (uses HTTP grep routes) |
CLI examples
# whole workspace
metagit workspace grep "DATABASE_URL" --json
# one project
metagit workspace grep 'module "vpc"' --project platform --json
# one repo + context lines
metagit workspace grep "def main" --project portfolio --repo api -C 2 --json
# paths only
metagit workspace grep "TODO" --files-with-matches --limit 50
# backend status (install ripgrep for best performance)
metagit workspace grep info --json
Run metagit workspace grep --help for the full example list.
MCP (metagit_workspace_search)
Required: query. Optional: repos, preset, intent, paths, exclude, context_lines, include_paths, max_results.
{"query": "DATABASE_URL", "max_results": 25}
{"query": "module", "preset": "terraform", "repos": ["infra/vpc"]}
metagit_workspace_grep_info — no arguments; returns ripgrep_available, ripgrep_path, ripgrep_version, search_backend.
Related: metagit_workspace_discover lists files by intent or pattern (no line content).
HTTP API
GET /v2/workspace/grep?q=…— optionalproject,repo(repeatable),preset,intent,max_results,context_lines,include_paths=trueGET /v2/workspace/grep/info— ripgrep status JSON
When not to use
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 · 65 lines · 44 tokens per session scan A e8bc565bec3a
metagit-workspace-grep is a skill published in the GitHub repository metagit-ai/metagit-cli (4 stars, last pushed 24d ago), licensed MIT. It adds 44 tokens to every session and 629 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.
Other skills, from other repositories
idapython
IDA Pro Python scripting for reverse engineering. Use when writing IDAPython scripts, analyzing binaries, working with IDA's API for disassembly, decompilation (Hex-Rays), type systems, cross-references, functions, segments, or any IDA database manipulation. Covers ida modules (50+), idautils iterators, and common…
gh
GitHub CLI skill for interacting with GitHub via the gh command line tool. Use when Bub needs to (1) Create, view, or manage GitHub repositories, (2) Work with issues and pull requests, (3) Create and manage releases, (4) Run and monitor GitHub Actions workflows, (5) Create and manage gists, (6) Install and manage…
issue-assessment
Use when triaging a GitHub issue for gflow-cli — a reporter's bug claim, a freshly-filed issue, or deciding whether and how to act on one. Also use when an autonomous agent (hermes-ops) picks up a labelled issue. Read-only: produces a verdict, an end-to-end-verifiability judgment, and a reporter-facing reply. Does not…
triage
Diagnose and fix broken MCP servers in mcptoon — doctor, health, per-server probes, and the common failure playbook.
merge
Resolve an in-progress merge or rebase by the intent of both sides, re-run the full gate on the merged tree, and finish the operation.
release
MUST READ before preparing a release commit or GitHub release -- the blocking GitHub preflight (dev/releasepreflight.py), project.save() versioning, changelog, README, template sync verification, fresh-install smoke, and the post-push GitHub release procedure (references/github-release.md).