Skip to content

Context Compaction needs Guardrails #1735

@sharpninja

Description

@sharpninja

Describe the feature or problem you'd like to solve

The copilot_instructions.md needs a mechanism for marking critical sections that must be reapplied after compaction.

Proposed solution

Use code fence to mark sections of the copilot_instructions.md that must be reapplied after compaction.

Example prompts or workflows

# ALWAYS DO THIS

xxxxxxx

Additional context

I spend so much time nagging copilot to reapply copilot_instructions.md after compaction, and each request to do so uses premium requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:context-memoryContext window, memory, compaction, checkpoints, and instruction loading
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions