Skip to main content
Library

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.

By Raghav Handa · Updated 17 October 2026 · 3 min read

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. 1

    Use a dedicated empty folder

    Create a working folder containing only what the task needs.

  2. 2

    Keep client data elsewhere

    Never run the tool from a directory that holds matter files or your document-management sync.

  3. 3

    Read the permission prompts

    Do not approve commands you do not understand.

  4. 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. 5

    Review the result

    Treat generated scripts like work from an unsupervised junior: test on dummy data.

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.

Frequently asked questions

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.

About the author

Raghav Handa

Raghav Handa trained as a lawyer, then spent years building legal technology, from enterprise legal products to custom systems for law firms.

Want it built for you?

LawyerOS is a ready-made Notion workspace for matters, deadlines, time and invoices. Starter $19, Pro with AI $39, one-time.

See LawyerOS