Keep the terminal agent's context bounded on long tasks

オープン 初心者向け
#129 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@Kushagra481 がすでに取り組んでいます。

2026年11月5日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

fixtures/terminal_agent/agent.pyから始めて、会話履歴がどのように組み立てられ、各ターンで送信されるかを確認します。履歴がしきい値を超えたら、直近のターンを保持しながら履歴を短縮する処理を追加し、履歴短縮関数のユニットテストを追加します。長いタスクが設定したサイズ以下に収まり、直近のターンがそのまま保持されれば完了です。

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

説明

area: agent enhancement size: M
Context

The agent resends the whole conversation every turn. Long tasks grow until they hit the model's context limit or the trial's token budget.

What to do

Truncate or summarise old tool outputs once the history passes a threshold, keeping the most recent turns intact.

Done when

A long task stays under a set size, with a unit test on the history-trimming function.

Where to look

fixtures/terminal_agent/agent.py


New here? Read CONTRIBUTING.md and comment on this issue to say you are taking it.


Generated by Claude Code

主要言語
Python
スター
0
フォーク
0
平均マージ
1時間 54分
マージ済み PR(30日)
14

環境構築

はじめの一歩

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

patsypppe/meridian のほかの issue

patsypppe/meridian の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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