-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Parent: #336
Summary
Reduce history tokens sent per tool loop iteration by pruning tool outputs inline and limiting retained results.
Requirements
- After each tool result in native tool loop, immediately prune outputs older than last 2 iterations
- Keep only last N tool results in full detail, replace older ones with one-line summaries
- Configurable
max_tool_iterationswith sensible default (e.g., 15) - Account for tool result tokens separately in budget allocation
Acceptance Criteria
- Tool outputs beyond retention window are pruned inline
- Total context growth is sub-linear with tool iterations
- Default max_tool_iterations prevents runaway consumption
Files
crates/zeph-core/src/agent/streaming.rscrates/zeph-core/src/agent/context.rs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request