Skip to content
mergecat

Before the mergecat Claude Code plugin sends any data of your repository to Claude, it asks a compliance question and records the answer. This page lists the exact questions, when they are asked, every field of the record, where the records are stored and how to collect them for an audit.

Evidence of a declaration

A record documents what the user declared at the time of use: the account type and, if needed, the decision to proceed. mergecat does not verify the account type with the AI provider. For the legal context, see EU AI Act and NIS2.

When the question is asked

  • Only in AI assistants, through the mergecat MCP server: Claude Code, and GitHub Copilot, OpenAI Codex or GitLab Duo. The desktop app, the VS Code extension and the command line never send data to an AI service, so they never ask.
  • Once per session. Claude Code (like the other assistants) starts one mergecat MCP server process per session, and the answer lives in the memory of that process. A new session asks again.
  • Before the first repository data is read. The skills /mergecat:tags and /mergecat:changelog call compliance_status first. If Claude calls a repository tool before the question is answered, the tool refuses to run and returns the questions instead.
  • Again after a “no”. When you chose not to proceed, the repository tools stay locked for the session. If you later ask for mergecat data in the same session, Claude asks again and a new record is written.

The questions

Claude asks the questions translated into the language of the conversation, as yes/no questions, and waits for your answer: the skills and the server’s instructions tell Claude never to answer for you. The record stores the English text below, the language the questions were asked in and your answers as you wrote them.

  1. Always asked:

    Are you using a Claude Team or Enterprise account? mergecat is about to send data of this Git repository to Claude (commit messages, authors, dates, branch and tag names, and pull request data when available). Your answer is recorded for EU AI Act and NIS2 compliance. Please answer yes or no.

  2. Asked only when the first answer is no:

    You are not using a Claude Team or Enterprise account. Are you aware of the EU AI Act and the NIS2 directive, and do you want to proceed anyway? Please answer yes or no.

These are the questions in Claude Code. With another assistant they name its service and its business plans, for example “Are you using a GitHub Copilot Business or Enterprise license? mergecat is about to send data of this Git repository to GitHub Copilot …” (see Other AI assistants); the record stores the questions as asked, and its AI service field names the service and the client application.

Outcomes

AnswersOutcomeRepository toolsCopy in the conversation
1: yesproceedunlocked for the sessionfull record
1: no, 2: yesproceedunlocked for the sessionfull record
1: no, 2: nostoppedstay locked; no repository data is sent to Clauderedacted record (see below)

The tools that enforce it

Two MCP tools handle the question. Neither reads the history of the repository. The full reference is on MCP server and tools.

compliance_status

No parameters. Returns whether the session is confirmed and what to ask.

FieldMeaning
confirmedtrue once an answer with outcome proceed was recorded in this session
askedThisSessiontrue if any answer was recorded in this session
lastOutcomeproceed, stopped or null
lastRecordedAtDate and time of the last record, or null
lastRecordFilePath of the last Markdown record, or null
questions.accountThe first question
questions.proceedIfNotTeamOrEnterpriseThe second question
recordsFolderThe folder where records are written

record_compliance_answer

Writes the record and, on outcome proceed, unlocks the repository tools for the session.

ParameterTypeRequiredDescription
team_or_enterprise_accountbooleanyesAnswer to the first question
aware_and_proceedbooleanwhen the first answer is falseAnswer to the second question; the call fails without it when the first answer is false
requested_actionstringyesWhat you asked mergecat for, e.g. changelog v1.2.0..v1.3.0 (up to 500 characters are kept)
answers_verbatimstringnoYour answers as you wrote them, or the options you chose (up to 2,000 characters are kept)
languagestringnoLanguage of the questions, ISO 639-1 (e.g. it)
ai_modelstringnoThe Claude model that asked
repositorystringnoPath of the repository; default: the Claude Code project

It returns the outcome, the record ID, the paths of the Markdown record and of the log, and the record as Markdown for the conversation.

What a record contains

Each decision produces two entries with the same content: a Markdown document and one line in the JSON Lines log.

Markdown record

The record is a table followed by the questions and the answers.

FieldContent
Record IDRandom UUID of this record
Date and time (UTC)When the answer was recorded (ISO 8601)
OutcomeProceeded with a Team or Enterprise account, proceeded with another account after confirming awareness of the EU AI Act and NIS2, or stopped
Requested actionWhat you asked mergecat for
User (operating system)Your user name on this computer
User (Git configuration)user.name and user.email from the Git configuration of the repository
ComputerHost name of this computer
RepositoryName of the repository
Repository folderPath of the repository on this computer
Repository remoteURL of origin (or of the first remote)
AI serviceThe service and the client application, e.g. Claude (Anthropic) through Claude Code 2.1.0 and the mergecat MCP server or GitHub Copilot through Visual Studio Code 1.106.0 and the mergecat MCP server
AI modelThe model ID Claude reported
Data sent to the AI serviceThe categories of data the mergecat tools send to the AI service
Language of the questionsISO 639-1 code
SessionRandom ID of the MCP server process (one per Claude Code session) and when it started
mergecat versionVersion of the MCP server

Below the table: each question with the answer (Yes or No), your answers as written, the paths where the record is stored, and the sentence “This record documents the declaration of the user at the time of use; it is not a legal assessment.”

Sample record

All values below are fictional.

# AI usage compliance record (EU AI Act, NIS2)

Declaration collected by mergecat before repository data was sent to an AI service.

| Field | Value |
|---|---|
| Record ID | 3f6c2a9e-8d41-4b7a-9c35-0e2f5d7a1b64 |
| Date and time (UTC) | 2026-03-31T09:14:22.418Z |
| Outcome | Proceeded: the user declared using a Claude Team or Enterprise account. |
| Requested action | changelog v1.2.0..v1.3.0 |
| User (operating system) | jdoe |
| User (Git configuration) | Jane Doe <jane.doe@example.com> |
| Computer | JDOE-MBP |
| Repository | web-shop |
| Repository folder | /Users/jdoe/src/web-shop |
| Repository remote | https://github.com/example-org/web-shop.git |
| AI service | Claude (Anthropic) through Claude Code 2.1.0 and the mergecat MCP server |
| AI model | claude-sonnet-4-5 |
| Data sent to the AI service | Git history metadata of the repository: commit messages, author and committer names and e-mail addresses, dates, branch and tag names, commit SHAs; pull request (merge request) titles, numbers, labels and linked issues when a GitHub, GitLab or Azure DevOps token is configured. |
| Language of the questions | en |
| Session | 7b1e0c55-2f9a-4d8e-a6b3-91c4e7d2f0aa (started 2026-03-31T09:12:03.977Z) |
| mergecat version | 0.3.0 |

## Questions and answers

1. **Are you using a Claude Team or Enterprise account? mergecat is about to send data of this Git repository to Claude (commit messages, authors, dates, branch and tag names, and pull request data when available). Your answer is recorded for EU AI Act and NIS2 compliance. Please answer yes or no.**
   Answer: **Yes**

**Answers as written by the user:**

> Yes, we use the company Team plan

---

Stored on this computer in `/Users/jdoe/Library/Application Support/mergecat/compliance/2026-03-31T09-14-22-418Z-web-shop-proceed.md` and appended to `/Users/jdoe/Library/Application Support/mergecat/compliance/compliance-log.jsonl`.
This record documents the declaration of the user at the time of use; it is not a legal assessment.

JSON Lines log

Every decision also appends one line (one JSON object) to compliance-log.jsonl in the same folder. mergecat only appends to the log and never rewrites it, which makes it easy to count, filter and export decisions.

JSON fieldContent
idRecord ID
recordedAtDate and time (UTC, ISO 8601)
outcomeproceed or stopped
teamOrEnterpriseAccountAnswer to the first question
planThe business or enterprise plan the first question asked about, e.g. a Claude Team or Enterprise account
awareAndProceedAnswer to the second question; absent when it was not asked
questions.account, questions.proceedThe questions as asked; proceed is absent when the second question was not asked
answersVerbatimYour answers as written, when Claude passed them
languageLanguage of the questions
requestedActionWhat you asked mergecat for
aiService, aiModelThe AI service and the model
dataSentThe categories of data sent to the AI service
user.osUser, user.gitName, user.gitEmailOperating-system user and Git identity
hostComputer name
repository.name, repository.root, repository.remoteRepository name, folder and remote
session.id, session.startedAtMCP server session
mergecatVersionVersion of the MCP server
files.markdown, files.logPaths of the Markdown record and of the log

The sample above as a log line, formatted here for reading (in the file it is a single line):

{
  "id": "3f6c2a9e-8d41-4b7a-9c35-0e2f5d7a1b64",
  "recordedAt": "2026-03-31T09:14:22.418Z",
  "outcome": "proceed",
  "teamOrEnterpriseAccount": true,
  "plan": "a Claude Team or Enterprise account",
  "questions": { "account": "Are you using a Claude Team or Enterprise account? …" },
  "answersVerbatim": "Yes, we use the company Team plan",
  "language": "en",
  "requestedAction": "changelog v1.2.0..v1.3.0",
  "aiService": "Claude (Anthropic) through Claude Code 2.1.0 and the mergecat MCP server",
  "aiModel": "claude-sonnet-4-5",
  "dataSent": "Git history metadata of the repository: …",
  "user": { "osUser": "jdoe", "gitName": "Jane Doe", "gitEmail": "jane.doe@example.com" },
  "host": "JDOE-MBP",
  "repository": { "name": "web-shop", "root": "/Users/jdoe/src/web-shop", "remote": "https://github.com/example-org/web-shop.git" },
  "session": { "id": "7b1e0c55-2f9a-4d8e-a6b3-91c4e7d2f0aa", "startedAt": "2026-03-31T09:12:03.977Z" },
  "mergecatVersion": "0.3.0",
  "files": {
    "markdown": "/Users/jdoe/Library/Application Support/mergecat/compliance/2026-03-31T09-14-22-418Z-web-shop-proceed.md",
    "log": "/Users/jdoe/Library/Application Support/mergecat/compliance/compliance-log.jsonl"
  }
}

Where records are stored

Records are written on the computer that runs Claude Code, in the mergecat data folder of the user:

~/Library/Application Support/mergecat/compliance/

Each Markdown record is named after the time, the repository and the outcome, for example 2026-03-31T09-14-22-418Z-web-shop-proceed.md (no-repository when the folder is not a Git repository). On macOS and Linux the files are created readable and writable by your user only.

Use another folder

Set MERGECAT_COMPLIANCE_DIR to an absolute folder before you start Claude Code; the plugin passes it to the MCP server. mergecat creates the folder if it does not exist.

export MERGECAT_COMPLIANCE_DIR="$HOME/Compliance/mergecat"
claude

Add the export line to ~/.zshrc to keep it.

Central collection

If your organisation collects the records centrally, point MERGECAT_COMPLIANCE_DIR at a backed-up or synchronised folder, one folder per user. The records contain names, e-mail addresses, computer names and repository paths: make sure only authorised people can read that folder.

The copy in the conversation

record_compliance_answer also returns the record as Markdown, and Claude gives it to you as a document of the conversation: a Markdown artifact, a file sent in the chat named compliance-record-<repository>-<YYYY-MM-DD>.md, or a Markdown block in the reply. It is never written into your project. Claude also tells you in one line where the record is stored on your computer.

When the outcome is stopped, you did not agree to send data to Claude, so the copy in the conversation leaves out these rows: User (operating system), User (Git configuration), Computer, Repository, Repository folder and Repository remote. A note says that these details are only in the copy stored on your computer. The stored record is always complete.

Collect the records for an audit

Find the folder

Use the folder for your operating system shown above, or the value of MERGECAT_COMPLIANCE_DIR. compliance_status also returns it as recordsFolder.

Copy or archive it

The folder contains one Markdown file per decision and the log compliance-log.jsonl. Copy the whole folder, or archive it:

cd ~/Library/Application\ Support/mergecat
zip -r ~/Desktop/mergecat-compliance.zip compliance

Query the log

One JSON line per decision makes the log easy to summarise.

cd ~/Library/Application\ Support/mergecat/compliance   # Linux: ~/.local/share/mergecat/compliance

# Decisions per outcome
jq -s 'group_by(.outcome) | map({outcome: .[0].outcome, count: length})' compliance-log.jsonl

# Every "stopped" decision
jq -c 'select(.outcome == "stopped") | {recordedAt, requestedAction, user: .user.osUser, host}' compliance-log.jsonl

# Decisions in the first quarter of 2026
jq -c 'select(.recordedAt >= "2026-01-01" and .recordedAt < "2026-04-01")' compliance-log.jsonl

# CSV for a spreadsheet
jq -rs '(["recordedAt","outcome","teamOrEnterprise","awareAndProceed","requestedAction","osUser","computer","repository","aiModel"] | @csv),
  (.[] | [.recordedAt, .outcome, .teamOrEnterpriseAccount, .awareAndProceed, .requestedAction, .user.osUser, .host, .repository.name, .aiModel] | @csv)' \
  compliance-log.jsonl > compliance-log.csv

Hand over the evidence

Give the auditor the log (or the CSV) for the overview and the Markdown records for individual decisions. The Markdown files are readable as they are and can be printed or converted to PDF.

Retention

mergecat never deletes records; how long you keep them is up to your organisation. Some suggestions:

  • Keep the records at least as long as your AI policy, your audit cycle or your other security logs require. As a reference point, the AI Act asks deployers of high-risk AI systems to keep the logs of those systems for at least six months.
  • The records contain personal data (names, e-mail addresses, computer names). Under the GDPR, keep them no longer than you need them, and restrict who can read them.
  • Archive the folder together with the release documentation or the audit evidence of the period, and delete local copies according to your retention schedule.