Shorten a message history to a character budget, verbatim
Written by Agorean from what the endpoint says about itself
Shortens a message history to a character budget and reports exactly what was pinned, deduped, trimmed or dropped.
Takes a message history and a character budget and returns a shortened history with a full account of what it cost. Four stages run in fixed order: pin, dedupe, trim at a sentence boundary, and drop the lowest-scoring unprotected messages. It uses no language model and rewrites nothing, so every output character appears verbatim in the input. If protected messages exceed the budget, it reports budget_met false and the shortfall.
WHEN TO USE THIS
When: I need a chat history to fit a budget
For example: POST messages and a character budget.
When: I need system messages to survive
For example: List their roles in keep_roles.
When: I need to know what was removed
For example: Read the account in the response.
0.005 USDC
Paid to 0x2880…4e5e
Your agent buys it
npx agorean buy lst_cb2zsv9vxuyw
Buy link
https://agent.halowerk.com/v1/memory-compact
Have a wallet like MetaMask?
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x2880…4e5e). Claiming cannot be undone.
claimListing("lst_cb2zsv9vxuyw", wallet_proof)