Coding Agents in KVM: Practical Containment and User Control with Limited Resources
Yutaka Nagashima
Abstract
Coding agents often need broad authority for productive development work, but granting that authority can expose users' data and infrastructure. Off-the-shelf cloud workspaces can help contain agent activity, but reliance on provider-specific platforms can lead to vendor lock-in and reduced user control. Researchers and engineers must therefore balance agent autonomy, enforced containment, and user control within available financial, computational, and human resources. We analyze these trade-offs and present KVM-Agent, an open-source implementation that automates most setup and provisioning steps. It gives agents broad authority inside replaceable Ubuntu VMs while keeping host administration outside those VMs and supporting multiple coding-agent applications, model services, and remote job delegation. The approach retains familiar workflows and user choice at the cost of VM resources, maintenance, and residual risks from secrets accessible inside the VMs and permitted network access.
Create a lesson
Related papers
Reliable Mining of Heterogeneous AI Coding-Agent Data: Context-Aware Prediction and Resource-Aware Ranking
Shared title terminology · Haoran Yu, Lifei Liu, Danping Zhang
From Delegation to Action Approval: An Exploratory Study of Developers' Practices in Collaborating with AI Coding Agents
Shared title terminology · Yinan Wu, Dominik Wermke, Ze Shi Li et al.
Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Shared title terminology · Sandeep Dhuri
How developers split roles among them and a coding agent and what "collaboration" means
Shared title terminology · Linus Ververs, Helya Dadkhah, Lutz Prechelt
SWE-Recreation: Benchmarking Coding Agents for Software Recreation
Shared title terminology · Zhiyao Xu, Zhanjie Ding, Hongyao Yu et al.
Characterizing and Detecting Unfaithful Work Reports by Coding Agents
Shared title terminology · Wenhao Yang, Runzhi He, Minghui Zhou et al.