Back to all rules / Hidden content and security

agent-transcript-in-repo

Agent session transcripts or copied agent state are in the repo.

warning by default Hidden content and security Needs the whole project Config or baseline only

Source: code.claude.com (code.claude.com), read 14 October 2026.

On GitHub: the rule doc and the tests.

Jump to another rule89

Severity: a note for SpecStory history, which is saved in the repo on purpose; a warning for the rest.

What it catches#

Agent session transcripts or copied agent state are in the repo.

Agent session data committed into the tree, found by file and folder names and, for a bare <uuid>.jsonl, by the first 4 KB of the file:

  • Claude Code transcripts and state copied from ~/.claude: .claude/projects/..., folders named like -home-me-app holding <uuid>.jsonl or memory/*.md, history.jsonl, file-history/, shell-snapshots/, todos/;
  • Codex rollout-<timestamp>-<uuid>.jsonl sessions and .codex/history.jsonl;
  • Gemini CLI chats, logs and checkpoints under .gemini/tmp/<hash>/;
  • Aider's .aider.chat.history.md and .aider.input.history;
  • SpecStory's .specstory/history/, as a note, since SpecStory saves chats in the repo on purpose.

Files a .gitignore covers are skipped, and findings are grouped by folder. The content is never quoted. Runs only at the top of a git checkout. Needs --include config.

Why it matters#

Transcripts keep everything that passed through a tool in plain text: file contents, command output and pasted keys. Apiiro counted transcripts among the agent files that leaked 2,539 secrets on GitHub.

Bad example#

notes/
  -home-dev-shop/
    3f2a9c4e-8b1d-4e6f-a2c7-5d9e0b1f4a6c.jsonl
    memory/MEMORY.md
.aider.chat.history.md

A transcript holds every file the agent read, every command output and everything pasted into the chat, keys included.

Good example#

# .gitignore
.aider*
**/.claude/projects/

Share a summary or a cleaned excerpt instead of the raw session.

How to fix#

Read the files for secrets and rotate anything you find, then delete them from the repo and add the pattern from the message to .gitignore. Deleting does not remove them from git history, which is why rotating comes first.

Suppress or configure#

agent-transcript-in-repo is a security rule, so it cannot be suppressed with a comment in the file: a suppression comment is itself a hidden comment, and an attacker who can add a payload can add one next to it. A comment that tries gets a suppression-not-allowed warning.

Turn it off, or change its severity, in .asitisrc.json, which shows up in review:

{ "rules": { "agent-transcript-in-repo": "off" } }

Or accept the findings you have today in a baseline, so only new ones fail the build:

asitis lint --format json --write-baseline > .asitis-baseline.json
asitis lint --baseline .asitis-baseline.json

Source#

code.claude.com, read on 14 October 2026.

See what an agent changed in your CLAUDE.md. Keep or revert each change.

The linter is free and needs no signup. I'm also building a desktop editor for the markdown your agents write and read. It shows what an agent changed since you last looked, lets you keep or revert each change, and never touches a line you didn't edit. No release date yet. One email to confirm, one when the paid beta opens, one when 1.0 ships. $29 once for a founding licence, with 24 months of updates.

Or add the linter to CI, no email needed.

Your address is stored with Cloudflare, which hosts this site. No IP address is kept. See the privacy policy.

Run the rule

Back to all rules

This page is generated from the plugin's rule registry. Edit it on GitHub. False positive? Open an issue with the line it fired on.