Skip to main content

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 explorer
  • basemode-loom run: create a new tree from a prompt
  • basemode-loom continue: branch from current/selected node
  • basemode-loom nodes|active|show|children: inspect stored trees
  • basemode-loom stats: analyze tree depth/branching/model usage
  • basemode-loom export|import: move trees in/out as JSON/Markdown
  • basemode-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 basemode when available.
  • Session state supports model-plan metadata for multi-model generation workflows.
  • Force OpenRouter passthrough for new/unknown IDs with -m "or:vendor/model" (or openrouter: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

basemode_loom-0.4.1.tar.gz (397.7 kB view details)

Uploaded Source

Built Distribution

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

basemode_loom-0.4.1-py3-none-any.whl (99.6 kB view details)

Uploaded Python 3

File details

Details for the file basemode_loom-0.4.1.tar.gz.

File metadata

  • Download URL: basemode_loom-0.4.1.tar.gz
  • Upload date:
  • Size: 397.7 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for basemode_loom-0.4.1.tar.gz
Algorithm Hash digest
SHA256 5bdc82034cedadba11f02dbf691c6ccaffa5fdb8df01eb9fffe4802d040464a3
MD5 55a5c6f5652a00188a1ebff87aac31eb
BLAKE2b-256 db9ca74b567955d4567067ec9fd461a5091e1d7f6f30a2cef64d7949bbebb5df

See more details on using hashes here.

File details

Details for the file basemode_loom-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: basemode_loom-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 99.6 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for basemode_loom-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0618b560001758f596671d456a0f8427af23874b994b0420a103d5bc9f9f4cd7
MD5 721fe1ca6b4e8c5c9622ccf89ef2a721
BLAKE2b-256 d24d0d7f75827e5bcedebabcc9469530f5b5d41b2352b895e070c21daf98ac42

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.1

2 files

0.5.0

2 files

This release

0.4.1 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page