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

Add AgentEvolution haystack ServiceType (Phase 2)

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
ai, backend

調査の方向性

Start with the Phase 1 agent output persistence dependency, then read ServiceType in crates/terraphim_config/src/lib.rs and the haystack search flow in crates/terraphim_middleware/src/indexer/mod.rs. Review the listed orchestrator files and the new agent_evolution.rs entry point. Done means the TOML parses, configured agents receive prior lessons, empty haystacks return safely, and cargo test --workspace passes.

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

説明

enhancement

Summary

Add AgentEvolution as a new ServiceType in the haystack architecture, enabling agents to search their prior lessons and memories as part of domain knowledge retrieval.

Approach

  • Add AgentEvolution variant to ServiceType enum in crates/terraphim_config/src/lib.rs
  • Implement IndexMiddleware that searches persisted LessonsState and MemoryState, returns matching entries as Document
  • Add match arm in search_haystacks() for the new service type
  • Add knowledge_haystacks and max_knowledge_items to AgentDefinition config
  • Extend spawn_agent() to search haystacks with task as needle, prepend results to prompt

TOML Config Example

[[agents]]
name = "product-development"
max_knowledge_items = 5

[[agents.knowledge_haystacks]]
location = "product-development"
service = "AgentEvolution"

[[agents.knowledge_haystacks]]
location = "~/.config/terraphim/kg/projects/terraphim-ai/"
service = "Ripgrep"

Critical Files

  • crates/terraphim_config/src/lib.rs:273 -- ServiceType enum
  • New: crates/terraphim_middleware/src/haystack/agent_evolution.rs -- IndexMiddleware impl
  • crates/terraphim_middleware/src/indexer/mod.rs -- search_haystacks() match arm
  • crates/terraphim_orchestrator/src/config.rs -- AgentDefinition fields
  • crates/terraphim_orchestrator/src/lib.rs -- spawn_agent() enrichment

Acceptance Criteria

  • Agent with configured knowledge_haystacks receives prior lessons in prompt
  • Empty haystack returns gracefully
  • TOML config parses correctly
  • cargo test --workspace passes

Dependencies

  • Blocked by: Phase 1 (agent output persistence)
  • Related: #651 (context-hub haystack), Gitea #81, #79
主要言語
Rust
スター
64
フォーク
5
平均マージ
1時間 17分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

terraphim/terraphim-ai のほかの issue

terraphim/terraphim-ai の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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