---
title: "Claude Code for lawyers: a cautious guide to a coding agent"
url: https://notionforlawyers.com/library/guide-claude-code
updated: 2026-10-17
author: Raghav Handa
---

# Claude Code for lawyers: a cautious guide to a coding agent

Claude Code is Anthropic's coding agent that runs in a terminal and can read and edit files on your computer. A lawyer might use such a tool for non-client-data tasks, such as organising public files, writing small scripts for spreadsheets or building a website. Because it can access local files, keep client material out of the folder it works in.

## Key takeaways

- Claude Code is a developer tool, not a legal tool; it is for tasks involving files and code.
- It can read and change files in folders you let it access, so scope matters.
- Do not point it at folders containing client documents unless your firm's policy and the vendor's terms allow it.
- Review everything it changes. You remain responsible.

## What Claude Code is

General information, not legal advice. Check your own bar or regulator's guidance and your client engagement terms before putting any client information into an AI tool.

Claude Code is Anthropic's agentic coding tool. You run it in a terminal, describe a task in plain language, and it can read files in the working folder, propose edits, run commands and iterate, usually asking permission for actions. It is designed for software development. Setup requires comfort with the command line, and it needs an Anthropic account or compatible plan; check Anthropic's documentation for current requirements.


## Cautious non-client-data uses

- Build or maintain your firm's public website or blog
- Write a small script to rename or sort files in a folder of public documents
- Clean up a spreadsheet of marketing contacts you are entitled to hold, following privacy rules
- Convert formats, such as many text files into one tidy document
- Prototype an internal checklist tool with invented data

These are tasks where the files contain nothing privileged. If you are not sure whether a folder is safe, it is not.


## Confidentiality rules of thumb

1. Use a dedicated empty folder: Create a working folder containing only what the task needs.
2. Keep client data elsewhere: Never run the tool from a directory that holds matter files or your document-management sync.
3. Read the permission prompts: Do not approve commands you do not understand.
4. Check vendor terms: Read Anthropic's current data and retention terms for your plan; content you work on is sent to the service.
5. Review the result: Treat generated scripts like work from an unsupervised junior: test on dummy data.

Duty of confidentiality: Rule 1.6(c) of the ABA Model Rules requires reasonable efforts to prevent unauthorised disclosure of client information. Other jurisdictions have equivalents. Check your own rules.


## Is it for you?

Most lawyers will get more from a chat assistant or Notion AI than from a coding agent. Consider Claude Code only if you want to build things, and start with a throwaway project.

- Claude for lawyers: https://notionforlawyers.com/ai/claude
- Claude chat guide: https://notionforlawyers.com/library/guide-claude-chat
- AI agents: https://notionforlawyers.com/ai/agents


## FAQ

### Do I need to know how to code?

Not necessarily, but you should be comfortable in a terminal and able to review what the tool changes. A mistake can alter or delete files.

### Can Claude Code review contracts?

It is built for software work. A chat assistant is a more natural fit for reading documents, and client documents carry confidentiality concerns either way.

### Does it send my files to Anthropic?

Content the tool reads is processed by the model service. Read Anthropic's current terms for your plan to understand retention and training use.

### Is it safe for a law firm?

Only with scoping, policy and review. Start with non-client tasks and involve your IT adviser.
