Skip to main content

pi-coding-agent

Python port of @earendil-works/pi-coding-agent — Coding agent SDK (core only, no TUI).

Install

pip install pi-py-coding-agent

Import name has no prefix: from pi_coding_agent import ...

Quick Start

from pi_coding_agent import CodingAgent
from pi_ai import Model

agent = CodingAgent(
    model=Model(id="deepseek-chat", api="openai-completions", provider="deepseek",
                base_url="https://api.deepseek.com/v1", input=["text"],
                context_window=64000, max_tokens=8192),
    api_key="sk-...",
    cwd=".",  # working directory
)
await agent.prompt("Read README.md and summarize it")

Tools

  • bash — execute shell commands
  • read — read files (text + images, offset/limit)
  • edit — exact text replacement with uniqueness check
  • write — create/overwrite files
  • grep — search file contents (pure Python, no ripgrep needed)
  • find — glob-based file search
  • ls — list directory contents

Metadata

Release files for pi-py-coding-agent 0.85.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pi-py-coding-agent 0.85.1
File Size Uploaded Provenance Actions
pi_py_coding_agent-0.85.1.tar.gz 16.0 kB Without provenance Details for pi_py_coding_agent-0.85.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pi-py-coding-agent 0.85.1
File Interpreter ABI Platform Actions
pi_py_coding_agent-0.85.1-py3-none-any.whl Python 3 none any Details for pi_py_coding_agent-0.85.1-py3-none-any.whl

Total release size: 29.1 kB

Release files / pi_py_coding_agent-0.85.1.tar.gz

Download URL pi_py_coding_agent-0.85.1.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e7420f72fccfa8d90e156a34f9731491f05c12fd497d1b4a36b276055ce64d24
BLAKE2b-256 checksum
How to use checksums
daf3fb64184da19cc7c6638e23f858f2905bf92ee49295b6bb4fa04d1554f0bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pi_py_coding_agent-0.85.1-py3-none-any.whl

Download URL pi_py_coding_agent-0.85.1-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d510e599e8dff127910869f91a2f47a126bb4edcd6fb7d4ea7b1ab5afc43e379
BLAKE2b-256 checksum
How to use checksums
6613933c1aa5384a297294e236bdf2ef2e7b2d1209f4fac967568ca4458f8507
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for pi-py-coding-agent 0.85.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page