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
- GitHub | Issues
- PORTING.md — deviations from upstream (TUI intentionally omitted)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pi_py_coding_agent-0.83.0.tar.gz
(15.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pi_py_coding_agent-0.83.0.tar.gz.
File metadata
- Download URL: pi_py_coding_agent-0.83.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab778f197acd5a7bbe248c261ea3814faf60887b840fab7c1e744f5bf5d09f2a
|
|
| MD5 |
d3adf61aff9fd312a0fdef324d143e89
|
|
| BLAKE2b-256 |
8e19ef56a1e687e96a5d1d6e25a6bc4574b2ff4007afe4210bb61a0721c523c3
|
File details
Details for the file pi_py_coding_agent-0.83.0-py3-none-any.whl.
File metadata
- Download URL: pi_py_coding_agent-0.83.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b63539a1ec5cd2b401dd9a562d8970afb80f314d6c9850f0a0af25f669a76f71
|
|
| MD5 |
86509fedea90c78b109c6b9096903ceb
|
|
| BLAKE2b-256 |
2a5c3675776134339b87afba0e0d7a3d957b6787b716fbb064848bfd11d92839
|