Skip to main content

Sia Code

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

Why use it

  • Local index. No hosted service required.
  • Works well on big repos (think ~5,000 files, not only small projects).
  • Aggregates search, research, and status across multiple repos in one workspace.
  • Handles both architecture questions and history-aware change questions.
  • Good fit for MCP clients and skill-based CLI agents.

Install

# MCP + CLI
uv tool install "sia-code[mcp]"

# CLI only
uv tool install sia-code

If you prefer pip, pip install sia-code and pip install "sia-code[mcp]" also work.

Quick start

1) Skill first

Source skill file:

  • skills/sia-code/SKILL.md

Ask your agent to install from the file link.

2) MCP

uv tool install "sia-code[mcp]"
sia-code-mcp

Simple 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.

3) Direct CLI

# 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 repos, multiple repos, worktrees

  • 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 aggregates search, research, and status
  • 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=worktree

History-aware understanding

Use Sia Code for both code lookup and change understanding:

  • search -> lexical, semantic, or hybrid retrieval
  • research -> multi-hop architecture tracing across related files and symbols
  • memory sync-git -> imports merges/tags as searchable timeline + changelog context
  • memory trace -> explains likely causal history for behavior or symbol changes
  • memory git-context <file> -> shows effective file history, likely owners, reverts, evolution narrative, and co-change blast radius
  • memory working-set "query" -> emits compact shared JSON context for agent handoff

More docs

  • docs/CLI_FEATURES.md
  • docs/INDEXING.md
  • docs/QUERYING.md
  • docs/MEMORY_FEATURES.md
  • docs/MCP_INTEGRATION.md
  • docs/LLM_CLI_INTEGRATION.md
  • docs/ARCHITECTURE.md

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sia_code-0.8.2.tar.gz (167.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sia_code-0.8.2-py3-none-any.whl (175.6 kB view details)

Uploaded Python 3

File details

Details for the file sia_code-0.8.2.tar.gz.

File metadata

  • Download URL: sia_code-0.8.2.tar.gz
  • Upload date:
  • Size: 167.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sia_code-0.8.2.tar.gz
Algorithm Hash digest
SHA256 0c64d35fad81c6452b474fbc0d72f32eb0b57b82cb3e758d3e11a806ff6f9eca
MD5 57ad286271707eb1bd543e6a222b7131
BLAKE2b-256 976660364b82fd589e47f56255e36c335af3ab105f06a65a6714bb3b508a0b18

See more details on using hashes here.

Provenance

The following attestation bundles were made for sia_code-0.8.2.tar.gz:

Publisher: release.yml on DxTa/sia-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sia_code-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: sia_code-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 175.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sia_code-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f39bf08c7bc87fc9a9d23580f30480416e2799efae16eb74dd53dbc418c4e028
MD5 ee86b6c169563226840458c4fe25148e
BLAKE2b-256 3530126326feb459c1644ba48d99f2e61773691e43ab47e62d2ce5d310c0a76a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sia_code-0.8.2-py3-none-any.whl:

Publisher: release.yml on DxTa/sia-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.8.2 This release

2 files

0.8.1

2 files

0.8.0

2 files

0.7.3

2 files

0.7.2

2 files

0.7.0

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page