<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hailin Liu</title><link>https://hailin.ai/</link><atom:link href="https://hailin.ai/index.xml" rel="self" type="application/rss+xml"/><description>Hailin Liu</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 24 Oct 2022 00:00:00 +0000</lastBuildDate><image><url>https://hailin.ai/media/icon_hu_76af94951e63d377.png</url><title>Hailin Liu</title><link>https://hailin.ai/</link></image><item><title>Topics related to «Trustworthy Agentic AI and Multi-Agent Systems»</title><link>https://hailin.ai/notes/trustworthy-agentic-ai-topics/</link><pubDate>Sat, 22 Aug 2026 00:00:00 +0000</pubDate><guid>https://hailin.ai/notes/trustworthy-agentic-ai-topics/</guid><description>&lt;h2 id="about-this-list"&gt;About This List&lt;/h2&gt;
&lt;p&gt;Language-model agents no longer just answer questions. They call tools, read
and modify code, run commands, and operate inside real environments over many
steps. Coding agents are the most visible form of this shift, but the same
transition puts pressure on everything around the model. A long-running agent
needs a harness that drives its execution loop reliably, memory and skills
that survive across sessions, ways to coordinate with other agents, and
controls that keep autonomous action within bounds. On each of these pieces,
the field is still more open questions than settled answers.&lt;/p&gt;
&lt;p&gt;This page collects the research directions I believe are worth pursuing over
the next two years. They are organized into four submodules — engineering and
infrastructure; intelligence, adaptation, and collaboration; evaluation and
efficiency; and trustworthy persistent systems — spanning eleven topics in
total. Each topic lists potential research focus areas and a few references
to start from.&lt;/p&gt;
&lt;h2 id="submodule-1-agent-engineering-and-infrastructure"&gt;Submodule 1: Agent Engineering and Infrastructure&lt;/h2&gt;
&lt;h3 id="submodule-overview"&gt;Submodule Overview&lt;/h3&gt;
&lt;p&gt;This submodule examines the engineering foundations that turn language models into agents capable of sustained interaction with software and external environments. It covers the execution infrastructure surrounding a model, the architecture of coding agents, and the mechanisms needed to support reliable tool use, state management, verification, observability, and iterative execution. Projects may focus on architectural analysis, system construction, controlled experimentation, or reliability evaluation.&lt;/p&gt;
&lt;h3 id="topic-11-agent-harness-architectures-and-evolution"&gt;Topic 1.1: Agent Harness Architectures and Evolution&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Master Students&lt;/p&gt;
&lt;p&gt;As large language model (LLM)-based agents evolve from conversational systems into long-running systems capable of using tools, executing code, and interacting with complex environments, the design of their surrounding execution infrastructure becomes increasingly important. An agent harness is the engineering layer that connects a foundation model to external environments by coordinating execution loops, tools, context, memory, verification, observability, and feedback. Such harnesses must accommodate uncertain decisions, dynamic tool selection, long-horizon execution, and changes in models, tasks, and environments. This research direction examines the architectural principles of reliable agent harnesses, the contribution of individual harness components to system behavior, and mechanisms through which harnesses may be improved using execution evidence and system feedback.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Architectural patterns and component models for modern agent harnesses.&lt;/li&gt;
&lt;li&gt;Effects of harness components on agent reliability, efficiency, maintainability, and scalability.&lt;/li&gt;
&lt;li&gt;Observability-driven or feedback-driven methods for adapting agent harnesses.&lt;/li&gt;
&lt;li&gt;Experimental platforms and protocols for comparing alternative harness architectures.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Lin, J., et al. (2026). &lt;em&gt;Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses&lt;/em&gt;. arXiv:2604.25850.
&lt;/li&gt;
&lt;li&gt;Ning, X., et al. (2026). &lt;em&gt;Code as Agent Harness&lt;/em&gt;. arXiv:2605.18747.
&lt;/li&gt;
&lt;li&gt;Banu, B. (2026). &lt;em&gt;Harness Engineering as Categorical Architecture&lt;/em&gt;. arXiv:2605.12239.
&lt;/li&gt;
&lt;li&gt;OpenAI. (n.d.). &lt;em&gt;OpenAI Agents SDK&lt;/em&gt;. Documentation.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="topic-12-coding-agent-architecture-and-reliability-for-autonomous-software-engineering"&gt;Topic 1.2: Coding Agent Architecture and Reliability for Autonomous Software Engineering&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Undergraduate and Master Students&lt;/p&gt;
&lt;p&gt;Coding agents are a prominent application of agentic AI, extending language models from code-generation assistants into systems that can inspect repositories, modify multiple files, execute commands, run tests, and iteratively revise solutions. Their effectiveness depends on the underlying model as well as the agent architecture, repository and environment interfaces, execution workflow, state management, verification mechanisms, and operational safeguards. This research direction studies how these components influence the ability of coding agents to complete complex software-engineering tasks and how system-level design can improve effectiveness, robustness, recoverability, and practical deployment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Architectural patterns and execution workflows in coding-agent systems.&lt;/li&gt;
&lt;li&gt;Reliability factors and failure modes in repository-level software-engineering tasks.&lt;/li&gt;
&lt;li&gt;Verification, testing, feedback, recovery, and human-review mechanisms for coding agents.&lt;/li&gt;
&lt;li&gt;Experimental platforms for analyzing coding-agent behavior in realistic development environments.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Yang, J., Jimenez, C. E., Wettig, A., Lieret, K., Yao, S., Narasimhan, K., &amp;amp; Press, O. (2024). &lt;em&gt;SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering&lt;/em&gt;. arXiv:2405.15793.
&lt;/li&gt;
&lt;li&gt;Wang, X., et al. (2024). &lt;em&gt;OpenHands: An Open Platform for AI Software Developers as Generalist Agents&lt;/em&gt;. arXiv:2407.16741; accepted at ICLR 2025.
&lt;/li&gt;
&lt;li&gt;Wang, X., et al. (2025). &lt;em&gt;The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agents&lt;/em&gt;. arXiv:2511.03690; accepted at MLSys 2026.
&lt;/li&gt;
&lt;li&gt;Jarmak, S. (2026). &lt;em&gt;Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Model&lt;/em&gt;. arXiv:2608.13867.
&lt;/li&gt;
&lt;li&gt;OpenCode contributors. (n.d.). &lt;em&gt;OpenCode: The open source coding agent&lt;/em&gt; [Software repository]. GitHub.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="submodule-2-agent-intelligence-adaptation-and-collaboration"&gt;Submodule 2: Agent Intelligence, Adaptation, and Collaboration&lt;/h2&gt;
&lt;h3 id="submodule-overview-1"&gt;Submodule Overview&lt;/h3&gt;
&lt;p&gt;This submodule studies mechanisms through which agents retain experience, acquire reusable procedures, adapt across tasks, and collaborate with other agents. The emphasis is on externalized memory and skills, their reliability over time, and the organizational strategies that enable multiple agents to solve tasks jointly. Projects may investigate representations, learning and management mechanisms, collaboration structures, or empirical behavior over extended interactions.&lt;/p&gt;
&lt;h3 id="topic-21-long-term-memory-architecture-management-and-reliability-in-llm-agents"&gt;Topic 2.1: Long-Term Memory Architecture, Management, and Reliability in LLM Agents&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Master Students&lt;/p&gt;
&lt;p&gt;Memory enables LLM agents to maintain continuity across interactions and to reuse information or experience beyond a single context window. Long-running agents continually write, retrieve, revise, consolidate, and sometimes forget stored information while operating in changing environments. These processes can introduce error propagation, stale or contradictory records, uncontrolled storage growth, privacy risks, and poorly grounded behavior. This research direction studies memory architectures and lifecycle operations together with methods for evaluating and improving the reliability, provenance, interpretability, and behavioral effects of long-term agent memory.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Architectures and representations for episodic, semantic, procedural, or hybrid agent memory.&lt;/li&gt;
&lt;li&gt;Policies for memory writing, retrieval, consolidation, updating, and forgetting.&lt;/li&gt;
&lt;li&gt;Measurement of long-term memory reliability and its effects on agent decisions and task performance.&lt;/li&gt;
&lt;li&gt;Verification, provenance, privacy, and contradiction handling in persistent agent memory.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Zhang, Z., et al. (2025). &lt;em&gt;A Survey on the Memory Mechanism of Large Language Model based Agents&lt;/em&gt;. ACM Transactions on Information Systems.
&lt;/li&gt;
&lt;li&gt;Xiong, Z., et al. (2025). &lt;em&gt;How Memory Management Impacts LLM Agents: An Empirical Study of Experience-Following Behavior&lt;/em&gt;. arXiv:2505.16067.
&lt;/li&gt;
&lt;li&gt;Du, P. (2026). &lt;em&gt;Memory for Autonomous LLM Agents: Mechanisms, Evaluation, and Emerging Frontiers&lt;/em&gt;. arXiv:2603.07670.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="topic-22-agent-skill-acquisition-and-lifecycle-management"&gt;Topic 2.2: Agent Skill Acquisition and Lifecycle Management&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Master Students&lt;/p&gt;
&lt;p&gt;As agents move from isolated tasks toward repeated and long-running operation, the ability to acquire, represent, retrieve, validate, and reuse skills becomes an important mechanism for adaptation. Agent skills can encode externalized procedural knowledge learned from demonstrations, execution trajectories, feedback, or reinforcement. A growing skill library also creates management challenges involving duplication, transferability, quality control, security, versioning, retirement, and changing task distributions. This research direction studies how agents can transform experience into reusable skills and how skill libraries can be governed and evaluated over time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Acquisition of reusable skills from demonstrations, trajectories, and interaction experience.&lt;/li&gt;
&lt;li&gt;Representations, indexing, composition, and retrieval of transferable agent skills.&lt;/li&gt;
&lt;li&gt;Validation, refinement, versioning, security, and retirement of skills.&lt;/li&gt;
&lt;li&gt;Effects of skill libraries on adaptation, transfer, robustness, and long-term agent capability.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Wang, G., et al. (2023). &lt;em&gt;Voyager: An Open-Ended Embodied Agent with Large Language Models&lt;/em&gt;. arXiv:2305.16291.
&lt;/li&gt;
&lt;li&gt;Wang, Z. Z., Mao, J., Fried, D., &amp;amp; Neubig, G. (2025). &lt;em&gt;Agent Workflow Memory&lt;/em&gt;. Proceedings of the 42nd International Conference on Machine Learning, PMLR 267, 63897–63911.
&lt;/li&gt;
&lt;li&gt;Xu, R., &amp;amp; Yan, Y. (2026). &lt;em&gt;Agent Skills for Large Language Models: Architecture, Acquisition, Security, and the Path Forward&lt;/em&gt;. arXiv:2602.12430.
&lt;/li&gt;
&lt;li&gt;Shen, J., Zhang, T., Zhao, X., &amp;amp; Cheng, H. (2026). &lt;em&gt;Dynamic Skill Lifecycle Management for Agentic Reinforcement Learning&lt;/em&gt;. arXiv:2605.10923.
&lt;/li&gt;
&lt;li&gt;Li, Y. (2026). &lt;em&gt;Dynamic Agent Skills: A Lifecycle Survey and Taxonomy of Evolving Skill Libraries&lt;/em&gt;. arXiv:2607.10113.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="topic-23-multi-agent-task-decomposition-and-collaboration-strategies"&gt;Topic 2.3: Multi-Agent Task Decomposition and Collaboration Strategies&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Undergraduate and Master Students&lt;/p&gt;
&lt;p&gt;Multi-agent systems distribute responsibilities among agents through task decomposition, role assignment, communication, and coordinated execution. Depending on task structure and coordination overhead, this organization can improve specialization, parallelism, error checking, or coverage, but adding agents does not by itself guarantee better performance. Poor decomposition, redundant work, inconsistent state, communication cost, and error propagation may offset expected benefits. This research direction examines how complex objectives can be decomposed, how roles and interaction structures can be selected, and how collaboration strategies affect reliability, performance, and resource use.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Task decomposition and role-assignment strategies for multi-agent systems.&lt;/li&gt;
&lt;li&gt;Centralized, decentralized, hierarchical, or dynamically formed collaboration structures.&lt;/li&gt;
&lt;li&gt;Communication, shared-state, conflict-resolution, and cross-agent verification mechanisms.&lt;/li&gt;
&lt;li&gt;Evaluation and optimization of collaboration under quality, latency, and resource constraints.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Li, X., et al. (2024). &lt;em&gt;A Survey on LLM-based Multi-Agent Systems: Workflow, Infrastructure, and Challenges&lt;/em&gt;. Vicinagearth, 1, Article 9.
&lt;/li&gt;
&lt;li&gt;Wang, H., Zhao, S., Wang, J., Qiang, Z., Qin, B., &amp;amp; Liu, T. (2025). &lt;em&gt;Beyond Frameworks: Unpacking Collaboration Strategies in Multi-Agent Systems&lt;/em&gt;. Proceedings of ACL 2025.
&lt;/li&gt;
&lt;li&gt;Tran, K.-T., Dao, D., Nguyen, M.-D., Pham, Q.-V., O’Sullivan, B., &amp;amp; Nguyen, H. D. (2025). &lt;em&gt;Multi-Agent Collaboration Mechanisms: A Survey of LLMs&lt;/em&gt;. arXiv:2501.06322.
&lt;/li&gt;
&lt;li&gt;Wu, Q., et al. (2023). &lt;em&gt;AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation&lt;/em&gt;. arXiv:2308.08155.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="submodule-3-agent-evaluation-and-efficiency"&gt;Submodule 3: Agent Evaluation and Efficiency&lt;/h2&gt;
&lt;h3 id="submodule-overview-2"&gt;Submodule Overview&lt;/h3&gt;
&lt;p&gt;This submodule focuses on measuring agent capabilities and improving the resource efficiency of agent execution. Agent evaluation must account for interaction trajectories, tool use, planning, recovery, reliability, cost, and environmental variability in addition to final-task outcomes. Efficiency research considers how models, tools, memory, communication, and execution policies can be selected or adapted under practical budgets. Projects may develop benchmarks, metrics, evaluation protocols, cost models, routing policies, or resource-aware execution methods.&lt;/p&gt;
&lt;h3 id="topic-31-capability-evaluation-and-benchmarking-for-interactive-tool-using-llm-agents"&gt;Topic 3.1: Capability Evaluation and Benchmarking for Interactive Tool-Using LLM Agents&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Undergraduate and Master Students&lt;/p&gt;
&lt;p&gt;Interactive, tool-using LLM agents make decisions over multiple steps and receive observations from external environments. Their performance therefore depends on planning, tool selection, state tracking, adaptation, error recovery, and execution reliability as well as final-output quality. This research direction studies how agent capabilities can be defined, measured, and compared through reproducible methodologies and realistic benchmark environments. It also considers how evaluation design, environmental variance, trajectory analysis, cost accounting, and potential benchmark contamination affect claims about practical readiness.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Capability taxonomies and evaluation frameworks for interactive, tool-using agents.&lt;/li&gt;
&lt;li&gt;Reproducible benchmarks for long-horizon tasks and stateful environment interaction.&lt;/li&gt;
&lt;li&gt;Trajectory-level metrics and analyses of planning, tool use, recovery, and failure behavior.&lt;/li&gt;
&lt;li&gt;Evaluation of reliability, cost, efficiency, generalization, and deployment readiness.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Mohammadi, M., Li, Y., Lo, J., &amp;amp; Yip, W. (2025). &lt;em&gt;Evaluation and Benchmarking of LLM Agents: A Survey&lt;/em&gt;. arXiv:2507.21504.
&lt;/li&gt;
&lt;li&gt;Yin, G., et al. (2025). &lt;em&gt;MMAU: A Holistic Benchmark of Agent Capabilities Across Diverse Domains&lt;/em&gt;. Findings of the Association for Computational Linguistics: NAACL 2025, 4752–4780.
&lt;/li&gt;
&lt;li&gt;Starace, G., et al. (2025). &lt;em&gt;PaperBench: Evaluating AI’s Ability to Replicate AI Research&lt;/em&gt;. OpenAI.
&lt;/li&gt;
&lt;li&gt;Liu, X., et al. (2024). &lt;em&gt;AgentBench: Evaluating LLMs as Agents&lt;/em&gt;. International Conference on Learning Representations (ICLR 2024).
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="topic-32-cost-aware-execution-and-resource-optimization-in-llm-agent-systems"&gt;Topic 3.2: Cost-Aware Execution and Resource Optimization in LLM Agent Systems&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Master Students&lt;/p&gt;
&lt;p&gt;LLM agent systems incur dynamic costs across extended reasoning, model inference, tool calls, memory operations, external services, environment interaction, and multi-agent communication. These costs vary across tasks and over the course of execution, so efficient operation requires system-level decisions rather than model compression alone. This research direction studies how agents can estimate the value and cost of alternative actions, adapt model and tool choices, control execution depth, and balance task quality, reliability, latency, and resource consumption under explicit budgets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Cost models for tokens, latency, computation, memory, tool calls, and inter-agent communication.&lt;/li&gt;
&lt;li&gt;Budget-aware control of reasoning depth, retries, verification, and execution termination.&lt;/li&gt;
&lt;li&gt;Dynamic model routing, tool-selection policies, and value-of-information estimation.&lt;/li&gt;
&lt;li&gt;Resource-aware scaling strategies for single-agent and multi-agent deployments.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Kim, Y., et al. (2025). &lt;em&gt;Towards a Science of Scaling Agent Systems&lt;/em&gt;. arXiv:2512.08296.
&lt;/li&gt;
&lt;li&gt;Chen, L., Zaharia, M., &amp;amp; Zou, J. (2023). &lt;em&gt;FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance&lt;/em&gt;. arXiv:2305.05176.
&lt;/li&gt;
&lt;li&gt;Ong, I., et al. (2024). &lt;em&gt;RouteLLM: Learning to Route LLMs with Preference Data&lt;/em&gt;. arXiv:2406.18665.
&lt;/li&gt;
&lt;li&gt;Wu, Q., et al. (2026). &lt;em&gt;To Call or Not to Call: A Framework to Assess and Optimize LLM Tool Calling&lt;/em&gt;. arXiv:2605.00737.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="submodule-4-trustworthy-and-persistent-agent-systems"&gt;Submodule 4: Trustworthy and Persistent Agent Systems&lt;/h2&gt;
&lt;h3 id="submodule-overview-3"&gt;Submodule Overview&lt;/h3&gt;
&lt;p&gt;This submodule addresses the controls and evidence needed for agents that can act autonomously, maintain state, and interact with users over extended periods. It brings together permission management, action control, provenance, adaptive human oversight, personalization, and persistent operation. Projects may study technical safeguards, accountability mechanisms, human–agent interaction, or system architectures that preserve reliability, privacy, security, and user control over time.&lt;/p&gt;
&lt;h3 id="topic-41-agent-action-control-and-capability-based-permission-management"&gt;Topic 4.1: Agent Action Control and Capability-Based Permission Management&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Undergraduate and Master Students&lt;/p&gt;
&lt;p&gt;Tool-using agents dynamically select actions from goals, observations, model-generated plans, and environmental feedback. When those actions access files, services, code-execution environments, or communication channels, conventional static application permissions may not capture task-specific intent or changing execution context. This research direction studies how agent capabilities can be represented, granted, constrained, monitored, and revoked. It includes least-privilege policies, action validation, policy enforcement, approval mechanisms, and context-sensitive authorization intended to preserve useful autonomy within explicit operational boundaries.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Capability models and least-privilege representations for tool-using agents.&lt;/li&gt;
&lt;li&gt;Runtime action validation, policy enforcement, confinement, and revocation mechanisms.&lt;/li&gt;
&lt;li&gt;Context-sensitive permission updates and approval strategies.&lt;/li&gt;
&lt;li&gt;Evaluation of security–utility trade-offs in agent action control.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Shi, T., He, J., Wang, Z., Li, H., Wu, L., Guo, W., &amp;amp; Song, D. (2025). &lt;em&gt;Progent: Securing AI Agents with Privilege Control&lt;/em&gt;. arXiv:2504.11703.
&lt;/li&gt;
&lt;li&gt;Xu, S., et al. (2025). &lt;em&gt;LLM-Based Agents for Tool Learning: A Survey&lt;/em&gt;. Data Science and Engineering.
&lt;/li&gt;
&lt;li&gt;Tang, Y., Liu, Y., Lan, J., Yan, Z., &amp;amp; Gelenbe, E. (2026). &lt;em&gt;Security of LLM-based Agents Regarding Attacks, Defenses, and Applications: A Comprehensive Survey&lt;/em&gt;. Information Fusion, 126, 103941.
&lt;/li&gt;
&lt;li&gt;Ling, Y., Yu, S., Chen, Z., &amp;amp; Fang, C. (2026). &lt;em&gt;Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation&lt;/em&gt;. arXiv:2606.10749.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="topic-42-agent-decision-provenance-and-dependency-analysis"&gt;Topic 4.2: Agent Decision Provenance and Dependency Analysis&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Undergraduate and Master Students&lt;/p&gt;
&lt;p&gt;Execution logs record events in an agent trajectory but may not represent how decisions depend on observations, retrieved evidence, memory records, tool outputs, intermediate artifacts, or prior actions. Decision provenance provides structured representations of these relationships so that researchers and operators can inspect how an outcome was produced and where failures or unsupported transitions entered the process. This research direction studies provenance models, dependency extraction, trace completeness, and applications to explanation, debugging, auditing, recovery, and reliability assessment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Provenance schemas and dependency graphs for agent states, decisions, actions, and evidence.&lt;/li&gt;
&lt;li&gt;Extraction or reconstruction of dependencies from execution traces and artifacts.&lt;/li&gt;
&lt;li&gt;Metrics and tests for provenance completeness, correctness, granularity, and overhead.&lt;/li&gt;
&lt;li&gt;Provenance-based debugging, auditing, failure localization, and recovery.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Wang, Y., et al. (2026). &lt;em&gt;From Agent Traces to Trust: A Survey of Evidence Tracing and Execution Provenance in LLM Agents&lt;/em&gt;. arXiv:2606.04990.
&lt;/li&gt;
&lt;li&gt;Souza, R., et al. (2025). &lt;em&gt;PROV-AGENT: Unified Provenance for Tracking AI Agent Interactions in Agentic Workflows&lt;/em&gt;. arXiv:2508.02866.
&lt;/li&gt;
&lt;li&gt;Souza, R., et al. (2025). &lt;em&gt;LLM Agents for Interactive Workflow Provenance: Reference Architecture and Evaluation Methodology&lt;/em&gt;. arXiv:2509.13978.
&lt;/li&gt;
&lt;li&gt;She, R., et al. (2026). &lt;em&gt;Safeguarding LLM Agents from Misalignment through Provenance Analysis&lt;/em&gt;. arXiv:2607.01236.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="topic-43-adaptive-human-in-the-loop-intervention-and-feedback-integration-in-llm-agent-systems"&gt;Topic 4.3: Adaptive Human-in-the-Loop Intervention and Feedback Integration in LLM Agent Systems&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Master Students&lt;/p&gt;
&lt;p&gt;Human involvement is particularly important when agent actions are high-risk, ambiguous, irreversible, or difficult to verify. Fixed or overly conservative supervision policies can request unnecessary intervention, while insufficient supervision can allow consequential errors to propagate. This research direction studies adaptive mechanisms that allow agents to proceed independently in routine situations and request human input when uncertainty, risk, novelty, or expected value warrants intervention. It also examines how human feedback can be incorporated into current execution and longer-term agent adaptation while maintaining clear responsibility and user control.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Risk-, uncertainty-, or value-sensitive policies for requesting human intervention.&lt;/li&gt;
&lt;li&gt;Allocation of limited human attention across agent tasks and execution stages.&lt;/li&gt;
&lt;li&gt;Integration of corrections, preferences, demonstrations, and approvals into agent behavior.&lt;/li&gt;
&lt;li&gt;Evaluation of collaboration quality, workload, calibration, reliability, and responsibility sharing.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Zou, H., et al. (2025). &lt;em&gt;LLM-Based Human-Agent Collaboration and Interaction Systems: A Survey&lt;/em&gt;. arXiv:2505.00753.
&lt;/li&gt;
&lt;li&gt;Takerngsaksiri, W., et al. (2024). &lt;em&gt;Human-In-the-Loop Software Development Agents&lt;/em&gt;. arXiv:2411.12924.
&lt;/li&gt;
&lt;li&gt;He, J., et al. (2025). &lt;em&gt;Enabling Self-Improving Agents to Learn at Test Time With Human-In-The-Loop Guidance&lt;/em&gt;. Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track.
&lt;/li&gt;
&lt;li&gt;Huang, X., et al. (2025). &lt;em&gt;How to Enable Effective Cooperation Between Humans and NLP Models: A Survey of Principles, Formalizations, and Beyond&lt;/em&gt;. Proceedings of ACL 2025.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="topic-44-persistent-personal-ai-agent-systems"&gt;Topic 4.4: Persistent Personal AI Agent Systems&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Suitable For:&lt;/strong&gt; Undergraduate and Master Students&lt;/p&gt;
&lt;p&gt;Persistent personal AI agents are intended to support users across tasks, sessions, devices, and extended periods rather than operate as isolated interactions. Such systems may maintain user-approved long-term state, integrate communication or productivity channels, invoke reusable skills, and provide personalized or proactive assistance. Persistent operation introduces challenges in memory quality, identity and preference consistency, privacy, access control, recovery, transparency, and safe autonomy. This research direction studies architectures and mechanisms that support continuity and personalization while preserving user control and dependable behavior.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Potential Research Focus Areas.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Architectures and lifecycle models for persistent, multi-session personal agents.&lt;/li&gt;
&lt;li&gt;Long-term state, memory quality, identity consistency, and preference management.&lt;/li&gt;
&lt;li&gt;User adaptation, proactive assistance, multi-channel interaction, and skill integration.&lt;/li&gt;
&lt;li&gt;Privacy, security, consent, transparency, recovery, and user-control mechanisms.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommended Reading.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Li, X., et al. (2024). &lt;em&gt;Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Security&lt;/em&gt;. arXiv:2401.05459.
&lt;/li&gt;
&lt;li&gt;Park, J. S., et al. (2023). &lt;em&gt;Generative Agents: Interactive Simulacra of Human Behavior&lt;/em&gt;. arXiv:2304.03442.
&lt;/li&gt;
&lt;li&gt;Du, P. (2026). &lt;em&gt;Memory for Autonomous LLM Agents: Mechanisms, Evaluation, and Emerging Frontiers&lt;/em&gt;. arXiv:2603.07670.
&lt;/li&gt;
&lt;li&gt;Liu, R., et al. (2026). &lt;em&gt;PEPA: a Persistently Autonomous Embodied Agent with Personalities&lt;/em&gt;. arXiv:2603.00117.
&lt;/li&gt;
&lt;li&gt;OpenClaw contributors. (n.d.). &lt;em&gt;OpenClaw — Your assistant, on your devices, in your chats&lt;/em&gt; [Software repository]. GitHub.
&lt;/li&gt;
&lt;/ol&gt;</description></item><item><title>Academic Experience</title><link>https://hailin.ai/experience/</link><pubDate>Thu, 16 Jul 2026 00:00:00 +0000</pubDate><guid>https://hailin.ai/experience/</guid><description/></item><item><title>SafeAgent Coder: Runtime-Controlled Coding Agent</title><link>https://hailin.ai/projects/safeagent-coder/</link><pubDate>Tue, 28 Apr 2026 00:00:00 +0000</pubDate><guid>https://hailin.ai/projects/safeagent-coder/</guid><description>&lt;h2 id="what-is-safeagent-coder"&gt;What is SafeAgent Coder?&lt;/h2&gt;
&lt;p&gt;SafeAgent Coder is a coding agent that works directly inside software
repositories. It inspects a project&amp;rsquo;s structure, finds the files and symbols
that matter, reads and searches source code, makes targeted changes, prepares a
development environment, and runs the commands needed to build or test a
project — all within one workflow.&lt;/p&gt;
&lt;p&gt;Everything comes together in a local development workspace. The agent starts
by understanding an unfamiliar repository, then moves on to making and
validating a change without switching tools or copying code between windows.
File operations, repository inspection, environment setup, and command
execution are exposed to the agent as tools, and the surrounding application
provides the workspace and interface where those actions actually take place.&lt;/p&gt;
&lt;p&gt;Tool use stays visible while the agent works. Selected operations are
intercepted before they take effect, so they can be checked or sent for human
approval when needed. Controlled execution is one part of SafeAgent Coder; at
its core it is a coding agent built for practical, repository-level development
tasks.&lt;/p&gt;
&lt;h2 id="how-does-it-work-with-a-repository"&gt;How Does It Work with a Repository?&lt;/h2&gt;
&lt;p&gt;When SafeAgent Coder receives a repository-level task, it begins by building
enough context about the project before making any changes. For an unfamiliar
codebase, that usually means inspecting the directory structure, identifying
entry points and dependency files, locating tests, and searching for the
symbols or configuration related to the task.&lt;/p&gt;
&lt;p&gt;From there, the agent narrows its attention to the files that actually matter.
It reads source code, follows references across the project, and uses what it
has gathered to decide what needs to change. It favors small, targeted edits
and works incrementally whenever possible.&lt;/p&gt;
&lt;p&gt;Once a change is in place, the same workflow can continue into execution. The
agent prepares a Python environment, installs project dependencies, runs build
or test commands, inspects the output, and uses those results to decide whether
another iteration is needed.&lt;/p&gt;
&lt;p&gt;For example, a request such as:&lt;/p&gt;
&lt;blockquote class="border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 italic text-neutral-600 dark:text-neutral-400 my-6"&gt;
&lt;p&gt;Find why the tests are failing and fix the problem.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;might lead the agent through a sequence like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;inspect project → locate tests → search relevant code → read source → edit → run tests → verify&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Every task takes its own path. A simple question may need only a few inspection
tools, while a setup, debugging, or adaptation task can involve several rounds
of reading, execution, and modification. The goal is to let the agent treat the
repository as a living development environment.&lt;/p&gt;
&lt;h2 id="inside-the-agent"&gt;Inside the Agent&lt;/h2&gt;
&lt;p&gt;SafeAgent Coder builds its coding agent with LangChain and LangGraph. The
agent is assembled from a chat model, a repository-oriented system prompt,
a set of MCP tools, persistent graph state, and an execution layer that sits
around tool calls.&lt;/p&gt;
&lt;p&gt;The current implementation pulls its tools from LangChain&amp;rsquo;s
&lt;code&gt;MultiServerMCPClient&lt;/code&gt;. When a new agent session is created, it connects to
the local MCP server and loads the available development tools before passing
them to &lt;code&gt;create_agent&lt;/code&gt;. The model, tools, system prompt, checkpoint memory,
and middleware are then combined into a single LangGraph-backed agent named
&lt;code&gt;vibe_shell&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;MultiServerMCPClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;...&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;tools&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_tools&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;agent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;create_agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;system_prompt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;SYSTEM_PROMPT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;checkpointer&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;memory&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;middleware&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;middlewares&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;interrupt_after&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;tools&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;vibe_shell&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The system prompt gives the agent a fairly specific working style. It is
encouraged to understand a repository before acting, narrow its search before
reading large parts of the codebase, prefer targeted edits over broad
rewrites, and run commands from an explicit project directory. This keeps the
agent loop focused on deliberate progress through a repository, with each tool
call serving that progress.&lt;/p&gt;
&lt;p&gt;Each user session also carries its own agent state. A &lt;code&gt;MemorySaver&lt;/code&gt;
checkpointer keeps the LangGraph thread state across multiple steps, while the
application caches the corresponding agent instance by session ID. That
continuity matters for repository tasks that need several rounds of reasoning
and tool use: the agent inspects a project, receives tool results, continues
reasoning, makes a change, and runs another command, all without treating every
action as an independent request.&lt;/p&gt;
&lt;p&gt;Execution is streamed live. The runner listens for model-output, tool-start,
and tool-end events as the graph runs. Model tokens arrive in the chat
interface as they are generated, while each tool invocation and its result
land in a separate execution trace. In practice, you can watch both sides of
the agent at once — what it is saying and what it is actually doing inside the
workspace.&lt;/p&gt;
&lt;p&gt;The agent also supports interruptions after tool execution. SafeAgent Coder
uses this hook for controlled execution and human-in-the-loop interactions,
layered on top of the same coding-agent loop. We will come back to that
shortly.&lt;/p&gt;
&lt;h2 id="the-tool-workspace"&gt;The Tool Workspace&lt;/h2&gt;
&lt;p&gt;The agent works inside a dedicated development workspace, backed by a Docker
container and exposed through an MCP server. Keeping the agent&amp;rsquo;s environment
separate means it can touch files and run commands in a safe, isolated place.&lt;/p&gt;
&lt;p&gt;The playground container runs a &lt;code&gt;FastMCP&lt;/code&gt; server and mounts a working directory
at &lt;code&gt;/home/ubuntu/workspace&lt;/code&gt;. Docker Compose exposes the MCP service on the host,
and the LangChain agent connects to it through &lt;code&gt;MultiServerMCPClient&lt;/code&gt;. The
reasoning side of the agent stays cleanly separated from the environment where
file operations, project setup, and command execution happen.&lt;/p&gt;
&lt;figure&gt;&lt;img src="https://hailin.ai/projects/safeagent-coder/images/safeagent-coder-execution-architecture.png"
alt="The execution stack: a LangChain/LangGraph agent talks MCP to a FastMCP server inside a Docker playground, whose mounted workspace holds the software repository."&gt;&lt;figcaption&gt;
&lt;p&gt;The execution stack: a LangChain/LangGraph agent talks MCP to a FastMCP server inside a Docker playground, whose mounted workspace holds the software repository.&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The container behaves like a small development machine. It is based on Ubuntu
and ships with common command-line utilities, plus Git, Python, virtual
environments, and &lt;code&gt;uv&lt;/code&gt;, so the agent can handle repositories that need more
than simple file editing.&lt;/p&gt;
&lt;p&gt;The MCP server turns those environment capabilities into a set of
repository-oriented tools that cover a normal development workflow:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Project understanding&lt;/strong&gt; — &lt;code&gt;inspect_project&lt;/code&gt;, &lt;code&gt;ls&lt;/code&gt;, &lt;code&gt;file_glob_search&lt;/code&gt;,
&lt;code&gt;search_in_files&lt;/code&gt;, and &lt;code&gt;get_file_info&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Source inspection and editing&lt;/strong&gt; — &lt;code&gt;read_file&lt;/code&gt;, &lt;code&gt;create_new_file&lt;/code&gt;, and
&lt;code&gt;single_find_and_replace&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Execution&lt;/strong&gt; — &lt;code&gt;run_terminal_command&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Repository and network access&lt;/strong&gt; — &lt;code&gt;clone_repo&lt;/code&gt; and &lt;code&gt;fetch_url_content&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Environment setup&lt;/strong&gt; — &lt;code&gt;setup_python_env&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These tools are deliberately narrow, giving the model focused operations for
common development steps. For example, &lt;code&gt;inspect_project&lt;/code&gt; looks for common
project markers such as &lt;code&gt;pyproject.toml&lt;/code&gt;, &lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;Cargo.toml&lt;/code&gt;,
&lt;code&gt;go.mod&lt;/code&gt;, &lt;code&gt;pom.xml&lt;/code&gt;, &lt;code&gt;Makefile&lt;/code&gt;, and &lt;code&gt;CMakeLists.txt&lt;/code&gt;, and returns likely
project types, dependency files, entry points, and tests. That gives the agent
a quick first view of an unfamiliar repository before it starts reading files
one by one.&lt;/p&gt;
&lt;p&gt;For source navigation, the workspace separates searching paths from searching
contents. &lt;code&gt;file_glob_search&lt;/code&gt; narrows the repository by file pattern, while
&lt;code&gt;search_in_files&lt;/code&gt; looks for symbols or text inside matching files. Both cap
their results, so a large repository does not flood the agent context with
irrelevant information.&lt;/p&gt;
&lt;p&gt;File access follows the same workspace boundary. Before any path is used, the
MCP server resolves it against &lt;code&gt;WORKSPACE_ROOT&lt;/code&gt; and rejects paths that escape
the configured workspace. The same resolver guards reading, editing, directory
inspection, command working directories, and other file-oriented operations.&lt;/p&gt;
&lt;p&gt;When execution is needed, &lt;code&gt;run_terminal_command&lt;/code&gt; starts a Bash subprocess
inside a selected directory in the workspace and returns its exit code,
standard output, and standard error to the agent. That is how a task flows
naturally from reading code into running &lt;code&gt;pytest&lt;/code&gt;, a build command, or another
project-specific tool, then reasoning over the result.&lt;/p&gt;
&lt;p&gt;The workspace can also set a project up before running it. &lt;code&gt;setup_python_env&lt;/code&gt;
creates a virtual environment and installs dependencies from a requirements
file or project configuration, using &lt;code&gt;uv&lt;/code&gt; when available and supporting a
standard Python environment as well. Repository cloning is exposed separately
through &lt;code&gt;clone_repo&lt;/code&gt;, so a project can be brought into the workspace and
handled by the same inspection, editing, and execution workflow.&lt;/p&gt;
&lt;h2 id="controlled-execution"&gt;Controlled Execution&lt;/h2&gt;
&lt;p&gt;Giving an agent access to files and a terminal is useful, but it also means
some actions deserve more attention than others. SafeAgent Coder adds a
control layer around tool execution so proposed actions can be inspected
before they reach the workspace.&lt;/p&gt;
&lt;p&gt;In the current playground configuration, read-oriented operations such as
project inspection, file search, directory listing, and file reading proceed
directly. Actions with more visible side effects — creating or editing files,
cloning a repository, preparing an environment, or running a terminal command
— are paused for confirmation.&lt;/p&gt;
&lt;p&gt;When that happens, the proposed tool call appears in the WebUI together with
its arguments. You can approve the action and let the agent continue, or
reject it before it executes. Meanwhile, the Function Calls panel keeps a
trace of tool invocations and their results, so the agent&amp;rsquo;s execution stays
visible alongside the conversation.&lt;/p&gt;
&lt;p&gt;This control mechanism is deliberately one part of the project. The coding
workflow keeps working as before: the agent reasons about a repository,
selects tools, observes their results, and continues. The execution layer
simply adds a place to step in when a particular action deserves a human check
before it runs.&lt;/p&gt;
&lt;p&gt;A separate technical note will look more closely at how this kind of
controlled agent is built with LangChain middleware, LangGraph state,
MCP tools, and human-in-the-loop execution.&lt;/p&gt;
&lt;h2 id="safeagent-and-resources"&gt;SafeAgent and Resources&lt;/h2&gt;
&lt;p&gt;SafeAgent Coder was developed alongside &lt;strong&gt;SafeAgent&lt;/strong&gt;, our broader work on
runtime protection for agentic systems. SafeAgent Coder focuses on one concrete
application — a coding agent that works with repositories and development
tools — while SafeAgent studies the more general problem of governing agent
actions during execution.&lt;/p&gt;
&lt;p&gt;The two projects serve different purposes and complement each other.
SafeAgent Coder is the place to explore the coding-agent implementation and its
development workspace. The SafeAgent paper describes the broader runtime
protection architecture, and SafeAgent Core provides the corresponding
decision-side components.&lt;/p&gt;
&lt;p&gt;The interactive playground currently uses a lightweight configurable decision
backend, which makes it easy to experiment with different tool policies
without tying the coding agent to a particular safety backend. The agent-side
control interface stays separate, so other decision backends can be plugged
into the same execution workflow.&lt;/p&gt;
&lt;p&gt;The resources below connect this coding agent to the wider SafeAgent project:
the SafeAgent Coder implementation, the paper behind the runtime protection
architecture, and the SafeAgent Core decision-side components.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;!--
When the technical note is published, add:
- [How to Build a Controlled Tool-Using Agent with LangChain and MCP](/blog/...)
--&gt;</description></item></channel></rss>