← 返回
未分类 中文

Semantic Grep

Offline local semantic code search using embeddings to find and index code by meaning with llama.cpp, ONNX, or Ollama backends.
离线本地语义化代码搜索,使用嵌入向量依据含义查找并索引代码,支持 llama.cpp、ONNX 或 Ollama 后端。
rizperdana rizperdana 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 310
下载
💾 0
安装
1
版本
#latest

概述

semgrepll - Local Semantic Code Search

Description

Local semantic grep using embeddings - 100% offline capable with llama.cpp, ONNX, and Ollama backends. Use when searching code semantically, finding code by meaning, or indexing projects for AI-powered search.

Triggers

  • "search code semantically"
  • "find code by meaning"
  • "semantic grep"
  • "index project for search"
  • Commands: semgrep index, semgrep search

Actions

  • Index projects: semgrep index /path/to/project
  • Search: semgrep search "query"
  • List: semgrep ls
  • Remove: semgrep rm

Environment Variables (optional)

VariableDefaultDescription
---------------------------------
EMBED_BACKENDautoBackend: llama, onnx, ollama
LLM_MODEL_PATH-Path to GGUF model (llama.cpp)
ONNX_MODEL_PATHautoPath to ONNX model
SEMGREP_BACKENDautoStorage: sqlite, lance
EMBED_MODELmxbai-embed-large-v1Embedding model

Installation

pip install semgrepll
# Optional: ONNX support
pip install semgrepll[onnx]

Examples

  • "Index my project for semantic search" → runs semgrep index ./project
  • "Find authentication code" → runs semgrep search "authentication"
  • "Search for payment processing" → runs semgrep search "payment processing"

Requirements

  • Python 3.10+
  • One of: llama-cpp-python, onnxruntime, or Ollama running locally

Notes

  • 100% offline - no external API calls
  • Auto-detects fastest available backend
  • Embeddings cached for fast re-indexing

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 12:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,979
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,707
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,651