skill-session-state

Solid

Persist and restore agent session context (Mode, Task, Summary) to survive resets.

AI & Automation 4 stars 0 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 80/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Session State Management This skill provides the mechanism to persist your current working state to a file. This allows you to "reboot" from a seamless context state if the session window is reset. ## 1. The Session File * **Path**: `.agent/sessions/latest.yaml` — resolved from the **repo root** regardless of the invocation CWD (walk-up to `.git`, `CLAUDE_PROJECT_DIR` fallback; SS-1). * **Purpose**: Stores the exact arguments from your last `task_boundary` call, plus session metadata. * **Persistence**: surviving session clears, allowing you to pick up exactly where you left off. * **Never committed**: this is per-machine runtime data — `.agent/sessions/` is gitignored (SS-2). Do not `git add` it and do not ship a committed "seed" state. ## 2. Boot Protocol (Start of Session) **IF** `.agent/sessions/latest.yaml` exists **AND** you are starting a new session (blank context): 1. **READ** the file using `read_file` or `view_file`. 2. **RESTORE** your state: * Set your internal `Mode` to the file's `mode`. * Set your `TaskName` and `TaskStatus` to the file's `current_task`. * Read the `context_summary` to understand what you were doing. * Check `active_blockers` to see if you were blocked. ## 3. Update Protocol (During Work) **WHENEVER** you call the `task_boundary` tool, you **MUST** immediately follow it with a call to the `update_state.py` script. ### Command Syntax ```bash python3 .agent/skills/skill-session-state/scripts/updat...

Details

Author
MatrixFounder
Repository
MatrixFounder/Agentic-development
Created
7 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category