sia-code

Search and analyze codebases with BM25 lexical search and multi-hop research.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/DxTa/dotfiles --skill sia-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sia-code
Source: https://github.com/DxTa/dotfiles/tree/main/opencode/skills/sia-code
Command: npx skills add https://github.com/DxTa/dotfiles --skill sia-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides advanced local-first codebase search and analysis capabilities, enabling developers to understand, navigate, and research unfamiliar or complex codebases efficiently.

Core Features & Use Cases

  • Lexical-first Search: Utilizes BM25 and FTS5 for highly accurate code searching (89.9% Recall@5).
  • Multi-hop Research: Traverses code relationships to answer complex questions about architecture and dependencies.
  • Project Memory: Stores and retrieves historical decisions, changelogs, and technical insights.
  • Use Case: When encountering a large, unfamiliar codebase, use this Skill to trace the authentication flow, understand error handling mechanisms, and find specific implementation patterns.

Quick Start

Initialize the sia-code index for the current project by running uvx sia-code init followed by uvx sia-code index ..

Frequently Asked Questions about sia-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search an unfamiliar codebase to understand its architecture?

To search an unfamiliar codebase for architecture analysis, you can use local-first codebase intelligence to perform lexical-first BM25 search and multi-hop research. This traces code relationships to map dependencies and identify implementation patterns across 12 supported languages.

What is the best way to trace authentication flows across a complex project?

Tracing authentication flows across a complex project is best handled by multi-hop research, which traverses code relationships to answer complex questions. This approach identifies specific implementation patterns and error handling mechanisms without requiring prior knowledge of the codebase.

Does local-first code search support AST parsing for multiple programming languages?

Local-first code search supports AST parsing across 12 programming languages. This enables accurate code analysis and dependency mapping, while offering optional semantic search via embeddings to supplement the lexical-first BM25 and FTS5 search mechanisms.

How do I initialize and index a local project for code research?

To initialize and index a local project for code research, run `uvx sia-code init` followed by `uvx sia-code index .` in your project directory. This builds the local index required for lexical search and multi-hop research.

Can I store and retrieve historical technical decisions when analyzing a codebase?

You can store and retrieve historical technical decisions using built-in project memory. This feature records changelogs and architectural insights locally, allowing you to maintain context and track historical decisions while researching complex or unfamiliar codebases.

When should I use lexical search instead of semantic search for code analysis?

Lexical search should be used as the primary method for code analysis because it utilizes BM25 and FTS5 to achieve 89.9% Recall@5. Semantic search via embeddings is optional and supplements lexical search when deeper contextual matching is required.