| name | session-handoff |
| description | Enforces a structured, agent-and-human readable session handoff strategy. Automatically catalogs transient brain artifacts (walkthroughs, implementation plans, and tasks) into chronological session files in the project workspace. |
Session Handoff & Chronological Logging
Overview
This skill provides a structured method for documenting agent and human session history inside project workspaces. By archiving Antigravity's transient brain files (walkthrough.md, implementation_plan.md, task.md) into your permanent project repository, it guarantees that no context, architecture logs, or verification results are lost across conversation turns or session resets.
Dependencies
None. This skill is fully self-contained and operates entirely on the local filesystem using standard Python libraries.
Quick Start
To initialize or catch up on the project status at the beginning of a session:
uv run python /Users/nilbot/.gemini/config/skills/session-handoff/scripts/handoff_manager.py start --workspace .
To archive completed work at the end of a session:
uv run python /Users/nilbot/.gemini/config/skills/session-handoff/scripts/handoff_manager.py record \
--workspace . \
--conv-id <current-conversation-id> \
--title <short-hyphenated-title> \
--prompt "<original-user-request>"
Utility Scripts
The Python CLI helper script handoff_manager.py manages the scanning and file copying:
Subcommands
1. start
Scans docs/sessions/ for the latest chronological file and prints its content, allowing the agent to instantly resume context.
2. record
Finds the active brain folder, extracts and compiles the generated walkthrough (and situational plan/task files) and writes them to a new, unique file: docs/sessions/YYYYMMDD/{timestamp}-{title}.md.
Workflow (For AI Agents)
As an Antigravity agent, you MUST follow these instructions automatically once this skill is loaded.
Phase 1: Session Initiation (MANDATORY)
- At the very first turn of a session, scan the active workspace for existing handoffs by running:
uv run python /Users/nilbot/.gemini/config/skills/session-handoff/scripts/handoff_manager.py start --workspace <path-to-active-workspace>
- Read the latest session log printed in stdout. Integrate its roadmap, architectural decisions, and current state into your immediate planning before writing any code.
Phase 2: Execution
- Follow your standard planning and execution loop.
- Ensure you create or update
walkthrough.md (and situational implementation_plan.md/task.md) in the current conversation's brain folder.
Phase 3: Session Handoff & Recording (MANDATORY)
- Before concluding your final turn, running walkthrough tests, or completing a task, run the
record subcommand:
uv run python /Users/nilbot/.gemini/config/skills/session-handoff/scripts/handoff_manager.py record \
--workspace <path-to-active-workspace> \
--conv-id <current-conversation-id> \
--title <short-hyphenated-title> \
--prompt "<original-user-request>"
- Present a link to the generated file to the user so they can review their persistent project history.
Common Mistakes
- Executing
record before running/verifying the task: If you run record before completing the task and writing a walkthrough.md, the script will fail loudly. Always verify your changes and generate walkthrough.md first.
- Hardcoding Conversation ID: Never assume or hardcode a conversation ID. Always read the active conversation ID from the current session metadata or system prompt.
- Specifying an incorrect workspace path: Make sure the workspace path provided is the absolute path to the active project repository, not the transient brain folder.