Agents
OSIL: Learning Offline Safe Imitation Policies with Safety Inferred from Non-preferred Trajectories
Burnwal, Returaj, Bhatt, Nirav Pravinbhai, Ravindran, Balaraman
This work addresses the problem of offline safe imitation learning (IL), where the goal is to learn safe and reward-maximizing policies from demonstrations that do not have per-timestep safety cost or reward information. In many real-world domains, online learning in the environment can be risky, and specifying accurate safety costs can be difficult. However, it is often feasible to collect trajectories that reflect undesirable or unsafe behavior, implicitly conveying what the agent should avoid. We refer to these as non-preferred trajectories. We propose a novel offline safe IL algorithm, OSIL, that infers safety from non-preferred demonstrations. We formulate safe policy learning as a Constrained Markov Decision Process (CMDP). Instead of relying on explicit safety cost and reward annotations, OSIL reformulates the CMDP problem by deriving a lower bound on reward maximizing objective and learning a cost model that estimates the likelihood of non-preferred behavior. Our approach allows agents to learn safe and reward-maximizing behavior entirely from offline demonstrations. We empirically demonstrate that our approach can learn safer policies that satisfy cost constraints without degrading the reward performance, thus outperforming several baselines.
Code2MCP: Transforming Code Repositories into MCP Services
Ouyang, Chaoqian, Yue, Ling, Di, Shimin, Zheng, Libin, Yue, Linan, Pan, Shaowu, Yin, Jian, Zhang, Min-Ling
The Model Context Protocol (MCP) aims to create a standard for how Large Language Models use tools. However, most current research focuses on selecting tools from an existing pool. A more fundamental, yet largely overlooked, problem is how to populate this pool by converting the vast number of existing software projects into MCP-compatible services. To bridge this gap, we introduce Code2MCP, an agent-based framework that automatically transforms a GitHub repository into a functional MCP service with minimal human intervention. Code2MCP employs a multi-agent workflow for code analysis, environment setup, tool function design, and service generation, enhanced by a self-correcting loop to ensure reliability. We demonstrate that Code2MCP successfully transforms open-source computing libraries in scientific fields such as bioinformatics, mathematics, and fluid dynamics that are not available in existing MCP servers. By providing a novel automated pathway to unlock GitHub, the world's largest code repository, for the MCP ecosystem, Code2MCP serves as a catalyst to significantly accelerate the protocol's adoption and practical application. The code is public at https://github.com/DEFENSE-SEU/Code2MCP.
Safety with Agency: Human-Centered Safety Filter with Application to AI-Assisted Motorsports
Oh, Donggeon David, Lidard, Justin, Hu, Haimin, Sinhmar, Himani, Lazarski, Elle, Gopinath, Deepak, Sumner, Emily S., DeCastro, Jonathan A., Rosman, Guy, Leonard, Naomi Ehrich, Fisac, Jaime Fernández
We propose a human-centered safety filter (HCSF) for shared autonomy that significantly enhances system safety without compromising human agency. Our HCSF is built on a neural safety value function, which we first learn scalably through black-box interactions and then use at deployment to enforce a novel state-action control barrier function (Q-CBF) safety constraint. Since this Q-CBF safety filter does not require any knowledge of the system dynamics for both synthesis and runtime safety monitoring and intervention, our method applies readily to complex, black-box shared autonomy systems. Notably, our HCSF's CBF-based interventions modify the human's actions minimally and smoothly, avoiding the abrupt, last-moment corrections delivered by many conventional safety filters. We validate our approach in a comprehensive in-person user study using Assetto Corsa-a high-fidelity car racing simulator with black-box dynamics-to assess robustness in "driving on the edge" scenarios. We compare both trajectory data and drivers' perceptions of our HCSF assistance against unassisted driving and a conventional safety filter. Experimental results show that 1) compared to having no assistance, our HCSF improves both safety and user satisfaction without compromising human agency or comfort, and 2) relative to a conventional safety filter, our proposed HCSF boosts human agency, comfort, and satisfaction while maintaining robustness.
Meta Context Engineering via Agentic Skill Evolution
Ye, Haoran, He, Xuning, Arak, Vincent, Dong, Haonan, Song, Guojie
The operational efficacy of large language models relies heavily on their inference-time context. This has established Context Engineering (CE) as a formal discipline for optimizing these inputs. Current CE methods rely on manually crafted harnesses, such as rigid generation-reflection workflows and predefined context schemas. They impose structural biases and restrict context optimization to a narrow, intuition-bound design space. To address this, we introduce Meta Context Engineering (MCE), a bi-level framework that supersedes static CE heuristics by co-evolving CE skills and context artifacts. In MCE iterations, a meta-level agent refines engineering skills via agentic crossover, a deliberative search over the history of skills, their executions, and evaluations. A base-level agent executes these skills, learns from training rollouts, and optimizes context as flexible files and code. We evaluate MCE across five disparate domains under offline and online settings. MCE demonstrates consistent performance gains, achieving 5.6--53.8% relative improvement over state-of-the-art agentic CE methods (mean of 16.9%), while maintaining superior context adaptability, transferability, and efficiency in both context usage and training.
Active Evaluation of General Agents: Problem Definition and Comparison of Baseline Algorithms
Lanctot, Marc, Larson, Kate, Gemp, Ian, Kaisers, Michael
As intelligent agents become more generally-capable, i.e. able to master a wide variety of tasks, the complexity and cost of properly evaluating them rises significantly. Tasks that assess specific capabilities of the agents can be correlated and stochastic, requiring many samples for accurate comparisons, leading to added costs. In this paper, we propose a formal definition and a conceptual framework for active evaluation of agents across multiple tasks, which assesses the performance of ranking algorithms as a function of number of evaluation data samples. Rather than curating, filtering, or compressing existing data sets as a preprocessing step, we propose an online framing: on every iteration, the ranking algorithm chooses the task and agents to sample scores from. Then, evaluation algorithms report a ranking of agents on each iteration and their performance is assessed with respect to the ground truth ranking over time. Several baselines are compared under different experimental contexts, with synthetic generated data and simulated online access to real evaluation data from Atari game-playing agents. We find that the classical Elo rating system -- while it suffers from well-known failure modes, in theory -- is a consistently reliable choice for efficient reduction of ranking error in practice. A recently-proposed method, Soft Condorcet Optimization, shows comparable performance to Elo on synthetic data and significantly outperforms Elo on real Atari agent evaluation. When task variation from the ground truth is high, selecting tasks based on proportional representation leads to higher rate of ranking error reduction.
A Practical Guide to Agentic AI Transition in Organizations
Bandara, Eranga, Gore, Ross, Shetty, Sachin, Rajapakse, Sachini, Kularathna, Isurunima, Karunarathna, Pramoda, Mukkamala, Ravi, Foytik, Peter, Bouk, Safdar H., Rahman, Abdul, Liang, Xueping, Hass, Amin, Hewa, Tharaka, Keong, Ng Wee, De Zoysa, Kasun, Withanage, Aruna, Loganathan, Nilaan
Agentic AI represents a significant shift in how intelligence is applied within organizations, moving beyond AI-assisted tools toward autonomous systemscapableofreasoning, decision-making, andcoordinatedactionacross workflows. As these systems mature, they have the potential to automate a substantial share of manual organizational processes, fundamentally reshaping how work is designed, executed, and governed. Despite increasing awareness of agentic AI's strategic importance, engineering teams and organizational leaders often lack clear guidance on how to operationalize it effectively. Key challenges include an overreliance on traditional software engineering practices, limited integration of businessdomain knowledge, unclear ownership of AI-driven workflows, and the absence of sustainable human-AI collaboration models. Consequently, organizations struggle to move beyond experimentation, scale agentic systems, and align them with tangible business value. Drawing on practical experience in designing and deploying agentic AI workflows across multiple organizations and business domains, this paper proposes a pragmatic framework for transitioning organizational functions from manual processes to automated agentic AI systems. The framework emphasizes domain-driven use case identification, systematic delegation of tasks to AI agents, AI-assisted construction of agentic workflows, and small, AI-augmented teams working closely with business stakeholders. Central to the approach is a human-in-the-loop operating model in which individuals act as orchestrators of multiple AI agents, enabling scalable automation while maintaining oversight, adaptability, and organizational control. Keywords: Agentic AI, Agentic AIWorkflow, Responsible AI, Explainable AI, LLM, Model Context Protocol 1. Introduction Recent advances in Large Language Models (LLMs) and AI tooling have accelerated the adoption of artificial intelligence across organizations [1, 2]. What began as experimentation with AI-assisted capabilities, such as code generation, content drafting, and decision support, has evolved toward systems capable of autonomous reasoning and coordinated action. These systems, commonly referred to as agentic AI, represent a fundamental shift in how intelligence is embedded within organizational workflows. Rather than merely assisting humans, agentic AI systems can act on their behalf within defined operational boundaries, enabling AI to participate directly in the execution of work [3, 4]. As agentic AI systems mature, their impact extends beyond incremental productivity improvements toward the automation of entire manual and 2 semi-manual processes.
AgentTrace: A Structured Logging Framework for Agent System Observability
AlSayyad, Adam, Huang, Kelvin Yuxiang, Pal, Richik
Despite the growing capabilities of autonomous agents powered by large language models (LLMs), their adoption in high-stakes domains remains limited. A key barrier is security: the inherently nondeterministic behavior of LLM agents defies static auditing approaches that have historically underpinned software assurance. Existing security methods, such as proxy-level input filtering and model glassboxing, fail to provide sufficient transparency or traceability into agent reasoning, state changes, or environmental interactions. In this work, we introduce AgentTrace, a dynamic observability and telemetry framework designed to fill this gap. AgentTrace instruments agents at runtime with minimal overhead, capturing a rich stream of structured logs across three surfaces: operational, cognitive, and contextual. Unlike traditional logging systems, AgentTrace emphasizes continuous, introspectable trace capture, designed not just for debugging or benchmarking, but as a foundational layer for agent security, accountability, and real-time monitoring. Our research highlights how AgentTrace can enable more reliable agent deployment, fine-grained risk analysis, and informed trust calibration, thereby addressing critical concerns that have so far limited the use of LLM agents in sensitive environments.
The Devil Behind Moltbook: Anthropic Safety is Always Vanishing in Self-Evolving AI Societies
Wang, Chenxu, Li, Chaozhuo, Liu, Songyang, Chen, Zejian, Hou, Jinyu, Qi, Ji, Li, Rui, Zhang, Litian, Ye, Qiwei, Liu, Zheng, Chen, Xu, Zhang, Xi, Yu, Philip S.
"The organism feeds on negative entropy." --Erwin Schrödinger Motivated by the need for scalable intelligence, complex task decomposition, and the simulation of social dynamics, LLMs are increasingly deployed not as isolated reasoning engines but as socialized nodes embedded within multi-agent systems (MAS) [1]. This architectural evolution towards "agent societies" enables the emergence of collective behaviors, including division of labor, peer debate, and consensus formation, which transcend the capabilities of any single model. In recent years, this socialized paradigm has attracted growing attention, with representative examples spanning both academic prototypes and emerging real-world platforms, including Stanford's Smallville project [2], CAMEL [3], MetaGPT [4], and the recently popular open-ended agent social network Moltbook 2. Ideally, such a multi-agent society operates as a closed-loop self-evolving system [5, 6, 7, 8], as illustrated in Figure 1a. In this framework, agent models iteratively generate questions, bootstrap solutions, and learn from accumulated experience. Multi-agent societies offer a fertile testbed for self-evolution: through collaborative, competitive, and game-theoretic interactions within a closed societal environment, agents produce feedback signals that are richer and more dynamic than those obtainable from static datasets [9, 10, 11].
"Humans welcome to observe": A First Look at the Agent Social Network Moltbook
Jiang, Yukun, Zhang, Yage, Shen, Xinyue, Backes, Michael, Zhang, Yang
The rapid advancement of artificial intelligence (AI) agents has catalyzed the transition from static language models to autonomous agents capable of tool use, long-term planning, and social interaction. $\textbf{Moltbook}$, the first social network designed exclusively for AI agents, has experienced viral growth in early 2026. To understand the behavior of AI agents in the agent-native community, in this paper, we present a large-scale empirical analysis of Moltbook leveraging a dataset of 44,411 posts and 12,209 sub-communities ("submolts") collected prior to February 1, 2026. Leveraging a topic taxonomy with nine content categories and a five-level toxicity scale, we systematically analyze the topics and risks of agent discussions. Our analysis answers three questions: what topics do agents discuss (RQ1), how risk varies by topic (RQ2), and how topics and toxicity evolve over time (RQ3). We find that Moltbook exhibits explosive growth and rapid diversification, moving beyond early social interaction into viewpoint, incentive-driven, promotional, and political discourse. The attention of agents increasingly concentrates in centralized hubs and around polarizing, platform-native narratives. Toxicity is strongly topic-dependent: incentive- and governance-centric categories contribute a disproportionate share of risky content, including religion-like coordination rhetoric and anti-humanity ideology. Moreover, bursty automation by a small number of agents can produce flooding at sub-minute intervals, distorting discourse and stressing platform stability. Overall, our study underscores the need for topic-sensitive monitoring and platform-level safeguards in agent social networks.
Divide, Harmonize, Then Conquer It: Shooting Multi-Commodity Flow Problems with Multimodal Language Models
Yuan, Xinyu, Qiao, Yan, Wang, Zonghui, Chen, Wenzhi
This scenario results in what we call a multicommodity flow (MCF) problem (Assad, 1978). Its importance has been underscored by wide-ranging applications in transportation, communication, logistics, energy, and cloud computing (Schrijver, 2002; Wang & Wang, 1999; Balcik et al., 2014; Blaauwbroek et al., 2015; Chang et al., 2010). Over the past decades, optimization-based algorithms built on linear programming (LP) played an important role in solving such problems, which is guaranteed for computing near-optimal solutions (Khachiyan, 1980; Karmarkar, 1984; Chen & Ye, 2024). However, the conventional wisdom in the community is that solving these LPs becomes time-consuming as the solution space scales up (Cohen et al., 2021). This bottleneck is further magnified in modern systems, which often comprise thousands of nodes or/and links, and must accommodate millions of commodities with unpredictable demands (Applegate & Cohen, 2003; Wang et al., 2006). More recently, the advancements of machine learning (ML) have prompted extensive research into ML-based solutions (Valadarsky et al., 2017; Bernárdez et al., 2021). While faster, these methods are still limited by the problem scale ( 3.1), as the number of variables to be optimized remains unchanged. Additionally, they inherit the common shortcomings of ML models, e.g., sensitivity to unseen environments and painstaking hyperparameter sweeping. In response to the central barrier of scalability, we take a different perspective.