Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Agent reads: smaller default page, a warning after many reads, and a measured before/after

オープン
#324 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

Start with src/main/tools/files.ts and the existing shownReads behavior described in the issue. Measure reads per task and input tokens on the agent benchmarks in #49 and #135, including how often the model responds to the note with reread: true. Use those results to decide whether to implement the smaller default page or the soft warning; done means the chosen change is measured and edits still work if the default page changes.

索引モデルが issue の本文から書いたものです。

説明

performance priority: low severity: low

Follow-up to #314, whose first point is done: a repeated read_file of the same lines of an unchanged file in one run now returns a one-line note instead of the text (shownReads in src/main/tools/files.ts, reset when a run starts).

Left from #314's proposal:

  1. Smaller default page. read_file returns up to 2,000 lines (30,000 characters) by default. A smaller default with the total line count in the result could stop whole-file reads of large files when the agent needs one function. Check that edits still work, since edit_file and write_file need the file read first (any page marks it read).
  2. A soft warning after many reads in one turn, for example a note appended to the tool result after N reads without an edit, suggesting grep or find_definition.
  3. Measure. Reads per task and input tokens before and after, on the agent benchmark (#49, #135), including how often the model answers the new note with reread: true.

Measure first (3): if the note already removes most of the cost, 1 and 2 may not be worth it.

主要言語
TypeScript
スター
2
フォーク
2
平均マージ
6時間 27分
マージ済み PR(30日)
37

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PierrunoYT/patch のほかの issue

PierrunoYT/patch の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。