Skip to navigation

Get index statistics

Returns document and chunk counts, counts by source type and by agent, the embedding model, skipped files, the last rhebok bench report, the hook and MCP tiers, the hook threshold, and memory counts by kind. A machine that has never indexed answers zeros rather than an error.

Response

The index statistics.
documentsinteger
chunksinteger
by_sourcemap from strings to integers
Document count per source type.
sessions_by_agentmap from strings to integers

Indexed session count per agent id (claude-code, codex).

modelstring or null
The embedding model the index was built with, or null.
skippedlist of objects

Skipped files, without the ones the ignore list already covers.

skipped_ignoredinteger

How many skipped files the ignore list covers.

benchlist of objects or null
bench_provenanceobject or null
What the last bench run measured against, so two runs can be compared.
bench_atinteger or null
Unix seconds when the bench report was written.
tiersobject
hook_thresholddouble
memorymap from strings to integers

Memory count per kind (lesson, fact, episode).

Errors

421
Misdirected Request Error
500
Internal Server Error
503
Service Unavailable Error