Skip to main content

Interactive CLI prompt exploration toolkit powered by LLMs. Manipulate prompts through transforms, navigate perspectives, compare models, and evaluate across the full space of possible answers.

Project description

spaceshift

An interactive CLI prompt exploration toolkit powered by LLMs. Manipulate prompts through transforms, navigate the full space of perspectives, and evaluate across prompts and models to find what works best.

Full documentation at spcshft.com

spaceshift main menu

pip install spaceshift
spaceshift

Pick a mode, pick a model from categorized rankings, enter your prompt. Results save as structured markdown with YAML frontmatter, and the built-in viewer opens automatically.


Install

pip install spaceshift

On first run, spaceshift guides you through setting up API keys:

$ spaceshift

No API keys found. Let's set up your providers.

  OpenAI (press Enter to skip): sk-proj-...
   OpenAI key saved

  Anthropic (press Enter to skip): sk-ant-...
   Anthropic key saved

  Google Gemini (press Enter to skip): [Enter]
  Together.AI (press Enter to skip): [Enter]
  xAI (press Enter to skip): [Enter] Configuration saved to ~/.spaceshift/config.json

Keys are stored in ~/.spaceshift/config.json and available globally. Update them anytime via the Manage API Keys option in the main menu.


Modes

Prompt Manipulate

Transform a prompt through 22 built-in operations — abstraction up/down, inversion, reflection, rotation, dimension shifts, translations, and more — then optionally generate responses for each variant.

Prompt Manipulate transform selection

Prompt Tree

Explore a prompt in three directions simultaneously: sub (decomposition into specifics), super (abstraction upward), and side (lateral alternatives). Configure depth per direction through a guided wizard.

Prompt Tree wizard

Prompt Chain

Build a multi-turn conversation by adding followups one at a time. Each turn runs with full prior context and saves alongside the chain history.

Prompt Chain followups

Compare Models

Run the same prompt across multiple models and rank the responses. Optionally add pairwise evaluation with a judge model and auto-generated or custom metrics.

Compare Models with pairwise evaluation

Grid Search and Evaluation

Sweep across models × transforms simultaneously and rank every combination to find what works best.


Viewing Results

Browse any output directory in the browser with the built-in viewer:

spaceshift view output_directory

Two-panel layout: sidebar with smart-sorted file list, content area with rendered markdown and frontmatter metadata cards. No dependencies — runs on Python's stdlib server with client-side markdown rendering.


Advanced Usage

While spaceshift is designed as a CLI tool, advanced users can import and use the underlying modules programmatically. This is unsupported — the CLI is the primary interface, and internal APIs may change without notice.

For those who want to explore anyway, the main modules are in spaceshift/ including LLM, prompt_tree, compare_models, grid_search, etc. See the source code for details.

Project details


Download files

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

Source Distribution

spaceshift-2.0.0.tar.gz (86.5 kB view details)

Uploaded Source

Built Distribution

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

spaceshift-2.0.0-py3-none-any.whl (107.2 kB view details)

Uploaded Python 3

File details

Details for the file spaceshift-2.0.0.tar.gz.

File metadata

  • Download URL: spaceshift-2.0.0.tar.gz
  • Upload date:
  • Size: 86.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for spaceshift-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7b08df1313cc8993b09e823cd633ba0e6d8e8f78e0718e3c7e38d03c9a5e3726
MD5 8a4eb16e21fd4e4fccf620be9e680bc6
BLAKE2b-256 aaf47b9ace3155b1b738677c571334b17b5fb7f51cbb66958d682c908bba113e

See more details on using hashes here.

File details

Details for the file spaceshift-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: spaceshift-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 107.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for spaceshift-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64a2f09455600f89749bcfdfdcf7a16292507494d291b78ed6e66c5d830e45a8
MD5 30b49fdcb94b3eb0fb0684299527e6d1
BLAKE2b-256 c4a68f51fdc42547d964d4881f932c670fd5b1a1f948508379c1401ca5786bb2

See more details on using hashes here.

Supported by

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