# The creator of Claude Code explained how to work effectively with an AI assistant

Anthropic engineer Boris Cherny, creator of Claude Code, conducted a 28-minute masterclass on working with an AI assistant for developers. He explained how to provide the model with context, explore the codebase, save instructions for the team, and work on tasks in parallel.

Claude Code is an AI development assistant that operates in the terminal. It can explore codebases, create functions, fix bugs, run commands, and work with connected tools.

**Start by asking questions about the codebase**

Boris Cherny advises against starting by immediately asking for a large amount of code to be written. Instead, it is better to first ask Claude Code questions about the project: how a specific module is structured, where the required logic is located, which files are related to a function, or how a particular process works.

This way, the model gains project context, and the developer can quickly get up to speed with an unfamiliar codebase. After that, you can ask Claude Code to create a change plan and only then proceed to edit the code.

**Provide the model with more context**

The quality of the result depends directly on the context. You should explain to Claude Code what task needs to be solved, what constraints the project has, what tools are already in use, and what the final result should look like.

For example, instead of a short prompt like “fix the bug,” it is better to specify:  
— where the problem manifests  
— what is happening now  
— what the expected result should be  
— which files or parts of the project might be related to the error  
— how to verify the fix.

It is also useful to provide the model with feedback during the work: clarify requirements, ask to reconsider the solution, and explain exactly what does not fit.

**Use the CLAUDE.md file**

One of the key pieces of advice is to create a CLAUDE.md file. You can save permanent instructions for the model there: formatting rules, commands for running tests, architectural specifics, pull request requirements, and team agreements.

This way, Claude Code will not have to re-explain the same rules in every new dialogue. The file can be stored in the repository along with the code so that the entire team can use it.

For example, in CLAUDE.md you can specify which commands to run before committing, which libraries should not be used, how to format changes, and where the important project services are located.

**Connect team tools**

Claude Code can use developers’ familiar tools: terminal commands, scripts, knowledge bases, and MCP servers. Boris Cherny advises connecting the tools that the team already uses in their work.

This allows the assistant not only to read and write code but also to perform related actions: running tests, checking logs, accessing documentation, or working with internal company services.

**Plan work before making changes**

For large tasks, it is recommended to first ask Claude Code to explore the project and create a plan. The model can describe which files will need to be changed, which dependencies the task will affect, and what risks might arise.

After that, the developer can review the plan, ask additional questions, and only then allow the model to make changes. This approach helps maintain control over the task and spot errors in the solution logic in advance.

**Run multiple sessions in parallel**

Another way to speed up work is to divide tasks among several Claude Code sessions. For example, in one session you can ask the model to explore the codebase, in the second to prepare an implementation plan, and in the third to check tests or find potential errors.

Parallel work is especially useful for independent tasks. If multiple sessions simultaneously modify the same files, this can create conflicts.

**Don’t look for the perfect prompt**

Effective work with an AI assistant is not built around a single “magic” prompt. It is more important to create a clear environment for the model: provide context, connect the necessary tools, save permanent instructions, and break down large tasks into stages.

This means Claude Code is better used not as a regular chatbot, but as an assistant to whom you need to assign a task, explain the rules of work, and verify the result.
