Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

LMSpace

LMSpace is a CLI tool for managing workspace agents across different backends. It currently supports VS Code workspace agents with plans to add support for OpenAI Agents, Azure AI Agents, GitHub Copilot CLI and Codex CLI.

Features

VS Code Workspace Agents

Manage isolated VS Code workspaces for parallel agent development sessions:

  • Provision subagents: Create a pool of isolated workspace directories
  • Chat with agents: Automatically claim a workspace and start a VS Code chat session
  • Lock management: Prevent conflicts when running multiple agents in parallel

The project uses uv for dependency and environment management.

Prerequisites

  • Python 3.12+
  • uv installed locally (pip install uv)
  • VS Code installed for workspace agent functionality

Quick Start

Installation

# Install lmspace as a uv-managed tool (recommended for end users)
uv tool install lmspace

# Install via uv pip (useful when managing a virtualenv manually)
uv pip install lmspace

# Or for development
uv pip install -e .[dev]

Using VS Code Workspace Agents

  1. Provision and optionally warm up subagent workspaces:

    lmspace code provision --subagents 5 [--warmup]
    

    This creates 5 isolated workspace directories in ~/.lmspace/vscode-agents/. Add --warmup to open the newly provisioned workspaces immediately.

  2. Start a chat with an agent (async mode - default):

    lmspace code chat <prompt_file> "Your query here"
    

    This claims an unlocked subagent, copies your prompt file and any attachments, opens VS Code with a wakeup chatmode, and returns immediately. The agent writes its response to a file that you can monitor or read later.

  3. Start a chat with an agent (sync mode - wait for response):

    lmspace code chat <prompt_file> "Your query here" --wait
    

    This blocks until the agent completes and prints the response to stdout.

Command Reference

Provision subagents:

lmspace code provision --subagents <count> [--force] [--template <path>] [--target-root <path>] [--warmup]
  • --subagents <count>: Number of workspaces to create
  • --force: Unlock and overwrite all subagent directories regardless of lock status
  • --template <path>: Custom template directory
  • --target-root <path>: Custom destination (default: ~/.lmspace/vscode-agents)
  • --dry-run: Preview without making changes
  • --warmup: Launch VS Code for the provisioned workspaces once provisioning finishes

Warm up workspaces:

lmspace code warmup [--subagents <count>] [--target-root <path>] [--dry-run]
  • --subagents <count>: Number of workspaces to open (default: 1)
  • --target-root <path>: Custom subagent root directory
  • --dry-run: Show which workspaces would be opened

Start a chat with an agent:

lmspace code chat <prompt_file> <query> [--attachment <path>] [--wait] [--dry-run]
  • <prompt_file>: Path to a prompt file to copy and attach (e.g., vscode-expert.prompt.md)
  • <query>: User query to pass to the agent
  • --attachment <path> / -a: Additional files to attach (repeatable)
  • --wait / -w: Wait for response and print to stdout (sync mode). Default is async mode.
  • --dry-run: Preview without launching VS Code

Note: By default, chat runs in async mode - it returns immediately after launching VS Code, and the agent writes its response to a timestamped file in the subagent's messages/ directory. Use --wait for synchronous operation.

List provisioned subagents:

lmspace code list [--target-root <path>] [--json]
  • --target-root <path>: Custom subagent root directory
  • --json: Output results as JSON

Unlock subagents:

lmspace code unlock [--subagent <name>] [--all] [--target-root <path>] [--dry-run]
  • --subagent <name>: Specific subagent to unlock (e.g., subagent-1)
  • --all: Unlock all subagents
  • --target-root <path>: Custom subagent root directory
  • --dry-run: Show what would be unlocked without making changes

Development

# Install deps (from repo root)
uv pip install -e . --extra dev

# Run tests
uv run --extra dev pytest

Metadata

Release files for lmspace 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lmspace 0.2.0
File Size Uploaded
lmspace-0.2.0.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lmspace 0.2.0
File Interpreter ABI Platform
lmspace-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.6 kB

Release files / lmspace-0.2.0.tar.gz

Download URL lmspace-0.2.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
145bbf608afdc3da72743610198f5c777ba7e227edbda3338043f313be42df18
BLAKE2b-256 checksum
How to use checksums
05f26b221b169d4157a7abea6c67ec6ddddc55ec5c7e02ee7cd77996967b08dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / lmspace-0.2.0-py3-none-any.whl

Download URL lmspace-0.2.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e0a51be634793d85b6f5e98975a79ed9f47710bfd2856a4072cfa3a2f4087f6
BLAKE2b-256 checksum
How to use checksums
f88379eeb67f3238c702f0ee7311d09981a7953e06f92f118205add72e33c5d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page