agent-zero/plugins/_chat_compaction/AGENTS.md
Alessandro bf2741990a
Some checks are pending
Build And Publish Docker Images / plan (push) Waiting to run
Build And Publish Docker Images / build (push) Blocked by required conditions
Revert loaded skill history persistence
Reverts db01d7c1c8 and 3c83b2eca2.

Restores the prior loaded-skills prompt-extras behavior and removes the compaction reattachment metadata path.
2026-06-18 16:45:56 +02:00

999 B

Chat Compaction Plugin DOX

Purpose

  • Own compacting an entire chat history into a single optimized summary message.
  • Keep compaction prompt, helper, API, and modal behavior aligned.

Ownership

  • plugin.yaml and default_config.yaml own metadata and compaction defaults.
  • api/compact_chat.py owns the compaction endpoint.
  • helpers/compactor.py owns summary generation and history rewrite logic.
  • prompts/ owns compaction system and message prompts.
  • webui/ owns the compaction modal and store.

Local Contracts

  • Preserve chat history integrity and persistence after compaction.
  • Keep generated summaries bounded by configured model and token limits.
  • Do not discard original context data unless the compaction flow explicitly owns that behavior.

Work Guidance

  • Coordinate prompt changes with helper behavior and UI confirmation text.

Verification

  • Smoke-test compacting a chat and reloading it after persistence.

Child DOX Index

No child DOX files.