Agents/GitHub/Tool

pi-context-budget

by woksin·Last observed 2026-10-27
★ 0 stars⑂ 0 forks

pi-context-budget is an extension package for pi that replaces a large conversation with a concise, structured handoff while keeping the same session and process. Its handoff separates verified facts, hypotheses, and user constraints, allowing work such as jobs, subagents, and session-scoped integrations to remain active.

Useful for

  • Hand off a long pi conversation while keeping its running jobs and subagents active in the session.

Key features

  • The `context_handoff` tool separates verified facts, hypotheses, and user constraints, and gathers git HEAD independently.
  • It can reset idle context, provide an overflow backstop, run optional resume checks, and use a wrapper to relaunch in a fresh process when needed.

Requirements & limitations

  • Requires Node.js 22.19+, Bash, and a POSIX system; Windows is not supported.
  • For subagent integrations with explicit extension allowlists, the primary session must load this package and expose `context_handoff` before SDK children start.

Project information

CategoryAgents
TypeTool
Author / organizationwoksin
LicenseMIT
Last observed2026-10-27

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote