session-management

Create, load, sync, and archive AI work sessions with Git worktrees.

10|1|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/Yuvasee/samocode --skill session-management-yuvasee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-management
Source: https://github.com/Yuvasee/samocode/tree/main/skills/session-management
Command: npx skills add https://github.com/Yuvasee/samocode --skill session-management-yuvasee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the management of AI work sessions, ensuring that your progress, context, and project artifacts are consistently saved, retrievable, and organized.

Core Features & Use Cases

  • Session Creation: Start new, uniquely named work sessions with automatic date-stamping and optional Git worktree creation.
  • Session Loading: Resume previous work by easily loading existing sessions based on name patterns.
  • State Synchronization: Sync your current conversation and work into the active session's overview and logs.
  • Archiving: Clean up by archiving completed sessions or specific work files within a session.
  • Use Case: When starting a new feature development, you can start a session named "jwt-auth", which automatically creates a new Git worktree and a detailed _overview.md file to track your progress through investigation, planning, and implementation phases.

Quick Start

Start a new session named 'my-new-feature' in the default sessions directory.

Frequently Asked Questions about session-management

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

FAQPage Schema
How do I manage AI work sessions and keep context persistent across agentic workflows?

AI work session management handles the lifecycle of autonomous workflows by creating, loading, and synchronizing sessions to persist context and project artifacts. It tracks detailed session state in a markdown overview file for reliable retrieval.

How does Git worktree integration work when starting a new AI work session?

Git worktree integration allows you to start a uniquely named, date-stamped session that optionally creates a new worktree branch. This isolates feature development environments while keeping session progress and project artifacts synchronized.

What is the best way to resume previous AI work sessions by name pattern?

Session loading allows you to resume previous work by matching existing sessions based on name patterns. This retrieves the synchronized state, conversation context, and logs from the archived overview file.

Can I archive specific work files within an active session instead of the whole project?

Yes, session archiving supports cleaning up completed sessions or specific work files within an active session. This maintains organized project artifacts without deleting the entire session history or context.

Do I need a Git repository to use session management for autonomous agentic loops?

A Git repository is not strictly required but is supported for environment isolation via worktrees. Session management primarily relies on explicit session path resolution and markdown state tracking for autonomous agentic workflows.