research-git
Reapply or remove previous experiments & features safely on today’s code.
Works with Claude Code, Codex, Gemini CLI, and opencode.
research-git is a new Git tool for researchers and developers, built for the agentic coding era.
It captures important experiments and feature decisions as reusable semantic units, links experimental results to the code that produced them, and helps coding agents reapply, adapt, or safely remove earlier ideas on today’s codebase.
Why research-git
AI coding tools can generate many different experiments and features in a day. But when you try to reintroduce a previously removed experiment just a few days later, the codebase may have changed so much that the experiment no longer fits the current infrastructure.
Traditional Git preserves commits and diffs, but it does not preserve the context behind them. It cannot tell an agent which changes belong to an experiment, why they were made, what assumptions they depended on, or what results they produced. Without that context, reverting may erase later work, replaying an old diff may fail against a changed architecture, and removing a feature may damage shared infrastructure.
research-git records experiments and feature decisions as reusable Capsules, capturing their intent, relevant code, dependencies, configuration, and restoration guidance. It also links experimental results to the exact code that produced them. This gives coding agents the context to safely reapply or remove earlier ideas on today's codebase without restoring an old snapshot or deleting code piece by piece.
Quick Start
[!NOTE]
We publish a new research-git release after major iterations. Keep research-git updated.
1. Install
pip install research-git
rgit install # wires research-git into every agent client on this machine
cd your-project
rgit init # creates the .rgit/ store in your repo
Installation takes less than 30 seconds. Restart your coding agent afterwards so it loads research-git.
Install details: choosing platforms, guidance modes, capture-on-commit
rgit install claude-code (or codex / gemini / opencode / generic) targets one client; --list shows all; --uninstall removes.
- The installer also writes a short guidance block into your client's global file (
~/.claude/CLAUDE.md, ~/.codex/AGENTS.md, …) so the agent knows when to save ideas. On an interactive terminal you pick how proactive that should be (default / manual-only / none); pass --guidance <mode> to choose non-interactively.
- Optional:
rgit install-hooks (per repo) makes every git commit stage its own snapshot automatically, so nothing slips through even when you forget. It never touches an existing hook, hooks never approve anything, and rgit install-hooks --uninstall removes it. Skip it in CI or shared clones.
- Manual route on Claude Code:
/plugin marketplace add StepzeroLab/research-git then /plugin install research-git@research-git.
2. Working with an agent? Just talk to it
If your repository already has history, let your agent run the rgit-digest skill. It turns earlier work into Capsules, giving recall something to find from day one.
After install your agent does the remembering. Work as usual. It saves each meaningful idea as a Feature Capsule and asks you before anything is kept. Weeks later, when the code has moved on, just ask: