The Perspt Book 0.6.7
On this page

The Perspt Book

Learn to use Perspt for AI chat and coding in the terminal. We start with installation and a conversation, then use the coding agent to work on a project and review the result.

Where to start

Task Guide
Try Perspt Quick Start: Install Perspt, connect a provider, and ask a question.
Use a local model Local Models with Ollama: Connect Ollama and select an installed model.
Run a coding task Agent Mode Tutorial: Ask the agent to edit code, run tests, and show the result for review.
Run without prompts Headless Mode: Automate a task and save its result as JSON.
Use Perspt from Rust API & SDK Reference: Choose the libraries needed for a Rust application.

What Perspt does

  • AI chat with perspt chat: a full-screen conversation with formatted answers, code, and multiline input.
  • Simple terminal chat with perspt simple-chat: type a message, read the answer, and optionally save the conversation.
  • Coding tasks with perspt agent: ask the agent to fix a bug, add a feature, or write tests. It edits a separate copy and runs the project’s tools before asking for review.
  • Rust libraries for adding AI workflows, build and test checks, and session history to another application.
Describe a task, edit a project copy, run builds and tests, then review and apply the changes.
Fig. 1 The coding agent asks for approval before copying a successful result into the project. If it cannot finish within the run’s limits, it reports the remaining problems.

Agent mode is experimental. We review the code and tests before committing, because passing checks can miss bugs. Introduction to Perspt explains the main commands and SRBN Architecture covers the implementation in detail.

User Guide

Concepts

Reference

Developer Guide