Skip to main content

CLI for AI pair-coding workflow

Project description

bpsai-pair CLI

The PairCoder CLI tool for AI pair programming workflows.

Quick Start

Install from PyPI

pip install bpsai-pair
bpsai-pair --help

Development Install

cd tools/cli
pip install -e .
bpsai-pair --help

Windows & Cross-Platform

PairCoder CLI is fully Python-backed (no Bash required). On Windows use:

# Create venv
python -m venv .venv

# If activation is blocked...
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

# Activate venv
.\.venv\Scripts\Activate.ps1
# (Or use .venv\Scripts\activate.bat in CMD)

# Install package
pip install bpsai-pair
# or: pip install .\dist\bpsai_pair-*.whl

# Use the CLI
bpsai-pair --help
bpsai-pair-init
bpsai-pair feature demo --type refactor --primary "Goal" --phase "Phase 1"
bpsai-pair pack --out agent_pack.tgz
bpsai-pair context-sync --last "A" --next "B" --blockers ""

If the entry point is not on PATH, use:

python -m bpsai_pair.cli --help

Usage

Initialize scaffolding (uses bundled template)

bpsai-pair-init
# or with main CLI:
bpsai-pair init

Create feature branch

bpsai-pair feature auth-refactor \
  --type refactor \
  --primary "Decouple auth via DI" \
  --phase "Refactor auth module + tests"

Pack context for AI

bpsai-pair pack --out agent_pack.tgz
bpsai-pair pack --list  # Preview files
bpsai-pair pack --json  # JSON output

Update context loop

bpsai-pair context-sync \
  --last "Initialized scaffolding" \
  --next "Set up CI secrets" \
  --blockers "None"

Commands

  • bpsai-pair init - Initialize repo with PairCoder structure
  • bpsai-pair-init - Quick init with bundled template (no args)
  • bpsai-pair feature - Create feature/fix/refactor branch
  • bpsai-pair pack - Package context for AI agents
  • bpsai-pair context-sync - Update the Context Loop
  • bpsai-pair status - Show current state
  • bpsai-pair validate - Check repo structure
  • bpsai-pair ci - Run local CI checks

Development

Run tests:

pytest

Build wheel:

python -m build

Template

The CLI bundles a cookiecutter template in bpsai_pair/data/cookiecutter-paircoder/ that gets installed with the package and used by bpsai-pair-init.

Project details


Release history Release notifications | RSS feed

This version

0.2.5

Download files

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

Source Distribution

bpsai_pair-0.2.5.tar.gz (54.3 kB view details)

Uploaded Source

Built Distribution

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

bpsai_pair-0.2.5-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

Details for the file bpsai_pair-0.2.5.tar.gz.

File metadata

  • Download URL: bpsai_pair-0.2.5.tar.gz
  • Upload date:
  • Size: 54.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for bpsai_pair-0.2.5.tar.gz
Algorithm Hash digest
SHA256 0a901f213e5f688917d560ef63da9d67173c065608105b1705c39696ae2ff21f
MD5 98c7a305d7b82bf32c13111e7350ce1f
BLAKE2b-256 85b322a4af6e0c4ae986412d568bf4ef63fcb7435b8ef324fdc03770fb9e207e

See more details on using hashes here.

File details

Details for the file bpsai_pair-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: bpsai_pair-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for bpsai_pair-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0950e4df4e22fde906bf6d5210667a6400736634e91946b712290aebcd4351f2
MD5 f5cad2be7d318ae97126f0ed3f3dca33
BLAKE2b-256 3af21fe32a71296b1c51662aa07b5e6c1ffcf0b6b07aa9fbb70ae8d0502ab4fc

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