Introduction to PersptΒΆ
βββββββ βββββββββββββββ βββββββββββββββ βββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββ ββββββββββββββββββββββββ βββ βββββββ ββββββ βββββββββββββββββββββββ βββ βββ βββββββββββ ββββββββββββββ βββ βββ βββββββββββ ββββββββββββββ βββ
Your Terminal's Window to the AI World π€
What is Perspt?ΒΆ
Perspt (pronounced βperspect,β short for Personal Spectrum Pertaining Thoughts) is a high-performance, terminal-based interface to Large Language Models with autonomous coding capabilities.
Version 0.5.0 Highlights
SRBN Agent Mode β Autonomous coding with Lyapunov stability guarantees
7-Crate Architecture β Modular, extensible workspace design
LSP Integration β Real-time type checking with
tyserverLatest Models β GPT-5.2, Claude Opus 4.5, Gemini 3
ArchitectureΒΆ
Perspt is built as a 7-crate Rust workspace:
![digraph arch {
rankdir=TB;
node [shape=box, style="rounded,filled", fontname="Helvetica", fontsize=10];
subgraph cluster_cli {
label="User Interface";
style=dashed;
cli [label="perspt-cli\n10 commands", fillcolor="#4ECDC4"];
tui [label="perspt-tui\nTerminal UI", fillcolor="#96CEB4"];
}
subgraph cluster_core {
label="Core Engine";
style=dashed;
core [label="perspt-core\nLLM Provider", fillcolor="#45B7D1"];
agent [label="perspt-agent\nSRBN Engine", fillcolor="#FFEAA7"];
store [label="perspt-store\nSession DB", fillcolor="#B8D4E3"];
}
subgraph cluster_security {
label="Security";
style=dashed;
policy [label="perspt-policy\nPolicy Engine", fillcolor="#DDA0DD"];
sandbox [label="perspt-sandbox\nIsolation", fillcolor="#F8B739"];
}
cli -> tui;
cli -> agent;
agent -> core;
agent -> store;
agent -> policy;
agent -> sandbox;
}](_images/graphviz-e9cd65278b1f6e0c8f0a59bb0719201ebf06bb32.png)
Perspt Architecture OverviewΒΆ
Key FeaturesΒΆ
π€ |
SRBN Agent Mode |
Autonomous coding with stability guarantees. Decomposes tasks, generates code, verifies with LSP. |
π |
Multi-Provider |
OpenAI GPT-5.2, Anthropic Claude Opus 4.5, Google Gemini 3, Groq, Cohere, XAI, DeepSeek, Ollama. |
π¬ |
LSP Integration |
Real-time Python type checking using |
π§ͺ |
Test Runner |
pytest integration with weighted failure scoring for logic energy V_log. |
π |
Merkle Ledger |
Git-style change tracking with rollback support. |
π |
Security |
Starlark policy rules and command sanitization. |
π° |
Token Budget |
Cost tracking with per-request limits. |
π¨ |
Beautiful TUI |
Ratatui-based with markdown rendering, diff viewer, task tree. |
SRBN: Stabilized Recursive Barrier NetworkΒΆ
The core innovation in Perspt v0.5.0 is the SRBN control loop:
![digraph srbn {
rankdir=LR;
node [shape=box, style="rounded,filled", fontname="Helvetica", fontsize=10];
task [label="Task", shape=ellipse, fillcolor="#E3F2FD"];
sheaf [label="Sheafify\n(Architect)", fillcolor="#E8F5E9"];
spec [label="Speculate\n(Actuator)", fillcolor="#FFF3E0"];
verify [label="Verify\n(LSP + Tests)", fillcolor="#F3E5F5"];
check [label="V(x) > Ξ΅?", shape=diamond, fillcolor="#FFECB3"];
commit [label="Commit\n(Ledger)", fillcolor="#C8E6C9"];
task -> sheaf;
sheaf -> spec;
spec -> verify;
verify -> check;
check -> spec [label="retry", style=dashed, color="#E53935"];
check -> commit [label="stable"];
}](_images/graphviz-be52d095b6c02420e8a967492bcb239a162ee63b.png)
SRBN Control FlowΒΆ
Lyapunov Energy: V(x) = Ξ±Β·V_syn + Ξ²Β·V_str + Ξ³Β·V_log
V_syn: LSP diagnostics (errors, warnings)
V_str: Structural analysis
V_log: Test failures (weighted by criticality)
CLI CommandsΒΆ
Command |
Description |
Example |
|---|---|---|
|
Interactive TUI |
|
|
Autonomous coding |
|
|
Project setup |
|
|
Configuration |
|
|
Change history |
|
|
Agent status |
|
|
Cancel session |
|
|
Resume session |
|
|
View LLM logs |
|
|
Simple CLI mode |
|
Supported ProvidersΒΆ
Provider |
Environment Variable |
Models (2025) |
|---|---|---|
OpenAI |
|
GPT-5.2, o3-mini, o1-preview |
Anthropic |
|
Claude Opus 4.5 |
|
Gemini 3 Flash, Gemini 3 Pro |
|
Groq |
|
Llama 3.x (ultra-fast) |
Cohere |
|
Command R+ |
XAI |
|
Grok |
DeepSeek |
|
DeepSeek Coder |
Ollama |
(none) |
Local models |
PhilosophyΒΆ
The keyboard hums, the screen aglow,AIβs wisdom, a steady flow.Through SRBNβs loop, stability we find,Code that works, refined and aligned.βThe Perspt Manifesto
Perspt embodies the belief that AI tools should be:
Fast β Rust-native performance
Stable β Lyapunov-guaranteed convergence
Secure β Policy-controlled execution
Extensible β Modular crate architecture
Next StepsΒΆ
Get running in 5 minutes.
Autonomous code generation.
Understand the 7-crate design.