Tech Building a Context-Folding LLM Agent for Long-Horizon Reasoning with Memory Compression and Tool Use