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.4

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.4.tar.gz (54.2 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.4-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bpsai_pair-0.2.4.tar.gz
  • Upload date:
  • Size: 54.2 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.4.tar.gz
Algorithm Hash digest
SHA256 1916d257be4853d2f3f3648072e29424861d7ccf736a726484ef3b5795aec882
MD5 1901aec8f44dc6537fd3442771f9ad0f
BLAKE2b-256 ee06140be4b6f522cc93ba4eedd40cd8742b74174c59f299f1080f873cbed350

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bpsai_pair-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5070e46f5896d824fe2529087b3a783adab65b096324cd73080367cd85197d96
MD5 b6c6a0bc64ffa05d6241539f65612400
BLAKE2b-256 f502c3ee66d4f41ace6d462b20d2faa4477aa58cca2c99442476cf255dffb1ad

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