monograph:monograph-search

monograph:monograph-search is a command for Claude Code from monoes/monomind. It costs 46 tokens per session (769 once invoked), scanned A, original, Apache-2.0.

A search command for a project knowledge graph, which is a connected index of files, code parts, documentation sections, and concepts. It supports exact word matching, meaning-based search, or a combination of both.

In plain words
What is it for?
Search for topics such as authentication flow, API design, functions, classes, files, or documentation sections, with optional filtering by result type.
Why use it?
It helps you find relevant project information when the exact wording is unknown or when a large codebase and its documentation are hard to navigate.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Good fit Search for topics such as authentication flow, API design, functions, classes, files, or documentation sections, with optional filtering by result type.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/monoes/monomind/monograph-search
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/monoes/monomind

Made for: Claude Code.

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 monograph:monograph-search

README.md
[![agentmods](https://agentmods.dev/badge/commands/monoes/monomind/monograph-search/github.svg)](https://agentmods.dev/commands/monoes/monomind/monograph-search)
Your own site
<a href="https://agentmods.dev/commands/monoes/monomind/monograph-search"><img src="https://agentmods.dev/badge/commands/monoes/monomind/monograph-search/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 monograph:monograph-search

Your own site · 80×15
<a href="https://agentmods.dev/commands/monoes/monomind/monograph-search"><img src="https://agentmods.dev/badge/commands/monoes/monomind/monograph-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 769 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.00046 $0.00769
Opus 5.5 $0.00018 $0.00308
Sonnet 5.5 $0.00009 $0.00154
Haiku 4.5 $0.00005 $0.00077

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

Security

Grade A, and why

monograph:monograph-search 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 yesterday.

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.

.claude/commands/monograph/monograph-search.md · 97 lines

How it starts

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

Search the knowledge graph using BM25 keyword search, semantic (embedding) search, or hybrid RRF-merged results.

Usage

npx monomind monograph search [options]

Options

Flag Short Type Default Required Description
--query -q string — yes Search query text
--limit -l number 15 no Maximum results to return
--label — string — no Filter by node type: Section, Function, Concept, File, Class
--mode -m string hybrid no Search mode: bm25, semantic, hybrid
--path -p string cwd no Root path (location of .monomind/monograph.db)

Examples

# Hybrid search (default) — best general-purpose
npx monomind monograph search -q "authentication flow"

# Keyword search — exact term matching
npx monomind monograph search -q "JWT" --mode bm25

# Semantic search — concept/meaning matching
npx monomind monograph search -q "pipeline architecture" --mode semantic

# Filter to doc sections only
npx monomind monograph search -q "API design" --label Section

# Find function definitions
npx monomind monograph search -q "parseToken" --label Function

# More results
npx monomind monograph search -q "error handling" -l 30

Search Modes

Mode Algorithm Best For
hybrid RRF merge of BM25 + semantic General purpose (recommended)
bm25 Full-text BM25 ranking Exact term matching, known symbol names
semantic Embedding cosine similarity Conceptual queries, meaning-based lookup

Hybrid mode runs both BM25 and semantic internally, then merges with Reciprocal Rank Fusion (RRF).

Node Labels (--label filter)

Label Represents
File Source or document files
Section Markdown headings / doc sections
Function Code functions and methods
Class Code classes and interfaces
Concept Extracted semantic concepts

Read the full file on GitHub · 97 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. yesterday First seen · 97 lines · 46 tokens per session scan A b238f10a4053

Subscribe to this mod's changes

monograph:monograph-search is a command published in the GitHub repository monoes/monomind (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 46 tokens to every session and 769 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-10-26.