Swarmz

File Operations

How the agent creates, edits, and deletes files

The agent manages project files directly. It doesn't just suggest changes — it writes them, creates new files when needed, and cleans up unused ones.

File diff showing AI agent edits

Creating files

When building a feature, the agent creates whatever files are needed — components, pages, hooks, API routes, config files. It follows the project's existing structure and naming conventions.

Editing files

The agent reads the full file before making changes. Edits are targeted: it modifies the relevant code and leaves the rest alone. You see a diff of what changed.

Terminal access

The agent runs commands in the project's container when it needs to:

Command typeExamples
Package managementnpm install, pnpm add
Scriptsnpm run build, npm test
DatabaseMigrations, seeds
GitCommit, branch, push

All terminal output shows up in the editor so you can see exactly what ran and what it produced.

On this page