joelreymont

joelreymont / pz

Public

Minimal pi coding-agent re-implementation in Zig

63
1
100% credibility
Found Feb 23, 2026 at 23 stars 3x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Zig
AI Summary

pz is a lightweight terminal tool for interactive AI-assisted coding with built-in file operations, session persistence, and headless scripting modes.

How It Works

1
🔍 Discover pz

You hear about pz, a speedy helper for chatting with AI about coding, and grab its tiny single file.

2
🔗 Link your AI

Tell pz which smart AI service to use by placing a simple settings note in your home folder.

3
🚀 Start chatting

Run the app from your terminal and type your first coding question.

4
💭 AI thinks and acts

Watch the AI reason step-by-step, read your files, suggest code, and even run commands right in the colorful chat screen.

5
💾 Save your session

Your conversation is automatically saved so you can pause and return anytime.

6
📤 Share or reuse

Export chats as notes or pick up exactly where you left off later.

🎉 Code faster together

You get quick, smart help turning ideas into working code without the hassle.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 23 to 63 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is pz?

pz is a minimal coding agent built in Zig, serving as a drop-in replacement for the pi tool. It lets you interact with AI models like Claude via a streaming TUI with markdown rendering, syntax highlighting, image support, and 24 slash commands for session control, model switching, and exports. Users get a single 1.7 MB static binary with zero runtime deps, handling prompts, tools like read/write/edit/bash/grep/find/ls/ask, and headless modes for scripting via --print or JSON-RPC.

Why is it gaining traction?

Unlike Node.js-heavy agents bloating to 600 MB with slow starts, pz launches in 3 ms using 1.4 MB idle—perfect for a minimal coding agent workflow. It matches pi's features exactly while adding prompt caching, adaptive thinking budgets, and OAuth auth, all in a zero-alloc hot path. Developers dig the github minimal api feel: same config files, but radically leaner for quick iterations without node_modules hell.

Who should use this?

CLI-loving backend devs scripting AI tasks, Zig enthusiasts ditching JS bloat, or teams building minimal github actions workflows around coding agents. Ideal for pz tuning in terminal-heavy setups like remote servers or github pages minimal themes, where every MB and ms counts.

Verdict

Grab pz if you want a battle-tested pi clone (582 tests, full parity) in a tiny Zig binary—solid for eval despite 10 stars and 1.0% credibility score. Maturity shows in docs and changelog, but watch for broader provider support; MIT license invites forks. Worth the build for lightweight agent fans. (198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.