SLG Semantic Git Search for Openclaw

A local-first CLI tool that enables natural language searching and semantic indexing of git history without requiring API keys.

venki0552
v1.0.0
Apr 4, 2026
1
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install slg-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install slg-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is SLG Semantic Git Search?

slg is a sophisticated utility designed for deep code archaeology within local repositories. By constructing a semantic index using a combination of embeddings and BM25, it allows developers to query their git history using natural language. This Openclaw Skills integration enables users to go beyond simple keyword searches, providing the ability to ask complex questions about the evolution of a codebase.

Because it runs entirely offline via ONNX Runtime, it ensures maximum privacy and speed for developers. It bridges the gap between raw git logs and actionable developer intent, making it easier to understand the context of every line of code without leaving the terminal or relying on cloud-based processing.

SLG Semantic Git Search Use Cases

  • Understanding the intent and reasoning behind legacy code or complex logic blocks.
  • Identifying the most relevant contributors and owners for specific files or directories.
  • Tracking down the origin of regressions using semantic descriptions of behavioral changes.
  • Generating semantic summaries of changes across significant commit ranges or releases.
  • Evaluating the potential side effects and technical risks of reverting specific commits.

How SLG Semantic Git Search Works

  1. The user initializes a local semantic index within the repository root to process commit messages and diffs.
  2. SLG generates embeddings and BM25 scores locally using the ONNX Runtime, ensuring no data leaves the machine.
  3. The tool monitors the repository and allows for incremental re-indexing as new commits are added.
  4. Users issue natural language queries which are parsed and matched against the semantic index to find the most relevant historical context.
  5. The system returns ranked results, such as commit reasoning, risk scores, or author rankings, based on the specific command used.

SLG Semantic Git Search Setup

To integrate this skill into your environment, install the package globally via npm. This tool is a key part of the Openclaw Skills ecosystem for local git intelligence.

npm install -g slg-cli

Navigate to your git repository and initialize the index:

slg init

To ensure your index remains up to date or to troubleshoot issues, use the following commands:

slg reindex
slg doctor

SLG Semantic Git Search Data Schema & Taxonomy

SLG manages a local database and index to map git history to searchable vectors. The following table describes how it organizes this data:

Component Description
Semantic Index A local store of vector embeddings representing commit messages and code diffs.
BM25 Index A traditional text-search index used to augment semantic results with keyword relevance.
Contribution Map A ranked list of contributors based on the volume and semantic weight of their changes to specific paths.
Risk Analysis Metadata associated with commits that calculates the potential impact of changes or reverts.

SLG Semantic Git Search Advanced Features

  • Built-in Model Context Protocol (MCP) server support, allowing AI agents to perform git archaeology autonomously.
  • Semantic bisecting capabilities that identify bugs based on descriptive behavior rather than strict error logs.
  • Local-first architecture that functions entirely offline without the need for external LLM API keys.
  • Support for advanced filtering by path, date ranges, and commit limits for targeted searches.
  • Automated risk scoring for commits to help maintain repository stability during refactors.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*