compact_context
Assemble minimal, token-efficient context for concepts or entities by combining function bodies, structural summaries, domain concepts, and logic clusters into compact text blocks suitable for LLM prompt injection.
Instructions
Assemble minimal, token-efficient context for a concept, entity, or file — combines function body + structural summary + domain concepts + logic cluster into a compact text block suitable for LLM prompt injection. Much smaller than full source while preserving behavioral and structural information. Use when assembling context for another LLM, when asked to 'summarize X compactly', or when building prompts about codebase entities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Concept name, entity name, or file path | |
| max_tokens | No | Token budget (default: 500) |