@tomsun28/pizza
v0.1.0
Published
Pizza - CLI is all you need
Readme
🍕 Pizza
CLI display for pi
Pizza is a command-line AI assistant that displays pi's native tool calls in a clean [CLI] tag format. Built on top of pi-coding-agent, it provides developers with an efficient terminal interaction experience.
Features
- [CLI] Display Format — Tool calls are displayed in clean [CLI] tag format instead of raw JSON
- Interactive TUI — Beautiful terminal interface based on pi-tui with keyboard shortcuts
- Multi-Model Support — Compatible with OpenAI, Anthropic, and other LLM providers
- Session Management — Automatic saving and management of conversation history
Installation
npm install -g @tomsun28/pizzaUsage
Start
# Interactive mode
pizza
# Execute a single command
pizza "analyze the current project structure"Command Line Options
pizza [options] [message]
OPTIONS:
--provider <name> LLM provider (reads from config by default)
-m, --model <id> Model ID
-p, --print Print mode (non-interactive, single-shot)
-h, --help Show help informationKeyboard Shortcuts
| Shortcut | Function |
|----------|----------|
| Ctrl+P | Switch model |
| Ctrl+T | Think mode |
| Ctrl+C | Stop current operation |
In-Session Commands
/cli-mode— Toggle CLI tag mode (enabled by default)/help— Show help
[CLI] Display Format
Pizza displays pi's native tool calls in a clean [CLI] tag format for better readability:
Display Format
When the model calls tools, they are displayed as:
[CLI] read package.json[/CLI]
[CLI] bash node --version[/CLI]Result Display
Tool results are displayed as:
[RESULT]
{
"name": "pizza",
"version": "0.0.9"
}
[/RESULT]Supported Tools
Pizza uses pi's built-in tools:
| Tool | Description |
|------|-------------|
| read | Read file contents |
| write | Write to a file |
| edit | Edit a file by replacing text |
| bash | Execute shell commands |
Development
Project Structure
.
├── src/
│ ├── main.ts # Entry file
│ └── extension/
│ └── index.ts # Extension main logic (CLI display formatting)
├── themes/
│ └── pizza.json # Theme configuration
├── package.json
└── tsconfig.jsonLocal Development
# Clone the repository
git clone <repo-url>
cd pizza
# Install dependencies
pnpm install
# Development mode
pnpm dev
# Build
pnpm build
# Run
pnpm startDependencies
- pi-coding-agent — Agent session management and extension system
- pi-ai — AI model interface
- pi-tui — Terminal user interface
Configuration
Pizza uses the .pizza directory to store configuration and session data. It is created automatically on first run.
License
MIT
