CLI coding agent for the current project, installable from PyPI and runnable with pipx.
Project description
Pooh Code
pooh-code 是一个面向当前项目目录运行的 CLI 编码代理。安装后可以直接在本地终端里用,适合通过 pipx install 分发。
安装
推荐:
pipx install pooh-code
如果你需要更完整的文件处理能力,可以安装额外依赖:
pipx install 'pooh-code[files]'
pipx install 'pooh-code[files,audio,image]'
如果你只是在本地开发这个仓库,也可以:
uv tool install .
使用
第一次使用前先登录 OpenAI Codex OAuth:
pooh-code-login
然后进入你的项目目录启动:
cd /path/to/your/project
pooh-code
也可以显式指定工作目录:
pooh-code --workspace /path/to/your/project
常用命令:
pooh-code # 默认进入 CLI 会话
pooh-code chat # 显式进入 CLI 会话
pooh-code sessions # 查看历史会话
pooh-code-login --check # 检查 OAuth 状态
运行时目录
pooh-code 会把运行时文件初始化到当前项目下:
workplace/runtime/
workplace/output/
其中:
workplace/runtime/config/settings.json:本地配置workplace/runtime/sessions/:CLI 会话 transcriptworkplace/runtime/skills/:默认 skills,会在首次启动时从包内资源复制出来workplace/output/<session_id>/:当前会话的产物目录
这意味着:
- agent 读写代码时,根目录是你当前所在的项目目录
- 会话和产物默认落在项目内,便于一起查看和清理
- 同一个安装可以在多个项目目录里分别使用
打包发布到 PyPI
本地构建:
uv build
构建完成后会得到:
dist/pooh_code-<version>.tar.gz
dist/pooh_code-<version>-py3-none-any.whl
上传到 PyPI:
uvx twine upload dist/*
如果先发测试仓库:
uvx twine upload --repository testpypi dist/*
发布前建议至少验证这几件事:
- 在临时目录里安装 wheel 后,
pooh-code --help能正常运行。 - 在一个空项目目录里启动
pooh-code,能自动生成workplace/runtime/。 pooh-code-login --check和一次真实 CLI 会话都能通过。
开发
本地开发时常用命令:
uv sync
uv run pooh-code --help
uv build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pooh_code-0.2.0.tar.gz.
File metadata
- Download URL: pooh_code-0.2.0.tar.gz
- Upload date:
- Size: 3.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b46b5ca5b343b1e518be5cdcf67c7911eb7f62eaa95c4012d72c3fc890fc425a
|
|
| MD5 |
e8867fc02483d5029a8f935200453682
|
|
| BLAKE2b-256 |
d2b5dc96907a1909c384c7b2f59651c60ca5bca18c6bfe0a0a184785554e7e01
|
File details
Details for the file pooh_code-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pooh_code-0.2.0-py3-none-any.whl
- Upload date:
- Size: 144.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaec13cb40a7fa045f8acddcd716214612f9dd7d964b3cbc8511faffc7aeddb1
|
|
| MD5 |
b6ef20a07cf70c2408916f244cba7992
|
|
| BLAKE2b-256 |
1d6724d713559f2bb381bee16650003424f32402a4247f095b62a7bac3ba6150
|