pi-posthorse

Posthorse:全新的上下文,相同的旅程。適用於 Pi 編碼代理(官方 Pi 1.0+ 或 fitchmultz/pi 分支)的無摘要上下文延續,具有持久筆記和

pi-posthorse 是什麼?

Posthorse:全新的上下文,相同的旅程。適用於 Pi 編碼代理(官方 Pi 1.0+ 或 fitchmultz/pi 分支)的無摘要上下文延續,具有持久筆記和歷史恢復。

pi-posthorse 概覽

這是什麼

Posthorse 是 Pi 編碼代理(官方 Pi 1.0+ 或 fitchmultz/pi 分支)的擴充功能,負責管理上下文視窗的回轉,不使用自動模型生成的摘要。它增加了明確的筆記和歷史記錄擷取,以及交接或有限範圍的恢復記錄,取代原本基於摘要的方法。

主要功能

  • 無摘要的上下文回轉,使用有限範圍的恢復記錄和安全的最後訊息尾巴,避免自動摘要。
  • 提供給模型使用的工具:new_context(乾淨重置)、get_context_remaining(預估到回轉前的 token 數)、notes(列出、讀取、搜尋、寫入、附加任務筆記)、以及 history(搜尋和讀取先前的對話,包含圖片)。
  • 自動回轉遵循 Pi 的壓縮設定,自動 Posthorse 回轉至少需要預留之後的 10,000 個 token。
  • 筆記以純文字檔案儲存在 .pi/notes/ 或 .pi/package-notes/ 目錄下,Posthorse 不會發起任何網路請求。
  • 支援官方 Pi 1.0+ 和 fitchmultz/pi 分支。

使用情境

Posthorse 適用於長時間的 Pi 任務,當您希望在不使用模型生成摘要的情況下啟動新的上下文視窗。它可以在回轉前提示模型更新任務筆記,然後繼續工作。new_context 工具允許刻意進行乾淨重置,history 工具則用來搜尋和讀取先前的對話記錄,包括圖片。

快速開始

需要使用 Node 24.12.0 或更新版本,以及 Pi 1.3.0 或更新版本。執行以下指令:bashpi install npm:pi-posthorsepi安裝後重新啟動 Pi。若要試用一次 session,可以執行 pi -e npm:pi-posthorse。更多細節請參閱儲存庫的 README。

授權與價格

授權為 MIT。價格類型為開放原始碼。

內容整理自該專案公開的 README 與儲存庫資訊。

將此徽章加入你的 README

Featured on YunoDB 徽章樣式與說明

你是這個專案的維護者嗎?展示它已收錄於 YunoDB。

Markdown[![Featured on YunoDB](https://yunodb.com/badge/fitchmultzpi-posthorse.svg)](https://yunodb.com/tools/fitchmultzpi-posthorse?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/fitchmultzpi-posthorse?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/fitchmultzpi-posthorse.svg" alt="Featured on YunoDB" height="20"></a>