AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

pi-agent

Builds with and operates Pi, the minimal terminal coding harness. Use for installing Pi, configuring providers/models/settings/environment variables, creating Pi skills/extensions/packages/themes/prompt templates, embedding Pi through the SDK, integrating over RPC or JSON event streams, parsing sessions, running local models through the llama.cpp router, developing custom Pi providers and TUI components, or using ecosystem packages such as pi-subagents (delegation/orchestration), pi-mcp-adapter (MCP servers), pi-interview (interactive forms), and pi-web-access (web search, fetching, video understanding).

Original source
K-Dense-AI
License
MIT
Pinned revision
5f2bc0341354fd5590aef76a533ada1e1e5b4e62

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read k-dense-ai--pi-agent at revision 5f2bc0341354fd5590aef76a533ada1e1e5b4e62, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 36

references/termux.md

Termux Setup

Source: https://pi.dev/docs/latest/termux

Reviewed against Pi 0.99.2 and the package versions listed in ../SKILL.md on 2026-09-30.

Pi runs on Android through Termux.

Prerequisites

Install Termux from GitHub or F-Droid, not Google Play. Optionally install Termux:API from the same distribution source as Termux for clipboard and device integrations.

Install

pkg update && pkg upgrade
pkg install nodejs termux-api git
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
mkdir -p ~/.pi/agent
pi

Clipboard

Pi uses termux-clipboard-set and termux-clipboard-get when available. Image clipboard is not supported in Termux.

Useful AGENTS.md Context

Add Termux environment notes to ~/.pi/agent/AGENTS.md: OS is Android/Termux, home is /data/data/com.termux/files/home, prefix is /data/data/com.termux/files/usr, shared storage is /storage/emulated/0, use termux-open-url, termux-open, termux-share, termux-notification, and clipboard commands where appropriate.

Limitations and Troubleshooting

No image clipboard. Some optional native binaries may be unavailable on Android ARM64. Run termux-setup-storage once for /storage/emulated/0. If pi is not found, open a fresh shell, check npm prefix -g and command -v pi, then ensure the global npm binary directory is on PATH.