# Coding Agent

> The Coding Agent is an AI agent that performs programming tasks by reading code, editing files and running commands.

## What is an AI coding agent?

The AI agent that works with a codebase: searches and reads files, makes edits across many files, runs tests and terminal commands and fixes errors. Works best with clear tasks, tests and code review.

- Topic: Agentic Coding
- Type: tool

## Common mistakes

- Letting an agent run with full permissions on a machine that holds production credentials.

## Key points

- The agent runs tests or builds after editing, and shows the output instead of only claiming success.
- Shell commands that delete data, push code or deploy require approval in the permission settings.
- The final diff contains only changes related to the task.

## Interview questions

### What tasks are coding agents good at?

Well-defined tasks with clear checks: fixing bugs with a failing test, writing tests, refactoring, migrations and boilerplate across many files.

### How do I give a coding agent project context?

Keep an instructions file in the repository with build, test and style rules, and point the agent to the relevant files and docs for each task.

### Is it safe to let a coding agent run terminal commands?

Only with limits. Allow safe commands, require approval for destructive ones, and run the agent in a sandbox without production credentials.

## Related cards

- [Agentic Coding](https://wonderium.dev/ai/agentic-coding.md)
- [Agent Harness](https://wonderium.dev/ai/agent-harness.md)
- [Agent Permissions](https://wonderium.dev/ai/agent-permissions.md)
- [Agent Sandbox](https://wonderium.dev/ai/agent-sandbox.md)
- [AI Agent](https://wonderium.dev/ai/ai-agent.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/coding-agent
- Last updated: 2026-11-25
