---
title: "Discussion on \"What Actually Happens When an AI Agent Runs a Shell Command on Your Machine\" | Hashnode"
description: "Discussion on \"What Actually Happens When an AI Agent Runs a Shell Command on Your Machine\". You request that the build folder be cleaned up by your coding agent. What happens if it executes rm -rf ~/ build with a single stray space? A permission box that they've clicked through forty times t"
url: "https://hashnode.com/posts/what-actually-happens-when-an-ai-agent-runs-a-shell-command-on-your-machine/6ada9c5e5e0fca8687b11c8d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What Actually Happens When an AI Agent Runs a Shell Command on Your Machine](https://interestingfactsabouttechnology.hashnode.dev/what-actually-happens-when-an-ai-agent-runs-a-shell-command-on-your-machine?utm_source=hashnode&utm_medium=feed)

You request that the build folder be cleaned up by your coding agent. What happens if it executes rm -rf ~/ build with a single stray space? A permission box that they've clicked through forty times t

Oct 22 · 4 min read · interestingfactsabouttechnology.hashnode.dev  
Read the article

## Written by

[Mitchelle Ashley Creado](https://hashnode.com/@micreado)

@micreado · Sunnyvale, USA

  
[View profile](https://hashnode.com/@micreado)

Let's learn together

## Responses 1

Markdown supported · ⌘↵ to post

[Mitchelle Ashley Creado](https://hashnode.com/@micreado)

[Oct 27](https://hashnode.com/posts/what-actually-happens-when-an-ai-agent-runs-a-shell-command-on-your-machine/6ada9c5e5e0fca8687b11c8d/comment/6ae0e630f70d4e68a1f5ee11)

#cybersecurity #devops #llm #bash
