Skip to main content

PARI — Next-Generation Terminal Coding Agent

A Synthesis Architecture That Surpasses Claude Code, OpenAI Codex, OpenCode, Pi, Aider, Cursor, and Google Antigravity.
(Named by a college friend, built for world-class systems engineering performance.)

License: MIT Python 3.11+ Architecture: 11-Layer Stack Security: Kernel Sandboxed


⚡ The Core Thesis

$$\text{\bf Agent failure is a systems engineering failure, not a reasoning failure.}$$

The exact same frontier reasoning model (Claude 3.7 Sonnet, GPT-4o) demonstrates a 15% pass rate in a naive loop, but achieves a 50–55% pass rate inside an engineered harness. The 35% delta is not model intelligence; it is accounted for by six fatal systems failure modes:

  1. Unbounded stdout poisoning $\rightarrow$ Solved by Layer 7 (50KB/2k-line disk spooler + balanced head/tail extraction).
  2. Mid-stream token truncation $\rightarrow$ Solved by Layer 4 (Strict stop_reason == "length" rejection guard).
  3. File write race conditions $\rightarrow$ Solved by Layer 6 (FileMutationQueue canonical realpath serialization).
  4. KV cache invalidation cascades $\rightarrow$ Solved by Layer 2 (Immutable Baseline Epochs freezing Tiers 1–4).
  5. Blind file traversal loops $\rightarrow$ Solved by Layer 3 (v1: Fast substring ripgrep & globbing / v2: Tree-sitter AST fallback).
  6. Unsandboxed host execution $\rightarrow$ Solved by Layer 0 (Multi-platform kernel isolation: bwrap, Seatbelt, E2B MicroVMs).

🏗️ 11-Layer Architecture Topology

+-----------------------------------------------------------------------------------+
|                              PARI -- SYSTEM TOPOLOGY                              |
+-----------------------------------------------------------------------------------+
|  Layer 9:  TERMINAL INTERFACE (Rich / Textual differential rendering TUI)         |
|                                          |                                        |
|  Layer 8:  DUAL-MODEL ROUTER (Architect -> Planner / Editor -> Fast Model)        |
|                                          |                                        |
|  Layer 7:  OUTPUT HYGIENE (50KB/2k-line disk spooler + head/tail extraction)     |
|                                          |                                        |
|  Layer 6:  CONCURRENCY SAFETY (asyncio.TaskGroup + realpath FileMutationQueue)   |
|                                          |                                        |
|  Layer 5:  EDIT ENGINE (Exact -> Git OSR -> DMP -> Prefill Continue)             |
|                                          |                                        |
|  Layer 4:  AGENT EXECUTION LOOP (Double-while + stop_reason guard + tools)       |
|                                          |                                        |
|  Layer 3:  NAVIGATION (v1: Substring Grep & Globbing / v2: Tree-sitter Fallback)  |
|                                          |                                        |
|  Layer 2:  CONTEXT & CACHE (Immutable Epoch + mid-session updates + Warmer)      |
|                                          |                                        |
|  Layer 1:  DURABLE SESSION (Append-only JSONL Merkle DAG + Checkpoint Index)     |
|                                          |                                        |
|  Layer 0:  SANDBOX (bwrap on Linux/WSL2 + Seatbelt on macOS + E2B Cloud)         |
+-----------------------------------------------------------------------------------+

📚 Complete Documentation Suite

All system documentation has been modularized and organized inside the docs/ directory:

Architecture Deep Dives

Layer Specifications

Developer Guides


🚀 Installation & Quick Start

Official Website & Documentation: https://pari-cli.in

Choose your platform's one-line install command:

1. macOS & Linux (curl)

curl -fsSL https://pari-cli.in/install.sh | bash

(Alternative via GitHub: curl -fsSL https://raw.githubusercontent.com/MdTanwer/pari/main/install.sh | bash)

2. Windows (irm in PowerShell)

irm https://pari-cli.in/install.ps1 | iex

(Alternative via GitHub: irm https://raw.githubusercontent.com/MdTanwer/pari/main/install.ps1 | iex)

3. Via pip / pipx / uv

# Recommended (isolated CLI)
pipx install pari-cli

# Fast via uv
uv tool install pari-cli

# Standard pip
pip install pari-cli

💻 Launch Interactive Session

# Export your API key
export ANTHROPIC_API_KEY="sk-ant-..."

# Launch PARI anywhere in your project workspace
pari

⚖️ License

MIT License. See LICENSE for details.

Metadata

Release files for pari-cli 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pari-cli 0.1.1
File Size Uploaded
pari_cli-0.1.1.tar.gz 46.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pari-cli 0.1.1
File Interpreter ABI Platform
pari_cli-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 107.2 kB

Release files / pari_cli-0.1.1.tar.gz

Download URL pari_cli-0.1.1.tar.gz
Size 46.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3388a0d89409088e6ffdcb0fa44b044aeab9238da679020248b827c4f5d2d09d
BLAKE2b-256 checksum
How to use checksums
71c469bd66343675d2d09cb51eef072651ff7b6eca269991076c43cb90779b9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pari_cli-0.1.1-py3-none-any.whl

Download URL pari_cli-0.1.1-py3-none-any.whl
Size 61.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d904432db5431f81b4c04d1beda39d2e2e2c64be5af229d6c2f9ccbf8bcb54d
BLAKE2b-256 checksum
How to use checksums
bbadf27c034610178f88352a6af0de700b862a59690c6f2965d606ab5be83df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page