Works with the AI Agents you already use

    LocalCodeRAG: Offline Semantic Code Search & RAG Navigation

    by Chethanraj D.S

    1

    Air-gapped, AST-aware hybrid code retrieval engine for local semantic search and symbol navigation.

    $19.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    LocalCodeRAG: Offline Semantic Code Search & RAG Navigation

    LocalCodeRAG: Offline Semantic Code Search & RAG Navigation

    Example session with this skill installed

    Index my current repository and find where the JWT authentication verification is implemented.

    • Read your context and instructions
    • Compiled the localcoderag

    I have indexed the codebase and located the relevant logic for JWT authentication. The search utilized hybrid BM25 and vector ranking to identify the most relevant AST units.

    Code Retrieval Results

    Symbol / ChunkFile PathTypeMatch Score
    verify_jwt_tokensrc/auth/middleware.pyFunction0.942
    JWTValidatorsrc/auth/providers/jwt.pyClass0.887
    decode_payloadsrc/utils/crypto.pyFunction0.764
    AuthConfigurationconfig/settings.jsonJSON Object0.612

    Implementation Detail: verify_jwt_token

    def verify_jwt_token(token: str, secret: str) -> dict:
        """
        Validates the incoming RS256 encoded JWT. 
        Checks for expiration (exp) and issuer (iss) claims.
        """
        try:
            payload = jwt.decode(token, secret, algorithms=["RS256"])
            return payload
        except jwt.ExpiredSignatureError:
            raise AuthenticationError("Token has expired")
        except jwt.InvalidTokenError:
            raise AuthenticationError("Invalid token format")
    

    Next steps

    • Use local_find_references on verify_jwt_token to see which routes are protected.
    • Run local_codebase_stats to verify the total number of indexed symbols.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Coding assistants often struggle with large codebases, hitting context limits or leaking IP to cloud embedding providers. Generic RAG often chunks code at arbitrary byte offsets, breaking the logic of a function or class.

    What it does

    • AST-Boundary Chunking parses code along natural syntactic structures like functions, methods, and classes to preserve context.
    • Hybrid RRF Search combines BM25 lexical matching with dense vector similarity for high-precision retrieval.
    • 100% Offline Execution runs all embeddings and indexing on your local CPU with zero network calls.
    • Symbol Intelligence tracks definitions and call-site references across the entire repository.
    • Sub-10ms Latency provides near-instant search results using a local SQLite FTS5 backend.

    How it works

    1. Initialize the indexer on your repository to build the local SQLite database and AST maps.
    2. Search using natural language or keywords to locate relevant logic across files.
    3. Navigate directly to symbol definitions or find all references to a specific class or function.
    4. Monitor codebase health and index status via the stats command.

    Frameworks & tools

    Built for use with Claude Code, Cursor, and Windsurf via the MCP protocol. It uses Python, SQLite FTS5 for storage, and AST-based parsers for semantic code understanding.

    Why this beats prompting it yourself

    Standard prompts rely on the agent's limited context window or basic file-tree visibility. This skill provides a specialized retrieval engine that understands code structure, allowing the agent to "see" relevant logic in huge repos without manual file dragging or hitting token limits.

    Use cases

    • Indexing a legacy repository to understand complex logic flows quickly.
    • Finding specific implementations like JWT auth or database transactions without knowing filenames.
    • Performing impact analysis before refactoring a widely-used internal API.
    • Working in high-security, air-gapped environments where cloud AI APIs are restricted.

    Known limitations

    Supports specific file extensions including .py, .ts, .js, .json, and .md. Performance depends on local CPU for initial embedding generation.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    Standard RAG uses fixed-length chunks that often cut functions in half. This skill uses Abstract Syntax Tree (AST) parsing to ensure code is indexed by logical blocks (like full classes or methods), preserving the functional context your AI needs to provide accurate answers.

    Localcoderag MCP is fully compatible with any IDE or agent that supports the Model Context Protocol (MCP), including Claude Code, Cursor, and Windsurf. It acts as a bridge, allowing these tools to query your local codebase with high-precision semantic search.

    Yes, this skill is designed for high-security environments. All embedding generation, indexing, and retrieval occur entirely on your local machine using SQLite FTS5; no code or metadata is ever transmitted to a cloud provider.

    You receive the full MCP server package, including the Python-based indexing engine, the AST parser suite, and the SQLite search backend. The package includes documentation for integrating the server with your preferred MCP-compatible agent.

    The skill currently supports Python (.py), TypeScript (.ts), JavaScript (.js), JSON, and Markdown. While it is optimized for these languages, updates are released periodically to expand language support and improve indexing speed.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.