Logo di Session State Management

Session State Management

Community
UnpaidAttention
session-state-management

Stay coherent across a long agentic session by keeping the task's state on disk — a WORKING_NOTES.md with the task, plan, decisions, and status — updated at every milestone and re-read after any context loss. Trigger this at the start of any task likely to exceed ~30 minutes or ~10 distinct steps; immediately after noticing context compaction or a session resume; and whenever you catch yourself re-searching for something you already found or contradicting an earlier decision. Do NOT trigger for short single-sitting tasks, and do not confuse with incremental-delivery (which orders and checkpoints the DELIVERABLE) — this skill keeps the SESSION coherent regardless of what is being built.

Add to TypingMind

Panoramica

Pubblicato daUnpaidAttention
Repositoryfable5-methodology
Nome della skillsession-state-management
Stelle
94
Fork
21
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da UnpaidAttention su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Session State Management in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/session-state-management
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnpaidAttention/fable5-methodology.git /tmp/fable5-methodology
mkdir -p .claude/skills
cp -r /tmp/fable5-methodology/skills/session-state-management .claude/skills/session-state-management
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Session State Management in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Session State Management non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Session State Management non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Session State Management

Your context window is unreliable storage: it compacts, truncates, and ends. Disk does not. Anything you'd be sorry to lose goes in a file, at the moment you'd be sorry to lose it.

Step 1: Create WORKING_NOTES.md at task start

Location: the session scratchpad directory, or the repo root if the user's workflow expects it (never commit it unless asked). Structure — create all sections immediately, even empty:

markdown
# WORKING NOTES — <task title>

## Task (verbatim requirements)
<paste the user's actual requirements and process instructions — not your paraphrase;
paraphrases drift and the original message may scroll out of context>

## Plan
<ordered steps, checked off as done>

## Decisions
<one line each: what was decided, and why — "IDs are ULIDs not UUIDs: sortable, spec §3">

## Status
<done / in progress / blocked, per step>

## Next action
<the exact next command or edit, written for a cold reader>

## Assumptions & open questions

Step 2: Update triggers (write at the moment, not "later")

Update the file when ANY of these occurs:

  1. A plan step completes or a milestone verifies → check it off, update Status.
  2. A decision is made that later work must honor (naming, format, interface shape) → Decisions.
  3. The plan changes direction → rewrite Plan, note why in Decisions.
  4. You're about to do anything risky or slow (migration, big refactor step, long build) → record Next action FIRST, so a crash mid-operation leaves a resume point.
  5. Roughly every 30–45 minutes of work with no other trigger → refresh Status and Next action.

Step 3: Re-read triggers

Re-read WORKING_NOTES.md — fully, not from memory — when:

  1. A context-compaction notice appears, or a session resumes.
  2. You're unsure what was already decided or already tried.
  3. You're about to start a new plan step (glance at Decisions so step 9 honors what step 2 chose).
  4. Before writing the final delivery message (the Task section is the requirements checklist).

Rule: after any suspected context loss, trust the file over your recollection wherever they disagree. The file was written at the moment of knowledge; your recollection is a reconstruction.

Step 4: Split across sessions instead of overextending one

End the session at a natural boundary (a checkpoint, a completed unit) rather than pushing on, when ANY of:

  1. Remaining work is clearly larger than what's been done and quality is already degrading — see the signs below.
  2. Verification has failed 3+ times on the same criterion (grinding, not progressing).
  3. Degradation signs: repeating searches you already ran, re-deriving established facts, contradicting the Decisions list, or instructions from the original request coming as a surprise on re-read.

To split: finish the current unit to a verified state, update WORKING_NOTES.md so the Next action block is executable cold ("run pytest tests/test_sync.py, then implement step 5: retry logic in sync.py:120 per Decision 4"), and tell the user where things stand and what the next session picks up.

Worked example

Mid-task, a compaction notice appears during an 8-step API migration.

  • Without this skill: you continue from a summarized memory, re-implement the error envelope you already built (differently), and step 7 contradicts the pagination decision from step 2.
  • With it: you re-read WORKING_NOTES.md — Decisions says "error envelope: {error: {code, message}}, pagination: cursor-based, decided step 2"; Status shows steps 1–5 verified, step 6 in progress with next action "wire cursor into /orders handler". You resume in two minutes with zero re-derivation and no drift.

Done when

WORKING_NOTES.md exists from task start and its Status/Next-action sections would let a cold model resume correctly right now; every cross-cutting decision made this session appears in Decisions; and at delivery, the verbatim Task section was used as the final requirements checklist.

Domande frequenti

Cosa fa la skill IA Session State Management?

Stay coherent across a long agentic session by keeping the task's state on disk — a WORKING_NOTES.md with the task, plan, decisions, and status — updated at every milestone and re-read after any context loss. Trigger this at the start of any task likely to exceed ~30 minutes or ~10 distinct steps; immediately after noticing context compaction or a session resume; and whenever you catch yourself re-searching for something you already found or contradicting an earlier decision. Do NOT trigger for short single-sitting tasks, and do not confuse with incremental-delivery (which orders and checkp...

Perché usare Session State Management su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Session State Management è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Session State Management in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/session-state-management. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Session State Management?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Session State Management?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Session State Management: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Session State Management è gratuita?

È pubblicata su GitHub da UnpaidAttention. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇