Use when resuming sessions. Trigger with session resumption. Loaded by ai-maestro-integrator-agent-main-agent.
Persist and retrieve session context across session boundaries using PR comments, issue comments, and handoff documents.
gh CLI configured and authenticated$CLAUDE_PROJECT_DIR set and writable$CLAUDE_PROJECT_DIR/thoughts/shared/handoffs/amia-integration/; release: load release historyCopy this checklist and track your progress:
| Memory Type | Storage Location | Format |
|---|---|---|
| PR Review State | GitHub PR comment | Markdown with HTML state marker |
| Integration Patterns | Handoff document | Markdown with timestamped entries |
| Release History | Handoff document | Markdown table with release metadata |
| CI/CD State | Issue comment or handoff | Markdown with workflow run links |
Output discipline: All scripts support
--output-file <path>.
See references/ directory for remaining documents.
Non-zero exit codes on failure. See detailed guide in Resources.
# Resume a PR review from a previous session
gh pr view 42 --json comments --jq '.comments[] | select(.body | contains("AMIA-STATE"))' > /tmp/pr42-state.json
# Load the state marker and continue review from where you left off
# Save updated state when done
gh pr comment 42 --body "<!-- AMIA-STATE: {\"phase\": 3, \"dimensions_completed\": [1,2,3], \"timestamp\": \"2026-03-26T12:00:00Z\"} -->"
Expected result: The session state is loaded from the PR comment containing the AMIA-STATE marker. After completing remaining work, an updated state marker is posted so the next session can resume seamlessly.