Skip to main content

Interactive CLI research toolkit powered by LLMs. Branch into questions through tree structures, navigate perspectives, compare models, and explore the full space of possible answers.

Project description

spaceshift

An interactive CLI research toolkit powered by LLMs. Branch into questions through tree structures, navigate the full space of perspectives, and grid-search evaluate across prompts and models to find what works best.

Full documentation at spcshft.com

# Launch interactive mode
spaceshift

# Select from guided menus:
# → Deep Research — decompose topics across all angles
# → Prompt Manipulate — explore prompt transformations
# → Compare Models — rank model responses
# → Grid Search — search across models × transforms
# → Prompt Tree — visualize exploration paths

All functionality is also available as a Python library for programmatic use.


Install

pip install spaceshift

On first run, spaceshift will guide you through setting up your 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 securely in ~/.spaceshift/config.json and available globally. You can update or add keys anytime via the "Manage API Keys" option in the main menu.

For Python library usage: You can still use a .env file in your project directory - it will be loaded automatically when you import spaceshift.


Interactive CLI

Launch the interactive mode:

spaceshift

The CLI guides you through:

  • Deep Research — Decompose a topic and explore all angles (sub/super/side directions)
  • Prompt Manipulate — Transform prompts and explore variations
  • Compare Models — Run the same prompt across models and rank responses
  • Grid Search — Search across models × transforms simultaneously
  • Prompt Tree — Visualize the exploration space
  • Manage API Keys — Add, update, or view your configured API providers

Select your research mode, pick a model from categorized rankings (optimal, best, fast, cheap, open), enter your prompt, and let spaceshift generate comprehensive research outputs. Results are saved as structured markdown with YAML frontmatter, and the built-in viewer opens automatically.

After research completes, an autonomous agent post-processes all outputs to generate synthesis documents that help you understand the overall findings. The agent reads all markdown files, analyzes the tree structure, and decides what synthesis documents would be most valuable — updating you on progress along the way.


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, research_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-1.1.1.tar.gz (76.7 kB view details)

Uploaded Source

Built Distribution

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

spaceshift-1.1.1-py3-none-any.whl (97.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spaceshift-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d0d8bbc5ce4133ad50827e509c3e133a9f6b9c8b6d4b71190cb9e5bef050c348
MD5 1f93e51784cd52aed792c2f6bc60d478
BLAKE2b-256 66897209cb1abde402cefe47a6187b1a2053517bab8c511eaed62a1eea6b0bad

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spaceshift-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51f19f42683c1a271ee014c55ef3fccb18bbccfae9c7e52bcd2f514c9c17c01b
MD5 713f97740780a8873ec722bb0bd928a9
BLAKE2b-256 27948723bebfe681c13f7c406781eb1aeee7a4f43db3e0adb656902e49188253

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