Claude Code for business teams: setup, guardrails and what it's good for
Set up Claude Code, Anthropic's agentic coding tool, so the repository enforces safe use: a short CLAUDE.md, committed permission rules, hooks, CI and branch protection. It suits integration glue, reading inherited code and characterisation tests. Be careful with money, permission and migration logic. The controls that matter most make sure someone reads every change.
By Saveez IrfanUpdated
The short version
- Treat Claude Code as a colleague with fast hands and no context. It needs a written brief, limited access and a reviewer, like any new contributor.
- CLAUDE.md holds conventions and commands, but Anthropic's documentation calls it context, not enforced configuration. Rules that must hold belong in permission settings, hooks and CI.
- Commit a shared .claude/settings.json that allows your lint, type and test commands and denies reading environment files. Deny rules apply immediately, but allow rules wait until each person trusts the folder.
- A hook that errors doesn't block by default, and command hooks run with your full user permissions. CI and branch protection are the gate that doesn't depend on anyone's laptop.
- It suits integration glue, reading inherited code, characterisation tests and drafted migrations. Be careful with money, permission and migration logic, and with rules no one has written down.
- Unread changes are a process failure more than a tool failure. Small diffs, tests approved by a person first, required human approval and extra scrutiny for edits to the guardrails themselves prevent most of them.
What is Claude Code, and what is it not?
Anthropic describes Claude Code as an agentic coding tool that reads your codebase, edits files, runs commands and integrates with your development tools. It runs in a terminal, in IDE extensions, in a desktop app and in a browser, and the same project files (CLAUDE.md, settings, MCP servers) apply across them.
It works directly with git: it can stage changes, write commit messages, create branches and open pull requests, and it can run in CI through GitHub Actions or GitLab CI/CD.
It isn't autocomplete, and it isn't a replacement for someone on your team who can read a diff. Speed you can't review is a faster way to build something you can't maintain. We use Claude Code day to day and we build on Claude through its public API. We aren't an Anthropic partner, and nothing here is endorsed by Anthropic.
Everything below about the tool's behaviour comes from Anthropic's Claude Code documentation, as we read it on 10 October 2026, and is linked under Sources. The product changes often, so check those pages before you rely on a detail.
How should a team set Claude Code up?
Put the safe way of working in the repository so no one has to remember it. Six layers do that, and they aren't equally strong. Only some of them are enforced.
| Layer | What it does | Does it enforce anything? | Where it lives |
|---|---|---|---|
| CLAUDE.md | Tells Claude the commands, conventions and off-limits areas at the start of every session | No. Anthropic calls it context, not enforced configuration | CLAUDE.md or .claude/CLAUDE.md, committed |
| Permission rules | Decide what runs without asking and what can never be read or run | Yes, in the client, whatever Claude decides | .claude/settings.json, committed |
| Hooks | Run your own commands at set points, such as lint after every edit, or block a command | Yes if they block (exit code 2). A hook that merely fails doesn't block by default | Settings files |
| MCP servers | Connect Claude to other tools and data | Scope and permissions are yours to set | .mcp.json for project servers |
| Tests and CI | Check every change on a clean machine, independently of the tool | Yes, on the server | Your CI configuration |
| Branch protection and review | Stops unreviewed changes reaching the main branch | Yes, at your code host | Repository settings |
CLAUDE.md: the brief
CLAUDE.md is a markdown file Claude Code reads at the start of every session. A project file lives at ./CLAUDE.md or ./.claude/CLAUDE.md and is shared through version control. A personal CLAUDE.local.md is meant to be added to .gitignore, and an organisation can deploy a managed file to every machine.
The documentation recommends concrete, checkable instructions and a file under 200 lines, with longer or area-specific guidance moved into path-scoped rules under .claude/rules/. Running /init generates a starting file. Add a line whenever Claude repeats a mistake or a code review catches something it should have known.
For an operations codebase, the lines worth writing are the ones a new contributor would otherwise get wrong. These are examples to adapt, not a template from the documentation.
- Run the lint, type-check and test commands, and report the result, before calling a change done.
- Never edit a migration that has been applied. Add a new one.
- Billing, permission and role logic lives in named modules. Changes there need a test that a developer has written or approved first.
- Never read or print environment files. Nothing in this repository should point at production.
- Retries must be safe to repeat, so use a stable key and find-or-create instead of a blind insert.
Permissions and modes: what runs without asking
Anthropic's security page describes the choices. In manual mode Claude Code starts read-only and asks before editing files or running commands, apart from a built-in set of read-only commands. Accept Edits mode auto-approves file edits and a fixed set of filesystem commands inside the working directory.
Auto mode uses a separate classifier model to approve or block actions instead of a person, and the page describes it as the built-in starting mode for interactive terminal and VS Code sessions. Check which mode your version and surface start in, and choose the team's default on purpose.
The shared file is .claude/settings.json, committed so everyone who clones the repository gets the same rules. The documentation's own example allows the lint and test commands and denies reading .env files.
Three details matter for teams. Allow rules in a committed file apply only after each person trusts the folder, while deny and ask rules apply straight away, so a committed deny list is safe to rely on. Allow lists from different files are combined, not replaced. And the auto and bypassPermissions default modes don't take effect from project or local settings, so a repository can't switch the prompts off for everybody who opens it.
A permission prompt isn't a sandbox. The documentation is explicit that the working-directory boundary is a prompt, and that a Bash command you approve can still write anywhere your user account can. For real isolation it describes a sandboxed bash tool with filesystem and network isolation, configured with /sandbox, and development containers.
A deny rule on a command also matches the command as written, so network enforcement needs the sandbox. Organisations can enforce settings centrally through managed settings. Above all, keep production credentials off the machine that runs the tool.
Hooks: checks that don't depend on the model remembering
Hooks are user-defined shell commands, HTTP endpoints or prompts that run automatically at set points in Claude Code's lifecycle. The documentation's examples are the useful ones: a PostToolUse hook that runs a lint script whenever Claude edits or writes a file, and a PreToolUse hook that blocks destructive shell commands. A hook that exits with code 2 blocks the action.
Three cautions from the same documentation. Command hooks execute with your full user permissions, so review them like code. Any other failure, such as a script path that doesn't exist, is a non-blocking error and the action goes ahead, unless you set the hook to block on failure.
And in an interactive session hooks wait for workspace trust, but a non-interactive claude -p run treats the folder as trusted, so hooks committed in a repository run. Review the .claude directory before scripting Claude Code over a branch you didn't write. Hooks speed up the loop. They aren't your last line of defence.
MCP servers: connect read-only, and to staging
The Model Context Protocol is an open standard for connecting AI tools to external data and services, and Claude Code can use it to reach tickets, documents or your own tooling. Project servers are defined in .mcp.json, which can be committed.
The security page adds that servers at other scopes, claude.ai connectors and plugins are configured outside the repository, so reading .mcp.json doesn't show every server a session can load. It also says Anthropic doesn't security-audit or manage MCP servers, and encourages writing your own or using providers you trust.
For an operations team that means a database connection to staging, read-only, and nothing that can send, pay or delete. An assistant connected to the live system with write access moves from the first class of risk to the second, the same line our article on AI agents for operations draws.
Tests and CI: the safety net that isn't the tool
Claude Code can run your tests locally and fix what fails, and that's useful. But the gate that counts is the one that runs on a clean machine for every pull request: lint, types, tests.
Before changing inherited code, have the tool write characterisation tests that pin down what it does today, and run them first. Beware the green tick the tool earned by writing tests to match its own code. For billing and permission paths, someone on the team states the expected outcomes first.
Claude Code can also review pull requests and triage issues in CI. Treat that as an extra reader. It doesn't replace the human one.
Branch protection and human review
Configure the repository so the main branch accepts changes only through a pull request, with the required checks passing and an approving review from someone who isn't the author. Use code-owner rules, where your host offers them, for directories that hold money, permission and migration logic.
One detail from Anthropic's security page applies to cloud sessions. GitHub decides which branches a session can update by applying your branch protection to the access you connected, and a rule that access can bypass doesn't block a session's push. Don't connect an identity that can bypass your own rules.
What is Claude Code good for in an operations codebase?
It's best at work where the pattern already exists and the result can be checked by running it. It's weakest where the difficulty is knowing a business rule, because no one has written that down for it either.
| Job | Fit | Why |
|---|---|---|
| Integration glue with paging, retries and back-off, written to a pattern you already have | Good | The pattern is there to copy and the behaviour can be tested |
| Reading an inherited codebase, or a Make blueprint export, and explaining what it does before anyone edits it | Good | Reading is cheap and changes nothing |
| Characterisation tests that pin down existing behaviour | Good | Correct means 'matches what it does today', which is checkable |
| Routine upkeep: tests for untested code, lint errors, dependency updates, release notes | Good | Anthropic lists these as typical uses, and each is easy to review |
| Drafted migrations and one-off reconciliation scripts | Good, with care | Read the SQL, and run it against a copy first |
| Billing, permission and migration logic | Careful | A wrong answer looks like a right one. Tests approved by a person come first |
| A business rule that exists only in someone's head | Poor | It can't read what hasn't been written |
| Anything that touches production credentials or live data | Keep it away | Use staging and read-only connections |
The common thread is that someone already knows what 'correct' looks like and can check it quickly. The trading ERP we built shows the other side of the line. Its money and audit rules live in the database instead of anyone's judgement, and that's the kind of code where we wouldn't let any assistant make a change without someone writing the tests first.
How do you stop changes that nobody read?
The failure has a recognisable shape: a large diff, green tests that the tool wrote to match its own code, and a reviewer who skims because the checks passed. It's worst in money, permission and migration code. These controls break the chain.
- 01Ask for one thing at a time, so each change is small enough to read in one sitting.
- 02For money, permission and migration logic, a person writes or approves the tests before the change is made.
- 03The person who gave the instruction reads the whole diff before asking anyone else to. Two readers, not one.
- 04Require an approving review at the code host. Nobody approves their own change, and the checks must pass.
- 05Have the pull request say what changed, what was run, and what wasn't checked. Ask Claude to explain the diff if it helps, but never accept the explanation instead of reading.
- 06Give extra scrutiny to changes that edit the guardrails: .claude settings, hooks, CI configuration, branch rules. Anthropic's security page suggests auditing or blocking settings changes during a session with ConfigChange hooks.
- 07Watch for deleted tests, loosened assertions and new dependencies, and from time to time ask a reviewer to explain a merged change without looking at it.
What does Claude Code cost for a team?
On claude.com/pricing on 24 November 2026, a Team Standard seat cost $20 a month billed annually or $25 monthly, and a Premium seat $100 or $125. Enterprise was $20 a seat billed annually, plus usage at API rates. Anthropic's costs page (code.claude.com/docs/en/costs) put the average at around $13 per developer per active day. Our Claude Code pricing article (/insights/claude-code-pricing) covers every plan, the API route and how to budget for a team.
What does this not cover?
Cost and data handling. Anthropic's overview says most Claude Code surfaces require a Claude subscription or an Anthropic Console account, with some also supporting third-party providers, so usage has a bill. Set a budget, and check Anthropic's pages before you rely on the figures in the cost section above. Before you use it on a codebase that contains client data, read the data and privacy terms for your plan, because they differ between consumer, team and API use.
Prompt injection. Claude Code reads files, web content and tool results, and any of them can contain text that tries to give it instructions. Anthropic's guidance is to review suggested commands, avoid piping untrusted content straight in, verify proposed changes to critical files and consider virtual machines for risky work, and it says no system is immune. The controls above limit the damage but don't remove the risk.
Our own evidence. We use Claude Code ourselves, and the school ERP case study describes a build done with it and reviewed by seven read-only agents. The only Claude production system in our case studies is invoice reading on the trading ERP.
We haven't published a case study of rolling Claude Code out to a client team, so this is a recommended setup from the documentation and our own practice, and we haven't measured the result. Our Claude platform page sets out the same position, and our Claude Code development page describes what we offer.
Deciding
| If this is true | Then |
|---|---|
| The pattern exists and the result can be run to check it | Use it, on a branch, with the checks switched on |
| You're changing money, permission or migration logic | A person writes or approves the tests first, and reads every line of the diff |
| The business rule isn't written down anywhere | Write it down first. Don't ask the tool to guess it |
| You want the tool to reach live systems | Staging and read-only. Nothing that can send, pay or delete |
| No one on the team can read a diff | Don't adopt it for a live system until someone can |
| Rules must hold even if someone ignores CLAUDE.md | Permission rules, hooks, CI and branch protection, not instructions |
FAQs
On claude.com in November 2026, Team Standard seats are $20 a month billed annually or $25 monthly, and Premium seats are $100 or $125. Enterprise is $20 a seat billed annually plus usage at API rates. Anthropic's cost page puts business use at around $13 per developer per active day. The full breakdown is in our Claude Code pricing guide.
Anthropic's agentic coding tool. It reads your codebase, edits files, runs commands and works with git, in a terminal, IDE, desktop app or browser. It's configured through project files such as CLAUDE.md and settings, which a team can share through version control.
Put a short CLAUDE.md in the repository, and commit permission rules that allow your check commands and deny environment files. Add hooks for lint and tests, connect MCP read-only to staging, and require CI and an approved pull request for every change. Make the repository enforce safe use so nobody has to remember it.
No. Anthropic's documentation says CLAUDE.md is context, not enforced configuration. For a rule that must hold, use a permission deny rule or a blocking hook, and back it with CI and branch protection that work even if the tool is bypassed.
No. Keep production credentials off the machine, point any MCP connection at staging and read-only, and run migrations against a copy first. A permission prompt isn't a sandbox, so use real isolation if the work is risky.
Yes. Anthropic documents GitHub Actions and GitLab CI/CD integrations for code review and issue triage. Treat the result as an extra reader, and keep a human approval required before merge.
Yes, at least one person who can read a diff and own the repository. The tool writes quickly but can't know your unwritten business rules, and a team that can't review its output is just building something it can't maintain.
Sources
Statements about what a platform does are checked against the vendor’s own documentation as of 2026-11-24. Vendors change things, so check the current page before you rely on a limit or a price.
- Plans and pricing · Anthropic
- Manage costs effectively · Anthropic
- Claude Code overview · Anthropic
- How Claude remembers your project · Anthropic
- Settings files and precedence · Anthropic
- Hooks reference · Anthropic
- Security · Anthropic
Drafted with AI assistance (Claude). Published under Saveez Irfan’s name, who is accountable for it. Editorial policy







