# earendil-works/pi

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI

Repository: https://github.com/earendil-works/pi
Canonical: https://ross.abutalabs.com/products/pi
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-26T22:31:04+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 27
- inputs: {"age_days": 389, "days_push": 7, "days_rel": 9, "gap_med": 0, "n_releases_24m": 256}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 97788, forks 12091 (observed 2026-08-28T04:12:23.630049+00:00)

## What it is
Pi is a TypeScript AI agent toolkit providing a unified multi-provider LLM API, an agent runtime with tool calling, a terminal UI library, and an interactive self-extensible coding agent CLI. It is organized as a monorepo of npm packages including pi-ai, pi-agent-core, pi-tui, and pi-coding-agent.

## Use cases
- build a coding agent that edits files and runs commands from the terminal
- call OpenAI, Anthropic, and Google models through one unified API
- create custom AI agents with tool calling and state management
- build terminal UIs for interactive CLI applications
- run an AI assistant in the terminal to work on my codebase

## When to choose
- you want a programmatic TypeScript toolkit for building LLM agents rather than a closed product
- you need provider-agnostic LLM access across OpenAI, Anthropic, and Google
- you want an interactive terminal-based coding agent you can extend yourself

## When to avoid
- you need built-in permission or sandboxing controls - Pi requires external containerization for isolation
- you prefer a GUI-based coding assistant over a terminal CLI
- you need a non-TypeScript/JavaScript runtime

## Facets
- artifact type: framework
- maturity: active
- function: agent-framework, llm-inference, cli, terminal-ui, chatbot
- domain: large-language-models, developer-tools
- platform: cli, cross-platform
- tags: coding-agent, multi-provider-llm, agent-loop, tool-calling, tui, typescript, ai-agents, command-line, nodejs

## Member repositories
- earendil-works/pi (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:23.630049+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:12:29.697071+00:00, confidence not recorded.
  - readme: https://github.com/earendil-works/pi (fetched 2026-08-28T04:12:23.630049+00:00, sha c7464f2f9c53)
- Data as of 2026-08-30T08:39:29.467469+00:00.
