/recall Command
Search and retrieve memories from hAIveMind collective knowledge base
recall - Memory Retrieval
Purpose
Search and retrieve stored memories from the hAIveMind collective knowledge base using advanced semantic and text-based search capabilities.
When to Use
- Historical Research: Find past incidents, solutions, or decisions
- Learning from Experience: Discover how similar problems were solved
- Context Gathering: Get background before starting new tasks
- Documentation Lookup: Find stored procedures, configs, or guides
- Pattern Recognition: Identify recurring issues or successful approaches
- Knowledge Discovery: Explore collective expertise on topics
Syntax
recall "search query" [category] [options]
Parameters
- search query (required): What to search for (can be natural language)
- category (optional): Narrow search to specific types
infrastructure,incidents,security,deployments,monitoring,runbooks
- options (optional):
--recent=hours: Limit to memories from last N hours--limit=N: Maximum results to return (default: 10)--machine=name: Search memories from specific machine--detailed: Include full memory content in results--timeline: Sort results chronologically
Search Capabilities
Semantic Search
- Understands context and meaning, not just keywords
- Finds conceptually related information
- Works with natural language queries
- Excellent for exploratory research
Full-Text Search
- Exact phrase matching with quotes: "error 502"
- Boolean operators: elasticsearch AND performance
- Wildcard matching: mysql*
- Technical term precision
Hybrid Intelligence
- Combines semantic understanding with precise text matching
- Ranks results by relevance and recency
- Filters duplicate or near-duplicate memories
- Provides confidence scores
Real-World Examples
Incident Investigation
recall "database connection timeout errors" incidents --recent=168
Result: Recent database connectivity issues, solutions, and patterns
Configuration Research
recall "nginx ssl configuration best practices" infrastructure
Result: SSL setup guides, security configurations, and lessons learned
Security Analysis
recall "JWT vulnerability" security --detailed --timeline
Result: Chronological view of JWT-related security findings with full details
Performance Optimization
recall "elasticsearch slow queries" --machine=elastic1 --limit=15
Result: Performance issues specific to elastic1 with comprehensive results
Natural Language Query
recall "Why did the deployment fail last Tuesday?"
Result: Deployment-related failures around the specified timeframe
Expected Output
Standard Recall Results
š Memory Recall: "database connection timeout errors" (incidents, last 168 hours)
š Search Results: 8 memories found (87% confidence)
š Time Range: 2025-01-17 to 2025-01-24
š·ļø Category: incidents
š“ [HIGH RELEVANCE] 2025-01-23 14:30:00 | elastic1
ā³ Database Connection Pool Exhaustion - Production Impact
ā³ MySQL connection timeouts during peak traffic, resolved with pool tuning
ā³ Tags: mysql, connection-pool, performance, production
ā³ Memory ID: mem-20250123-1430-001
š” [MEDIUM] 2025-01-22 09:15:00 | mysql-primary
ā³ Slow Query Causing Connection Backlog
ā³ Long-running analytics query blocked connection pool
ā³ Tags: mysql, slow-query, connection-timeout
ā³ Memory ID: mem-20250122-0915-087
š” [MEDIUM] 2025-01-20 16:45:00 | auth-server
ā³ Redis Connection Timeout Configuration
ā³ Adjusted Redis timeout settings for auth service stability
ā³ Tags: redis, timeout, configuration, auth-service
ā³ Memory ID: mem-20250120-1645-234
š [RELEVANT] 2025-01-19 11:20:00 | proxy1
ā³ Network Latency Causing DB Timeouts
ā³ High network latency between proxy and database servers
ā³ Tags: network, latency, database, timeout
ā³ Memory ID: mem-20250119-1120-156
š Related Patterns:
ā³ Connection pool tuning: 4 memories
ā³ Timeout configuration: 6 memories
ā³ Performance optimization: 12 memories
š” Suggestions:
ā³ Search "connection pool optimization" for tuning guides
ā³ Search "mysql timeout configuration" for specific settings
ā³ Check recent monitoring data with: recall "database metrics" monitoring --recent=24
Detailed Memory Content
š Detailed Recall: "nginx ssl configuration" (infrastructure)
š 1 memory found with full content:
š [INFRASTRUCTURE] 2025-01-18 10:30:00 | lance-dev
ā³ Title: Production Nginx SSL/TLS Configuration
ā³ Author: lance-dev-agent
ā³ Tags: nginx, ssl, tls, security, production
ā³ Memory ID: mem-20250118-1030-445
š Full Content:
Production-ready Nginx SSL configuration:
server { listen 443 ssl http2; server_name example.com;
# SSL Certificate Configuration
ssl_certificate /etc/ssl/certs/example.com.crt;
ssl_certificate_key /etc/ssl/private/example.com.key;
# SSL Security Settings
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512;
ssl_prefer_server_ciphers off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 1d;
# HSTS (HTTP Strict Transport Security)
add_header Strict-Transport-Security "max-age=63072000" always;
# OCSP Stapling
ssl_stapling on;
ssl_stapling_verify on;
location / {
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
Security notes:
- Disabled TLSv1.0 and TLSv1.1 for PCI compliance
- HSTS header prevents downgrade attacks
- OCSP stapling improves SSL handshake performance
- Tested with SSL Labs rating A+
š Related Memories: ā³ SSL certificate renewal process (mem-20250115-0830-221) ā³ Nginx performance optimization (mem-20250112-1445-089) ā³ Security headers configuration (mem-20250110-0920-334)
## Advanced Search Techniques
### Time-Based Searches
recall "deployment issues" --recent=48 # Last 48 hours recall "security patches" --recent=720 # Last 30 days
### Machine-Specific Searches
recall "performance issues" --machine=elastic1 recall "configuration changes" --machine=auth-server
### Category-Focused Searches
recall "backup procedures" runbooks recall "vulnerability assessment" security recall "load balancer config" infrastructure
### Boolean and Phrase Searches
recall "elasticsearch AND optimization" recall '"502 bad gateway"' # Exact phrase recall "mysql NOT postgres" # Exclude terms
## Performance Optimization
- **Search Speed**: ~200-500ms for most queries
- **Large Results**: Use --limit to control result size
- **Semantic Processing**: Slightly slower but more intelligent
- **Cache Benefits**: Repeated searches return faster
- **Network Efficiency**: Results compressed for fast transfer
## Error Scenarios and Solutions
### No Results Found
š« No memories found for: "rare-specific-term" š” Suggestions: ā³ Try broader terms: "database" instead of "mysql-5.7.33" ā³ Check other categories: try "infrastructure" or "incidents" ā³ Expand time range: remove --recent filter ā³ Use semantic search: natural language instead of keywords
### Too Many Results
ā ļø Search returned 247 results (showing top 10) š” Refinement options: ā³ Add category filter: recall "server" infrastructure ā³ Reduce time scope: --recent=72 ā³ Be more specific: "server CPU usage" instead of "server" ā³ Increase limit: --limit=25 to see more results
### Low Confidence Results
š¤ Low confidence results (34% average) š” Improvement suggestions: ā³ Check spelling and try synonyms ā³ Use different search terms ā³ Try category-specific search ā³ Ask specialized agent: hv-query instead of recall
## Best Practices
- **Start Broad**: Begin with general terms, then narrow down
- **Use Categories**: Filter by category for focused results
- **Natural Language**: Don't hesitate to use conversational queries
- **Time Context**: Use --recent for current issue investigation
- **Follow Patterns**: Use "Related Patterns" suggestions for deeper research
- **Combine Approaches**: Use both recall and hv-query for comprehensive research
## Related Commands
- **For expert answers**: Use `hv-query` to consult specialized agents
- **To save findings**: Use `remember` to store your own discoveries
- **For real-time help**: Use `hv-delegate` to get immediate assistance
- **To share results**: Use `hv-broadcast` to inform collective
---
**Search Query**: $ARGUMENTS
This will search the collective memory using advanced semantic and text-based algorithms to find the most relevant historical information for your query.