notebook-ask

notebook-ask is a command for Claude Code from MarcosNahuel/antigravity-plugin-cc. It costs 0 tokens per session (793 once invoked), scanned A, original, MIT.

A question-and-answer command for a local notebook corpus previously built with /agy:notebook. It reads the small summaries for each document and answers with citations instead of reading the original documents.

In plain words
What is it for?
Use it to ask questions about notebook summaries and receive answers linked to the documents that support them.
Why use it?
It provides a cheaper, focused way to query an existing document collection when the full source files are not needed.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the antigravity plugin — 2 skills, 22 commands, 1 agent shipped together

Good fit Use it to ask questions about notebook summaries and receive answers linked to the documents that support them.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/marcosnahuel/antigravity-plugin-cc/notebook-ask
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.

Clone the repo
git clone --depth 1 https://github.com/MarcosNahuel/antigravity-plugin-cc

Made for: Claude Code.

Or install antigravity, the plugin that ships this one along with the rest of its 2 skills, 22 commands, 1 agent.

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 notebook-ask

README.md
[![agentmods](https://agentmods.dev/badge/commands/marcosnahuel/antigravity-plugin-cc/notebook-ask/github.svg)](https://agentmods.dev/commands/marcosnahuel/antigravity-plugin-cc/notebook-ask)
Your own site
<a href="https://agentmods.dev/commands/marcosnahuel/antigravity-plugin-cc/notebook-ask"><img src="https://agentmods.dev/badge/commands/marcosnahuel/antigravity-plugin-cc/notebook-ask/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 notebook-ask

Your own site · 80×15
<a href="https://agentmods.dev/commands/marcosnahuel/antigravity-plugin-cc/notebook-ask"><img src="https://agentmods.dev/badge/commands/marcosnahuel/antigravity-plugin-cc/notebook-ask.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 793 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.00000 $0.00793
Opus 5.5 $0.00000 $0.00317
Sonnet 5.5 $0.00000 $0.00159
Haiku 4.5 $0.00000 $0.00079

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

Security

Grade A, and why

notebook-ask 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 3mo 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.

plugins/antigravity/commands/notebook-ask.md · 67 lines

How it starts

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

Question-answering over a notebook corpus previously built by /agy:notebook. agy reads the small per-document summaries (not the originals) and answers with citations. Run /agy:notebook <folder> | <objective> first to build the corpus.

Raw user request: $ARGUMENTS

Phase 0 — Resolve corpus + answer path (ONE Bash call)

Parse $ARGUMENTS: split on the first |. Left = folder (the SAME folder used with /agy:notebook), right = question. If there is no |, the longest leading token that resolves to an existing directory is the folder and the rest is the question. If the question is empty, ask once and stop.

python - "$FOLDER_OR_SLUG" "$PREGUNTA" <<'PY'
import sys, os, re, glob, hashlib
folder, preg = sys.argv[1], (sys.argv[2] if len(sys.argv) > 2 else "")
def slug(s, n=60):
    return (re.sub(r"[^a-z0-9]+","-", os.path.basename(s.rstrip("/\\")).lower()).strip("-") or "x")[:n]
outdir = os.path.join("docs","agy","notebook", slug(folder))
summ = glob.glob(os.path.join(outdir, "*.resumen.md"))
if not summ:
    print(f"NO_CORPUS outdir={outdir}")           # corpus not built yet
    sys.exit(0)
ans_dir = os.path.join(outdir, "_respuestas"); os.makedirs(ans_dir, exist_ok=True)
qh = hashlib.sha1(preg.encode("utf-8")).hexdigest()[:6]
ans = os.path.join(ans_dir, f"{slug(preg, 40)}-{qh}.md")
print(f"OK SUMMARIES_DIR={os.path.abspath(outdir)} N={len(summ)} WRITE_FILE={os.path.abspath(ans)}")
PY
  • If it prints NO_CORPUS → tell the user to build the corpus first with /agy:notebook "<folder>" | <objective>, and stop.
  • Else capture SUMMARIES_DIR, N (number of summaries) and WRITE_FILE.

Phase 1 — Answer (ONE agy subagent)

Spawn ONE antigravity:agy-rescue subagent in MODE: notebook-ask:

MODE: notebook-ask
CWD: <absolute current working dir>
SUMMARIES_DIR: <SUMMARIES_DIR>
PREGUNTA: <question>
WRITE_FILE: <WRITE_FILE>
USER_TEXT:
(empty)

Phase 2 — Present

Read ONLY <WRITE_FILE> and present the answer verbatim, then note: how many summaries it drew from (N), and the saved path. Do NOT read the original documents or the per-document summaries yourself — agy already grounded the answer in them.

Read the full file on GitHub · 67 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. 3mo ago First seen · 67 lines · 0 tokens per session scan A df3a5efef731

Subscribe to this mod's changes

notebook-ask is a command published in the GitHub repository MarcosNahuel/antigravity-plugin-cc (34 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 793 tokens. 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.

Related

notebook-ask compared with commands from other repositories

notebook-ask next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
notebook-askMarcosNahuel/antigravity-plugin-ccCommand341mo agoMITA0Claude Code
gemini-imagegenVallykrie/gemini-swarm-skillCommand721d agoMITA22Claude Code
deepHayes-Zhang/deep-researchCommand46mo agoMITA27Claude Code
agy-debugAIgen-Solutions-s-r-l/agy-claude-pluginCommand16mo agoMITA25Claude Code
agy-reviewAIgen-Solutions-s-r-l/agy-claude-pluginCommand16mo agoMITA20Claude Code
agy-panelAIgen-Solutions-s-r-l/agy-claude-pluginCommand16mo agoMITA22Claude Code
agyAIgen-Solutions-s-r-l/agy-claude-pluginCommand16mo agoMITA14Claude Code