Introduction to agentic coding
Move from fragmented AI code snippets to deploying integrated features with agentic coding that understands your entire codebase.

Learn how teams at NBIM, Brex, and more build reliable AI agents with Claude on AWS Bedrock.
Learn how teams at NBIM, Brex, and more build reliable AI agents with Claude on AWS Bedrock.
Learn how teams at NBIM, Brex, and more build reliable AI agents with Claude on AWS Bedrock.
Move from fragmented AI code snippets to deploying integrated features with agentic coding that understands your entire codebase.
AI-assisted coding has evolved rapidly over the last few years. Tools that once suggested the next line now predict entire functions by analyzing patterns in your code.
The latest evolution takes this further: instead of predicting what you'll type next, these systems autonomously execute multi-step development tasks by reading files across your codebase, running tests, and iterating until your goal is complete.
Agentic coding shifts AI from autocomplete to autonomous task executor. Traditional coding assistants wait for you to type each line and suggest what comes next. Agentic systems take a high-level goal, break it into discrete steps, execute those steps independently, and adjust their approach based on feedback from your environment.
The key distinction lies in autonomy and scope. Traditional AI tools analyze code visible in your editor and suggest the next fragment. Agentic coding tools read entire codebases, understand file relationships across directories, execute commands to verify changes work, and iterate until tests pass and requirements are met. This autonomy extends across the development cycle, with each step happening without requiring you to manually orchestrate the workflow.
Tools like IDE autocomplete extensions analyze code visible in your editor to predict what you might type next. These systems excel at repetitive patterns like generating REST endpoint boilerplate, creating test structures following established conventions, and implementing common algorithms.
The prediction model considers your immediate context. When you write a function signature, the tool suggests an implementation based on the function name, parameter types, and surrounding code. When you start typing an import statement, it recommends packages based on what's already imported and common usage patterns.
The limitation lies in scope. Autocomplete tools work with limited context windows, typically analyzing only your current file or a small number of nearby files. They can't trace data flow through your application architecture or understand how changes in one service affect dependent services.
Browser-based coding assistants like Claude.ai added conversational capabilities to AI coding tools. Instead of suggesting code as you type, these tools engage in conversation about your code problems through analyzing pasted snippets, bug descriptions, and optimization questions.
These interfaces excel at analysis and guidance. Paste a slow database query to get optimization recommendations. Describe an architectural decision to receive trade-off analysis. Share an error message to explore troubleshooting approaches.
The conversational format supports iterative refinement. You ask a general question, receive an initial response, clarify your requirements based on that response, and progressively narrow toward a specific solution. This back-and-forth works well when problems aren't fully defined or when you need to explore different approaches before committing to implementation.
This becomes impractical for tasks involving multiple files. Refactoring a module imported by thirty other files means pasting each file into the chat, manually tracking which files need updates, copying suggested changes back to each file, and ensuring consistency across all modifications. Chat interfaces provide guidance, but orchestrating implementation remains manual. This is the gap that agentic coding systems are designed to fill.
Agentic coding systems operate at the project level rather than the file level. When you provide a goal, the system analyzes the relevant context needed to accomplish it by reading configuration files to understand your project setup, examining test files to see existing coverage patterns, and tracing imports to map dependencies between modules.
The system then creates a plan for accomplishing the goal. This isn't a static list but an adaptive approach that evolves as the system gathers more information. If your goal is "add authentication to the API," the plan might start with analyzing existing route definitions, identifying which endpoints need protection, checking whether authentication middleware already exists, and determining where user session management should be implemented.
The implementation phase involves reading and writing files across your codebase. Unlike autocomplete tools that suggest changes within a single file, agentic systems modify multiple related files to maintain consistency. Adding authentication might require updating route handlers, creating middleware functions, modifying database schemas, adjusting API client code, updating documentation, and adding test coverage across all these changes.
This autonomous workflow transforms development from "write code, run tests, read errors, fix code, repeat" into "define goal, review proposed changes, approve implementation." You maintain control by reviewing plans and approving file changes while the system handles the iterative debugging cycle, research into existing code patterns, and coordination of changes across multiple files.
Claude Code brings agentic capabilities to your terminal environment. Unlike browser-based tools requiring constant code copying or IDE extensions analyzing only visible files, Claude Code operates directly within your project directory with full access to your codebase.

Install Claude Code in your terminal:
npm install -g @anthropic-ai/claude-codeThen launch it in your project directory to start coding:
claudeClaude Code reads your entire project context upon request. When you ask about architecture or request changes, it analyzes file structures, understands dependencies declared in package.json or requirements.txt, traces how modules interact, and identifies existing patterns established across your codebase.
Multi-file operations become straightforward. Request "refactor this callback-based code to use async/await," and Claude Code identifies all files using the callback pattern, updates each with async/await syntax, modifies error handling to use try/catch blocks, updates related tests to handle async patterns, and verifies your entire test suite still passes.
File system access enables workflows that web-based tools can't handle. Claude Code creates new files with appropriate naming conventions, organizes code into logical directory structures, updates configuration files when adding dependencies, and maintains consistency with your existing project organization patterns.
The permission model ensures you maintain control. By default, Claude Code requests approval before modifying files and shows exactly what changes it plans to make. You review the proposed modifications, approve changes you agree with, and request revisions for changes that don't meet requirements.
Integration with your development workflows means Claude Code interacts with tools you already use. It runs npm commands to install dependencies, executes test runners like Jest or pytest, uses Git for commits and branching, and starts development servers to verify changes work in running applications.
You can extend these capabilities further by connecting Model Context Protocol (MCP) servers, which provide Claude Code with comprehensive context from additional tools and systems across your development environment.
Rakuten's engineering team challenged Claude Code's agentic capabilities with implementing a specific activation vector extraction method in vLLM, an open-source library containing 12.5 million lines of code across Python, C++, and CUDA. Claude Code completed the entire implementation in seven hours of sustained autonomous work.
"I didn't write any code during those seven hours, I just provided occasional guidance"
- Kenta Naruse, Machine Learning Engineer at Rakuten
The final implementation achieved 99.9% numerical accuracy compared to the reference method, demonstrating the system's ability to understand complex, multi-language codebases, plan implementation approaches for sophisticated algorithms, and deliver production-quality results.
Rakuten's transformation metrics:
As Yusuke Kaji, General Manager of AI for Business at Rakuten, explained: "You can have five tasks running in parallel by delegating four to Claude Code while focusing on the remaining one."
After installing Claude Code with npm, navigate to a project directory and start a session:
claudeExperiment with a few different tasks to see how Claude Code understands your codebase.
Explain the structure of this codebase and how the main components interactClaude Code reads your files and provides an architectural overview, helping you or new team members understand project organization.
Review the authentication module for potential security issuesClaude Code examines the relevant code, identifies concerns like exposed credentials or insufficient validation, and suggests specific improvements.
Find all N+1 query problems in our GraphQL resolvers and implement DataLoader batchingClaude Code analyzes your entire codebase, identifies specific ORM patterns causing N+1 problems, and implements a fix.

As you work with Claude Code, you develop intuition for which tasks benefit most from autonomous execution versus tasks better handled with traditional development tools. Some immediate applications that provide quick wins include:
Each interaction provides an opportunity to learn how Claude Code approaches problems within your specific codebase. Get started with Claude Code or visit our docs to learn more.
Get the developer newsletter
Product updates, how-tos, community spotlights, and more. Delivered monthly to your inbox.
Get the developer newsletter
Product updates, how-tos, community spotlights, and more. Delivered monthly to your inbox.