Skip to content

RFD for Interactive Compaction - #929

Open
rxgrant wants to merge 1 commit into
mainfrom
rgrant-dev-compaction-approval
Open

RFD for Interactive Compaction #929
rxgrant wants to merge 1 commit into
mainfrom
rgrant-dev-compaction-approval

Conversation

@rxgrant

@rxgrant rxgrant commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

RFD D46 adds an interactive mode to jp conversation compact. Instead of applying a summary blind, the user reviews and revises a proposed compaction by chatting with the model in a forked "compaction conversation", then applies the agreed result to the source with --continue (or discards it with --abort).

The review negotiates every field of an RFD 064 Compaction proposal (turn range, summary text, reasoning and tool-call policies), with each revision recorded as a call to a new built-in propose_compaction tool that JP validates against the source conversation as it is made. Compaction does not need other tools from the jp-tools kit to be active in the conversation; for instance, it does not need to give the LLM permission to read any files.

A summary that drops the current task state, or that covers a range ending in
the middle of an unfinished topic, misleads the model worse than the long
conversation it replaced.
`compact --reset` removes every compaction event, not just the bad one, so

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! Fixed in #930.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants