Agentic terminal CLI for PraisonAI — the terminal-native agent (run, chat, code, runtime, cli backends) extracted from the praisonai wrapper.
Project description
praisonai-code
Agentic terminal CLI for PraisonAI — the terminal-native agent product
(run, chat, code, warm runtime, CLI backends) extracted from the
praisonai wrapper.
Analogues: opencode, codex, gemini-cli.
Status
C0–C5 complete. C6 integration gate verified — see
src/praisonai/tests/C6_VERIFICATION.md.
| Step | Scope | Status |
|---|---|---|
| C0 | Scaffold | Done |
| C1 | runtime/ + cli_backends/ |
Done |
| C2 | interactive/, execution/, ui/, output/, state/ |
Done |
| C3 | Agentic commands | Done |
| C4 | Agentic features | Done |
| C5 | main.py, app.py, config/session/utils + shims |
Done |
| C6 | Integration gate + sign-off | Done |
| C7 | Hot-path standalone (agentic CLI without wrapper import) | Done |
praisonai_code.runtime— warm local runtime (daemon + thin client).praisonai_code.cli_backends— CLI backend implementations (e.g. Claude Code).praisonai_code.llm— endpoint resolution, credentials, model catalogue.praisonai_code.tool_resolver— YAML tool name resolution.
See src/praisonai/tests/C7_VERIFICATION.md for the hot-path sign-off checklist.
Dependency rules
praisonai (main) → depends on praisonai-code
praisonai-code → depends on praisonaiagents (core SDK)
praisonai-code also pulls in its own third-party runtime deps (rich, typer,
click, textual, PyYAML, python-dotenv, litellm, mcp, pydantic — see
pyproject.toml). The rules above govern the inter-package direction.
C7 (hot path complete): Standalone
pip install praisonai-codesupports agentic terminal commands (run,chat,code, warm runtime) without importing the wrapper on the hot path. Approval backends resolve locally viapraisonai_code.cli.features._approval_bridge(channel bots delegate to the wrapper). Optional features (observability sinks, framework adapters, bots/gateway) remain wrapper-only viapraisonai_code._wrapper_bridge.
Completed C7 steps:
praisonai_code._registry— vendored plugin registry (no wrapper import)praisonai_code._version/runtime/descriptor.py— version frompraisonai-codepraisonai_code.__main__+praisonai-codeconsole script — standalone entrypraisonai_code._logging— CLI logging without wrapper dependencypraisonai_code.llm.*— env, credentials, catalogue, configpraisonai_code._framework_availability,_safe_loader,tool_resolver— execution helpers- Namespace cleanup —
praisonai_code.cli.features.*local imports on agentic path
Backward compatibility is preserved via PEP 562 shims at the old
praisonai.* import paths, so pip install praisonai and
from praisonai.cli.main import PraisonAI keep working unchanged.
Install
Recommended (includes wrapper + bots/gateway):
pip install praisonai
Standalone code package (agentic CLI only):
pip install praisonai-code
praisonai-code --version
python -m praisonai_code --help
Development / monorepo:
pip install -e src/praisonai-agents
pip install -e src/praisonai-code
pip install -e src/praisonai
python -c "import praisonai_code; print(praisonai_code.__version__)"
PyPI: Published as praisonai-code after praisonaiagents in the
three-package release order (see pypi-release.yml).
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 praisonai_code-0.0.16.tar.gz.
File metadata
- Download URL: praisonai_code-0.0.16.tar.gz
- Upload date:
- Size: 706.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e20d2383cb52281d008399ca2db3ccab19dc6446d25d068375d5080b60c47b3a
|
|
| MD5 |
d6240efa6d37ae34b434ed4b677a01b1
|
|
| BLAKE2b-256 |
948d890ffbadec28f26ebdac2c2454c3a656530047f009a8a40b0fe2d087225c
|
File details
Details for the file praisonai_code-0.0.16-py3-none-any.whl.
File metadata
- Download URL: praisonai_code-0.0.16-py3-none-any.whl
- Upload date:
- Size: 856.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1558f792488ed400ec980ab308039c9fb05ac8a4c1eb45cf4a6a0f8296f6e660
|
|
| MD5 |
31c37da0471af235c6d10c33793053b5
|
|
| BLAKE2b-256 |
dd536dfcfcab0521a9b026c7e9e27fdd410b14fcd66779596f9d3ef49f8fb8ab
|