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.
git clone --depth 1 https://github.com/MarcosNahuel/antigravity-plugin-ccWrote 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/marcosnahuel/antigravity-plugin-cc/doc-to-md)<a href="https://agentmods.dev/commands/marcosnahuel/antigravity-plugin-cc/doc-to-md"><img src="https://agentmods.dev/badge/commands/marcosnahuel/antigravity-plugin-cc/doc-to-md/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/marcosnahuel/antigravity-plugin-cc/doc-to-md"><img src="https://agentmods.dev/badge/commands/marcosnahuel/antigravity-plugin-cc/doc-to-md.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.00034 | $0.00805 |
| Opus 5 | $0.00017 | $0.00402 |
| Sonnet 5 | $0.00007 | $0.00161 |
| Haiku 4.5 | $0.00003 | $0.00081 |
Grade A, and why
doc-to-md 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.
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Route this to the antigravity:agy-rescue subagent in MODE: doc-to-md.
Raw user request: $ARGUMENTS
Routing rules
-
Parse the file path: the first whitespace-separated token of
$ARGUMENTSthat resolves to an existing file (check withtest -f) IS the source file. Convert relative paths to absolute. If no valid file is found, ask once: "Which file should I convert?". -
Extraction focus: everything else in
$ARGUMENTS(anything that's not the path) is optional natural-language guidance on what to focus on (e.g., "extract only the pricing tables and ignore the legal boilerplate"). Empty by default = "produce a faithful full-fidelity markdown conversion". -
Detect file type via extension:
.pdf→ PDF (multimodal).docx,.doc→ Word (multimodal or text).png,.jpg,.jpeg,.webp,.gif→ image (multimodal — OCR + structure inference).html,.htm→ HTML (text)- other → text or warn
-
Slug: lowercase the source filename base (without extension), non-alphanumeric →
-, collapse repeats, trim to 60 chars. -
Date: today in
YYYY-MM-DD(local time). -
Paths (relative to current working directory):
OUTPUT_DIR=docs/agy/converted/WRITE_FILE=docs/agy/converted/<date>-<slug>.md
-
Pre-flight (ONE
Bashcall):mkdir -p docs/agy/converted -
Hand off: pass this header to the subagent:
MODE: doc-to-md SOURCE_FILE: <absolute path> FILE_TYPE: pdf|docx|image|html|other FOCUS: <natural-language focus or empty> CWD: <absolute path to current working directory> WRITE_FILE: docs/agy/converted/<date>-<slug>.md
Operating rules
- The subagent invokes agy with
--add-dir <CWD>so it can write the result. - For PDF / docx / image, agy uses Gemini's multimodal vision capabilities — preserves tables, lists, headings, code blocks. Inline images become
placeholders. - The subagent reports:
- Saved markdown path.
- Original file path and detected type.
- First ~30 lines of the conversion (preview).
- Pages/sections processed.
- Present that to the user as-is.
- If the file is too large (>200 MB) or the format is unsupported, surface the error verbatim. Suggest splitting or pre-processing.
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.
- 9d ago First seen · 68 lines · 34 tokens per session scan A e8cdfe615746
doc-to-md is a command published in the GitHub repository MarcosNahuel/antigravity-plugin-cc (28 stars, last pushed 24d ago), licensed MIT. It adds 34 tokens to every session and 805 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-30.
Other commands, from other repositories
council-extract
Extract a completed Perplexity Model Council response from the current browser tab, converting it to structured markdown with model attribution, and save to disk.
paper-trail-cascade
Acquire PDFs via the 8-source cascade (11 with opt-in extended sources) for a single ref by slug, or a batch filtered by state. Validates page 1 anti-homonymy on each download.
docs
Document delivery with export to PPTX, DOCX, PDF formats.
generate
Generate structured Obsidian Markdown from existing OCR text (requires rawtext.json).
report
Render the latest audit as a deliverable report in Markdown / HTML / PDF / JSON / PNG.
notebooklm
Google NotebookLM programmatic access — create notebooks, manage sources (URLs, PDFs, YouTube, Drive), generate audio/video/slides/quizzes, and chat with documents. Use when building a research notebook, generating a podcast from docs, or querying a source collection. Triggers on notebooklm, podcast from docs…