Agent skill · software engineering · sundial-org

remember-all-prompts-daily

Preserve conversation continuity across token compaction cycles by extracting and archiving all prompts with date-wise entries. Automatically triggers at 95% token usage (pre-compaction) and 1% (new sprint start) to export session history, then ingests archived summaries on session restart to restore context.

Why this skill is useful

Adds two executable scripts for session history management that enhance conversation continuity and context restoration.

What it needs

Requires python installed locally. About 2k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

Remember All Prompts Daily This skill maintains conversation continuity across token budget cycles by automatically archiving your session history before compaction and restoring it when a new session begins. How It Works 1. Extraction Trigger (95% Token Usage) When token usage approaches 95%: Run exportprompts.py to extract current session history Format all prompts/responses with timestamps Append to memory/remember-all-prompts-daily.md with date-wise entry Marks the archive point so compaction can proceed 2. Fresh Session Trigger (1% Token Usage) When a new session starts (fresh 1% token usage): Check if memory/remember-all-prompts-daily.md exists Read the most recent entry Ingest it as "past conversation summary" to restore context Continues naturally from where the previous session ended 3. Daily File Structure Scripts scripts/exportprompts.py Extracts all prompts/responses from current session and archives them. Usage: What it does: Uses sessionshistory() to fetch all messages from current session Formats with timestamps and message IDs Appends to memory/remember-all-prompts-daily.md Includes metadata (token count, duration, etc.) scripts/ingestprompts.py Reads the daily archive and injects it as context on session start. Usage: What it does: Reads memory/remember-all-prompts-daily.md (if exists) Extracts most recent session Returns formatted summary for ingestion into new session Integration Heartbeat Check Add to HEARTBEAT.md to monitor token usage: Cron Job (Optional) For automatic triggers: Example Flow Session 1: 1. Chat normally 2. Token reaches 95% 3. exportprompts.py runs automatically 4. All prompts archived to daily file 5. Session compacts Session 2 (New Sprint): 1. Fresh 1% token budget 2. ingestprompts.py reads archive 3. "Here's what we discussed yesterday..." 4. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/remember-all-prompts-daily

View the source on GitHub

Browse the @skills marketplace