Command Palette
Search for a command to run
Command Palette
Search for a command to run

pruneMessages

✓ Relevant

pruneMessages() filters ModelMessage arrays to reduce token usage by removing reasoning, tool calls, and empty messages with configurable strategies per option type.