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 checksum ကို စစ်ဆေးကာ ~/.local/bin/ တွင် ထားပေးပါသည်။

ထည့်သွင်းပြီးနောက် PRECC ကို စတင်ပါ:

precc init

precc init သည် PreToolUse hook ကို Claude Code တွင် မှတ်ပုံတင်ပြီး ဒေတာလမ်းညွှန်များ ဖန်တီးကာ ကျွမ်းကျင်မှုဒေတာဘေ့စ်ကို စတင်ပါသည်။

ထည့်သွင်းမှုရွေးချယ်စရာများ

SHA256 အတည်ပြုခြင်း

ပုံမှန်အားဖြင့် installer သည် ထုတ်ဝေထားသော SHA256 နှင့် binary checksum ကို စစ်ဆေးပါသည်။ စစ်ဆေးခြင်းကို ကျော်လွှားရန် (အကြံပြုမထားပါ):

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

ဤအရာသည် အောက်ပါတို့ကို ထည့်သွင်းပါသည်:

ကိရိယာရည်ရွယ်ချက်
RTKCommand ပြန်လည်ရေးသားခြင်း toolkit
lean-ctxCLAUDE.md နှင့် prompt ဖိုင်များအတွက် context ချုံ့ခြင်း
nushellအဆင့်မြင့် pipeline များအတွက် ဖွဲ့စည်းထားသော shell
cocoindex-codeပိုမြန်သော context ဖြေရှင်းခြင်းအတွက် code indexing

Windows (PowerShell)

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

ထို့နောက် စတင်ပါ:

precc init

လက်ဖြင့်ထည့်သွင်းခြင်း

  1. သင့်ပလက်ဖောင်းအတွက် release binary ကို GitHub Releases မှ ဒေါင်းလုဒ်လုပ်ပါ။
  2. release ရှိ .sha256 ဖိုင်နှင့် SHA256 checksum ကို စစ်ဆေးပါ။
  3. binary ကို သင့် PATH ရှိ directory တွင် ထားပါ (ဥပမာ ~/.local/bin/)။
  4. precc init ကို run ပါ။

အပ်ဒိတ်လုပ်ခြင်း

precc update

အတိအကျ version တစ်ခုသို့ အတင်း update လုပ်ရန်:

precc update --force --version 0.3.0

အလိုအလျောက် update များကို ဖွင့်ရန်:

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 တွင် ရှိမရှိ စစ်ဆေးပါ။