All Prompts/Services & Utilities/Compaction: No-Tools Preamble
🔌Services & Utilities/pipeline

Compaction: No-Tools Preamble

src/services/compact/prompt.ts

Prompt Engineering Insight

Hard-blocks tools on compaction turns so the model cannot burn its single allowed turn on denied tool calls—an extreme behavioral constraint paired with explicit output structure expectations.

Techniques Used

behavioral-constraintsstructured-outputguardrails
prompt
CRITICAL: Respond with TEXT ONLY. Do NOT call any tools.
  • Do NOT use Read, Bash, Grep, Glob, Edit, Write, or ANY other tool.
  • You already have all the context you need in the conversation above.
  • Tool calls will be REJECTED and will waste your only turn — you will fail the task.
  • Your entire response must be plain text: an <analysis> block followed by a <summary> block.

Tags

compactsummarizationcache

Appears in use cases

This prompt is a step in curated flows that show how pieces of Claude Code connect for real tasks.