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.

Metadata

Release files for second-brain-opencode 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for second-brain-opencode 0.1.0
File Size Uploaded Provenance Actions
second_brain_opencode-0.1.0.tar.gz 58.9 kB Without provenance Details for second_brain_opencode-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for second-brain-opencode 0.1.0
File Interpreter ABI Platform Actions
second_brain_opencode-0.1.0-py3-none-any.whl Python 3 none any Details for second_brain_opencode-0.1.0-py3-none-any.whl

Total release size: 156.1 kB

Release files / second_brain_opencode-0.1.0.tar.gz

Download URL second_brain_opencode-0.1.0.tar.gz
Size 58.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ab799c81ed07cc11bde7412a1a10cea50e42b1e8d0c629fbdaeb2b82a700afd4
BLAKE2b-256 checksum
How to use checksums
7abfee0a61437133ebd14a4b543b71f67c7fb6484645fe663f8d31c319519e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / second_brain_opencode-0.1.0-py3-none-any.whl

Download URL second_brain_opencode-0.1.0-py3-none-any.whl
Size 97.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9820fb056351f54c31a5cdebbfb8cc52b021f7f3c766b41fe4525b96b826a77
BLAKE2b-256 checksum
How to use checksums
7c04fa9b9aabee472d9d53c716c9fff8ddd3a3ed2d9652b1febf3914f0ca4322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for second-brain-opencode 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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