crates/goose-context-management/src/prompts/compaction_summary.md
{#
This template is user-overridable: place a modified copy at
~/.config/goose/prompts/compaction_summary.md to experiment with what the
post-compaction context contains (e.g. user_intent[:3] to keep only the
three most important goals) without rebuilding goose.
key_code is wrapped via the code_fence filter so embedded fences cannot break out of the block. #}
{% if user_intent %}
{% for item in user_intent %}
{% endif %} {% if technical_concepts %}
{% for item in technical_concepts %}
{% endif %} {% if files %}
{% for file in files %} {% if file.path %}
{% endif %} {{ file.summary }} {% if file.key_code %} {{ file.key_code | code_fence }} {% endif %}
{% endfor %} {% endif %} {% if errors_and_fixes %}
{% for item in errors_and_fixes %}
{% endif %} {% if problem_solving %}
{% for item in problem_solving %}
{% endif %} {% if user_messages %}
{% for item in user_messages %}
{% endif %} {% if pending_tasks %}
{% for item in pending_tasks %}
{% endif %} {% if current_work %}
{{ current_work }}
{% endif %} {% if next_step %}
{{ next_step }} {% endif %}