/install semantic-code-search
Semantic Code Search
Find code by meaning, not just text. Search across codebases using natural language intent.
Quick Start
from code_search import CodeIndex, SemanticSearch
index = CodeIndex("/path/to/codebase")
index.build() # Parse AST, generate embeddings
search = SemanticSearch(index)
results = search.query("how is authentication handled?")
results = search.similar_to("src/auth/login.py:validate_token")
How It Works
- Parse — Walk codebase, extract functions/classes with AST
- Embed — Generate vector embeddings from code + docstrings
- Index — Store in vector index with metadata (file, line, type)
- Search — Query by intent or find similar code
Search Types
- Intent search: "find error handling patterns" → returns matching code
- Similarity search: Given a function, find others doing the same thing
- Structural search: Find all functions matching a call pattern
- Duplicate detection: Find code doing the same thing differently
CLI
python3 scripts/search.py index /path/to/codebase
python3 scripts/search.py query "database connection setup"
python3 scripts/search.py similar src/db/connect.py:10
python3 scripts/search.py duplicates
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install semantic-code-search - After installation, invoke the skill by name or use
/semantic-code-search - Provide required inputs per the skill's parameter spec and get structured output
What is Semantic Code Search?
Semantic search engine for codebases that understands intent and finds functionally similar code. Use when searching code by meaning rather than text, findin... It is an AI Agent Skill for Claude Code / OpenClaw, with 85 downloads so far.
How do I install Semantic Code Search?
Run "/install semantic-code-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Semantic Code Search free?
Yes, Semantic Code Search is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Semantic Code Search support?
Semantic Code Search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Semantic Code Search?
It is built and maintained by Evez666 (@evezart); the current version is v1.0.0.