# Async session persistence I/O

> Move session save/load file I/O off the event loop using asyncio.to_thread (or equivalent) and update call sites/protocols to await as needed.

- Skill: `tools-only/async-session-persistence-i-o` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/async-session-persistence-i-o`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/async-session-persistence-i-o/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-29
- Page: https://skillmd.com/skills/tools-only/async-session-persistence-i-o

---

# Async session persistence I/O

Move session save/load file I/O off the event loop using asyncio.to_thread (or equivalent) and update call sites/protocols to await as needed.

## Acceptance Criteria

save_session/load_session no longer call blocking open/json in async context; callers updated to await; type checks pass; behavior unchanged except non-blocking I/O.


