@fadhilp/pylon

中文文档
3.7.4发布于 2026/10/28MITES Module构建来源已验证近 30 天下载 3026

Pi workflow extensions and a local web interface.

原始使用文档
文档目录5 节
  1. What Pylon Does
  2. Web App Setup (Recommended)
  3. Terminal Setup (Alternative)
  4. Bundled Packages
  5. Development

Pylon

Pylon is a web-first coding agent workspace built on Pi. It combines planning, repository research, delegated implementation, verification, safety controls, checkpoints, and a low-noise interface in one bundle.

Pylon is optimized for cost efficiency and output quality rather than speed. It routes focused work to cost-effective models and reserves stronger models for decisions that benefit from them, while verification and specialist reviews help protect quality. This workflow can take longer than using a single model directly.

Pylon web app

What Pylon Does

  • Deterministic compaction: Continuity intercepts manual and automatic /compact and rebuilds context from structured session state (goal, plan, todos, constraints, verification, file activity) instead of asking a model to summarize. An optional Compaction Reviewer can refine the result, and any failure falls back to the deterministic one.
  • Specialized subagents: Advisor (tool-free reasoning for architecture and failure recovery), Scout (bounded repo and public-web reconnaissance), Grunt (delegated implementation in an isolated Git worktree), and Spawn (resumable private threads and child sessions). Each has its own model, so cheap models do the volume and strong models do the decisions.
  • File indexing: Discover keeps a machine-local SQLite index of Git-tracked source files, refreshed on session start and reconciled per turn, backing symbol_search and code_search so lookups don't cost a full-repo grep. Repositories shared by several workspaces are indexed once.
  • Bounded context: Discover keeps optional tool schemas deferred until search_tools activates them, and every package caps its own output.
  • Checkpoints and safety: Timeline takes Git-backed filesystem checkpoints tied to each prompt so you can list, restore, or fork them; Guard intercepts destructive shell and file operations and requires confirmation.
  • Verification built in: Verify detects and runs your existing project checks under a time and output budget, and task completion is gated on the result.
  • Planning and task lists: Explicit plan mode with structured clarifications, a visible task list, and optional /plan review.
  • Tool-aware memory: Durable workspace notes that activate on typed lifecycle and tool events rather than fuzzy prompt similarity. A note attached to a path or tool surfaces when you actually touch it, once per session.

Requires Node.js 22.19.0 or newer.

npm install --global @fadhilp/pylon
cd /path/to/your/project
pylon

Open http://127.0.0.1:3141 (loopback only) and use Settings to configure providers, package models, and package options. Recommended for OpenAI subscriptions: main GPT 5.6 Sol Medium, Advisor Sol High, Scout Luna Medium, Grunt Terra.

See the complete Pylon Web guide for workspaces, sessions, surfaces, settings, safety, storage, and troubleshooting.

  • PYLON_CWD sets the project directory, PYLON_PORT the port (3141), PYLON_NO_UPDATE_CHECK=1 disables the startup update check.
  • Sessions, settings, and package state live in ~/.pylon/agent (PI_CODING_AGENT_DIR overrides). Existing ~/.pi/agent data is copied on first run; pylon migrate retries.
  • Run pylon changelog for the installed release, pylon changelog <version> for an older release, or pylon changelog --list to list available versions.
  • Manage Pi-native extensions in Settings → Extensions. Extensions run arbitrary code with the server's permissions — review sources before enabling.
  • Run pylon install <source> to install a Pi extension/package from npm, Git, or a local file/directory into Pylon. For example: pylon install /absolute/path/extension.ts. Pi's install options are forwarded unchanged; use --local --approve for project scope after reviewing the project, and pylon install --help for usage. Reload extensions in Settings afterward.
  • Pylon Web agents can use the deferred pylon_settings tool to inspect package settings and apply revision-checked updates after confirmation. The tool does not expose hooks, project policy, trust, extensions, Guard controls, credentials, or raw configuration files.
  • Agents can activate the deferred pylon_docs tool to search, list, and read the shipped Web and package documentation on demand; documentation is not injected into every prompt.

Terminal Setup (Alternative)

Requires an existing Pi 1.0.4 install (the web app bundles its own).

pi install npm:@fadhilp/pylon   # or an absolute path to a local checkout

Reload Pi with /reload, then pick models for the child agents — they stay unavailable until configured:

/advisor select
/grunt select
/scout select

Use each command without arguments to show status; set provider/model[:thinking] configures non-interactively, reset uses the current main model, and disable turns the package off. Run /pylon doctor to check models, credentials, dependencies, and package health.

Bundled Packages

PackageWhat it does
pylon-coreCoordinates tool policies across packages; adds revision-guarded numbered read/edit tools and per-tool token reporting.
pylon-androidStandalone Android SDK/emulator lifecycle, static Gradle builds, APK inspection, non-destructive deployment, app lifecycle, and bounded package logs.
pi-continuityPlan mode, task lists, clarifications, deterministic compaction, and durable tool-aware memory.
pi-advisorAsks a tool-free model for help on hard planning, architecture review, and failure recovery.
pi-gruntDelegates implementation slices to a worker running in an isolated Git worktree.
pi-scoutBounded repository reconnaissance and isolated public-web research.
pi-spawnPrivate resumable subagent threads and first-class child sessions.
pi-discoverIndexes sources, searches the repo and past Pi sessions, and activates deferred tools via search_tools.
pi-timelineGit-backed checkpoints per prompt: list, restore, fork, clear.
pi-guardConfirms or blocks destructive shell and file operations.
pi-verifyFinds and runs your project's existing checks with bounded time and output.
pi-heartbeatRuns bounded background shell jobs you can check or cancel.
pi-heliosConsent-gated Playwright browser, Appium Android emulator, and Windows window capture.
pi-stateqlSafe stateful database queries with durable result handles and confirmed writes.
pi-papercutDurable backlog for small workflow frictions.
pi-focusLow-noise Pi terminal UI and the focus-dark theme.

Each package works standalone. With Pylon installed, the Pi-facing packages coordinate through bounded, versioned event-bus metadata — Verify results gate Continuity completion and mark Timeline checkpoints, Guard requests a checkpoint before destructive confirmation, Heartbeat publishes job lifecycle, and Scout receives bounded verification context. Raw verification and Heartbeat logs never cross package events. See each package README for details.

Development

Install workspace dependencies and start the local web app from the repository root. The root package-lock.json is the only workspace lockfile; do not generate package-level locks.

npm run install:packages
npm run web

For development without a production build, run npm run dev --workspace @pylon/web.

Run npm run verify for the full checks. Test output hides passing results and success summaries by default, and package verification prints only failed jobs. Failure details and exit codes are preserved. For normal output, pass --verbose after npm’s argument separator: npm test --workspace @pylon/web -- --verbose, npm run test:bundle -- --verbose, or npm run verify -- --verbose.

On Windows, use workspace-relative temporary files when passing paths between Git Bash and native Node/Pylon tools; MSYS paths such as /tmp/... are not native Windows paths. Stop a running Pylon process or use a separate worktree/copy before npm ci, because Windows cannot replace native addons loaded by the active process.

版本与发布记录

@fadhilp/pylon 共发布 54 个版本,首次发布于 2026/08/01;过去 12 个月发布了 54 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.7.4latest2026/10/2817 天前
3.7.22026/10/2519 天前
3.7.12026/10/2421 天前
3.6.12026/10/2322 天前
3.5.72026/10/2223 天前
3.5.62026/10/2223 天前

关于 @fadhilp/pylon 的常见问题

@fadhilp/pylon 是什么?

Pi workflow extensions and a local web interface.

如何安装 @fadhilp/pylon?

在项目目录运行 npm install @fadhilp/pylon,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typebox(*)、@earendil-works/pi-ai(1.2.0)、@earendil-works/pi-tui(1.2.0)、@earendil-works/pi-coding-agent(1.2.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 pylon,可以用 npx pylon 直接运行。

@fadhilp/pylon 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/fadhilp__pylon 是否存在。

@fadhilp/pylon 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@fadhilp/pylon 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@fadhilp/pylon 可以商用吗?

@fadhilp/pylon 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fadhilp/pylon 的下载量有多少?

根据 npm 官方下载统计,@fadhilp/pylon 在 2026/10/14 – 2026/11/12 这 30 天内被下载 3,026 次,日均约 101 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fadhilp/pylon 还在维护吗?

最新版本 3.7.4 发布于 2026/10/28(17 天前);至今共发布 54 个版本,其中过去 12 个月发布了 54 个;首次发布于 2026/08/01。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。