A shared Claude Code workspace for my team

Claude CodeAI AgentsDeveloper PlatformGuardrailsTeam Enablement
Image 1
Image 2
Image 3
Image 4
Image 5
Image 6
Image 7
Image 8
Image 9
Image 10
Image 11
Image 12

What it is

My team at work looks after 28 business applications for the legal, compliance, insurance, finance and sustainability functions, with 9 service owners. Since September 2026 I've been building one shared Claude Code workspace for it. Claude Code is an AI agent that works in a terminal: it reads files, runs commands and writes code.

The workspace is a small set of git repositories. Every colleague on it gets the same rules, the same safety guard, the same helpers and the same guided start. Two ideas sit behind it. What one person works out, the next person shouldn't have to work out again. And nobody should be able to reach production by mistake, the agent included.

It's a design I'm building now, and this page describes it and where it's going. Some parts are live and used every day, others are being built now. I say which is which.

The page has two parts. Part 1 explains what it does and why, with simple diagrams. Part 2 goes into how each piece works, and each simple diagram links to its detailed version there.

Part 1: the simple version

Three layers

Zoom

A session loads all three. The team layer holds what every project has in common. Each application (today Riskonnect, OneTrust and Clarity) has its own repository with what is specific to it. The personal layer holds the person's language, preferences and notes, and never goes into a shared repository.

An application or a person can add rules. They can't remove a safety rule.

I started with a copy of the rules per application. Within weeks the copies had drifted apart, which is why it's one shared repository now.

→ Detail: repository map and how the layers load

Less time on bureaucracy

A lot of a day in a large company isn't the work itself. It's finding the right access request, the right ServiceNow form, the right Jira project, or the person who knows how something is done. The team repository writes those down: 6 access requests, 6 IT-service processes, 4 ticket procedures, and 10 mail, calendar and chat routines. When a colleague needs one, Claude Code fills it in or walks them through it, and the person submits it.

The rule is that every task has a ticket, with a dated log of what was found, what was done and what it's waiting on. For now the tickets are markdown files in the application's repository. A Jira client is ready, and the queues move to Jira once access is granted.

The same goes for personal admin. The first optional module in the workspace is a monthly tax-deduction report.

→ Detail: knowledge base and onboarding · tickets

It learns

Claude Code forgets everything between sessions. So the workspace has a rule: when someone works out something new, the agent writes it down in the same session, in the place where it belongs.

Zoom

An example. The monthly tax-deduction report started as my own workflow. After three monthly cycles it became the workspace's first optional module: the procedure, a skill that runs it, templates without personal data, and a check for what must not be uploaded. Anyone on the shared workspace can switch it on. As far as I know, no one else uses it yet.

→ Detail: the feedback loop · slides (PDF)

It keeps production safe

Not everyone who uses it is a developer, and the data is regulated. So the agent works in development sandboxes, and anything in UAT or production is a person's decision.

Zoom
  • The guard. Before every tool call that could reach another system, it checks whether the call would reach production, UAT or a system with personal data, and refuses it (company privacy policy). If the guard itself breaks, it refuses everything.
  • Command blocks. When something has to run in UAT or production, the agent writes a block of PowerShell commands and the person pastes it. The block first proves it's connected to the right environment, and stops if it isn't. Everything goes to a log, so the person only says "done" and the agent reads the result.
  • Drafts only. The mail, chat and calendar helpers only make drafts. The person presses Send.
  • Safety changes come to me. A change that touches the guard or the safety rules comes to me as a pull request. I accept or decline it, and talk it through with the person.

→ Detail: the guard and the security pull-request flow · command blocks · slides (PDF)

Passwords and secrets

The agent never types a password. Signing in is the person's job. API keys, for example for a sandbox the agent may use directly, are stored once by the person in one store for every service, encrypted by Windows for that user, outside every repository. The guard keeps the agent out of that store, and a command that would print a key is refused. The git setup installs a commit hook that scans for secrets, and the company git server scans every push. For their own passwords and tokens, the onboarding recommends a password manager: KeePass, from the company's software catalogue, or Bitwarden.

→ Detail: secrets

Every change is tested

An agent writes code fast, but it can't see everything a change touches. It can break a rule in a corner of the application that nobody thought was connected. So the workspace has a rule for development and deployment work in every application: every change comes with its own tests, a harness of tests for the whole process checks that nothing else broke, and the deploy itself refuses to go on if anything is red. Paperwork and HR processes are outside this rule.

Zoom

Where each application is on that path:

  • Riskonnect (claims, on Salesforce). The harness is 634 test methods for the claims process. I built it after a priority-1 incident brought me into that platform, and building it found 8 defects nobody had reported. The gate is live in the development sandbox and was rehearsed six times in UAT. Making it mandatory for production is in progress.
  • OneTrust. The integration is starting now. Its harness and deploy gate are designed and being built.
  • Clarity. Not started yet. When it starts, the harness comes first, before the agent changes anything.

→ Detail: test harness and deploy gates

Different people, different levels

The workspace is meant for everyone in the team, not only developers. What a person can do with it depends on their role, and the rules and the onboarding adapt to that.

  • Technical people. The Riskonnect owner is a Salesforce admin who also develops on the platform and writes scripts. With the agent they work on the automation itself: changes, tests, analysis, deploy preparation.
  • Non-technical people. The OneTrust owner is a service owner who doesn't code. The terminal and remembering commands don't come easily, so we practise with tasks from their own day until the steps feel normal.

The goal is that with the right pipeline, even a service owner without technical skills can take a change request from start to finish. For OneTrust that pipeline is being built now:

Zoom

Both owners were onboarded in November 2026 over a guided video call I ran with each of them, and both made their first commits with Claude Code on their onboarding day. I keep training them with cases from their own work. Slides (PDF) The Riskonnect owner moves from the earlier per-application layout to the shared workspace at the end of November 2026. A third application, Clarity, is prepared and waiting for a development copy.

What it gives

ForWhat changes
A colleagueDoesn't start from zero: the forms, the processes and their application's knowledge are written down, and the agent does or guides the rest
The teamWhat one person works out reaches everyone on the shared workspace at their next session
The platformsUAT and production steps are run by a person; commands come as blocks that check the environment and log the output
QualityA change to the claim automation is tested against the whole process before it ships

Time saved isn't measured yet. There's no baseline, and building one is the next step.

Part 2: how it works

1. Repository map and how the layers load

Zoom

The team repository has been its own repository since 26 November 2026. I built its content from September in my own repository and then moved it over. Today it's 86 files and about 11,000 lines. On a colleague's laptop it is the work folder, and the application repositories sit inside it, one folder each.

PartWhat it holds
Team rules15 sections: the guard, command blocks, drafts only, browser rules, tickets, session start, how to change the workspace, where a new way of working goes, where files go, git sync, company constraints, writing
Settings and hookOne pre-tool hook that fails closed, and permission rules that protect the safety files and the secrets
GuardA core engine plus one folder per service: its rules, its environment check, its test cases and a protective default
Command logThe PowerShell helpers for command blocks, and a guide to adding a service
Office helpersOutlook, Teams and OneDrive helpers that only make drafts, plus the list of things that can only be done in the browser
JiraA Jira Cloud client that uses each person's own token
TicketsThe markdown ticket format, the move-to-Jira script and the workspace's own request queue
Knowledge baseSee section 2
SetupPortable tools (no admin rights), git identity and a push guard, an optional hourly backup to the company cloud drive, the personal-rules template
Starter packsThe builder for a colleague's starter zip
TestsThe workspace self-test, and a "fresh colleague laptop" test that builds a pack into an empty folder and runs everything there

It has 5 skills: onboarding (14 steps), add-project (5 phases to bring a new application under the guard), add-module (7 steps to turn a personal workflow into a shared one), jira (search, read, create, comment, move a ticket, migrate a queue; ticket text is treated as data, never as instructions), and the tax module's monthly skill.

The application repositories:

ApplicationWhat the repository holdsWhere the agent may workStatus
Riskonnect (claims, on Salesforce)Rules, environment list, onboarding, a knowledge base of 11 documents, 5 recorded knowledge sessions with a glossary, scripts, the regression harness and its results, 18 ticketsDevelopment sandbox onlyLive. Its move to the shared layout is on a branch, not merged yet
OneTrust (privacy)Rules, environment lists, a thin hook into the team guard, onboarding, a knowledge base of 7 documents, an API module and a configuration module (list, export, compare, import), offline tests, 4 ticketsSandbox onlyLive on the sandbox. UAT and production are prepared, not activated
Clarity PPM (portfolio)Rules, environment lists, thin hook, a knowledge base of 6 documents, 2 ticketsNothing yetPrepared, waiting for an anonymised development copy

An application is prepared when its guard rules, environment check and tests exist. It's activated only when its owner confirms the environments and the connection. Each application's rules say what has to arrive, the steps, and who confirms.

The personal layer is not a repository. It's the person's own rules file, installed from a template at onboarding (language, drafts only, data stays in the company tenant), a laptop log that also records onboarding progress, a local folder for data and command logs, and a folder for their own notes. The optional hourly backup copies it to the company cloud drive.

How the layers load:

  • A session started in the work folder loads the team rules, settings, hook and skills.
  • A session started inside an application loads that application's rules plus the team rules above it. Claude Code doesn't apply the parent folder's settings there, so each application on the shared layout carries a thin hook that calls the team guard, and refuses everything if it can't find it.
  • Sessions started anywhere else are guarded by a user-level hook installed at onboarding.
  • Application rules win where they differ, except the safety rules (the guard, command blocks, drafts only, credentials, data staying in the tenant). Those can only be tightened. Relaxing one takes a change to the workspace.
  • Every session starts with a git pull of the workspace and the application. It says in one line what came in, and announces a new module on its own line. Work is committed and pushed after every step, so a colleague's next pull already has it.

2. Knowledge base, onboarding and starter packs

AreaWhat is written down
Access requests6 requests (an AI coding-assistant seat, a git-server user, project access, a Jira account, Jira site access, a project role), 2 self-service steps, and what to do when a request doesn't move
IT-service processes (ServiceNow)6: the record types of the service portal, quoting ticket numbers, raising a production change (lead times and change types), handing a change to the application owner, incidents and priorities, filling web forms without submitting
Mail, calendar, chat, files10 local routines (find and open mail, drafts, reply drafts, meeting drafts, chat, calendar), 4 browser-only cases, 1 file-sharing procedure
Jira3: personal token, using the client, what goes in a ticket
Tickets4: create and number a ticket, work a ticket, hand it to a colleague for questions or approval, move the queue to Jira
Browser2: setting up the extension, sign-in pages (pick the company account, never type credentials)
Laptop without admin rightsAbout 8 topics and an 11-step manual setup

Starter pack. One zip with the workspace and the person's application, already connected to the company git server, plus a one-page start guide: unblock, extract, install Claude Code, start it and say "do the onboarding". The builder refuses data files, secrets and other people's commit identities, then runs the self-test. 6 packs have been built for 3 applications.

Onboarding. A skill of 14 steps. Each step explains why it matters, offers now, skip or later, and checks the result. Progress is saved, so it can resume another day. It covers the rules in plain words, the browser extension, access requests (the agent fills them, the person submits), mail and chat drafts, portable tools and personal settings, git identity and the push guard, the repositories, the command log with a practice block, the application's own steps, and comfort settings and backups. It adapts per application (each has its own onboarding section) and per person (pace, language, optional modules).

Session start. Pull, say what changed, list the tickets waiting on that person.

3. Tickets and project tracking

ApplicationWhere tickets liveServiceNowStatus
RiskonnectMarkdown queue in its repository, 18 tickets. Moves to its Jira project once access is grantedFor a production change the agent prepares the change text; the application owner raises and submits itLive
OneTrustMarkdown queue, 4 tickets. Its Jira project exists; access is pendingThe change path is written down: request, change board, ServiceNow change, scripted deployLive (queue)
ClarityMarkdown queue, 2 tickets. Its Jira project exists; access is pendingDevelopment, test, production, with service-owner or change-board approval and a ServiceNow change. The agent only preparesPrepared
  • The rule is that every task has a ticket. It's found or created when the work starts.
  • Each ticket keeps a dated log: what was found, what was done, what's next, and who it's waiting on.
  • Closing a ticket is always proposed to the person first.
  • The move to Jira is scripted. It runs as a dry run by default, can resume, and runs once the Jira project answers.
  • Handing a ticket to a colleague: the questions go into the ticket, the ticket is assigned to them, and a chat draft is prepared. It comes back the same way.

4. The feedback loop

Zoom

The rule covers three cases: a new workflow, a correction to the agent that should hold, and a rule agreed with the person.

What it isWhere it goesWho reviews
Specific to one applicationThat application's rules, knowledge base or scriptsNobody; committed and pushed at once
...and it touches what the guard decidesThe application's guard inputs, by pull requestMe
Useful to every colleagueA workspace proposal, by pull requestMe
Only the person's ownTheir personal folder or a personal skillNobody
Personal, but others could use itA module, by pull request (the add-module skill)Me

When the agent notices that a personal workflow could serve others, it says so in one line and offers to package it. Proposals are prepared in a separate working copy (a git worktree), so the live folder, and the guard protecting the session, never run the proposed version. I check open pull requests once a day and flag anything that touches the guard or proposes a module.

Where it stands: the mechanism is live, and its use is still small. One security pull request from a colleague so far (section 5). No workspace pull requests from colleagues yet. The tax module went from my own workflow to a shared module in about ten weeks, and I added it myself, before the add-module skill existed.

5. The guard and the security pull-request flow

The guard is a Claude Code pre-tool hook. Before every tool call that could reach another system, it checks whether the call would reach a protected environment of any service, and refuses it.

  • Each service lists its protected environments in its application repository. A protective default is used when that repository isn't on the laptop.
  • It fails closed. If the guard, its rule lists or the hook are missing or broken, the answer is a refusal.
  • It protects its own files and settings. Changing them needs the person's confirmation, and by team rule a colleague's change goes through a pull request.

How it's tested:

  • The guard was specified by 559 examples, 399 that must be refused and 160 that must be allowed. The suite has 623 cases today, all passing.
  • Each application's suite reuses those examples for its own services.
  • The command-log helpers have about 300 checks of their own.
  • Before release, 12,484 past tool calls were replayed through the new engine. Nothing that was refused before became allowed, except 2 deliberate fixes.
  • In real use on my laptop, over ten weeks, about 4 in 1,000 tool calls were refused (68 of 16,972). Most were cautious refusals. By my own classification, 4 were real attempts to reach one, and all 4 were stopped.

Other limits:

LimitWhat it does
Drafts onlyThe mail, chat and calendar helpers only make drafts; the person presses Send. Forms are filled for the person to submit
Push guardGit can only push to the company git server; any other host is refused before it's contacted
BrowserBy rule, the agent works only in tabs it opened, fills but doesn't submit, never types a password, code or card number, and never opens a protected environment's page
No admin rightsPortable, user-scope tools only; no installers
Data placementProduction results and command logs stay in a local folder that git ignores, and the pack builder refuses data files and secrets

The security pull-request flow:

Zoom

What the guard decides is never changed in the live folder: the guard itself, the hook registration, the command log, an application's environment lists and its credential module. The first such pull request came from a colleague on their onboarding day, who needed their sandbox address added. I reviewed and merged it the same day.

6. Secrets

Zoom
  • The agent never types a password, in chat, in a form or on a sign-in page. On a single-sign-on page it may only pick the company account.
  • The workspace's own secrets store. The person stores each API token once, in their own PowerShell window and never through the agent. It's saved encrypted with Windows per-user data protection (DPAPI), so only that user on that laptop can decrypt it. Scripts decrypt it in memory, send it only to the service it belongs to, and never print it. It's one store for every service the scripts use, with an expiry date per secret; today it holds the Jira token and the OneTrust sandbox key.
  • Sandboxes versus protected environments. For the OneTrust API, each environment says whether the agent may use it and whether a key may be stored, and both are true only for the sandbox. UAT and production keys are never stored: each run asks the person to type the environment name. For Salesforce, the person signs in the CLI session; the agent can't sign in itself.
  • Git tokens go to the Windows credential manager, scoped to the company git server.
  • Keeping secrets out of git. Secrets live outside the repositories, ignore lists keep local data and credential files out, and the pack builder refuses secret and data files. The git setup installs a commit hook that scans each commit for secrets, and the company git server scans every push.

7. Command blocks for UAT and production

The agent writes a block whenever something has to run in a protected environment, or whenever the guard keeps the agent from running it itself (a sign-in, storing a credential). The helper names below are generic.

Zoom
  • check-target asks the tool where the named connection really points and compares the answer with the expected environment. A check of one service never counts for another, and an environment that isn't activated never passes.
  • run runs one plain command and adds the command, its output and its exit code to the log. The rest of the block stops if a step fails, if the command touches an environment that wasn't checked in this block, or if it isn't a single plain command.
  • After an idle period the block has to start again from start-log.
  • The last line is a comment, so a pasted block never leaves a real command waiting for Enter.
  • When the person says "done", the agent reads the newest log for that topic. No copying output between windows. Afterwards the log is deleted, moved to the application's local evidence folder, or kept while the task still needs it.

Live since 25 November 2026: 17 real logs so far, 11 of them kept as evidence.

8. Test harness and deploy gates

Zoom

The claims harness (Riskonnect, live in the development sandbox). Python generators write the Apex test classes from written specifications and business-rule "oracles": what an automation should produce, written as a rule rather than copied from what it does today.

  • 634 test methods in 118 classes, for 46 automations and 11 oracles.
  • The whole suite runs in about 4 minutes.
  • Known defects and environment drift are isolated in their own classes, so the gate stays green without hiding them.
  • A run history is kept in the repository.

Per change. Each change to the claim automation brings its own tests, written failing first. One defect fix brought 14 new tests, and 10 of their checks failed on the old automations. With the fix, 20 tests (40 checks) passed, and the whole suite was green the same day.

The rule for every application. Development and deployment changes are always tested: tests of their own written failing first, the process harness green, and a gate in the deploy. A new application gets its harness before the agent changes anything. Paperwork and HR processes are outside the rule. The Riskonnect harness below is where it started.

Why the gate sits in the deploy and not in git. The incident that started all this was a change made directly in the platform's setup screens, which git never sees. So the gate is in the deploy itself.

EnvironmentGateWho runs itStatus
Development sandboxThe whole suite must be green before anything is promotedThe agentLive
Full-copy sandbox (UAT)A suite run and deploy rehearsals with the production scriptThe person, in a command blockRehearsed 6 times with forced failures: 3 blocked, 3 passed
ProductionA deploy script checks the target and refuses unless the last complete sandbox run is green; the deploy runs the gate's tests and rolls back if any failThe person; the application owner approves and raises the changeIn progress
Across environmentsA drift detector compares metadata between the three environmentsThe agent in the sandbox; the person retrieves from the othersLive

OneTrust. The integration is starting now, and the gate is being built: export production first (that export is the rollback), run the pre-checks, apply the change, compare afterwards, and attach the evidence to the change. 17 offline checks cover the API and configuration modules today. Clarity hasn't started; its harness will come first.

The harness and how it was built: Salesforce regression harness and release gate. The incident that started it: incident write-up.

9. Audits

The agent that made a change can't judge it well, because it shares the change's assumptions. So every important step gets a second look from a fresh context, and I verify each finding before acting on it.

WhatHowResult
The guard, before releaseAn independent agent in a fresh context, given the code but not my conclusionsFindings fixed the same evening, each with regression cases
Release replay12,484 past tool calls replayed through the new engineNothing newly allowed, except 2 deliberate fixes
The workspace, before the first colleagueReview agents on the starter pack, setup, rules and one application's migrationThe first set fixed with the suites passing; the migration set is still open
Every UAT or production blockThe environment check at the start of each block; the log is the trailLive
Claim-automation changesTests written failing first, whole suite green in the sandboxLive

10. Where it stands

PieceStatus
Three layersLive for OneTrust; Clarity prepared; the Riskonnect repository is moving to the shared layout
Knowledge base, onboarding, starter packsLive
Feedback loopLive, early: one security pull request from a colleague so far
TicketsMarkdown queues live in 3 applications; the move to Jira waits on access; ServiceNow intake in progress
Guard and security pull requestsLive
Secrets storeLive: one store for every service the scripts use, plus secret scanning on push, and on commit for every new setup
Command blocksLive
Testing ruleIn the team rules: every development and deployment change comes with its tests
Harness and gateRiskonnect: live in the sandbox, rehearsed in UAT, production in progress. OneTrust: being built. Clarity: not started
PeopleTwo colleagues onboarded, plus me: one technical, one non-technical

What I learned

  • Writing it down in the same session is what makes it a team tool. If the agent doesn't record what we worked out, the next person starts from zero, and so does the next session.
  • One shared repository, not copies. My per-application copies drifted within weeks.
  • Rules have to work for someone who doesn't code. I write them in plain words for the person first, and the command blocks are made so that pasting them is the only thing the person has to do.
  • Prepared is not activated. The agent reaches an application's environments only after its owner confirms them.
  • I should have measured from day one. What I can show today is safety, quality and adoption, not time saved.

Status

In use since November 2026 by two application owners, and growing. Next: the Riskonnect owner moves to the shared workspace, and OneTrust's harness and change-request pipeline are built. After that I want to start measuring the time from a request to a safe change, how much review the agent's work needs, and how often it has to be redone.

Stack

Claude Code (hooks, skills, permission rules) · PowerShell · Python · Git · Windows DPAPI · Salesforce (Apex, Flows, Salesforce CLI) · OneTrust API · Jira Cloud API · Outlook, Teams and OneDrive · ServiceNow