Install
openclaw skills install semanticfsSearch your local filesystem and codebase semantically. Use instead of grep/find/ls/cat chains when looking for files, functions, symbols, or code patterns. Returns exact file paths, line numbers, and code snippets. Much faster and uses far fewer tokens than manual file exploration.
openclaw skills install semanticfsSemanticFS provides semantic search over your local filesystem. Instead of running multiple grep/find/ls/cat commands to locate code or files, ask SemanticFS once and get back exact paths and line ranges.
Use this skill whenever you need to:
grep, find, ls, or cat commandsDo not use this skill if:
semanticfs index build first)SemanticFS must be installed and the target directory must be indexed:
# Install (Linux/macOS)
curl -sSfL https://raw.githubusercontent.com/Navneeth08k/semanticFS/main/scripts/install.sh | bash
# Index your workspace
semanticfs --config ~/semanticfs.toml index build
SemanticFS must be running before you can search:
# Start HTTP server (runs in background)
semanticfs --config ~/semanticfs.toml serve mcp &
# Check it's up
curl -s http://localhost:9464/health/live && echo "SemanticFS is running"
If you get a connection refused error, the server is not running. Start it with the command above.
Replace grep -r "pattern" . with:
curl -s -X POST http://localhost:9464/search \
-H "Content-Type: application/json" \
-d '{"query": "YOUR QUERY HERE", "limit": 10}' \
| python3 -c "
import sys, json
data = json.load(sys.stdin)
for r in data.get('hits', []):
print(f\"{r['path']}:{r['start_line']}-{r['end_line']} {r.get('snippet','')[:100]}\")
"
Example queries:
"Python function signature extraction""CLI argument parsing entry point""database connection pool""error handling file upload""AuthService login method"Replace ls -la src/ or tree src/ with:
curl -s "http://localhost:9464/map?path=src" \
| python3 -c "import sys, json; print(json.dumps(json.load(sys.stdin), indent=2))"
Use path=. for the workspace root.
Search results are returned as:
path/to/file.py:40-95 extract_signatures_python — extracts function signatures from...
Each result includes:
Always read the specific lines from the file to verify before acting on them.
semanticfs index build)semanticfs index build to refreshNo results returned:
semanticfs --config ~/semanticfs.toml healthConnection refused:
semanticfs --config ~/semanticfs.toml serve mcp &Stale results after code changes:
semanticfs --config ~/semanticfs.toml index buildsemanticfs --config ~/semanticfs.toml index updateDiagnose the full setup:
semanticfs --config ~/semanticfs.toml doctor