basemode-loom
Persistent branching exploration for LLM continuations.
basemode-loom lets you generate multiple continuations, navigate a tree of alternatives, and keep everything in a local SQLite store so you can resume later.
Install
pip install basemode-loom
Quickstart
# Create a new tree with 3 branches
basemode-loom run "The ship rounded the headland and" -n 3 -m gpt-4o-mini
# Open the interactive explorer
basemode-loom view
# Continue from selected branch
basemode-loom continue -b 2 -n 3
Core Commands
basemode-loom --help
basemode-loom view --help
basemode-loom run --help
basemode-loom continue --help
basemode-loom stats --help
basemode-loom serve --help
Useful commands:
basemode-loom view: interactive TUI tree explorerbasemode-loom run: create a new tree from a promptbasemode-loom continue: branch from current/selected nodebasemode-loom nodes|active|show|children: inspect stored treesbasemode-loom stats: analyze tree depth/branching/model usagebasemode-loom export|import: move trees in/out as JSON/Markdownbasemode-loom serve: run REST/WebSocket API for frontend usage
Tree Search
The TUI tree picker (Tab) supports live metadata filtering, category/domain/
source/model facets, ID lookup, FTS5 keyword search, and semantic search when
the selected database contains a compatible vector index.
Guardian Angel corpora use the optional MLX search dependencies:
pip install 'basemode-loom[embed-mlx]'
basemode-loom view --db /path/to/corpus.sqlite
Press / in the tree picker, enter a query, and press Enter to rank matching
trees. Build or update an embedding index directly with:
basemode-loom embed --db /path/to/corpus.sqlite --model mlx
basemode-loom embed --db /path/to/corpus.sqlite --model mlx --incremental
The MLX model is downloaded lazily on first use. Embedding dependencies remain
isolated in the optional embed and embed-mlx installation extras.
Model Selection
- TUI model picker is available via
m. - Picker can consume verified model metadata from
basemodewhen available. - Session state supports model-plan metadata for multi-model generation workflows.
- Force OpenRouter passthrough for new/unknown IDs with
-m "or:vendor/model"(oropenrouter:vendor/model), e.g.-m "or:moonshotai/kimi-k2.6".
Storage
By default, data is stored in a local SQLite DB under your user data directory.
Use --db /path/to/file.sqlite to choose a custom location.
Docs
Project docs live in docs/ (MkDocs):
make docs
make docs-serve
Then open http://localhost:8001.
Metadata
Release files for basemode-loom 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| basemode_loom-0.5.3.tar.gz | 406.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| basemode_loom-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 512.5 kB
Release files / basemode_loom-0.5.3.tar.gz
| Download URL | basemode_loom-0.5.3.tar.gz |
|---|---|
| Size | 406.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea3ef82374c62de90178acb50cedf8133c9e0d33608f352d3f927fd2c5a3750a
|
|
BLAKE2b-256 checksum How to use checksums |
461c5860998c3497a5e7bea8a9f96095ca36811d4b6ce2c604d8d7757d0bcc30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / basemode_loom-0.5.3-py3-none-any.whl
| Download URL | basemode_loom-0.5.3-py3-none-any.whl |
|---|---|
| Size | 106.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
994ddb65d4fa93ade878a656e4aa146977085acb0f6dd0cdf1baa5857a8c01fa
|
|
BLAKE2b-256 checksum How to use checksums |
ccfb4ced3f3d91eb352eea79293e7891244b7db5d86396e36a7fac2cfaea07f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|