tksq_pack
Compress child-agent output before returning it to a parent agent, preserving code blocks, file paths, line numbers, and key identifiers to reduce token use in multi-agent pipelines.
Instructions
Compress agent output for efficient return to parent agent. Optimized for multi-agent pipelines: applies medium/aggressive compression while preserving code blocks, file paths, line numbers, and key identifiers. Returns only the compressed text (minimal overhead). Use this as the last step before returning results from a child agent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "tksq_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The agent output text to compress | |
| level | No | Compression level. medium=balanced (default), aggressive=maximum reduction | |
| language | No | Language. auto=detect (default), en=English, ru=Russian |