DocsAgent is a local-first documentation engine designed to perform lightning-fast hybrid search (text and semantic search) over your private local files.
DocsAgent is a CLI toolkit, when you install the global docsagent package, You can directly use 'docsagent' command.
npm install @docsagent/docsagent
For more information, please see https://github.com/docsagent/docsagent.
Adds directory or file paths (PDF, DOCX, PPTX) to the index. You can pass multiple paths at once.
# Add a single directory
docsagent add ./documents/manuals
# Add multiple files and directories at once
docsagent add ./reports/q1.pdf ./presentation.pptx ./notes/meeting-files
Performs a hybrid search (text + semantic) across your indexed private documents.
# Search for a specific topic
docsagent search "how to configure local encryption"
# Search for technical concepts
docsagent search "API authentication process"
The tool returns the most relevant snippets with their source paths and scores.
add operation before searching.Lists all files currently being monitored or indexed.
docsagent list
Shows the indexing progress and service health.
docsagent status
Stops the indexing service.
docsagent stop
search first.search with a specific query derived from the user's request.search returns "No results found", inform the user and ask if they want to index a specific directory using add.add, verify the path exists before retrying.共 1 个版本