Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: enhance context summarization with standardized templates and configuration#605

Merged
tusharmath merged 3 commits into
mainfrom
summarization-enablement
Apr 1, 2025
Merged

feat: enhance context summarization with standardized templates and configuration#605
tusharmath merged 3 commits into
mainfrom
summarization-enablement

Conversation

@tusharmath

Copy link
Copy Markdown
Collaborator

Enhance context summarization with standardized templates and configuration

Overview

This PR standardizes the context summarization system by implementing a template-based approach across agents and centralizing configuration in the default settings.

Purpose

These changes improve consistency in how summarization is handled throughout the Forge system and extend summarization capabilities to the software-engineer agent, ensuring a more uniform experience when context summarization is triggered.

Implementation

The implementation makes three key changes:

  1. Updates the default prompt in the template service to use the system-prompt-context-summarizer.hbs template instead of an inline template
  2. Moves the compact summarization configuration from forge.yaml to forge.default.yaml and applies it to the software-engineer agent
  3. Fixes minor formatting issues in the YAML configuration for the git-commit agent

The template service now references an external Handlebars template file (system-prompt-context-summarizer.hbs), which provides a comprehensive framework for context summarization. This ensures all agents using this capability will have consistent, well-structured summarization output.

Testing

Changes have been tested to ensure:

  • The template service correctly renders the context summarizer template
  • The software-engineer agent properly loads its compact configuration
  • The system maintains backward compatibility with existing agent configurations

Related Issues

N/A

Changelog

Added

  • Compact configuration for software-engineer agent with parameters for token threshold, summarization window, and model settings

Changed

  • Updated template.rs to use the standardized system-prompt-context-summarizer.hbs template
  • Moved compact summarization configuration from forge.yaml to forge.default.yaml
  • Fixed indentation in YAML configuration for git-commit agent

Suggested Reviewers

  • Team members familiar with the template service implementation
  • Anyone responsible for agent configuration standards and maintenance

@semanticdiff-com

semanticdiff-com Bot commented Apr 1, 2025

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  crates/forge_services/src/template.rs  21% smaller
  forge.default.yaml  3% smaller
  forge.yaml  0% smaller

@tusharmath tusharmath changed the title Enhance context summarization with standardized templates and configuration feat: enhance context summarization with standardized templates and configuration Apr 1, 2025
@tusharmath tusharmath merged commit afd1b08 into main Apr 1, 2025
@amitksingh1490 amitksingh1490 deleted the summarization-enablement branch November 14, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant