Local-first codebase intelligence for CLI workflows.
Sia Code helps you:
- search and research code with lexical, semantic, or hybrid retrieval
- run multi-hop architecture research across files, symbols, and repos
- trace historical file and behavior changes (
memory trace,memory git-context) - inspect blast radius before refactors
- work across big repos, multi-repo workspaces, and git worktrees
- Local index. No hosted service required.
- Works well on big repos (think ~5,000 files, not only small projects).
- Aggregates
search,research, andstatusacross multiple repos in one workspace. - Handles both architecture questions and history-aware change questions.
- Good fit for MCP clients and skill-based CLI agents.
# MCP + CLI
uv tool install "sia-code[mcp]"
# CLI only
uv tool install sia-codeIf you prefer pip, pip install sia-code and pip install "sia-code[mcp]" also work.
Source skill file:
skills/sia-code/SKILL.md
Ask your agent to install from the file link.
uv tool install "sia-code[mcp]"
sia-code-mcpSimple JSON reference:
{
"mcpServers": {
"sia-code": {
"command": "uvx",
"args": ["--from", "sia-code[mcp]", "sia-code-mcp"]
}
}
}Then point your MCP client at sia-code-mcp.
See docs/MCP_INTEGRATION.md and docs/LLM_CLI_INTEGRATION.md.
# initialize + index
uvx sia-code init
uvx sia-code index .
# lexical search for exact symbols
uvx sia-code search --regex "AuthService|token"
# hybrid / semantic-style research
uvx sia-code research "how does authentication work?"
# historical change research
uvx sia-code memory trace "why did auth behavior change" --format table
uvx sia-code memory git-context src/auth.py- Big repo: built for real codebases with thousands of files, including ~5,000-file projects
- Multi-repo workspace: run
index .from parent folder; Sia Code auto-detects git sub-repos, indexes each, then aggregatessearch,research, andstatus - Git worktrees / multi-agent sessions: use shared or isolated indexes with
SIA_CODE_INDEX_SCOPE=shared|worktree
# shared index across worktrees/agents
export SIA_CODE_INDEX_SCOPE=shared
# isolated index per worktree
export SIA_CODE_INDEX_SCOPE=worktreeUse Sia Code for both code lookup and change understanding:
search-> lexical, semantic, or hybrid retrievalresearch-> multi-hop architecture tracing across related files and symbolsmemory sync-git-> imports merges/tags as searchable timeline + changelog contextmemory trace-> explains likely causal history for behavior or symbol changesmemory git-context <file>-> shows effective file history, likely owners, reverts, evolution narrative, and co-change blast radiusmemory working-set "query"-> emits compact shared JSON context for agent handoff
docs/CLI_FEATURES.mddocs/INDEXING.mddocs/QUERYING.mddocs/MEMORY_FEATURES.mddocs/MCP_INTEGRATION.mddocs/LLM_CLI_INTEGRATION.mddocs/ARCHITECTURE.md
MIT