Skip to content

Preserve prompt caching by propagating static instruction changes as incremental messages #527

Description

@zikajk

Detect changes to session-scoped instructions such as AGENTS.md, skills, and rules.
Keep the original system/developer instruction prefix unchanged to preserve provider prompt-cache hits.
Represent updates and removals as explicit incremental user (developer) messages that supersede previous versions.
Ensure subsequent turns use the latest instruction state without rebuilding the existing conversation context.

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions