Skip to main content

Minimal CLI wrapper that launches Claude Code in isolated jj workspaces

Project description

Kekkai

A minimal CLI that launches Claude Code in isolated jj workspaces.

Installation

# Install globally with uv (recommended)
uv tool install kekkai

# Or use uvx for one-off usage
uvx kekkai

Requirements

Quick Start

# Launch Claude in a new isolated workspace
kekkai feature-auth

# List existing agent workspaces
kekkai list

When you run kekkai <name>:

  1. Creates an isolated jj workspace as a sibling directory (<repo>-<name>/)
  2. Launches Claude Code with full terminal experience
  3. On exit, prompts whether to keep or delete the workspace

Multi-Agent Workflow

Run multiple agents in parallel by opening multiple terminals:

# Terminal 1
kekkai feature-auth

# Terminal 2
kekkai bugfix-login

# Terminal 3
kekkai refactor-api

Monitor all agents from your main workspace:

jj log

Managing Agent Changes

From your main workspace, use jj to integrate agent work:

# See all changes across workspaces
jj log

# Squash an agent's changes into current revision
jj squash --from <agent-revision>

# Rebase agent work onto latest
jj rebase -s <agent-revision> -d @

# Cherry-pick specific changes
jj new <agent-revision>

see jjui for a more user-friendly interface.

Watchman Setup

Without Watchman, jj only captures changes when you run a jj command. With Watchman, snapshotting is automatic and you can monitor agent progress in real-time.

  1. Install Watchman
  2. Enable in ~/.config/jj/config.toml:
    # ~/.config/jj/config.toml
    [fsmonitor]
    backend = "watchman"
    watchman.register-snapshot-trigger = true
    
  3. Verify: jj debug watchman status

Development

git clone https://github.com/yum0e/kekkai
cd kekkai
uv run kekkai --help
uv run --with pytest pytest tests/ -v

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

kekkai-0.1.1.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

kekkai-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kekkai-0.1.1.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","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 kekkai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cf8f9be38b5fc9fe2af38de02fbc5e0e8abe380ce5b237dbfad19b9cad3c65f3
MD5 4880b0424d35adf3a90d08b85f148276
BLAKE2b-256 7904207bec50404f0a226a0d4fe380b2346850ef78bc323b7c105592ef058006

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kekkai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","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 kekkai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 810ecf7154836a8e3fc922c3b8e2e3a571598df94c5807a65b457cc9ab284477
MD5 2e5dc7aea099f64db818c05ea4f69b45
BLAKE2b-256 40ccedf61ab8fbd95d86f7b6619d50a87af44afdde5c2e95db32d05b2ef05515

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