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.4-py3-none-any.whl .
python3 -m pip install --user ./carlab_pi-0.5.4-py3-none-any.whl

From a wheel or source directory:

python3 -m pip install carlab_pi-0.5.4-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 status
pi ask "Write a Python function that reads a CSV."
pi chat --file app.py

Inside interactive mode:

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

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:

~/.config/pi/config.json

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: carlab_pi-0.5.4.tar.gz
  • Upload date:
  • Size: 18.5 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.4.tar.gz
Algorithm Hash digest
SHA256 3f00c7f00068f8587a7118adbf20bc1ed3f81859e24ec24d3452b996d9fd19e5
MD5 316f800bc04722ad53d07b9b64a7452c
BLAKE2b-256 63e2d7b45e13e7828c2f52fe8581ced32e486f857f2e96e1499d4bed55bfa938

See more details on using hashes here.

File details

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

File metadata

  • Download URL: carlab_pi-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a2da170239973eca99440af0485302c803910fed3d2d4f3900e3787d14660041
MD5 a144d308112a30356d019fad4b505c71
BLAKE2b-256 234b7729ac8e0ededa9f659b3f6ccce4becaa6d8381b2341de639777dd80f274

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