Abstract
Large language model (LLM) agents have emerged as a promising paradigm for iterative optimization, yet many existing approaches rely primarily on scalar rewards to guide solution improvement. In contrast, real-world systems often generate rich execution traces that reveal why decisions succeed or fail. We study how agents can leverage such feedback for distributed job scheduling in High Energy Physics (HEP) computing infrastructures, where execution logs capture resource utilization, queueing delays, data transfers, and system bottlenecks. We propose **Active Knowledge-Extraction Agent (AKEA)**, an agentic framework that generates executable analysis programs to extract actionable knowledge from execution traces. AKEA jointly evolves scheduling policies and reusable knowledge-extraction skills, enabling the agent to adaptively identify system bottlenecks and guide subsequent policy improvements. Experiments on simulated HEP scheduling workloads demonstrate that AKEA achieves the highest throughput on larger environments, outperforming representative heuristic, neural, and LLM-based schedulers. Ablation studies further highlight the benefits of active knowledge extraction over predefined log summaries and scalar feedback alone. Our findings suggest that actively extracting knowledge from environmental feedback offers a promising direction for improving the generalization of optimization agents.