Ed Zynda 8f5efee837 feat: add session before-hooks (OnBeforeFork, OnBeforeSessionSwitch) and compaction event (OnBeforeCompact)
Add three new extension events that allow extensions to gate destructive
session operations and compaction:

- OnBeforeFork: fires before branching in the tree selector; handler can
  cancel with reason (e.g. dirty-repo guard)
- OnBeforeSessionSwitch: fires before /new resets the session branch;
  handler can cancel with reason
- OnBeforeCompact: fires before context compaction (auto or manual);
  handler receives token stats and IsAutomatic flag, can cancel

Includes SDK hook registry (beforeCompact), extension bridge, UI
callbacks threaded through AppModelOptions, and two example extensions:
- confirm-destructive.go: git dirty check + fork confirmation
- compact-notify.go: compaction notification + auto-compact gating
2026-03-02 16:35:00 +03:00
2026-02-25 16:24:28 +03:00
2026-02-27 11:27:48 +03:00
2024-12-10 22:25:15 +03:00
2026-02-25 16:24:28 +03:00

KIT

CI Release npm Go Reference License Discord

KIT (Knowledge Inference Tool)

TBD

S
Description
Go toolkit reference (mark3labs).
Readme MIT 13 MiB
Languages
Go 96.6%
HTML 2.6%
Python 0.5%
JavaScript 0.3%