KotlinCS 124 LogoJava

Effective Agentic Development

Learn techniques that help Claude Code work more effectively on your project.

Check your table assignment for today’s section.

Claude Code is powerful, but it works better when you set it up for success. Today you’ll learn a few practical techniques that make a real difference in how well Claude Code can help you build and improve your app.

Add Tests for Existing Code
Add Tests for Existing Code

Start by asking Claude to write tests for code you’ve already written. This helps you catch bugs and makes it safer to change things later—Claude can run the tests after making changes to make sure nothing broke.

Write Tests First
Write Tests First

Once you have some tests in place, try having Claude write tests before writing new code. This is sometimes called red-green testing:

  1. Red: Ask Claude to write a test for the feature you want. The test should fail because the feature doesn’t exist yet.
  2. Green: Ask Claude to write the code that makes the test pass.

This approach works especially well with AI-assisted development because it gives Claude a clear, concrete target. Instead of vaguely asking “add a search feature,” you’re saying “make this test pass”—and Claude can verify its own work.

Add Code Quality Tools
Add Code Quality Tools

Another way to help Claude write better code is to set up code quality tools that catch problems automatically. These tools flag issues like unused variables, missing null checks, or inconsistent formatting—things that are easy to miss but add up over time.

Ask Claude to set up a linter or code quality tool for your project. Once it’s configured, Claude can run it after making changes to catch problems early.

Update Your CLAUDE.md
Update Your CLAUDE.md

Once you have tests and a linter working, tell Claude to use them automatically by adding instructions to your project’s CLAUDE.md file. CLAUDE.md is a file that Claude reads at the start of every session—it’s how you teach Claude your project’s rules and workflows.

This is powerful because it makes the behavior permanent—Claude will follow these instructions in every future session, not just the current one.

Why This Matters
Why This Matters

These techniques aren’t just good practice—they make Claude Code significantly more effective:

You don’t need 100% test coverage or a perfect linting setup. Even a handful of tests for your core features and a basic linter make a big difference.

Before You Leave: Commit and Push
Before You Leave: Commit and Push

Before getting your attendance scanned, make sure you commit and push your work. You can ask Claude to do this for you (try “please commit and push my work”), or use the Git integration in Android Studio.

Your Claude Code session transcripts are saved automatically with each commit. We use these logs to track your progress, so a push is required before you leave.

Attendance
Attendance

Once you’ve committed and pushed, show your progress to a staff member. They’ll scan your QR code for attendance.

Feedback
Feedback