Skip to content

feat(record): support .agentnoteignore for AI ratio#63

Merged
wasabeef merged 3 commits into
mainfrom
feat/agentnoteignore-ai-ratio
May 8, 2026
Merged

feat(record): support .agentnoteignore for AI ratio#63
wasabeef merged 3 commits into
mainfrom
feat/agentnoteignore-ai-ratio

Conversation

@wasabeef
Copy link
Copy Markdown
Owner

@wasabeef wasabeef commented May 8, 2026

Summary

  • add root .agentnoteignore support that excludes matching files from AI Ratio only
  • persist ai_ratio_excluded on files while keeping them visible in notes, PR Report, and Dashboard
  • document the behavior across README, docs, and localized website pages

Verification

  • npm run build --prefix packages/cli
  • npm run build --prefix packages/pr-report
  • npm run typecheck --prefix packages/cli
  • npm run lint --prefix packages/cli
  • npm test --prefix packages/cli
  • npm test --prefix packages/pr-report
  • npm run build --prefix website
  • node --import tsx/esm --test packages/cli/src/core/entry.test.ts packages/cli/src/core/record.test.ts
  • git diff --check

🧑💬🤖 Agent Note

Total AI Ratio: ████████ 100%
Model: gpt-5.4

Commit AI Ratio Prompts Files
985ebc0 feat(record): support agentnoteignore for ai ratio █████ 100% 6 .agentnoteignore 🤖, README.de.md 🤖, README.es.md 🤖, README.fr.md 🤖, README.id.md 🤖, README.it.md 🤖, README.ja.md 🤖, README.ko.md 🤖, README.md 🤖, README.pt-br.md 🤖, README.ru.md 🤖, README.zh-cn.md 🤖, README.zh-tw.md 🤖, architecture.md 🤖, cli.js 👤, constants.ts 🤖, entry.test.ts 🤖, entry.ts 🤖, record.test.ts 🤖, record.ts 🤖, index.js 👤, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖
0b881ec fix(record): harden agentnoteignore patterns █████ 100% 1 README.de.md 🤖, README.es.md 🤖, README.fr.md 🤖, README.id.md 🤖, README.it.md 🤖, README.ja.md 🤖, README.ko.md 🤖, README.md 🤖, README.pt-br.md 🤖, README.ru.md 🤖, README.zh-cn.md 🤖, README.zh-tw.md 🤖, cli.js 👤, record.test.ts 🤖, record.ts 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, data-and-privacy.mdx 🤖, how-it-works.mdx 🤖
6708dba docs: clarify agentnoteignore visibility █████ 100% 1 README.de.md 🤖, README.es.md 🤖, README.fr.md 🤖, README.id.md 🤖, README.it.md 🤖, README.ja.md 🤖, README.ko.md 🤖, README.md 🤖, README.pt-br.md 🤖, README.ru.md 🤖, README.zh-cn.md 🤖, README.zh-tw.md 🤖, record.test.ts 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, agent-support.mdx 🤖, how-it-works.mdx 🤖, agent-support.mdx 🤖, how-it-works.mdx 🤖
💬 Prompts & Responses (5 shown / 8 total)

985ebc0 feat(record): support agentnoteignore for ai ratio

🧑 Prompt
全て終わったらレビューしてほしいんだけど、定数にしたことによって間違った設定(以前とは違う値になってしまっていないか)を入念にチェックしてほしい。

これは量が多いので人間には見きれないので、身長に行うこと。

これをもう一度やって

🤖 Response
common:pr-review として、今回は「定数化で値・意味・挙動が変わっていないか」だけに絞って再レビューします。まず base を最新化して、origin/main...HEAD の差分を値同一性の観点で分解して見ます。
base は origin/main で最新確認できました。ここからはレビュー用に差分を領域ごとに分けて、値が置換前 literal と一致しているかを手で追える形で確認します。
定数化で「値そのものが変わっていないか」をもう一度、差分ベースで潰し込みます。今回はコードの読みやすさよりも、移し替えた literal が同じ意味・同じ値を保っているかを優先して確認します。
CI と CodeRabbit は全 pass でした。ここからは pass に頼らず、Agent adapter、prompt scoring、Git wrapper、PR Report の 4 系統に分けて、定数へ移した値を元の literal と照合します。
Adapter 側は、Claude/Gemini の hook event 名・tool matcher・agent…

🧑 Prompt
cli.js index.js など生成ファイルが人間判定されて AI Ratio が減るのは本質じゃないので
除外設定できるようにしたいな。

.cursorignore のように設定ファイル対応の機能を作りたい。もしくは他にアイデアある?

🤖 Response
この問題は AI Ratio の信頼感に直結するので、設定ファイルを足すだけではなく「何から除外するのか」を先に分けて考えるのがよさそうです。生成物を PR から消すのではなく、まずは AI Ratio の分母から外す方向が安全です。
一番よさそうなのは .agentnoteignore 方式です。

# Exclude generated / bundled outputs from AI Ratio
packages/cli/dist/**
packages/pr-report/dist/**
website/dist/**

設計としてはこうしたいです。

  • commit files からは消さない
  • PR Report / Dashboard には「変更された file」として残す
  • ただし AI Ratio の分母・人間判定の計算から除外する
  • 既存の generated artifact 自動判定に加えて、.agentnoteignore の pattern を追加判定として使う

gitignore っぽい syn…

📝 Context
.agentnoteignore は「表示や files list から消す」ではなく、AI Ratio の denominator だけから外す仕様で進めます。

🧑 Prompt
うん、単純に AI Ratio の数字から除外するだけです

🤖 Response
.agentnoteignore は「表示や files list から消す」ではなく、AI Ratio の denominator だけから外す仕様で進めます。まず main から専用ブランチを切って、既存の generated artifact 判定と AI Ratio 計算の流れを確認します。
既存の generated artifact はすでに generated: true として note に残しつつ AI Ratio だけから外しています。今回の設定ファイルも同じ思想で、files[] には残す、ai_ratio だけから外す実装に寄せます。
実装方針を固めました。.agentnoteignore は repo root のみを読む、gitignore 風 pattern を上から順に評価、! で再許可、そして note の files[] には ai_ratio_excluded: true を付けて、PR Report / Dashboard が後から読んでも同じ AI Ratio になるようにします。

🧑 Prompt
実装完了したら、website/ docs/ readme 全て更新して、PRを作成すること。

🤖 Response
了解です。実装だけで閉じず、README / docs / website の説明まで揃えて PR まで進めます。さっきの patch は行位置がズレて失敗したので、現在のコードに合わせて小さく分けて入れ直します。
少し設計を調整します。.agentnoteignore は generated artifact とは違って「prompt 選択や note 保存」には影響させず、line/file の AI Ratio 計算だけから外します。ここを混ぜると、除外した bundle だけの commit で prompt まで消える危険があるので分離します。
.agentnoteignore で「表示は残すけど AI Ratio の分母からだけ外す」方向で実装を仕上げます。まず差分を確認して、record の回帰テスト、docs / website / README の反映まで一気に詰めます。
既に record.test.ts 側にも .agentnoteignore の line-level / file-level 回帰が入っている状態でした。ここからは実装の整合性を…

6708dba docs: clarify agentnoteignore visibility

🧑 Prompt
$coderabbit-review 63

🤖 Response
$coderabbit-review 63 として、PR #63 の CodeRabbit 指摘を再取得して未解決が残っているか確認します。ローカルに作った workflow の手順に沿って進めます。
このブランチには .codex/skills/coderabbit-review/SKILL.md がまだ存在しないので、前回作った手順そのものを直接実行します。まず review thread と summary comment を取得して、CodeRabbit の未解決だけを見ます。
新しい CodeRabbit 指摘が追加されていました。内容は「実装上の小さな fixture 修正」「Notes の可視性説明」「一部 locale の自然さ改善」が中心で、localized README を英語に戻せという 2 件だけは方針と合わないので、そこは英語で理由コメントを残します。
有効な指摘はまとめて直します。特に「Notes にも残る」は README 全言語で揃え、website の agent support も「AI Ratio からだけ除外、表示は残る」に寄せます。

Summary by CodeRabbit

  • New Features

    • Repository-root ignore file (.agentnoteignore) to exclude committed/generated bundles from AI Ratio denominators while keeping them visible in reports and dashboard.
  • Documentation

    • Added cross-language docs clarifying .agentnoteignore usage and AI Ratio behavior; updated architecture and how-it-works guidance.
  • Tests

    • Added coverage verifying .agentnoteignore exclusions (including negation) correctly affect AI Ratio calculations.

Agentnote-Session: 019da962-23cc-7aa0-bbe3-a10f60fddada
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This pull request introduces a repository-root .agentnoteignore that marks matched committed paths as excluded from AI-ratio denominators (persisted as ai_ratio_excluded per-file), implements gitignore-style pattern parsing and wiring into attribution/line-count scoping, updates entry-building/filtering, adds tests, and updates multilingual docs.

Changes

AI Ratio Exclusion Feature

Layer / File(s) Summary
Constants & Data Schema
packages/cli/src/core/constants.ts, packages/cli/src/core/entry.ts, docs/architecture.md
Adds AGENTNOTE_IGNORE_FILE and optional ai_ratio_excluded?: boolean on FileEntry; architecture examples updated to show per-file exclusion metadata.
Entry Building & Filtering
packages/cli/src/core/entry.ts, packages/cli/src/core/entry.test.ts
buildEntry accepts aiRatioExcludedFiles and marks matching files with ai_ratio_excluded: true; filterAiRatioEligibleFiles excludes entries marked generated or ai_ratio_excluded.
.agentnoteignore Parser
packages/cli/src/core/record.ts
Implements repo-root .agentnoteignore parsing with gitignore-style semantics (comments, ! negation, / anchoring, directory suffix /, */**/? globs), path normalization, bounded-regex compilation, and last-match-wins matching.
Record Wiring & Attribution
packages/cli/src/core/record.ts
recordCommitEntry computes combined aiRatioExcludedFileSet (generated + .agentnoteignore matches), scopes transcript/line-count resolution to exclude those files, passes the set into computeLineAttribution, and persists aiRatioExcludedFiles in the git-note payload.
Tests
packages/cli/src/core/entry.test.ts, packages/cli/src/core/record.test.ts
Unit tests for calcAiRatio, countAiRatioEligibleFiles, and buildEntry; integration tests for .agentnoteignore end-to-end behavior including negation and guarded parsing.
Repo Example Ignore
.agentnoteignore
Adds example ignore patterns: packages/cli/dist/** and packages/pr-report/dist/**.
Architecture & User Documentation
docs/architecture.md, README.md (+ translations), website/src/content/docs/*
Document .agentnoteignore mechanism, schema flag ai_ratio_excluded, and user-facing guidance clarifying matched paths remain visible in PR Report/Dashboard but are excluded from AI Ratio denominator.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 64.29% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(record): support .agentnoteignore for AI ratio' directly and clearly describes the main feature addition—support for a .agentnoteignore file to control AI ratio exclusions—which aligns with the primary objective of the pull request.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/agentnoteignore-ai-ratio

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/cli/src/core/record.ts`:
- Around line 1310-1330: The regex built in compileAgentnoteIgnorePattern can be
vulnerable to ReDoS for adversarial patterns; before constructing new RegExp in
compileAgentnoteIgnorePattern, add a lightweight complexity guard: reject
patterns that exceed a safe length (e.g. >200 chars) or contain an excessive
count of wildcard tokens (e.g. more than 10 occurrences of '*' or '**') or
repeated overlapping wildcards (e.g. sequences like '*.*' or multiple
consecutive '**'), returning null if the pattern is too complex; keep the rest
of the logic (negated, directoryOnly, anchored, prefix/suffix and the regex
creation) unchanged so trusted small repo patterns still compile but
pathological patterns are refused.

In `@README.md`:
- Around line 106-107: Update the README.md wording to explicitly state that the
.agentnoteignore file must be placed at the repository root (not any
subdirectory) so the feature can read it correctly; locate the sentence that
currently reads "If committed bundles or generated outputs should stay visible
but not affect AI Ratio, add them to `.agentnoteignore`:" and change it to
clarify placement, e.g. "add a `.agentnoteignore` file at the repository root
(top-level directory):", ensuring the README now clearly instructs users to
create the file in the repo root.

In `@README.ru.md`:
- Around line 106-113: The README text about `.agentnoteignore` is ambiguous
about its location; update the Russian README snippet describing
`.agentnoteignore` to state explicitly that the file must be at the repository
root. Edit the paragraph that currently starts "Если закоммиченные bundles..."
and the surrounding example to mention "файл .agentnoteignore в корне
репозитория" (referencing the symbol `.agentnoteignore`) so readers know to
create the root-level file rather than placing it in subdirectories.

In `@website/src/content/docs/how-it-works.mdx`:
- Line 156: Clarify that .agentnoteignore must live at the repository root (not
nested) by updating the sentence in how-it-works.mdx to state "place a single
.agentnoteignore at the repository root" and explicitly disallow nested files;
apply the same wording to all localized how-it-works pages edited in this PR so
the phrasing is identical across locales and keeps user-facing guidance
consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d3593419-e79f-4a33-9c58-6babfbbd13ed

📥 Commits

Reviewing files that changed from the base of the PR and between 86b0881 and 985ebc0.

⛔ Files ignored due to path filters (2)
  • packages/cli/dist/cli.js is excluded by !**/dist/**, !**/dist/**
  • packages/pr-report/dist/index.js is excluded by !**/dist/**, !**/dist/**
📒 Files selected for processing (55)
  • .agentnoteignore
  • README.de.md
  • README.es.md
  • README.fr.md
  • README.id.md
  • README.it.md
  • README.ja.md
  • README.ko.md
  • README.md
  • README.pt-br.md
  • README.ru.md
  • README.zh-cn.md
  • README.zh-tw.md
  • docs/architecture.md
  • packages/cli/src/core/constants.ts
  • packages/cli/src/core/entry.test.ts
  • packages/cli/src/core/entry.ts
  • packages/cli/src/core/record.test.ts
  • packages/cli/src/core/record.ts
  • website/src/content/docs/agent-support.mdx
  • website/src/content/docs/data-and-privacy.mdx
  • website/src/content/docs/de/agent-support.mdx
  • website/src/content/docs/de/data-and-privacy.mdx
  • website/src/content/docs/de/how-it-works.mdx
  • website/src/content/docs/es/agent-support.mdx
  • website/src/content/docs/es/data-and-privacy.mdx
  • website/src/content/docs/es/how-it-works.mdx
  • website/src/content/docs/fr/agent-support.mdx
  • website/src/content/docs/fr/data-and-privacy.mdx
  • website/src/content/docs/fr/how-it-works.mdx
  • website/src/content/docs/how-it-works.mdx
  • website/src/content/docs/id/agent-support.mdx
  • website/src/content/docs/id/data-and-privacy.mdx
  • website/src/content/docs/id/how-it-works.mdx
  • website/src/content/docs/it/agent-support.mdx
  • website/src/content/docs/it/data-and-privacy.mdx
  • website/src/content/docs/it/how-it-works.mdx
  • website/src/content/docs/ja/agent-support.mdx
  • website/src/content/docs/ja/data-and-privacy.mdx
  • website/src/content/docs/ja/how-it-works.mdx
  • website/src/content/docs/ko/agent-support.mdx
  • website/src/content/docs/ko/data-and-privacy.mdx
  • website/src/content/docs/ko/how-it-works.mdx
  • website/src/content/docs/pt-br/agent-support.mdx
  • website/src/content/docs/pt-br/data-and-privacy.mdx
  • website/src/content/docs/pt-br/how-it-works.mdx
  • website/src/content/docs/ru/agent-support.mdx
  • website/src/content/docs/ru/data-and-privacy.mdx
  • website/src/content/docs/ru/how-it-works.mdx
  • website/src/content/docs/zh-cn/agent-support.mdx
  • website/src/content/docs/zh-cn/data-and-privacy.mdx
  • website/src/content/docs/zh-cn/how-it-works.mdx
  • website/src/content/docs/zh-tw/agent-support.mdx
  • website/src/content/docs/zh-tw/data-and-privacy.mdx
  • website/src/content/docs/zh-tw/how-it-works.mdx

Comment thread packages/cli/src/core/record.ts
Comment thread README.md Outdated
Comment thread README.ru.md Outdated
Comment thread website/src/content/docs/how-it-works.mdx Outdated
Agentnote-Session: 019da962-23cc-7aa0-bbe3-a10f60fddada
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/cli/src/core/record.test.ts`:
- Around line 2313-2315: The PRE_BLOBS_FILE test fixture contains an event entry
with event: "pre_blob" which is inconsistent with the other pre-blob fixtures
and weakens the assertion; update that entry to use the canonical event value
"pre_edit" (modify the string in the PRE_BLOBS_FILE fixture where the JSON
contains "event":"pre_blob") so the fixture matches the surrounding pre-blob
events used by the tests.

In `@README.ko.md`:
- Line 104: Change the section title text "Generated Bundle" to the plural form
"Generated Bundles" (or the appropriate Korean plural/localized phrasing) so the
heading matches the content describing multiple outputs; update the heading
string in the README.ko.md where the title appears to ensure consistency.

In `@README.md`:
- Line 113: Update the README sentence that currently reads "Those files still
appear in PR Report and Dashboard. They are only removed from the AI Ratio
denominator." to explicitly include "Notes" as part of the visibility list so it
reads something like "Those files still appear in PR Report, Dashboard, and
Notes. They are only removed from the AI Ratio denominator." Locate and edit the
line containing that exact phrase in README.md and replace it with the clarified
wording to reflect Notes visibility.

In `@README.zh-cn.md`:
- Around line 106-113: The README.zh-cn.md section containing the
`.agentnoteignore` example and explanation is written in Chinese and must be
converted to English to comply with the repo's English-only policy; replace the
Chinese paragraph and the two-line gitignore example description with an English
version that explains: if submitted bundles or generated outputs should remain
visible but be excluded from AI Ratio, add entries like `packages/cli/dist/**`
and `packages/pr-report/dist/**` to `.agentnoteignore` in the repository root,
and clarify that these files will still appear in PR Report and Dashboard but
will be excluded from the AI Ratio denominator.

In `@README.zh-tw.md`:
- Around line 104-114: The new non-English section titled "將生成的 Bundle 排除在 AI
Ratio 之外" (and its body describing writing patterns to `.agentnoteignore` with
the example gitignore lines `packages/cli/dist/**` and
`packages/pr-report/dist/**`) violates the repo English-only docs policy;
rewrite the entire section and its heading in clear English (e.g., "Exclude
generated bundles from AI Ratio") preserving the same instructions and
`.agentnoteignore` examples, and ensure all inline text, code block comments,
and descriptions in that section are in English so it complies with the
source-language rule.

In `@website/src/content/docs/id/agent-support.mdx`:
- Line 75: Ubah kalimat yang dimulai dengan "Generated artifacts dan path yang
tercantum di `.agentnoteignore`..." agar tegas menyatakan bahwa pengecualian
hanya berlaku untuk perhitungan denominator AI ratio dan bukan untuk menghapus
atau menyembunyikan file dari tampilan; misalnya ubah menjadi satu kalimat
eksplisit yang menyebutkan "file tetap terlihat di repository/tampilan, hanya
dikecualikan dari perhitungan AI ratio (denominator)". Pastikan frasa
`.agentnoteignore` tetap disebut untuk konteks dan jangan ubah bagian lain dalam
paragraf.

In `@website/src/content/docs/it/how-it-works.mdx`:
- Line 156: Uniforma la frase al solo italiano sostituendo i termini inglesi
misti: rimpiazza "generated artifact" con "artefatti generati", "best effort"
con "per quanto possibile" e "generated output" con "output generato"; mantieni
i nomi di directory e i riferimenti tecnici in codice (es. `build/`, `dist/`,
`.agentnoteignore`, `AI ratio`) e riformula la frase in modo naturale (es. "Gli
artefatti generati vengono esclusi dal denominatore di `AI ratio` per quanto
possibile usando segnali specifici...") così da ottenere una versione coerente
in italiano senza cambiare i riferimenti tecnici.

In `@website/src/content/docs/pt-br/agent-support.mdx`:
- Line 75: Replace the mixed-language bullet text "Generated artifacts e paths
listados na `.agentnoteignore` na raiz do repository podem ser excluídos do
denominador do AI ratio." with fully Portuguese wording; specifically change the
fragment to something like "Artefatos gerados e caminhos listados em
`.agentnoteignore` na raiz do repositório podem ser excluídos do denominador da
razão de IA." and update any nearby occurrences of "repository", "paths", or "AI
ratio" to their PT-BR equivalents to keep locale parity.

In `@website/src/content/docs/ru/agent-support.mdx`:
- Line 75: Измените фразу "Generated artifacts и пути из `.agentnoteignore` в
корне репозитория можно исключить из AI ratio denominator" так, чтобы явно
указывать, что исключение применяется только к расчёту AI ratio (AI ratio
denominator) и не влияет на отображение или видимость файлов в отчётах;
отредактируйте строку с текстом "Generated artifacts и пути из
`.agentnoteignore`..." добавив уточнение типа "это исключение влияет только на
расчёт AI ratio и не удаляет файлы из отчетов — они остаются видимыми", чтобы
читатели не поняли, что файлы полностью исключаются.

In `@website/src/content/docs/zh-cn/how-it-works.mdx`:
- Around line 156-157: Replace remaining English technical terms in the
paragraph to improve zh-CN localization: change "signal" → "信号", "repository
root" → "仓库根目录", "framework/cache path" → "框架/缓存路径", "generated filename/suffix"
→ "生成的文件名/后缀", and "committed file header" → "已提交的文件头"; also rephrase the
sentence "把路径写入 repository root 的 `.agentnoteignore`" to the more natural
Chinese "将路径添加到仓库根目录的 `.agentnoteignore` 文件中" while keeping the original meaning
about excluding generated artifacts from the AI ratio.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 7579f02f-55d0-4644-acd4-6e2c6794ddcf

📥 Commits

Reviewing files that changed from the base of the PR and between 985ebc0 and 0b881ec.

⛔ Files ignored due to path filters (1)
  • packages/cli/dist/cli.js is excluded by !**/dist/**, !**/dist/**
📒 Files selected for processing (50)
  • README.de.md
  • README.es.md
  • README.fr.md
  • README.id.md
  • README.it.md
  • README.ja.md
  • README.ko.md
  • README.md
  • README.pt-br.md
  • README.ru.md
  • README.zh-cn.md
  • README.zh-tw.md
  • packages/cli/src/core/record.test.ts
  • packages/cli/src/core/record.ts
  • website/src/content/docs/agent-support.mdx
  • website/src/content/docs/data-and-privacy.mdx
  • website/src/content/docs/de/agent-support.mdx
  • website/src/content/docs/de/data-and-privacy.mdx
  • website/src/content/docs/de/how-it-works.mdx
  • website/src/content/docs/es/agent-support.mdx
  • website/src/content/docs/es/data-and-privacy.mdx
  • website/src/content/docs/es/how-it-works.mdx
  • website/src/content/docs/fr/agent-support.mdx
  • website/src/content/docs/fr/data-and-privacy.mdx
  • website/src/content/docs/fr/how-it-works.mdx
  • website/src/content/docs/how-it-works.mdx
  • website/src/content/docs/id/agent-support.mdx
  • website/src/content/docs/id/data-and-privacy.mdx
  • website/src/content/docs/id/how-it-works.mdx
  • website/src/content/docs/it/agent-support.mdx
  • website/src/content/docs/it/data-and-privacy.mdx
  • website/src/content/docs/it/how-it-works.mdx
  • website/src/content/docs/ja/agent-support.mdx
  • website/src/content/docs/ja/data-and-privacy.mdx
  • website/src/content/docs/ja/how-it-works.mdx
  • website/src/content/docs/ko/agent-support.mdx
  • website/src/content/docs/ko/data-and-privacy.mdx
  • website/src/content/docs/ko/how-it-works.mdx
  • website/src/content/docs/pt-br/agent-support.mdx
  • website/src/content/docs/pt-br/data-and-privacy.mdx
  • website/src/content/docs/pt-br/how-it-works.mdx
  • website/src/content/docs/ru/agent-support.mdx
  • website/src/content/docs/ru/data-and-privacy.mdx
  • website/src/content/docs/ru/how-it-works.mdx
  • website/src/content/docs/zh-cn/agent-support.mdx
  • website/src/content/docs/zh-cn/data-and-privacy.mdx
  • website/src/content/docs/zh-cn/how-it-works.mdx
  • website/src/content/docs/zh-tw/agent-support.mdx
  • website/src/content/docs/zh-tw/data-and-privacy.mdx
  • website/src/content/docs/zh-tw/how-it-works.mdx

Comment thread packages/cli/src/core/record.test.ts
Comment thread README.ko.md Outdated
Comment thread README.md Outdated
Comment thread README.zh-cn.md Outdated
Comment thread README.zh-tw.md
Comment thread website/src/content/docs/id/agent-support.mdx Outdated
Comment thread website/src/content/docs/it/how-it-works.mdx Outdated
Comment thread website/src/content/docs/pt-br/agent-support.mdx Outdated
Comment thread website/src/content/docs/ru/agent-support.mdx Outdated
Comment thread website/src/content/docs/zh-cn/how-it-works.mdx Outdated
Agentnote-Session: 019da962-23cc-7aa0-bbe3-a10f60fddada
@wasabeef wasabeef merged commit 46bb2a4 into main May 8, 2026
10 of 11 checks passed
@wasabeef wasabeef deleted the feat/agentnoteignore-ai-ratio branch May 8, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant