zi(1)

name

zi - yours-first coding agent

synopsis

zi [run-options] [@file ...] [prompt]

zi -p [@file ...] [prompt]

zi --mode <text|json> [@file ...] [prompt]

zi --continue

zi --resume

zi --session <path|id>

zi --list-models [search]

description

There are many coding agents. This one is yours: ask zi to extend itself to best suit your workflow.

zi is a local-first coding agent harness with a terminal UI, durable sessions, explicit batch modes, model selection, and Lua extensions. The consumer surface is deliberately small: the CLI starts, resumes, or batches agent work; extensions add workflow-specific tools, commands, UI, model/provider behavior, prompt rules, and session policy.

This manual is written for two readers:

When generating an extension, prefer the API documented here and adapt the closest available example.

Agents and other programmatic readers should prefer the Markdown version of each page. Replace the web page suffix with .md, for example cli.html becomes cli.md. When following links from Markdown manually, prefer the adjacent .md target when available.

contents