Skip to content
cccskills
FreePublished on GitHub

smart-session-saver

Use for session archiving, search, restore, and stats.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Smart Session Saver

Automatische Session-Archivierung + Volltextsuche + Wiederherstellung + Metrik-Stats. Arbeitet nur auf Metadaten — keine Datenlöschung.

Standort

  • Script: C:\Users\damir\scripts\smart-session-saver.py
  • Repo: C:\Users\damir\openamer-repo\scripts\smart-session-saver.py
  • Archiv: $OPENAMER_HOME\.session-archive\

CLI-Übersicht

FlagBeschreibung
--archiveArchiviere Sessions >7 Tage als JSON in .session-archive/YYYY-MM/
--listListe alle archivierten Sessions
--search QUERYVolltextsuche in allen Archiven
--restore SESSION_IDStelle Session-Metadaten als JSON wieder her
--statsMetrik-Statistiken anzeigen
--dry-runNur zeigen, nichts archivieren
--age NAlter in Tagen überschreiben (default: 7)
--db PATHAlternativer Pfad zur Session-DB

Beispiele

# Archivieren (Sessions >7 Tage)
python scripts/smart-session-saver.py --archive

# Trockenlauf
python scripts/smart-session-saver.py --archive --dry-run

# Alle Archive auflisten
python scripts/smart-session-saver.py --list

# Volltextsuche
python scripts/smart-session-saver.py --search "Feature X"

# Session wiederherstellen
python scripts/smart-session-saver.py --restore 20260818_104355

# Dashboard mit Metriken
python scripts/smart-session-saver.py --stats

# Mit anderem Alter
python scripts/smart-session-saver.py --archive --age 3

Cron-Job

Der Cron-Job läuft alle 1440m (24h, --archive) über den OpenAmer-Cron-Scheduler unter dem Namen Smart Session Saver Archive.

Archiv-Struktur

.session-archive/
├── 2026-08/
│   ├── 2026-08-18_20260818_104355_6c4c49.json
│   └── ...
└── 2026-09/
    └── ...

Jede JSON-Datei enthält Session-Metadaten (Modell, Token, Kosten, Titel), die letzten 5 Nachrichten, und lesbare Zeitstempel.

Datenquellen

  • Session-DB: state.db aus OPENAMER_HOME
  • Tabellen: sessions, messages
  • Schema: id, title, started_at, ended_at, message_count, input_tokens, output_tokens, model, archived, pinned

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Build integrated IS/BS/CF financial workbooks in Excel.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Run and grow the OpenAmer Agent-to-Agent swarm: identity, trust, node-to-node ask, signed skill/insight sharing, and the autonomous self-learning loop.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Use for A/B experiments on OpenAmer configs and skills.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Roleplay a hostile user to find and triage UX pain points.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Agent mesh: master/worker nodes, HTTP delegation, heartbeat.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Use for agentic commerce payments tasks. Candidate synthesized from trend radar; awaiting trial promotion.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

See all skills by openamer

Report a problem with this skill