- git-memento एक एक्सटेंशन टूल है जो AI द्वारा बनाए गए कोड सेशन को अपने-आप Git commit में रिकॉर्ड करता है, और हर commit से जुड़े AI बातचीत के इतिहास को git notes के रूप में सहेजता है
- commit करते समय AI session ID देने पर, सारांश
refs/notes/commits में और पूरी बातचीत refs/notes/memento-full-audit में अलग-अलग सहेजी जाती है, जिससे traceability और privacy दोनों सुनिश्चित होते हैं
- यह Codex और Claude जैसे कई AI providers को सपोर्ट करता है, और summary बनाते समय user-defined skills लागू कर commit notes की गुणवत्ता नियंत्रित की जा सकती है
- GitHub Actions के साथ इंटीग्रेशन के जरिए commit notes पर automatic comments, CI gate validation, और merge के समय notes का automatic transfer (merge-carry) जैसी सुविधाएँ मिलती हैं
- Windows/Mac/Linux सपोर्ट. यह AI code generation की transparency बढ़ाने और collaborative environment में AI contributions की auditability सुनिश्चित करने वाला टूल है
git-memento का अवलोकन
git-memento एक Git एक्सटेंशन टूल है जो AI coding sessions को commit स्तर पर रिकॉर्ड करता है
- commit के समय AI session की बातचीत को व्यवस्थित करके Markdown notes के रूप में सहेजता है
- हर commit में AI session का source और conversation context छोड़ता है, जिससे code generation process को ट्रैक किया जा सकता है
- यह डिफ़ॉल्ट रूप से Codex को सपोर्ट करता है, और Claude जैसे अन्य AI models भी कॉन्फ़िगर किए जा सकते हैं
- यह MIT लाइसेंस के तहत उपलब्ध है और NativeAOT आधारित single executable के रूप में वितरित किया जाता है
मुख्य कमांड और फ़ीचर
git memento init से repository-स्तरीय configuration initialize किया जाता है, और AI provider की जानकारी .git/config में सहेजी जाती है
git memento commit कमांड से commit के साथ-साथ session notes भी जोड़े जाते हैं
--summary-skill विकल्प का उपयोग करने पर summary और पूरा session अलग-अलग सहेजा जाता है
- summary
refs/notes/commits में और पूरा log refs/notes/memento-full-audit में रिकॉर्ड होता है
git memento amend से मौजूदा commit में नया session जोड़ा या संशोधित किया जा सकता है
git memento audit commit range के भीतर missing notes और metadata validity की जाँच करता है
git memento doctor configuration, note references, और remote sync status की जाँच करता है
notes प्रबंधन और synchronization
git memento share-notes से notes को remote repository (origin आदि) में push किया जाता है
git memento notes-sync remote notes को सुरक्षित रूप से merge करता है और backup बनाता है
refs/notes/commits और refs/notes/memento-full-audit दोनों sync होते हैं
git memento notes-carry rebase या squash के बाद notes को नए commit में ट्रांसफ़र करता है
git memento notes-rewrite-setup automatic note transfer configuration को सक्रिय करता है
GitHub Actions इंटीग्रेशन
- repository में reusable GitHub Action शामिल है
mode: comment — commit notes पढ़कर automatic comments बनाता है
mode: gate — CI चरण में missing notes की जाँच, और असफल होने पर build रोक देता है
mode: merge-carry — PR merge के समय notes को merge commit में ट्रांसफ़र करता है
- हर mode
action.yml में परिभाषित है, और Marketplace registration artifact (dist/note-comment-renderer.js) भी शामिल है
ignore-notes लेबल वाले PR gate check को छोड़ देते हैं और “Notes ignored” comment छोड़ते हैं
notes फ़ॉर्मैट और version management
- notes को
git notes add -f -m "" फ़ॉर्मैट में सहेजा जाता है
- multi-session support के लिए version tags(``) और section separators का उपयोग होता है
- user messages को Git username से, और AI responses को provider name से label किया जाता है
- पुराने single-session notes ज़रूरत पड़ने पर अपने-आप upgrade हो जाते हैं, जिससे compatibility बनी रहती है
अभी कोई टिप्पणी नहीं है.