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-coding-agent

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

Links

Metadata

Release files for pi-py-coding-agent 0.84.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.84.1
File Size Uploaded
pi_py_coding_agent-0.84.1.tar.gz 15.5 kB Details

Built distribution (wheel)

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

Total release size: 28.3 kB

Release files / pi_py_coding_agent-0.84.1.tar.gz

Download URL pi_py_coding_agent-0.84.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f54a8e32d7496cc1e1e0f1d294cba2840db321a7a91f4e7a7259cdf3bb4236b5
BLAKE2b-256 checksum
How to use checksums
cad4192c228206fe222216d76c7e0be6bd5fc9a3bdf8715a168b47c20e98b5ab
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.84.1-py3-none-any.whl

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

Release history Release notifications | RSS feed

This release

0.84.1 This release

2 release files

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