Skip to main content

Runner that provisions subagents from configs

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

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 and Azure AI Agents.

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 subagent workspaces:

    lmspace code provision --subagents 5
    

    This creates 5 isolated workspace directories in ~/.lmspace/agents/.

  2. Warm up workspaces (optional but recommended):

    lmspace code warmup
    

    Opens all provisioned workspaces in VS Code so they're ready for instant use.

  3. Start a chat with an agent:

    lmspace code chat <agent_config_path> "Your query here"
    

    This claims an unlocked subagent, copies your agent configuration, and opens VS Code.

  4. Example agent configuration (my-agent/ directory):

    • subagent.chatmode.md - Chat mode configuration and instructions
    • subagent.code-workspace - VS Code workspace settings

Command Reference

Provision subagents:

lmspace code provision --subagents <count> [--refresh] [--template <path>] [--target-root <path>]
  • --subagents <count>: Number of workspaces to create
  • --refresh: Rebuild unlocked workspaces
  • --template <path>: Custom template directory
  • --target-root <path>: Custom destination (default: ~/.lmspace/agents)
  • --dry-run: Preview without making changes

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 <agent_config_path> <query> [--attachment <path>] [--dry-run]
  • <agent_config_path>: Path to agent configuration directory
  • <query>: User query to pass to the agent
  • --attachment <path>: Additional files to attach (repeatable)
  • --dry-run: Preview without launching VS Code

Development

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

# Run tests
uv run --extra dev pytest

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

lmspace-0.1.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

lmspace-0.1.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file lmspace-0.1.1.tar.gz.

File metadata

  • Download URL: lmspace-0.1.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for lmspace-0.1.1.tar.gz
Algorithm Hash digest
SHA256 17744010c4deea1b6175b3958ab1a9b9376a4e8826e175cd3e87f047803a9d4c
MD5 e1eaa026e675619d92ce2b13d59d29cc
BLAKE2b-256 7a35c833de1e273b3d1d582146306fc74b91070d123963fd04c2ea04d8b627a0

See more details on using hashes here.

File details

Details for the file lmspace-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lmspace-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for lmspace-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3109a668c7c7ade08fb5f7fd5de0825d562ceefed27da27ac3552a02c22b8fdc
MD5 3ff3cc1e04402fa5ffd5e36611eeb3c1
BLAKE2b-256 5b48fce90121768b6dc2e9e8a602d5d3f81d9de1416b2f9a8e790ee298dc7ed3

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