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. Semantic search queries an existing corpus index; basemode-loom does not
build embeddings for ordinary loom databases.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file basemode_loom-0.2.0.tar.gz.
File metadata
- Download URL: basemode_loom-0.2.0.tar.gz
- Upload date:
- Size: 374.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffea36b74a1675acf3d5da883645e1660212879549302477c75d2e533ff611f3
|
|
| MD5 |
eb688bab9591c4641b8188fbf51e7c6e
|
|
| BLAKE2b-256 |
db9e42eb07cba6345e5a5faa37235717e2a393c3293c5cd9c32c3fe7febc2f92
|
File details
Details for the file basemode_loom-0.2.0-py3-none-any.whl.
File metadata
- Download URL: basemode_loom-0.2.0-py3-none-any.whl
- Upload date:
- Size: 89.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a80e66a8316126784be4fb8cec84e7973c81818282c2ad6443501022ce25217
|
|
| MD5 |
140c6722490c98648a6f19bedbfc47c8
|
|
| BLAKE2b-256 |
f446a74123878dbe3f7d650f74c2ed7ddcfd9696227988da2d58692780ac6785
|