> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iriscode.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Roll Iris Code out across an engineering team

> A guide for buyers, security reviewers, team owners and engineers bringing Iris Code Teams into a team: what you pay for, what data leaves your machines, and a setup order that sticks.

This guide is for bringing Iris Code into a whole team. The first half answers the questions procurement and security reviewers usually ask: what is being bought, what data leaves your machines, and who can do what. The second half gives engineers the setup steps.

The main advice: measure your code first, and only then turn on checks that can stop a change.

## For procurement and security

### What is being bought

You buy seats: one for each person who needs Pro, with a minimum of three. They are billed monthly on one subscription for the team, not one per developer.

* Adding a seat partway through a month charges only the share for the days that remain.
* Removing a seat takes effect at the next renewal, so the team keeps what it has already paid for.

See [seats and billing](https://docs.iriscode.co/teams/seats-and-billing.md) for the price in your region and exactly how those part-month charges work.

### What leaves your machines

The answer depends on which part of Iris Code is running.

**The editor extension, the CLI and the git hook check code on your own machine.** The CLI is the set of `iris` commands you type in a terminal; the git hook is a check that runs automatically when someone pushes. In all three, source code never leaves the machine. That is true on Free and on Pro, so Iris Code can be used on a repository nobody is allowed to upload.

**Cloud scans are optional, chosen one repository at a time, and run on Iris Code's servers.** Connecting a repository installs a GitHub App with read access to the repositories you pick, and only those.

Each cloud scan downloads the source, reads it without running it, and deletes its copy afterwards. The stored report includes scores, file paths, rule names, severity and line positions, plus information about the packages your project uses. It does not keep source code or code snippets.

If you never connect a repository, no code ever reaches Iris Code.

### What a team's record contains

The team's record, also called team evidence, says which repository was checked, at which commit and branch, what it scored, how many findings were open, how many were high severity, and which version of the team's standard it was measured against.

It contains no source, no file paths, no snippets and no finding text. It also has no member rankings and no per-person usage figures. A team can see that a check failed and on which commit. It cannot see who ran how many scans.

### Access and roles

| Role | Can do |
| - | - |
| **Owner** | Everything, including billing, seat changes and deleting the team. Exactly one |
| **Admin** | Invite and remove members, connect repositories, publish the standard |
| **Member** | Use Pro, read the team and its audit trail |

### The audit trail

The audit trail is the team's log of results. Every audit, gate run and configuration change is recorded with a timestamp from Iris Code's server. You can filter it by type and date, and export it as CSV or JSON.

Entries can only be added. No role, including the owner, can edit or delete one. Deleting a repository's reports is itself recorded as an entry.

Changes to membership, roles and billing are not written to this log yet. It records what ran, not who managed the team, and the page says so.

### If payment fails

When a renewal payment fails, the team keeps its paid access for seven days. After that it becomes read-only. Nothing is deleted, and paying restores access.

## For engineers

There are four steps. The first two are the minimum. The last two turn the results into checks that actually stop problems.

### 1. Install and sign in

Install [Iris Code](https://marketplace.visualstudio.com/items?itemName=davidjaja.iris-code) from the Visual Studio Marketplace, or the plugin from the JetBrains Marketplace. Sign in once on each machine and your seat starts working.

A seat gives you Pro. Every Pro feature is unlocked and there is nothing more to buy.

### 2. Commit one config

`.irisconfig.json` at the root of the repository is the team's standard: the file that sets what Iris Code checks and how strictly. Commit it, so the editor, the CLI, the git hook and CI all read the same limits. Nobody's personal settings then decide whether a change is acceptable.

Build it in Config Studio and copy it out, or start from a preset. See [configuration](https://docs.iriscode.co/configuration/irisconfig.md).

### 3. Install the hook

```bash theme={null}
npm install -g @iris-code/cli
iris hook git install
```

The pre-push hook runs the gate, the pass-or-fail check against your configured limits, before a push leaves the machine. It is the cheapest place to catch a problem, because nothing has been shared yet.

### 4. Add the CI check

CI (continuous integration) is the automated build that runs when code reaches your repository, such as GitHub Actions. Add this workflow:

```yaml theme={null}
name: Iris Code

on:
  push:
    branches: [main]
  pull_request:

permissions:
  contents: read
  pull-requests: write

jobs:
  iris-code:
    name: Iris Code gate
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - run: npm install -g @iris-code/cli@latest
      - name: Run Iris Code
        run: iris gate . --format github
        continue-on-error: true
        env:
          IRIS_LICENCE_TOKEN: ${{ secrets.IRIS_LICENCE_TOKEN }}
```

`IRIS_LICENCE_TOKEN` is any team member's licence key, found under **Account → License** and stored as a repository secret. The scan runs on your own CI machine next to your build. Iris Code receives only the outcome, the commit, the branch and overall counts.

**Start with `continue-on-error: true`.** With that line, a failed gate is recorded but does not fail the pull request. The team can see what the check would have stopped before it stops anything. Remove the line once you are happy to enforce the numbers.

To have those runs appear in the team's record, add the project's link to the same `.irisconfig.json`:

```json theme={null}
{
  "teamProjectId": "<from the project's page in your team>"
}
```

Without it, a CI run still passes or fails as normal. It simply does not report to the team.

## A rollout order that works

Turning on blocking checks everywhere on the first day usually produces a wall of findings on old code nobody is working on, and the check then gets switched off. This order avoids that:

1. **Measure first.** Install, commit the config, and leave the gate reporting without blocking for a sprint. The scores and finding counts tell you what limits are realistic.
2. **Set limits you already meet.** A check that fails on its first run teaches people to bypass it. Start roughly where you are, then tighten.
3. **Block on new code.** The hook and the CI check both look at what is being pushed now, which is the code someone can still change.
4. **Then connect cloud scans**, if you want a trend and history without anyone having to remember to run something.

## What to expect afterwards

* **Scores move slowly.** A repository's health score is an average across its files, so one good pull request will not move it much. That is the accurate behaviour.
* **A failed gate is a rule, not an opinion.** The output names which rule failed and at what limit, so any discussion is about the limit rather than about taste.
* **Not every finding is a defect.** A "possibly unused package" is something to look into. Iris Code reports what it measured, and says when it could not check something rather than assuming it is fine.

Read [Team governance](https://docs.iriscode.co/teams/governance.md) for controls over coding agents, behaviour when offline and records of pre-push checks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.