Working Code
So far you've used Claude Code in a single session. Now let's use multiple sessions simultaneously.
Open 3 terminals and start Claude Code in each:
Terminal 1 — API development:
cd my-project
claude
> Implement the user authentication API
Terminal 2 — Testing:
cd my-project
claude
> Improve test coverage for the existing APIs
Terminal 3 — Documentation:
cd my-project
claude
> Write the API documentation
Each session works independently while sharing the same codebase. Use Git branches to manage conflicts.
Try It Yourself
Build an automation script with --print mode:
#!/bin/bash
# daily-review.sh
echo "=== Daily Code Review ==="
claude --print "Review the files changed since yesterday and summarize any issues"
echo "=== Test Status ==="
claude --print "Run the tests and analyze the cause of any failures"
echo "=== TODO Summary ==="
claude --print "Collect all TODO comments in the code and prioritize them"
Run this script every morning to automatically get a snapshot of your project's health.
"Why?" — From Coder to Orchestrator
Agentic engineering is the shift from writing code directly to directing AI agents to build systems.
Traditional vs Agentic Development
| Aspect | Traditional | Agentic | | ------------ | ------------------------ | ----------------------------------------- | | Writing code | Developer types directly | AI generates, developer reviews | | Debugging | Developer traces | AI analyzes, developer judges | | Testing | Developer writes | AI generates, developer validates | | Design | Developer decides | AI analyzes + suggests, developer decides | | Role | Implementer | Designer + reviewer |
Claude Code SDK
You can also call Claude Code programmatically:
import { claude } from "@anthropic-ai/claude-code";
const result = await claude({
prompt: "Analyze security vulnerabilities in this file",
workingDirectory: "./my-project",
});
console.log(result.stdout);
This enables integration with CI/CD pipelines, monitoring systems, and automation workflows.
Principles for Effective Agentic Workflows
- Decompose tasks — break large tasks into independent units for parallel processing
- Create verification points — mix automation and manual review appropriately
- Manage context — maintain consistency with CLAUDE.md, custom commands, and MCP
- Keep things reversible — ensure safety nets with Git branches and checkpoints
- Automate incrementally — when you spot repeating patterns, turn them into commands or scripts
Next Steps
Here's a summary of the techniques covered in this course:
Basics: Install → Basic commands → Context management
Daily: Code writing → Debugging → Testing → Git
Setup: CLAUDE.md → Custom commands → Multi-file
Advanced: Plan/Think → MCP → GitHub automation
Extend: Hooks → Skills → Custom agents → Worktree → Headless/SDK
Practice: Project build → Agentic workflow
Combine these tools to create your own development workflow. There's no single right answer — the key is finding what works for your project and your team.
Deep Dive
Will agentic development replace developers?
No. Agentic development changes the developer's role. You'll spend less time typing, but more time on design, review, and judgment.
Just because AI can produce code doesn't mean software engineering is no longer needed. In fact, the ability to understand systems, set the right direction, and guarantee quality becomes even more important.
What are Claude Code's limitations?
There are things Claude Code doesn't do well:
- Domain knowledge: You understand the "why" of business logic better than Claude.
- Creative design: Inventing entirely new architectures is still a human domain.
- Team dynamics: Communication and consensus in code reviews can't be replaced by AI.
- Latest information: Claude may not know about libraries or APIs released after its training data.
Understanding these limitations and using the tool accordingly is what makes a skilled agentic engineer.
- Run Claude Code in 2 terminals simultaneously — one for implementation, one for testing.
- Write a shell script using
--printmode that automates 3 or more of your daily development tasks. - Use everything you've learned (CLAUDE.md, custom commands, Plan mode, MCP) to work on your own project.
Q1. What is the developer's primary role in agentic engineering?
- A) Typing all the code yourself
- B) Directing AI agents and reviewing the results
- C) Leaving everything to AI without oversight
- D) Developing traditionally without AI