Search project memory semantically using natural language
Search your codebase semantically using natural language. Find relevant code snippets, functions, and concepts across all indexed files with AI-powered matching.
/plugin marketplace add squirrelsoft-dev/infinite-memory/plugin install infinite-memory@squirrelsoft-dev-toolsPerform semantic search across indexed code using natural language queries.
Extract the query from command arguments ($ARGUMENTS)
Call the query_memory MCP tool:
Format results clearly and naturally:
Offer to explain or dive deeper:
User: /search authentication middleware
Your Response:
Found 5 matches for "authentication middleware":
1. src/middleware/auth.py (94% match)
JWT authentication middleware that validates tokens on protected routes.
Extracts user from token and adds to request context.
Key function: authenticate_request(request)
2. src/config/auth.py (87% match)
Authentication configuration including JWT secret, token expiry,
and middleware initialization.
3. tests/test_auth_middleware.py (78% match)
Test suite for authentication middleware covering token validation,
expired tokens, and invalid signatures.
Would you like me to explain how the authentication middleware works,
or dive deeper into any of these files?
When suggesting queries to users, recommend:
If total_results: 0:
Users can customize searches:
/search "error handling" --limit 10 (show up to 10 results)/search "UserModel" --threshold 0.8 (higher precision, fewer results)/search "async await" --limit 20 --threshold 0.6 (broad search)This command calls the existing query_memory MCP tool - no new code needed.
The tool returns JSON with tiered results (full content, snippets, paths only).