export declare const handle = "compress";
export declare const description = "Compress session context by selectively discarding intermediary messages";
export declare const template_content = "Compress the session context. Your goal is to reduce `total_est_tokens` to near `target_tokens` (~50,000). **Never discard below `floor_tokens` (30,000)** \u2014 you need enough context to continue working.\n\n## Process\n1. Call `get_messages` to see all messages with `short_id`, `preview`, `est_tokens`, plus `target_tokens` and `floor_tokens`\n2. Cherry-pick individual messages to discard \u2014 see priority and keep rules below\n3. Stop selecting once the estimated remaining tokens would be near `target_tokens`\n4. Call `discard_messages` with the selected short_ids\n5. A follow-up turn starts automatically with reduced context \u2014 continue your task\n\n## Keep Rules (always preserve)\n- The most recent user message and your response to it\n- Code changes (create_file, overwrite_file, quick_edit, delete_file) \u2014 these are your working context\n- Plan conclusions and summaries that anchor ongoing work (write_todo, final)\n\n## Discard Priority (discard these first)\n1. `request_context` outputs for files you already finished examining\n2. `run_command` outputs that served a one-time purpose (find, rg, tree, npm test, etc.)\n3. `execute_code` outputs that were for quick verification\n4. `generate_title` calls\n5. Older user messages that have been fully addressed\n\n## Critical Rules\n- **Cherry-pick individual messages** using their `short_id`. Do NOT discard entire groups.\n- **Never go below `floor_tokens`** \u2014 you need context to continue working after compression.\n- **Never discard code changes** \u2014 create_file, overwrite_file, quick_edit, delete_file messages are your working context. Even if \"completed,\" they show what the current state of files should be.\n- **Never discard explanation/planning** \u2014 final, html_final, write_todo messages are anchors to understand session. you must have a valid reason to discard each one.\n- After discarding, continue your task with the reduced context.";
