# Session Management

> Manage agent sessions including initialization, handoffs, revival (seance), and persistent identity for Polecats and Crew agents.

- Skill: `a5c-ai/session-management` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add a5c-ai/session-management`
- Raw SKILL.md: https://api.skillmd.com/api/skills/a5c-ai/session-management/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: a5c-ai (https://skillmd.com/u/a5c-ai)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/a5c-ai/session-management

---


- Handing off work between agents
- Reviving a dead or stuck agent session
- Managing Polecat identity persistence across sessions

## Session Operations

1. **Init**: Start new session with role and hook setup
2. **Attach**: Connect agent to Mayor for coordination
3. **Handoff**: Transfer work between agents with context
4. **Seance**: Revive a dead agent's session state
5. **Resume**: Continue from last checkpoint

## Agent Session Types

- **Crew**: Long-lived sessions, full state persistence
- **Polecat**: Ephemeral sessions, persistent identity, state via hooks
- **Dog**: Infrastructure sessions, minimal state

## Key Commands

- `gt mayor attach` - Attach to Mayor coordination
- `gt handoff` - Hand off work to another agent
- `gt seance` - Revive dead session
- `gt prime` - Prime agent with context

## Tool Use

Used within agent coordination and patrol monitoring processes.

