Skip to main content
Silica Core

Retrieval tools for coding agents. No model in the loop.

Point it at a folder and the agent you already use gets five tools that return located evidence, never answers.

PyPI License

Silica works over the markdown, code, PDFs and office files under one root and serves them to Claude Code, Cursor, Zed, Codex and every other harness it knows, as MCP tools or as shell commands that print the same JSON. A hit is a path, a section, a line, a window of text and the numbers to judge it by. Silica never answers, summarises, plans or remembers for you: the harness owns the loop.

Install

uv tool install 'silica-core[mcp]'

pipx install 'silica-core[mcp]' works the same. The package is silica-core, the command is silica, the tools are silica_*: the distribution carries the name, the code keeps the namespace.

Quickstart

In any folder of markdown, code, PDFs or office files:

silica init                               # adopt the folder and build the first index
silica search "leveled compaction" -k 5  # return the best located passages
silica setup claude                      # register the same tools as an MCP server

silica search "leveled compaction" over nine LSM papers: the hit carries the file, p. 5 and the passage; beside it the PDF is open on that page with the same passage highlighted

Nine arXiv papers in a folder, indexed in 2.1 s. The hit names the file, the page and the passage, and the page beside it is the check, not a promise.

Benchmarks

Silica's closest comparisons are zvec-grep and ck: local retrieval tools over files. Each arm received the same BEIR SciFact and NFCorpus documents and queries. Scores are nDCG@10 (higher is better), shown as SciFact · NFCorpus.

Mode Silica zvec-grep 0.2.2 ck 0.7.11
Lexical 0.662 · 0.311 0.649 · 0.297 0.630 · 0.289
Hybrid, same potion-retrieval-32M embedder 0.675 · 0.328 0.672 · 0.330

Silica's lexical index needs no model; the competitors serve lexical search from an index that also includes embeddings. BEIR's published BM25 baselines are 0.665 · 0.325. The hybrid difference between Silica and zvec-grep is statistical noise at the 95% interval. See benchmarks for corpora, methods, intervals and commands.

Tools

Tool Shell Returns
silica_files silica files the inventory and what the index did with each file: indexed, changed, excluded, failed, unconverted
silica_search silica search ranked passages: path, section, line, raw BM25, matched terms, coverage, and the query terms absent from the corpus
silica_read silica read a slice by lines or by heading (a page, in a PDF), the outline, and a version to carry forward
silica_code_pack silica code-pack an AST context pack for one source file inside a character budget
silica_write_note silica write-note one atomic write, linted for structure and unresolved wikilinks

Search indexes markdown and the PDFs that carry a text layer. Source files are not in the index: silica_files lists a .py as excluded, silica_read serves it by line and silica_code_pack by file. To find a symbol in a repository, grep wins. The contract, the reply shapes and the acceptance checks are in TOOLS.md; nothing there needs an API key, a model or a network.

How search says no

A ranked list always has a top, even when the corpus does not answer. Three fields show how much the result is worth:

  • coverage: the share of the query's idf mass the hit's matched terms carry. Near 1, every rare term matched; near 0, only common words did.
  • terms_absent: query terms that occur nowhere in the corpus.
  • matched_terms: which words this hit actually contains.

silica search "raft consensus log replication" over the same nine papers: terms_absent lists raft and consensus, coverage falls to 0.19, and the top hit is a passage about data replication rather than Raft

raft consensus log replication over the same nine papers: raft and consensus occur in none of them, coverage falls to 0.19, and the top hit is about data replication, not Raft. Silica exposes the signals and lets the harness decide whether to stop, read or rephrase.

Ranking is BM25 over documents, then over the heading sections of the top documents, returning each hit's densest window. --also QUERY ranks another query group separately and fuses the results, useful for searching a concept and its exact identifiers together. Searches refresh small changes inline; larger ones return stale with pending until silica index catches up, and interrupted builds resume. Use <root>/.silicaignore to exclude content.

The dense leg

Optional section embeddings catch paraphrases that share no rare words with the answer. After they are built, every search fuses them with BM25. Use any OpenAI-compatible /v1/embeddings endpoint:

ollama pull nomic-embed-text
export SILICA_EMBEDDING_BASE_URL=http://localhost:11434/v1 SILICA_EMBEDDING_MODEL=nomic-embed-text
silica index --embed

Or use a local static model, with no server:

uv tool install 'silica-core[mcp,dense]'
export SILICA_EMBEDDING_MODEL=model2vec/minishlab/potion-retrieval-32M
silica index --embed

Text leaves the machine only for an endpoint that is not on it, and only after silica index --embed --allow-remote grants that host once. Until then search stays lexical. The reply always says whether the dense leg ran.

What it reads

  • PDF with a text layer: searched directly, one section per page; no conversion or sidecar.
  • Scanned PDF, image, PPTX, XLSX: silica import uses MinerU to create a guarded .md sidecar. Silica reports it as stale if the source changes.
  • DOCX, EPUB, FB2, RTF, XLS, ODF: converted with no extra.
  • Audio and video: ffmpeg plus SILICA_STT_BASE_URL.
  • CSV and other data files: readable by line but excluded from search.

silica doctor says which lanes this machine has. Extras: [connect] adds the Obsidian bridge, [dense] the local embedder, [all] everything.

Harnesses

silica setup <client> writes the registration into the client's own config. It backs up existing config and refuses malformed files. silica setup --list shows paths for claude, codex, cursor, windsurf, zed, cline, roo, continue, goose, opencode, openhands, gemini, dsh, claude-desktop, lmstudio, anythingllm and librechat; shell, python and generic print recipes for anything else. By default the server serves the folder the client opens in; use --vault DIR or SILICA_VAULT for a fixed root.

npx skills add kiycoh/silica-core installs the skill that tells an agent when to reach for the tools. It installs nothing else: on its own it leaves an agent holding instructions for tools that are not there. Setup details, shell recipes, Docker and the optional REPL are in docs/harnesses.md.

Other surfaces

  • Extended tools: silica mcp --extended adds the wikilink tools, silica_links, silica_backlinks, silica_orphans and silica_unresolved, over the same root.
  • Obsidian: silica connect hosts the bridge the Obsidian plugin dials into, so writes land through the vault API while the app is open. The five core tools do not need it.
  • REPL: silica repl runs a small reference agent over the same tools. It is the only surface that needs a model (SILICA_MODEL).

The core keeps no memory lane, prompt injection, summaries or undo journal. Undo is git.

License

MIT. See LICENSE.

Download files

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

Source Distribution

silica_core-0.8.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

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

silica_core-0.8.0-py3-none-any.whl (228.0 kB view details)

Uploaded Python 3

File details

Details for the file silica_core-0.8.0.tar.gz.

File metadata

  • Download URL: silica_core-0.8.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for silica_core-0.8.0.tar.gz
Algorithm Hash digest
SHA256 2e969f21c9923695b67bded77b9c3ec9dae34f6dd5cd79e8a18718a4660a9834
MD5 0a225b6cfe92b2d13653dbf4716ca32c
BLAKE2b-256 6068f31c70ed3d7b9066736e2162ac8d0a9cb12c9533d794fa8f9d553a9993ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for silica_core-0.8.0.tar.gz:

Publisher: release.yml on kiycoh/silica-core

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

File details

Details for the file silica_core-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: silica_core-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 228.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for silica_core-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d58a8bfd66e266dc3dad49c520ea9cea4e8da9ce2747a74b3da8174fad8507
MD5 96ae4a86a5687532c2660e8d04ea3b0d
BLAKE2b-256 af3141c6e5303d0c4d2dea04dfebfd71789c56d10674679e6758e525213e4727

See more details on using hashes here.

Provenance

The following attestation bundles were made for silica_core-0.8.0-py3-none-any.whl:

Publisher: release.yml on kiycoh/silica-core

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

Release history Release notifications | RSS feed

0.8.2

2 files

0.8.1

2 files

This release

0.8.0 This release

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

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