pub const TROUBLESHOOTING: &str = r#"
## Common Issues
### Tool Returns Empty Results
If `subcog_recall` returns no results:
1. **Check status**: Use `subcog_status` tool to verify index exists
2. **Try broader query**: Use simpler search terms
3. **Check namespace**: Remove namespace filter to search all
```json
{
"tool": "subcog_status",
"arguments": {}
}
```
### "Secret detected" Error
The `subcog_capture` tool blocked content with potential secrets:
1. Remove the secret from content
2. Check `~/.config/subcog/config.toml`:
- `[features] secrets_filter = false` to disable secrets filtering
### "Index not found"
Call the status tool to trigger initialization:
```json
{
"tool": "subcog_status",
"arguments": {}
}
```
### Slow Search Performance
1. Reduce `limit` parameter (default 10, max 50)
2. Use `mode: "text"` for faster keyword-only search
3. Add `namespace` filter to narrow scope
```json
{
"tool": "subcog_recall",
"arguments": {
"query": "specific term",
"mode": "text",
"namespace": "decisions",
"limit": 5
}
}
```
## Report Issues
GitHub: https://github.com/zircote/subcog/issues
"#;Expand description
Troubleshooting documentation.