Development using Claude Code

As AI Coding Assistant tools are evolving rapidly, we've been experimenting with different AI-powered development tools like GitHub Copilot, Cursor, Claude Code, and others from a development perspective. Recently, I've spent the last 2 months diving deep into Claude Code specifically.
Different teams and developers are using these tools in various ways, and I wanted to share some insights from our journey.
Claude can be used in multiple ways.
  • Web Interface (Claude.ai): Web based chat interface for interactive conversations with Claude. No installation required and offers both free usage and paid subscription options.
  • Command Line (Claude Code): Terminal based tool for agentic coding and development workflows. Requires paid subscription.
  • API Integration (Anthropic Console): Programmatic access to Claude AI model APIs for custom applications and integrations. Requires paid subscription.
While Claude is available through several different interfaces, in this article, we will focus specifically on Claude Code.

Set up Claude Code

To install Claude Code, run the following command:
npm install -g @anthropic-ai/claude-code
After the installation completes, navigate to your project and start Claude Code:
cd your-project claude
You will be prompted to login during your first session. Claude Code offers the following authentication options:
  • Claude account with subscription (Pro, Max, Team or Enterprise): Unified subscription that includes both Claude Code and the web interface. Log in with your Claude.ai account.
  • Anthropic Console account (API usage billing): Connect through the Claude Console and complete the OAuth process. Requires active billing at console.anthropic.com.
Once logged into Claude, you can start prompting for development in the terminal.

Setting up Project Context

Assuming you have already created your project, the next step is to create context file (CLAUDE.md). This file serves as comprehensive guideline that includes a brief project introduction, technologies and frameworks used, project structure and organization, architecture and design patterns, development guidelines and workflows, as well as coding standards, dos and don'ts.
Run the following command to automatically create the CLAUDE.md file. This command analyzes the project structure and generates a context file based on your existing codebase.
/init
Make sure you commit the CLAUDE.md file to your repository so everyone on your team can access and use the same context. Update it regularly, especially after completing each feature or enhancement. This ensures that when you prompt Claude for changes, it has the latest information and can accurately follow your project structure and guidelines.

Usage in MicroService Project

In a monorepo setup where your User table schema and frontend coexist, you can simply ask: 'Create a registration form using the required User schema fields'. Easy! This works perfectly for single-codebase or modular monolith architectures.
But here's the challenge: What if you have separate repositories for frontend, backend, and microservices? How does Claude understand everything when your code is distributed? The answer is simple, add additional working directories! Use this command:
/add-dir [directory-path]
Now Claude has access to all your microservices. With this setup, Claude can understand the complete context and provide accurate responses across your entire distributed system.

MCP Server Integration

Since AI models work based on their training data, you'll occasionally find that they don't have the most up-to-date information about libraries and frameworks. That's where MCP Servers come in handy!
Context7 is one such an MCP Server that provides latest documentation for over 50K libraries. Here's how to add it to your Claude setup:
claude mcp add \ --transport http \ context7 https://mcp.context7.com/mcp \ --header "CONTEXT7_API_KEY: YOUR_API_KEY"
The great thing about MCP Servers is that you can add multiple ones for different needs. Follow the same pattern to connect Claude to other specialized MCP Servers based on your use cases.

Switching AI Model in Claude Code

When using Claude Desktop App or the web interface at claude.ai, you have the flexibility to switch between AI models. For example, you can upgrade from Sonnet 4.5 to the more powerful Opus 4.1 whenever you need enhanced capabilities.
With the Claude Code Pro plan, you're limited to Sonnet and Haiku models. You can only switch between these two. To access Opus, you'll need to upgrade to the Max Plan.
To Change Models in CLI, run this command:
/model
This will prompt you to select from the available models for your plan.

Key Lesson Learned

After using Claude Code extensively, here are the essential lessons that improved my development workflow:
  • Provide Clear Context The better context you provide, the better Claude's responses. Be specific and detailed in your prompts.
  • Break Down Complex Tasks Split big tasks into smaller pieces, makes planning easier and helps get more accurate assistance.
  • Verify Everything Never trust responses blindly. Always test and validate the code before using it.
  • Keep Code Clean Avoid clutter, remove unnecessary code, unused imports, and keep only what's needed.
  • Be Careful with Permissions Always double check roles, access controls, and security settings before moving forward.
  • Commit Only After Verification Make sure the code works as expected before pushing changes to version control.
  • Iterate for Better Results Don't expect perfection on the first try. Better results come step by step through iteration.
  • Balance Speed with Quality Quick help is useful, but always review thoroughly to ensure stability and maintainability.
  • Collaborate, Don't Depend Fully Claude is a powerful tool to enhance your productivity, but remember, human judgment is always key.
I hope this guide helps you leverage AI agentic tools like Claude Code effectively in your development work. These tools can undoubtedly accelerate your workflow, but let me share an important piece of advice: Wait until you reach at least intermediate level knowledge before depending on AI tools.
Here's why this matters: If you don't understand what you're building, you can't evaluate whether the AI's suggestions are good or bad. You'll end up copying code you don't understand, which creates technical debt and security risks.
AI tools amplify your skills but they don't create them. Invest in your learning first, and these tools will become incredibly powerful allies. Keep learning, keep building, and use AI wisely!
Write your Comment