Skip to main content
Index markdown and text files for semantic search. Useful for searching project documentation alongside code or building RAG pipelines.

Collections

Organize documents into searchable groups:
# Add a collection
codanna documents add-collection docs docs/

# List collections
codanna documents list

# Remove a collection
codanna documents remove-collection docs

Indexing

Index all configured collections:
codanna documents index
Disable progress bars:
codanna documents index --no-progress
Index a specific collection:
codanna documents index --collection docs

Searching

CLI

codanna documents search "authentication flow"
codanna documents search "error handling" --collection docs --limit 5

MCP

codanna mcp search_documents query:"setup guide" limit:5
codanna mcp search_documents query:"configuration" collection:docs

Configuration

Document settings in .codanna/settings.toml:
[documents]
enabled = true

[documents.collections.docs]
paths = ["docs/"]
patterns = ["**/*.md"]

Next Steps

Languages

Supported programming languages.

Customization

Configure document collections.