session-recovery

session-recovery is a skill for Claude Code from wasintoh/toh-framework. It costs 82 tokens per session (1,789 once invoked), scanned A, original, MIT.

A session-memory aid that helps an agent continue a project across separate sessions or development environments.

In plain words
What is it for?
Use it at the start of a session to read saved project notes and report the previous task, current status, and suggested next step.
Why use it?
It avoids having to explain the project again by recalling what was completed, what remains, and where work stopped.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Good fit Use it at the start of a session to read saved project…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wasintoh/toh-framework/session-recovery
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wasintoh/toh-framework --skill session-recovery
Clone the repo
git clone --depth 1 https://github.com/wasintoh/toh-framework

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/wasintoh/toh-framework/session-recovery.svg)](https://agentmods.dev/skills/wasintoh/toh-framework/session-recovery)
Your own site
<a href="https://agentmods.dev/skills/wasintoh/toh-framework/session-recovery"><img src="https://agentmods.dev/badge/skills/wasintoh/toh-framework/session-recovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,789 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.01789
Opus 5 $0.00041 $0.00894
Sonnet 5 $0.00016 $0.00358
Haiku 4.5 $0.00008 $0.00179

Measured 7d ago against content hash e51b351908ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

session-recovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/session-recovery/SKILL.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🔄 Session Recovery Skill

Purpose: Seamless continuation across sessions and IDEs Version: 1.0.0 Author: Toh Framework Team

Overview

This skill enables AI to remember context across sessions and IDEs, so users can continue where they left off without re-explaining everything.

Core Principle

User opens new session (even after days/weeks)
    ↓
AI reads memory files
    ↓
AI greets with context: "สวัสดีครับ! ครั้งก่อนเราทำ X ค้างไว้..."
    ↓
User can continue immediately

ZERO RE-EXPLANATION NEEDED


Session Start Behavior

First Time (No Memory)

When .toh/memory/ is empty or doesn't exist:

สวัสดีครับ! 👋 ผมเป็น Toh Framework Agent

พร้อมช่วยสร้างระบบให้ครับ บอกได้เลยว่าอยากสร้างอะไร

💡 ตัวอย่าง:
- "สร้างระบบร้านกาแฟ"
- "สร้างเว็บขายของออนไลน์"
- "สร้างระบบจองคิว"

หรือพิมพ์ `/toh-help` เพื่อดูคำสั่งทั้งหมดครับ

Returning User (Has Memory)

When .toh/memory/ has data:

สวัสดีครับพี่โต! 👋 ยินดีต้อนรับกลับมา

📋 **สรุปโปรเจค:** [project name]
[Brief summary from summary.md]

🔥 **ครั้งก่อนทำค้างไว้:**
- [Last active task from active.md]

📊 **สถานะปัจจุบัน:**
- ✅ [Completed items]
- ⏳ [In progress]
- ⬚ [Not started]

💡 **แนะนำ:** [Next logical step]

ทำต่อเลยไหมครับ? หรือต้องการทำอะไรอื่น?

Memory Reading Protocol

On Session Start

AI MUST read these files in order:

1. .toh/memory/active.md     → Current task, blockers
2. .toh/memory/summary.md    → Project overview, features
3. .toh/memory/decisions.md  → Key decisions made
4. (Optional) .toh/memory/archive/ → If user asks about history

Smart Summary Generation

AI should summarize, not dump raw content:

❌ Bad: "active.md says: Current Focus: Dashboard UI..."

✅ Good: "ครั้งก่อนกำลังทำ Dashboard UI ครับ เหลือแค่เชื่อม API"

Cross-IDE Continuity

Scenario: Claude Code → Cursor

[Claude Code session ends]

[User opens Cursor]

Cursor AI: "สวัสดีครับ! ผมเห็นว่าเมื่อกี้ทำกับ Claude Code อยู่
          กำลังทำ Dashboard ค้างไว้ที่ส่วน API connection ครับ
          
          ทำต่อเลยไหมครับ?"

Read the full file on GitHub · 321 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 321 lines · 82 tokens per session scan A e51b351908ad

Subscribe to this mod's changes

session-recovery is a skill published in the GitHub repository wasintoh/toh-framework (95 stars, last pushed 4d ago), licensed MIT. It adds 82 tokens to every session and 1,789 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.