Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Суулгах

Хурдан суулгах (Linux / macOS)

curl -fsSL https://peria.ai/install.sh | bash

Энэ нь таны платформд зориулсан хамгийн сүүлийн хувилбарыг татаж, SHA256 шалгах нийлбэрийг баталгаажуулж, ~/.local/bin/ руу байрлуулна.

Суулгасны дараа PRECC-ийг эхлүүлнэ:

precc init

precc init нь PreToolUse hook-ийг Claude Code-д бүртгэж, өгөгдлийн сангуудыг үүсгэж, ур чадварын мэдээллийн санг эхлүүлнэ.

Суулгах сонголтууд

SHA256 баталгаажуулалт

Анхдагч байдлаар суулгагч нь нийтлэгдсэн SHA256 нийлбэртэй харьцуулж шалгана. Шалгалтыг алгасахын тулд (зөвлөдөггүй):

curl -fsSL https://peria.ai/install.sh | bash -s -- --no-verify

Тохируулсан суулгах зам

Тохируулсан байршилд суулгах:

curl -fsSL https://peria.ai/install.sh | bash -s -- --prefix /opt/precc

OpenCLI (–opencli) — WebFetch token savings

PRECC can also install OpenCLI, a third-party Node.js tool that turns ~148 websites (HackerNews, Reddit, arxiv, bilibili, zhihu, x.com, …) into structured-output commands. When installed, PRECC’s two built-in webfetch-opencli-* skills auto-rewrite raw curl/wget calls into the corresponding opencli <site> command for 5–50× smaller output.

precc init --opencli

This runs npm install -g @jackwener/opencli (requires Node.js 20+) and prints the URL for OpenCLI’s optional Chrome extension. The extension is only needed to reuse logged-in cookies on private pages; public sources work without it.

Skipping --opencli keeps PRECC fully self-contained — the auto-rewrite skill inlines a command -v opencli check that falls back to the original command when OpenCLI isn’t installed, so the skill is safe to ship default-on.

The Chrome extension requests broad permissions (debugger, <all_urls>, cookies). Operators should review them before installing it; --opencli only handles the npm package, not the extension.

Нэмэлт хэрэгслүүд (–extras)

PRECC нь нэмэлт хэрэгслүүдтэй ирдэг. --extras ашиглан суулгана:

curl -fsSL https://peria.ai/install.sh | bash -s -- --extras

Энэ нь дараахыг суулгана:

ХэрэгсэлЗорилго
RTKКомандыг дахин бичих хэрэгсэл
lean-ctxCLAUDE.md болон prompt файлуудын контекст шахалт
nushellДэвшилтэт pipeline-д зориулсан бүтэцтэй shell
cocoindex-codeКонтекстыг хурдан шийдвэрлэхэд зориулсан код индекслэл

Windows (PowerShell)

irm https://peria.ai/install.ps1 | iex

Дараа нь эхлүүлнэ:

precc init

Гараар суулгах

  1. Платформдоо зориулсан хувилбарыг GitHub Releases хуудаснаас татаж авна.
  2. SHA256 шалгах нийлбэрийг хувилбар дахь .sha256 файлтай тулгаж шалгана.
  3. Бинари файлыг PATH дээрх хавтаст байрлуулна (жнь ~/.local/bin/).
  4. precc init ажиллуулна.

Шинэчлэх

precc update

Тодорхой хувилбар руу албадан шинэчлэх:

precc update --force --version 0.3.0

Автомат шинэчлэлтийг идэвхжүүлэх:

precc update --auto

Installing under OpenClaw / ClawHub

PRECC ships a plugin manifest at plugins/openclaw/openclaw.plugin.json (id precc-token-saver). When a public release is published, the GitHub Actions workflow clawhub-publish.yml pushes the skill bundle to the ClawHub registry, so end users can install PRECC through the ClawHub CLI rather than the curl installer:

# ClawHub CLI
clawhub install precc

# Or pin the plugin manifest (id: precc-token-saver) via OpenClaw's
# plugin marketplace UI or its CLI equivalent.

How savings surface under OpenClaw

Every PRECC reporting surface that works under Claude Code also works under OpenClaw — precc savings, precc savings --all, the localized status line (set PRECC_LANG=zh and the line renders in your language), and the local rewrite audit log all read from the same SQLCipher databases on your machine. A separate spec at docs/symposium-plan/openclaw-savings-reporting.md describes a future structured preccSavings field in every hook response plus a one-line session-end notification at a $0.05 default threshold; that piece is not yet shipped.

Суулгалтыг шалгах

$ precc --version
precc 0.3.0

$ precc savings
Session savings: 0 tokens (no commands intercepted yet)

precc олдохгүй бол ~/.local/bin таны PATH дээр байгаа эсэхийг шалгана уу.