feat(session-gists): auto-backup AI sessions (Claude, Codex, Gemini) to private gists on push#145
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: ProverCoderAI#143
- Add pre-push hook to backup ~/.codex and ~/.claude sessions to GitHub Gists - Add CLI commands: docker-git session-gists [backup|list|view|download] - Post PR comment with gist link when pushing to an open PR - Support --pr-number, --repo, --no-comment, --limit, --output options - Extract shared parser helpers (splitSubcommand, parsePositiveInt) - Add jscpd ignore pattern for Effect-TS Match-based parser boilerplate Closes ProverCoderAI#143 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit bf73129.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
🔄 Auto-restart 1/3Detected uncommitted changes from previous run. Starting new session to review and commit them. Uncommitted files: Auto-restart will stop after changes are committed or after 2 more iterations. Please wait until working session will end and give your feedback. |
🔄 Auto-restart 1/3 LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
|
Надо добавить поддержку gemini Ещё на счёт того как получать нужные диалоги то есть для Claude Code, Codex вот тут: |
|
Ну и исправь конфликты |
|
🤖 AI Work Session Started Starting automated work session at 2026-03-17T19:40:38.200Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait for the session to finish, and provide your feedback. |
# Conflicts: # packages/lib/src/core/domain.ts
- Add ~/.gemini to session backup directories for Gemini CLI sessions - Extract SessionGistCommand types to dedicated session-gist-domain.ts module - Add context-doc reference link for extracting session dialogs - Update restore instructions to include .gemini files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
🔄 Auto-restart 1/3Detected uncommitted changes from previous run. Starting new session to review and commit or discard them. Uncommitted files: Auto-restart will stop after changes are committed or discarded, or after 2 more iterations. Please wait until working session will end and give your feedback. |
🔄 Auto-restart 1/3 LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
AI Session BackupA snapshot of the AI agent session has been saved to a private gist: Commit: Gist URL: https://gist.github.com/skulidropek/63b84ba6b661a206f4c55e88ec88c6e6 To resume this session, you can use: # For Codex
codex resume <session-id>
# For Claude
claude --resume <session-id>
# For Gemini
gemini --resume <session-id>For extracting session dialogs, see: https://github.com/ProverCoderAI/context-doc Backup created at: 2026-03-18T14:12:48.818Z |
AI Session BackupA snapshot of the AI session context used during development has been saved. Backup Repo: skulidropek/docker-git-sessions README: https://github.com/skulidropek/docker-git-sessions/blob/main/ProverCoderAI/docker-git/pr-145/commit-25caef95e8b76661a1d983840b1e823b760d23d9/2026-03-19T09-27-12-321Z/README.md This snapshot metadata was used during development. |
Summary
~/.codex,~/.claude,~/.gemini) to private GitHub Gists ongit pushdocker-git session-gists [backup|list|view|download]Changes
Pre-push Hook Enhancement
The
.githooks/pre-pushhook now automatically:~/.codex,~/.claude, and~/.geminidirectoriesSkip automatic backup by setting
DOCKER_GIT_SKIP_SESSION_BACKUP=1.New CLI Commands
Scripts
scripts/session-backup-gist.js- Core backup logic (supports Claude, Codex, Gemini)scripts/session-list-gists.js- Gist listing and download utilitiesGemini Support
~/.geminito session backup directoriesgemini --resume <session-id>to restore instructions.gemini/*files to download restore pathSession Dialog Extraction
For extracting session dialogs from Claude, Codex, and Gemini, see: https://github.com/ProverCoderAI/context-doc
Test plan
pnpm --filter ./packages/app lint)pnpm --filter ./packages/app test)pnpm --filter ./packages/lib lint)pnpm --filter ./packages/lib test)Issue Reference
Fixes #143
🤖 Generated with Claude Code