Skip to content
项目

关于

Strict engineering discipline and multi-agent orchestration for the pi coding agent

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

roach-pi

Rebuild of roach-pi on @earendil-works/pi-durable, a durable agent harness: conversations, model turns, and tool calls are committed to storage before they are shown, and an interrupted run resumes after restart.

Requirements

  • Node.js >= 22.19
  • Credentials for any provider pi-ai supports: type /login in the TUI (OAuth subscription sign-in such as Claude Pro/Max or ChatGPT, or an API key; saved to ~/.roach/auth.json), or set an env var such as ANTHROPIC_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY. A stored credential takes precedence over the env var.

Usage

npm install
npm start                                         # interactive TUI
npm start -- --model anthropic/claude-sonnet-4-5  # TUI with a chosen model
npm start -- "What is the capital of France?"     # print mode: answer one prompt and exit
npm run check

The TUI (@earendil-works/pi-tui) renders only committed state from root.watch(): transcript entries, the streamed partial answer, the running tool round, and why the last run failed. Enter sends, Esc aborts the running answer, Ctrl+C (or Ctrl+D on an empty editor) quits. Input sent while an answer runs is queued.

--model <provider>/<modelId> picks any model from pi-ai's built-in catalog and is stored on the conversation; later runs reuse it until you pass another. Without --model on a fresh conversation, the first model whose provider has credentials is used; with none, the TUI still starts and asks you to /login.

Slash commands (type / for completion): /login picks a provider and sign-in method, opens the browser for OAuth (or asks for the API key, masked), then offers that provider's models; /model switches among models whose provider has credentials; /quit exits.

State lives in .roach/session.sqlite; rerunning reopens the same root conversation and resumes unfinished work.

探索相关项目

加载中…