Session Management
Agent Buildingsession-managementSession Management is an Agent Skill for agent building published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Manage agent sessions including initialization, handoffs, revival (seance), and persistent identity for Polecats and Crew agents.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/methodologies/gastown/skills/session-management/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/session-management, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
- Handing off work between agents
- Reviving a dead or stuck agent session
- Managing Polecat identity persistence across sessions
Session Operations
- Init: Start new session with role and hook setup
- Attach: Connect agent to Mayor for coordination
- Handoff: Transfer work between agents with context
- Seance: Revive a dead agent's session state
- 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 coordinationgt handoff- Hand off work to another agentgt seance- Revive dead sessiongt prime- Prime agent with context
Tool Use
Used within agent coordination and patrol monitoring processes.