Anthropic engineer shares workflow tips for Claude Code
The creator of Claude Code shared a practical guide on using the tool for codebase exploration, planning, and automated testing.
The short version
- Boris Cherny recommends starting with codebase Q&A to reduce onboarding time for new engineers.
- Users are encouraged to ask Claude to create a plan and seek approval before writing any code.
- Providing the AI with tools to run unit tests or take screenshots allows for autonomous iteration.
- The CLAUDE.md file serves as a primary way to provide persistent context and project-specific rules.
- Claude Code can be used as a 'super intelligent Unix utility' by piping data into the SDK.
A focus on workflow over prompts
Boris Cherny, a member of the technical staff at Anthropic who created Claude Code, recently gave a workshop at the 'Code with Claude' event. Rather than focusing on specific wording or prompt engineering, Cherny spent the majority of his talk on practical workflows. He suggests that the most effective way to use the tool is to understand how to structure the interaction between the human and the AI.
One of his primary recommendations is to begin every project with a codebase Q&A session. He notes that Anthropic uses this method to onboard new engineers, claiming it can reduce the time to understand a new repository from several weeks to just a few days. By asking questions about how classes are instantiated or why certain arguments were added, engineers can quickly map out the system without waiting for human teammates to explain it.
This approach works because Claude Code explores the repository directly without requiring a remote database or indexing. This means there is no wait time for setup, and the model can find real usage examples rather than just matching keywords. Cherny suggests that the model is capable of understanding git history and complex logic naturally, even without specific instructions in the system prompt.
Why it matters
For developers, these tips move the focus from 'perfect prompting' to 'better workflows.' By treating the AI as a teammate that needs a plan and a way to verify its work, users can achieve higher-quality outputs on complex tasks.
Planning and self-correction
A major hurdle in AI coding is the model occasionally building the wrong feature on the first try. Cherny argues that the simplest fix is to force the AI to brainstorm and create a plan before it starts writing any code. He suggests telling the AI to ask for approval on that plan first, noting that fixing a wrong plan in a paragraph of text is much cheaper than fixing a wrong implementation in a code diff.
To improve the quality of the output even further, Cherny highlights the importance of giving the AI a way to check its own work. If the AI can run unit tests, execute a linter, or take a screenshot of a UI mock using a tool like Puppeteer, it can iterate on its own output until it is correct. This allows the model to fix its own mistakes autonomously, leading to much higher accuracy in complex UI tasks.
He also suggests using the tool to handle repetitive tasks like committing, pushing, and opening pull requests. Because the model can read the git log, it can learn a user's specific commit format and handle the entire sequence. Cherny attributes this success to the model's ability to learn from the existing context of the repository without needing specialized prompts for every action.
Context and team configuration
Providing the AI with the right context is essential for making smarter decisions. Cherny recommends using a CLAUDE.md file in the project root to store persistent information like style rules, custom commands, and key files. This file is read at the start of every session, ensuring the AI has the same background knowledge as the human engineers who are working on the project.
For teams, Cherny describes a hierarchy of settings that can be shared across an organization. This includes project-specific settings, global settings, and enterprise policies that can block certain URLs or auto-approve safe commands. By checking these configuration files into the repository, a team can ensure that everyone benefits from a shared setup, where one person's configuration work helps the entire group.
The goal is to provide the AI with the same tools the human team already uses. This includes Bash tools for running specific CLI commands and MCP tools for connecting to external servers. By giving the AI access to these existing tools, it can operate within the same environment as the developers, making it much more useful for real-world tasks like incident response or CI/CD pipelines.
Advanced usage and the SDK
For power users, Cherny suggests running multiple sessions in parallel using tools like tmux or git worktrees. This allows for isolating different tasks or branches while working on the same repository. He also highlights the ability to use the Claude SDK as a 'super intelligent Unix utility' by piping data from other command-line tools directly into a prompt.
This method allows developers to pass specific output formats, such as JSON, and use the AI to summarize logs or flag risks in git status updates. Anthropic reportedly uses this approach internally for incident response and CI processes. It treats the AI as a component in a larger pipeline rather than just a chat interface, allowing for automated data processing and analysis.
While many users prefer IDEs like VS Code, Cherny noted that the terminal is the common denominator for many different editors. He predicted that the terminal-first approach might lead to fewer people using traditional IDEs by the end of the year. However, he also acknowledged that Claude Code is expanding to include a desktop app and cloud sessions to accommodate different user preferences.
What to watch
- How the 'tiered permission system' for bash commands will evolve to balance safety and usability.
- Whether the prediction of moving away from traditional IDEs toward terminal-based AI tools will materialize.
Try it
Open a repository you are unfamiliar with and ask Claude Code five questions about the codebase before you attempt to write any new code.
More stories
Get The Daily
AI news, explained in 5 minutes a day. Free. The first issue is coming soon.
No password. Unsubscribe any time. Privacy
Say why
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.
Sources
The reporting and documents this story is built from. Each link opens the original.
- ReportingExplainX: the article we sourced explainx.ai
Written with AI by the SI Agent News Desk from the reporting above. Every number is checked against it.Spot a mistake? Corrections.

Claude
Claude
Claude
Claude