ask

ask is a command for coding agents from frankchu91/mindbase-llm-wiki. It costs 36 tokens per session (509 once invoked), scanned A, original, MIT.

A command for asking questions about a MindBase wiki, a collection of linked project notes. It searches the notes, follows nearby links, reads relevant pages, and returns an answer with citations.

In plain words
What is it for?
Use it to ask about a project’s stored research, decisions, or notes. Choose a project with `-p` or search across all projects with `--all-projects`.
Why use it?
It avoids manually searching many pages and helps include related information connected through wiki links. It can search one project or all projects.

Command

Part of the mb plugin — 1 skill, 12 commands, 5 agents, 1 hook, 1 MCP server shipped together

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.

agentmods
npx agentmods add commands/frankchu91/mindbase-llm-wiki/ask
Clone the repo
git clone --depth 1 https://github.com/frankchu91/mindbase-llm-wiki

Or install mb, the plugin that ships this one along with the rest of its 1 skill, 12 commands, 5 agents, 1 hook, 1 MCP server.

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 ask

README.md
[![agentmods](https://agentmods.dev/badge/commands/frankchu91/mindbase-llm-wiki/ask.svg)](https://agentmods.dev/commands/frankchu91/mindbase-llm-wiki/ask)
Your own site
<a href="https://agentmods.dev/commands/frankchu91/mindbase-llm-wiki/ask"><img src="https://agentmods.dev/badge/commands/frankchu91/mindbase-llm-wiki/ask.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00036 $0.00509
Opus 5 $0.00018 $0.00254
Sonnet 5 $0.00007 $0.00102
Haiku 4.5 $0.00004 $0.00051

Measured 5d ago against content hash eacde455e56f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 5d 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.

apps/plugin/commands/ask.md · 33 lines

What it actually says

Query the user's MindBase wiki.

Arguments: $ARGUMENTS

Parse:

  • --project <id> or -p <id> flag → target project id (mutually exclusive with --all-projects).
  • --all-projects flag → search across all projects, not just current.
  • Remaining text = the question.

If both --project and --all-projects provided, tell the user to pick one. If question empty, ask "What do you want to know about your wiki?"

Procedure:

  1. Call mindbase_search_wiki({ query, projectId?, limit: 8 }) for fast keyword candidates.
  2. Call mindbase_ask_wiki({ query, projectId? }) for graph-aware retrieval (top hits + 1-hop wikilink neighbors).
  3. Read the top 3-5 hits via mindbase_read_wiki_page({ slug }).
  4. Synthesize a cited answer. Inline citations as [<slug>:<line-range>]. List sources at the end with full paths.
  5. If --all-projects, use mindbase_search_all_projects instead of the per-project tools in steps 1-2.

projectId in the MCP calls: pass user's -p value; if -p absent AND --all-projects absent, MCP tools default to config.json currentProjectId. -p does NOT change current project.

After answering, ASK the user: "Save this answer as a wiki page?" If yes, call mindbase_save_chat_excerpt or mindbase_contribute (mode=concept, pass same projectId) to file it back. This is the Karpathy "good answers compound" loop.

Do not invent facts. If the wiki doesn't contain the answer, say so explicitly — never silently fall back to general knowledge.

Examples:

  • /mb:ask "how did I resolve auth ambiguity" → current project
  • /mb:ask -p ai-agents "what's my stance on agent marketplaces" → ai-agents
  • /mb:ask --all-projects "RAG vs fine-tuning" → all projects
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. 5d ago First seen · 33 lines · 36 tokens per session scan A eacde455e56f

Subscribe to this mod's changes

ask is a command published in the GitHub repository frankchu91/mindbase-llm-wiki (93 stars, last pushed 11d ago), licensed MIT. It adds 36 tokens to every session and 509 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.