← Back to Skills Marketplace
lllljokerllll

Alfred Rolling Summarization

by lJokerl · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
82
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install alfred-rolling-summarization
Description
Proactively updates a concise session summary every 15 turns or on tool loops to manage context size and preserve key decisions and progress.
README (SKILL.md)

Auto-Summarization Skill

Proactive context management to prevent overflow and improve session quality.

Problem

  • OpenClaw compaction triggers on context overflow (reactive)
  • Compaction timeout (60s internal) causes fallback to pre-compaction state
  • Tool loops (research with web_fetch) generate massive context without stopping
  • No control over WHAT is preserved during compaction

Solution: Rolling Summarization

How It Works

Every N turns, create a concise summary of recent work and update SESSION-STATE.md. This keeps the session lean while preserving important context.

Trigger Thresholds

Condition Action
Every 15 turns Create rolling summary
After 10 consecutive tool calls Force summary (tool loop guard)
Context >70% estimated Proactive summary + flush to memory

Rolling Summary Format

Update SESSION-STATE.md with a condensed view:

## Rolling Summary (as of HH:MM)
- Completed: [what was done]
- In progress: [what's being worked on]
- Decisions: [key decisions made]
- Blockers: [anything blocking]
- Next: [what to do next]

Integration with Existing Stack

  1. Hindsight auto-retain captures important facts before summary
  2. SESSION-STATE.md stores the rolling summary (always in context via bootstrap)
  3. Daily notes get the detailed version at end of session
  4. Working buffer becomes unnecessary if rolling summary works well

Anti-Patterns

  • ❌ Don't summarize every turn (adds latency, wastes LLM calls)
  • ❌ Don't duplicate Hindsight content (it already retains facts)
  • ❌ Don't include routine operations (heartbeat checks, status pings)
  • ✅ DO summarize: decisions, blockers, task progress, user preferences
  • ✅ DO keep it under 200 chars per section

Prompt Addition (add to agents that need it)

After completing a task or every 15 turns:
1. Read SESSION-STATE.md
2. Update the Rolling Summary section with current state
3. Keep it concise (under 500 chars total)
4. This prevents context overflow and preserves continuity

Metrics

Metric Before After (target)
Context overflow/week 1-2 ~0
Compaction timeout rate ~50% \x3C20%
Context lost per session High Low
Additional LLM cost $0 ~$0.02/week

Version

1.0.0 — Initial implementation

Usage Guidance
This instruction-only skill appears coherent and low-risk, but check where SESSION-STATE.md will be stored and who/what can read it: the rolling summary may contain sensitive task details and will be kept in context. If you install it, confirm the file path and retention policy (where the file is saved, rotation/expiration), ensure you consent to the agent writing to that workspace, and verify the 'Hindsight' integration behavior. No credentials or external installs are required. If you need stronger privacy, limit what is summarized or redact sensitive lines before writing the file.
Capability Analysis
Type: OpenClaw Skill Name: alfred-rolling-summarization Version: 1.0.0 The skill is a documentation-based instruction set designed to help the OpenClaw agent manage its context window through periodic summarization. It instructs the agent to update a local file (SESSION-STATE.md) with progress updates to prevent context overflow. There is no executable code, no network activity, and no instructions to access sensitive system information or bypass security controls.
Capability Assessment
Purpose & Capability
Name/description (periodic rolling summaries to manage context) matches the instructions which explicitly create and update a SESSION-STATE.md rolling summary and integrate with an existing 'Hindsight' retention mechanism. No unrelated binaries, env vars, or cloud credentials are requested.
Instruction Scope
SKILL.md instructs the agent to read and update SESSION-STATE.md every N turns or on tool-loop detection and to keep summaries concise. All referenced actions are directly tied to the stated goal. The instructions do not call external endpoints or request unrelated files or secrets. They do assume the agent can read/write a session-state file and that 'Hindsight auto-retain' is available.
Install Mechanism
No install spec and no code files are present (instruction-only). This is low risk and consistent with an orchestration/prompting skill.
Credentials
The skill declares no environment variables, credentials, or config path requirements, and the SKILL.md does not ask for secrets or external tokens. Requested access (file read/write for SESSION-STATE.md and use of Hindsight) is proportionate to the purpose.
Persistence & Privilege
The skill writes persistent state (SESSION-STATE.md) and expects that file to be kept 'always in context via bootstrap'. It does not request always:true or modify other skills. Persisting summaries across runs is expected for this feature but is a persistence decision the user should be aware of.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install alfred-rolling-summarization
  3. After installation, invoke the skill by name or use /alfred-rolling-summarization
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Proactive context management: rolling summaries, tool loop guard, SESSION-STATE integration
Metadata
Slug alfred-rolling-summarization
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Alfred Rolling Summarization?

Proactively updates a concise session summary every 15 turns or on tool loops to manage context size and preserve key decisions and progress. It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.

How do I install Alfred Rolling Summarization?

Run "/install alfred-rolling-summarization" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Alfred Rolling Summarization free?

Yes, Alfred Rolling Summarization is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Alfred Rolling Summarization support?

Alfred Rolling Summarization is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Alfred Rolling Summarization?

It is built and maintained by lJokerl (@lllljokerllll); the current version is v1.0.0.

💬 Comments