AI Coding Agents in Practice
Intermediate · 13 missions · about 4 hours
Coding agents can read your repo, edit files and run commands. Learn how the agent loop really works, then practice the professional habits around it: instruction files, plans, tests as contracts, diff review, permissions, context, delegation and git safety.
Missions
- How the agent loop works: Model, tools, loop: build the engine inside every coding agent.
- Write the instruction file (CLAUDE.md / AGENTS.md): Standing orders that make every agent session start smart.
- Plan first: task decomposition: Make the agent explore and plan before it touches code.
- Test-first: tests as the contract: Write tests strong enough to catch an agent's wrong code.
- Review the agent's diff: "All tests pass!" The diff says otherwise.
- Permissions and sandboxing: Decide what an agent may do alone, with approval, or never.
- Build a command permission policy: Allow, ask or deny, including chained commands.
- Context management: Keep the agent's working memory sharp on long tasks.
- Trim history without breaking the conversation: Fit a token budget and keep tool pairs intact.
- Multi-agent delegation: the standalone handoff: Brief a subagent that cannot see your conversation.
- Git safety with agents: Checkpoints, branches, worktrees and recovering from mistakes.
- Debug the agent: why it never finishes: An AI-written agent loop with five classic failure modes.
- Boss: build a safe agent harness: Loop + permissions + approvals + workspace guard + audit log.
Part of: AI Web Developer career path, Backend & Cloud Engineer career path