Bound repository context size in load_repo_context
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
repo_router.py の load_repo_context() から始め、baseline、意図に一致する .agent/**/*.md ファイル、README の内容がどのように読み込まれて追加されるかを確認します。ファイル単位および合計の共有制限を設定する前に、既存の README の切り詰めとエラーログを追跡します。切り詰められたセクションに印が付き、両方の予算が守られ、意図の選択とルーティング動作が変更されていなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
Add bounded Markdown context loading to repo_router.py so repository context passed to the LLM has predictable size.
Rationale
load_repo_context() currently reads baseline and intent-matched .agent/**/*.md files in full. Categorizing the query reduces the number of selected files, but a single large selected file can still consume the prompt budget, increase latency, and cause the user query or relevant context to be truncated.
Affected area
repo_router.pyload_repo_context()
Required changes
- Introduce a shared capped-read helper for Markdown context files.
- Apply a per-file content limit to operational data, architecture, core context, and instruction files.
- Enforce an overall context-size budget while appending sections.
- Preserve the existing intent-based selection and error logging behavior.
- Mark truncated content clearly in the assembled context.
Acceptance criteria
- No individual Markdown context file can exceed the configured per-file cap in the LLM context.
- The assembled repository context cannot exceed a configured total budget.
- Existing README truncation remains consistent with the shared limit strategy.
- The existing routing and intent-selection behavior remains unchanged.
Backlinks
- Reported from PR #21: https://github.com/AOSSIE-Org/SkillBot/pull/21
- Review discussion: https://github.com/AOSSIE-Org/SkillBot/pull/21#discussion_r3652672930
Requested by @kpj2006.
- 主要言語
- Python
- スター
- 10
- フォーク
- 11
- 平均マージ
- 6分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/SkillBot のほかの issue
-
[BUG]: Issue-creation intent is missed when the article is omitted (create issue for this)対応中かも @Ankitavasudev が 8 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
AOSSIE-Org/SkillBot#65 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: Non-Atomic Gap Log Writes Can Cause Data Loss After an Interrupted Save再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 11 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
AOSSIE-Org/SkillBot#61 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: os.chdir() Changes the Process-Wide Working Directory During Repository Sync対応中かも @aadityachhipa80-oss が 2 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
AOSSIE-Org/SkillBot#59 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: wait_for_ollama() Retries Indefinitely When Ollama Is Unavailable再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 11 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/SkillBot#56 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: Backlog Messages Are Re-processed on Discord Reconnection再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 11 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
AOSSIE-Org/SkillBot#58 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
AOSSIE-Org/SkillBot の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gke-labs/kube-agents#6778 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Declare the CMS schema library in the optional recipients extra対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:python in-progress
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
yhay81/pyropdf#1005 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/build-framework kind/enhancement priority/low
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
yugabyte/yugabyte-db#38826 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
sususweet/midea_auto_cloud#306 ·
メンテナーはふだん 9 日以内に返信