oc-session

Loads, updates and persists Claude Code session data to maintain cross-message context.

23|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/reedmayhew18/ClawedBack --skill oc-session
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oc-session
Source: https://github.com/reedmayhew18/ClawedBack/tree/main/.claude/skills/oc-session
Command: npx skills add https://github.com/reedmayhew18/ClawedBack --skill oc-session

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Load and save conversation session state to maintain context across messages in the chat, enabling seamless multi-turn interactions within the Claude Code runtime.

Core Features & Use Cases

  • Session loading and persistence: reads and writes the active conversation state from data/sessions/conversation.json.
  • Sliding window context: keeps the most recent 20 messages to balance memory, performance, and relevance.
  • Long-term memory and user preferences: maintains a concise summary and user preferences to guide responses across messages.
  • Recovery and resilience: supports safe fallback when session data is missing or corrupted.

Quick Start

Load the current session from data/sessions/conversation.json, update it after processing a message, and save it back.

Frequently Asked Questions about oc-session

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I maintain conversation context across messages in Claude Code?

Session management maintains conversation context by loading, updating, and persisting session data within the Claude Code runtime. It reads and writes the active conversation state from a local JSON file during message processing, ensuring seamless multi-turn chat interactions.

How does sliding window context work for multi-turn chat sessions?

Sliding window context works by keeping the most recent 20 messages in memory. This balances memory usage and performance with relevance, while also maintaining a concise long-term summary and user preferences to guide responses across messages.

What happens when session data is missing or corrupted during chat persistence?

When session data is missing or corrupted, the session management mechanism supports safe fallback and recovery resilience. This allows the chat session to recover gracefully without losing the ability to maintain cross-message context and user preferences.

Can I save user preferences and long-term memory in a persistent conversation session?

Yes, you can save user preferences and long-term memory in a persistent conversation session. The session state maintains a concise summary alongside the sliding window context to guide responses accurately across multiple chat turns.

Do I need any external dependencies to manage conversation history within Claude Code?

No external dependencies are needed to manage conversation history. The session management operates by reading and writing the active conversation state directly to a local file path, specifically data/sessions/conversation.json, without requiring additional packages.