Skip to main content

PI terminal coding harness for the CARLab Qwen model.

Project description

PI

Installable terminal coding harness for the CARLab local Qwen model.

Install

From another machine:

scp william@128.175.213.232:/media/william/mist2/william/Github/CARLabAssistant/packages/pi-client/dist/carlab_pi-0.5.10-py3-none-any.whl .
python3 -m pip install --user ./carlab_pi-0.5.10-py3-none-any.whl

From a wheel or source directory:

python3 -m pip install carlab_pi-0.5.10-py3-none-any.whl

or:

python3 -m pip install .

Configure

Create an API key in Open WebUI, then save it locally:

pi setup --api-key <your-open-webui-api-key>

The default endpoint is:

http://128.175.213.232:8080/api/v1

Use

pi
pi --version
pi status
pi ask "Write a Python function that reads a CSV."
pi chat --file app.py
pi resume
pi resume 20260611-103000-a1b2c3d4

Inside interactive mode:

/pwd
/cd PATH
/ls [PATH]
!pytest -q
/file PATH
/exit

Use the up/down arrow keys to navigate previously sent prompts. Prompt history is stored persistently at ~/.pi/history.

PI also handles common requests without slash commands:

list the files in the current directory
read the server config file
fix the typo in readme
search the web for the latest release notes

When you ask PI to edit a file, it fuzzy-matches the file, asks the model for a unified diff, applies it, and saves the file automatically.

PI can also search the web when the harness decides the request needs current, niche, or uncertain information. Stable questions are answered without web search.

Internal searches, file reads, and tool calls stay quiet by default. PI uses their results as context and prints the final answer, not raw search pages or raw file contents. Large files are summarized into temporary code memory before they are sent to the model, so broad review/explanation requests stay inside the context window.

Configuration is stored at:

~/.pi/config.json

Older ~/.config/pi/config.json files are migrated automatically, so API keys survive package updates.

Interactive chat sessions are stored locally under:

~/.pi/<session_id>/

Each session directory contains metadata.json and transcript.jsonl. Use pi resume to choose from saved sessions by title and last prompt time, or pi resume <session_id> to resume a known session directly. When a session is resumed, PI prints the most recent five saved interactions before showing the prompt.

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

carlab_pi-0.5.10.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

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

carlab_pi-0.5.10-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file carlab_pi-0.5.10.tar.gz.

File metadata

  • Download URL: carlab_pi-0.5.10.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for carlab_pi-0.5.10.tar.gz
Algorithm Hash digest
SHA256 0c86e208593dd15c8a02a3d389b55d894706cc289d45d223f2829293e400f2c8
MD5 3387cd1b1e330e21ba11f34411f59bbb
BLAKE2b-256 dfa54b45315a3ad3ff3a2ab11145d531c3655b8f004e9e1b1efd0e010971b6c5

See more details on using hashes here.

File details

Details for the file carlab_pi-0.5.10-py3-none-any.whl.

File metadata

  • Download URL: carlab_pi-0.5.10-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for carlab_pi-0.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 0e7b4b0cde2f71af6bbaba2cbbd39c2525da4ef68690908977ccb60e2706345e
MD5 868c843d6d44c23f864168f1cf60b1c0
BLAKE2b-256 f55a80362d1e9a583d28b844470cb760ebbad0d4793901e67892448d0fa75736

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