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

> ## Agent Instructions
> IronBee (ironbee.ai) is an AI QA engineer: it verifies code changes against the running app and keeps the evidence. It is not related to the IronBee open-source web application firewall.
> The console is at https://console.ironbee.ai.
> Install the CLI with `npm install -g @ironbee-ai/cli`, sign in with `ironbee login`, and set up a project with `ironbee install`.
> In GitHub workflows, use the action as `ironbee-ai/ironbee-action@v1` and pass the `IRONBEE_API_KEY` secret as the `ironbee_api_key` input.
> In GitLab pipelines, include the component `gitlab.com/ironbee-ai/ironbee-gitlab/verify@v1`; it reads the `IRONBEE_API_KEY` CI/CD variable by default.
> In Bitbucket Pipelines, run the pipe `docker://ghcr.io/ironbee-ai/ironbee-bitbucket:v1` and pass `IRONBEE_API_KEY: $IRONBEE_API_KEY` and `BITBUCKET_OAUTH_TOKEN: $BITBUCKET_OAUTH_TOKEN` under its `variables:`.
> Console scenarios (https://docs.ironbee.ai/console/scenarios) and CLI saved scenarios (https://docs.ironbee.ai/cli/guides/scenarios) are separate features.
> For plans and prices, link to https://ironbee.ai/pricing; the website is the source of truth for them.

# Runtime files

> What IronBee writes to disk: global state, project config, and per-session runtime data.

IronBee stores its state in a few places: a global directory in your home folder, an `.ironbee/` directory inside each project, and a per-session runtime tree that by default lives **outside** the project. This page is a reference for what lives where, and what's safe to commit.

***

## Global (`~/.ironbee/`)

Machine-wide state, shared across all your projects:

| Path | What it holds |
| - | - |
| `config.json` | Global config for your defaults across all projects. `ironbee login` writes your credential (`service.oauthToken` or `service.apiKey`) and `service.domain` here. Written readable by you only (`0600`, in a `0700` folder). |
| `telemetry.json` | The anonymous ID for [CLI telemetry](https://docs.ironbee.ai/cli/advanced/telemetry.md). |
| `install-state.json` | The install schema version, so an upgraded CLI knows when to re-render your projects' artifacts. |
| `scenarios/` | Global [saved scenarios](https://docs.ironbee.ai/cli/guides/scenarios.md), available in every project. |
| `projects.json` | The project inventory, the set of project paths IronBee is installed in. Powers `install --all` / `uninstall --all`. |
| `install-snapshots.json` | Transitional - backups of the statusline config older IronBee versions overwrote, so an upgrade or `uninstall` can restore your original. Written by nothing today and removed once every install has upgraded past the [statusline integration](https://docs.ironbee.ai/cli/clients/claude-code.md#removed-integrations). |
| `projects/<token>/` | **Per-session runtime data** for each project, in the default `external` [runtime location](#where-per-session-data-lives). `<token>` is derived from the project's path, so each project gets its own folder. Holds the same `sessions/<id>/` tree described below. |
| `projects/<token>/personal.json` | The repository's [personal file](https://docs.ironbee.ai/cli/configuration/configuration.md#the-personal-file), written by `ironbee config set --personal`. Linked worktrees share it. |
| `projects/<token>/reviews/` | The stored [code reviews](https://docs.ironbee.ai/cli/guides/code-review.md#read-a-review-again), the newest 20 per worktree. |

***

## Project (`<project>/.ironbee/`)

Created by `ironbee install` in each project:

| Path | What it holds | Commit? |
| - | - | - |
| `config.json` | Project config, team settings, shared with the repo | Yes |
| `config.local.json` | Personal overrides, your machine only | No, gitignored |
| `scenarios/` | Saved [verification scenarios](https://docs.ironbee.ai/cli/guides/scenarios.md) - one `<name>.json` per scenario, plus a sibling `<name>.cache.json` holding a step-ful scenario's captured `llm-action` replay scripts (both committed; never hand-edit the cache). A single flat store (older installs used per-cycle subfolders `bdt`/`ndt`/`pdt`/`bedt`/`adt`/`tdt`, still read for back-compat) | Yes |
| `VERIFICATION.md` | Area-specific [verification guidance](https://docs.ironbee.ai/cli/guides/verification-context.md), in any directory | Yes |
| `sessions/<id>/` | Per-session runtime data - **only when [`runtime.location`](#where-per-session-data-lives) is `in-project`** | No, gitignored |

`ironbee install` adds five entries to your project's `.gitignore` automatically - `.ironbee/sessions/`, `.ironbee/config.local.json`, `.ironbee/codex-threads.json`, `.ironbee/vcs-cache.json`, and `.claude/settings.local.json`. Each is appended independently and only when it isn't already there, so an existing `.gitignore` is never rewritten. The last three are belt-and-suspenders: today the Codex thread map and the VCS cache live inside the `sessions/` folder (already covered by the first entry), and `.claude/settings.local.json` only exists on Claude Code - they're listed anyway so no machine-local state can slip into a commit on an older layout. On Claude Code, install also adds `.claude/skills/ironbee/` when it writes the [in-app view](https://docs.ironbee.ai/cli/clients/claude-code.md#in-app-view). The committed `config.json`, `scenarios/`, and any `VERIFICATION.md` files are what your teammates pick up when they run `ironbee install`.

***

## Where per-session data lives

The per-session runtime tree (`sessions/<id>/`) is controlled by [`runtime.location`](https://docs.ironbee.ai/cli/configuration/configuration#runtime):

| `runtime.location` | Per-session data lives at | Notes |
| - | - | - |
| `external` *(default)* | `~/.ironbee/projects/<token>/sessions/<id>/` | Kept **out of the project tree** so a project never accumulates a growing `sessions/` folder, even though it's gitignored. `<token>` is a stable hash of the project's real path. |
| `in-project` | `<project>/.ironbee/sessions/<id>/` | The legacy layout - runtime data sits beside your config, under the gitignored `sessions/` folder. |

With `in-project`, if `.ironbee/`, `sessions/` or a folder below it is a symbolic link, IronBee doesn't write through it. It keeps that session's data in the external location instead and warns you to replace the link with a real folder.

Either way the contents of `sessions/<id>/` are identical - only the base directory differs. **Committed config (`config.json`, `config.local.json`, `scenarios/`, `VERIFICATION.md`) always stays in-project**, regardless of `runtime.location`. Switch layouts with `ironbee config set runtime.location in-project` or the [`IRONBEE_RUNTIME_LOCATION`](https://docs.ironbee.ai/cli/configuration/environment-variables#advanced) env var; it takes effect on the next session.

***

## Per-session (`sessions/<id>/`)

Each agent task gets its own directory, keeping concurrent sessions isolated (see [How verification works](https://docs.ironbee.ai/cli/concepts/how-it-works.md#session-isolation)):

| File | What it holds |
| - | - |
| `state.json` | The session's current state: phase, verification status, the gate's retry count (`retries`) and the fail streak (`failVerdictStreak`), and the project dir it belongs to. |
| `agents/<agentId>/` | **Per-agent state** - see below. Each agent active in the session (the main conversation and every delegated sub-agent) gets its own partition. |
| `tree-fingerprint.json` | The working-tree fingerprint the gate compares against. Only with [`verification.changes.source`](https://docs.ironbee.ai/cli/guides/verification#how-ironbee-detects-changes) set to `git` or `shadow`. |
| `changes-shadow.jsonl` | Where the `shadow` and `git` modes log each check on which `actions` and `git` disagree. |
| `queue/` | Queue snapshots awaiting delivery, dead-letter entries, and the worker log. See [Job queue](https://docs.ironbee.ai/cli/advanced/job-queue.md). |
| `activity/` | One presence marker per participant in the open agent turn (the main agent and each delegated sub-agent). The turn closes only when the last participant leaves, so a backgrounded verifier can't split it. |
| `tool-results/` | Sidecar drop box for tool results the host truncated (a step-ful [scenario run](https://docs.ironbee.ai/cli/guides/scenarios.md) can exceed the host's tool-result limit). Normally empty - entries are consumed and deleted immediately. |
| `vcs-emitted.json` | Fingerprint of the last [`vcs_link`](https://docs.ironbee.ai/cli/guides/issue-tracking#vcs-linkage-sessions-to-prs-and-issues) emitted per turn, so an unchanged turn produces no repeat wire traffic. |
| `session.log` | Diagnostic log of the session's hook activity. |

### Per-agent state (`agents/<agentId>/`)

A session usually has more than one actor: the **main** agent, and the delegated sub-agents IronBee installs (`ironbee-verifier`, `ironbee-scenario`, `ironbee-issue-tracker`). Everything an individual agent writes is partitioned under its own `agents/<agentId>/` directory so concurrent writers - say a verifier running in the background while the main agent keeps working - never clobber each other's state. The `<agentId>` is the host's opaque agent/thread id (only the main conversation is literally `main`); the human-readable agent name travels separately, as `cycle.json`'s `owner` and the `agent_name` on shipped events.

| File | What it holds |
| - | - |
| `actions.jsonl` | That agent's event log: file edits, tool calls, and verification markers. The main conversation writes `agents/main/actions.jsonl`. |
| `cycle.json` | The agent's one open verification cycle (id, kind - gated or scenario - start time, trace id). |
| `verdict.json` | The agent's latest verdict (`status`, `checks`, `issues`, `fixes`, and the optional `summary`). |
| `aux.json` | Auxiliary cycle flags (recording, conclusive checks, context injection, the [scenario](https://docs.ironbee.ai/cli/guides/scenarios.md) pause marker). |
| `steps.json` | The open [scenario step](https://docs.ironbee.ai/cli/guides/scenarios.md) stack. |
| `queue/jobs.jsonl` | The agent's live Collector queue producer file. |
| `fix.json` | *(main only)* The active fix cycle and the `/ironbee-verify fix` intent. |

> [!NOTE]
>
> Not every file is present in every session, and these persist after a session ends (they aren't auto-deleted). Sessions from older CLI versions kept `actions.jsonl` at the session root - that file is still merged in for a session in flight across the upgrade, but new writes all land under `agents/` (a pre-upgrade root `verdict.json` is no longer read; verdicts are looked up only under `agents/<agentId>/`). You rarely touch any of this directly: use [`ironbee status`](https://docs.ironbee.ai/cli/advanced/inspecting-sessions#ironbee-status) to read verdicts and [`ironbee queue`](https://docs.ironbee.ai/cli/advanced/job-queue) to inspect pending sends.

***

## What's next?

> [card] [Configuration](https://docs.ironbee.ai/cli/configuration/configuration.md)
>
> Every key you can set in the config files.

> [card] [Environment variables](https://docs.ironbee.ai/cli/configuration/environment-variables.md)
>
> Overrides that take precedence over the config files.


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