Skip to main content

Second Brain 2

Second Brain 2 is a local-first knowledge repository toolkit for Markdown and Git. It uses deterministic SQLite FTS5 retrieval plus explicit structural signals. There are no embeddings, ANN indexes, model downloads, or similarity-service dependencies.

Quick start

$ pip install second-brain-opencode
$ mkdir knowledge && cd knowledge
$ git init -b main
$ sb2 init .
$ sb2 index rebuild --apply
$ sb2 search "project decision" --explain

Initialization creates a .secondbrain control directory and a wiki workspace without overwriting existing notes. Canonical changes are designed to be reviewed, validated, and committed through Git.

Security model

Repository content is untrusted data. Paths are constrained to the repository, generated local artifacts are write-protected, and remote egress is classification aware: restricted content cannot leave the machine and confidential content requires explicit confirmation by default.

Install the project-local OpenCode integration after reviewing its dry run:

$ sb2 opencode diff --repo .
$ sb2 opencode install --repo . --apply

See Quick start, architecture, CLI reference, OpenCode integration, team workflow, and security.

Development

$ python -m pytest --cov=second_brain --cov-fail-under=80
$ python -m ruff check src tests
$ python -m mypy src/second_brain

Licensed under the MIT License.

Download files

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

Source Distribution

second_brain_opencode-0.1.0.tar.gz (58.9 kB view details)

Uploaded Source

Built Distribution

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

second_brain_opencode-0.1.0-py3-none-any.whl (97.2 kB view details)

Uploaded Python 3

File details

Details for the file second_brain_opencode-0.1.0.tar.gz.

File metadata

  • Download URL: second_brain_opencode-0.1.0.tar.gz
  • Upload date:
  • Size: 58.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for second_brain_opencode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab799c81ed07cc11bde7412a1a10cea50e42b1e8d0c629fbdaeb2b82a700afd4
MD5 5b48525da345e1a33a76e3c6dd83e7b7
BLAKE2b-256 7abfee0a61437133ebd14a4b543b71f67c7fb6484645fe663f8d31c319519e77

See more details on using hashes here.

File details

Details for the file second_brain_opencode-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for second_brain_opencode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9820fb056351f54c31a5cdebbfb8cc52b021f7f3c766b41fe4525b96b826a77
MD5 efd2c47156b1f1f9a8d5faf84328d607
BLAKE2b-256 7c04fa9b9aabee472d9d53c716c9fff8ddd3a3ed2d9652b1febf3914f0ca4322

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

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