Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Model-managed context window v1.0.0

Use this resource to design an agent that manages its own live context

New

  • 367 downloads
  • 127 likes
  • 176 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install self-managed-context-window

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent examines the case where the model decides what stays in its context window: eviction, in-place rewriting and compaction. It applies the safety invariants (pinned prefix, edit gate, edit receipts, rollback) and accounts for cache cost. You get a controlled design for model-driven context management.

Mostly picked by

Updated November 2, 2026

Card for the “Model-managed context window” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: control spectrum, invariants and cache cost
  • references/harness-protocol.md: harness protocol for context editing
  • references/evidence.md: evidence behind the recommendations

Good fit for

  • Your agent should edit its context instead of undergoing a fixed compaction
  • You want to limit the risks of an editable context

Not for

    Tags

    • context
    • self-management
    • invariants
    • cache

    About

    You say

    “My agent should rewrite its own working context: which invariants should I set before granting that right?”

    Card for the “Model-managed context window” skill

    Skill published by muratcankoylan under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to design an agent that manages its own live context
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/evidence.md10.6 KB
    • references/harness-protocol.md12.4 KB
    • SKILL.md23.8 KB

    Origin and licence

    Listed unmodified

    Author
    muratcankoylan
    Source
    github.com/muratcankoylan/agent-skills-for-context-engineering/tree/9ff0c99108b36d3b886defd825d8ac1f47dba374/skills/self-managed-context
    Licence
    MIT

    Notice

    « self-managed-context » (muratcankoylan, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.